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

241 lines
8.5 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.29.1
// protoc v3.20.3
// source: group_chat_invitation.proto
package protobuf
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
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
)
// Enum value maps for GroupChatInvitation_State.
var (
GroupChatInvitation_State_name = map[int32]string{
0: "UNKNOWN",
1: "REQUEST",
2: "REJECTED",
3: "APPROVED",
}
GroupChatInvitation_State_value = map[string]int32{
"UNKNOWN": 0,
"REQUEST": 1,
"REJECTED": 2,
"APPROVED": 3,
}
)
func (x GroupChatInvitation_State) Enum() *GroupChatInvitation_State {
p := new(GroupChatInvitation_State)
*p = x
return p
}
func (x GroupChatInvitation_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (GroupChatInvitation_State) Descriptor() protoreflect.EnumDescriptor {
return file_group_chat_invitation_proto_enumTypes[0].Descriptor()
}
func (GroupChatInvitation_State) Type() protoreflect.EnumType {
return &file_group_chat_invitation_proto_enumTypes[0]
}
func (x GroupChatInvitation_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use GroupChatInvitation_State.Descriptor instead.
func (GroupChatInvitation_State) EnumDescriptor() ([]byte, []int) {
return file_group_chat_invitation_proto_rawDescGZIP(), []int{0, 0}
}
type GroupChatInvitation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 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"`
}
func (x *GroupChatInvitation) Reset() {
*x = GroupChatInvitation{}
if protoimpl.UnsafeEnabled {
mi := &file_group_chat_invitation_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GroupChatInvitation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GroupChatInvitation) ProtoMessage() {}
func (x *GroupChatInvitation) ProtoReflect() protoreflect.Message {
mi := &file_group_chat_invitation_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GroupChatInvitation.ProtoReflect.Descriptor instead.
func (*GroupChatInvitation) Descriptor() ([]byte, []int) {
return file_group_chat_invitation_proto_rawDescGZIP(), []int{0}
}
func (x *GroupChatInvitation) GetClock() uint64 {
if x != nil {
return x.Clock
}
return 0
}
func (x *GroupChatInvitation) GetChatId() string {
if x != nil {
return x.ChatId
}
return ""
}
func (x *GroupChatInvitation) GetIntroductionMessage() string {
if x != nil {
return x.IntroductionMessage
}
return ""
}
func (x *GroupChatInvitation) GetState() GroupChatInvitation_State {
if x != nil {
return x.State
}
return GroupChatInvitation_UNKNOWN
}
var File_group_chat_invitation_proto protoreflect.FileDescriptor
var file_group_chat_invitation_proto_rawDesc = []byte{
0x0a, 0x1b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x76,
0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0xf1, 0x01, 0x0a, 0x13, 0x47, 0x72, 0x6f, 0x75,
0x70, 0x43, 0x68, 0x61, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05,
0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x31,
0x0a, 0x14, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x69, 0x6e,
0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e,
0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x47, 0x72, 0x6f, 0x75,
0x70, 0x43, 0x68, 0x61, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3d, 0x0a, 0x05,
0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e,
0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x01, 0x12,
0x0c, 0x0a, 0x08, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0c, 0x0a,
0x08, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x03, 0x42, 0x0d, 0x5a, 0x0b, 0x2e,
0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
file_group_chat_invitation_proto_rawDescOnce sync.Once
file_group_chat_invitation_proto_rawDescData = file_group_chat_invitation_proto_rawDesc
)
func file_group_chat_invitation_proto_rawDescGZIP() []byte {
file_group_chat_invitation_proto_rawDescOnce.Do(func() {
file_group_chat_invitation_proto_rawDescData = protoimpl.X.CompressGZIP(file_group_chat_invitation_proto_rawDescData)
})
return file_group_chat_invitation_proto_rawDescData
}
var file_group_chat_invitation_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_group_chat_invitation_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_group_chat_invitation_proto_goTypes = []interface{}{
(GroupChatInvitation_State)(0), // 0: protobuf.GroupChatInvitation.State
(*GroupChatInvitation)(nil), // 1: protobuf.GroupChatInvitation
}
var file_group_chat_invitation_proto_depIdxs = []int32{
0, // 0: protobuf.GroupChatInvitation.state:type_name -> protobuf.GroupChatInvitation.State
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_group_chat_invitation_proto_init() }
func file_group_chat_invitation_proto_init() {
if File_group_chat_invitation_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_group_chat_invitation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GroupChatInvitation); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_group_chat_invitation_proto_rawDesc,
NumEnums: 1,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_group_chat_invitation_proto_goTypes,
DependencyIndexes: file_group_chat_invitation_proto_depIdxs,
EnumInfos: file_group_chat_invitation_proto_enumTypes,
MessageInfos: file_group_chat_invitation_proto_msgTypes,
}.Build()
File_group_chat_invitation_proto = out.File
file_group_chat_invitation_proto_rawDesc = nil
file_group_chat_invitation_proto_goTypes = nil
file_group_chat_invitation_proto_depIdxs = nil
}