status-go/protocol/protobuf/group_chat_invitation.pb.go

149 lines
5.6 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: group_chat_invitation.proto
package protobuf
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type GroupChatInvitation_State int32
const (
GroupChatInvitation_UNKNOWN GroupChatInvitation_State = 0
GroupChatInvitation_REQUEST GroupChatInvitation_State = 1
GroupChatInvitation_REJECTED GroupChatInvitation_State = 2
GroupChatInvitation_APPROVED GroupChatInvitation_State = 3
)
var GroupChatInvitation_State_name = map[int32]string{
0: "UNKNOWN",
1: "REQUEST",
2: "REJECTED",
3: "APPROVED",
}
var GroupChatInvitation_State_value = map[string]int32{
"UNKNOWN": 0,
"REQUEST": 1,
"REJECTED": 2,
"APPROVED": 3,
}
func (x GroupChatInvitation_State) String() string {
return proto.EnumName(GroupChatInvitation_State_name, int32(x))
}
func (GroupChatInvitation_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_a6a73333de6a8ebe, []int{0, 0}
}
type GroupChatInvitation struct {
// clock Lamport timestamp of the chat message
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
// chat_id the ID of the private group chat the message belongs to, for query efficiency the chat_id is stored in the db even though the
// target message also stores the chat_id
ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
IntroductionMessage string `protobuf:"bytes,3,opt,name=introduction_message,json=introductionMessage,proto3" json:"introduction_message,omitempty"`
// state of invitation
State GroupChatInvitation_State `protobuf:"varint,4,opt,name=state,proto3,enum=protobuf.GroupChatInvitation_State" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GroupChatInvitation) Reset() { *m = GroupChatInvitation{} }
func (m *GroupChatInvitation) String() string { return proto.CompactTextString(m) }
func (*GroupChatInvitation) ProtoMessage() {}
func (*GroupChatInvitation) Descriptor() ([]byte, []int) {
return fileDescriptor_a6a73333de6a8ebe, []int{0}
}
func (m *GroupChatInvitation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GroupChatInvitation.Unmarshal(m, b)
}
func (m *GroupChatInvitation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GroupChatInvitation.Marshal(b, m, deterministic)
}
func (m *GroupChatInvitation) XXX_Merge(src proto.Message) {
xxx_messageInfo_GroupChatInvitation.Merge(m, src)
}
func (m *GroupChatInvitation) XXX_Size() int {
return xxx_messageInfo_GroupChatInvitation.Size(m)
}
func (m *GroupChatInvitation) XXX_DiscardUnknown() {
xxx_messageInfo_GroupChatInvitation.DiscardUnknown(m)
}
var xxx_messageInfo_GroupChatInvitation proto.InternalMessageInfo
func (m *GroupChatInvitation) GetClock() uint64 {
if m != nil {
return m.Clock
}
return 0
}
func (m *GroupChatInvitation) GetChatId() string {
if m != nil {
return m.ChatId
}
return ""
}
func (m *GroupChatInvitation) GetIntroductionMessage() string {
if m != nil {
return m.IntroductionMessage
}
return ""
}
func (m *GroupChatInvitation) GetState() GroupChatInvitation_State {
if m != nil {
return m.State
}
return GroupChatInvitation_UNKNOWN
}
func init() {
proto.RegisterEnum("protobuf.GroupChatInvitation_State", GroupChatInvitation_State_name, GroupChatInvitation_State_value)
proto.RegisterType((*GroupChatInvitation)(nil), "protobuf.GroupChatInvitation")
}
func init() {
proto.RegisterFile("group_chat_invitation.proto", fileDescriptor_a6a73333de6a8ebe)
}
var fileDescriptor_a6a73333de6a8ebe = []byte{
// 243 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,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, 0x57, 0x2f, 0x57, 0xe7, 0x10, 0x57, 0x17, 0x01, 0x26, 0x10, 0xcf, 0x31, 0x20,
0x20, 0xc8, 0x3f, 0xcc, 0xd5, 0x45, 0x80, 0xd9, 0x89, 0x37, 0x8a, 0x5b, 0x4f, 0xdf, 0x1a, 0x66,
0x5d, 0x12, 0x1b, 0x98, 0x65, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x1b, 0x4c, 0x19, 0xcd, 0x32,
0x01, 0x00, 0x00,
}