github.com/status-im/status-go@v1.1.0/protocol/protobuf/group_chat_invitation.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.31.0 4 // protoc v3.20.3 5 // source: group_chat_invitation.proto 6 7 package protobuf 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type GroupChatInvitation_State int32 24 25 const ( 26 GroupChatInvitation_UNKNOWN GroupChatInvitation_State = 0 27 GroupChatInvitation_REQUEST GroupChatInvitation_State = 1 28 GroupChatInvitation_REJECTED GroupChatInvitation_State = 2 29 GroupChatInvitation_APPROVED GroupChatInvitation_State = 3 30 ) 31 32 // Enum value maps for GroupChatInvitation_State. 33 var ( 34 GroupChatInvitation_State_name = map[int32]string{ 35 0: "UNKNOWN", 36 1: "REQUEST", 37 2: "REJECTED", 38 3: "APPROVED", 39 } 40 GroupChatInvitation_State_value = map[string]int32{ 41 "UNKNOWN": 0, 42 "REQUEST": 1, 43 "REJECTED": 2, 44 "APPROVED": 3, 45 } 46 ) 47 48 func (x GroupChatInvitation_State) Enum() *GroupChatInvitation_State { 49 p := new(GroupChatInvitation_State) 50 *p = x 51 return p 52 } 53 54 func (x GroupChatInvitation_State) String() string { 55 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 56 } 57 58 func (GroupChatInvitation_State) Descriptor() protoreflect.EnumDescriptor { 59 return file_group_chat_invitation_proto_enumTypes[0].Descriptor() 60 } 61 62 func (GroupChatInvitation_State) Type() protoreflect.EnumType { 63 return &file_group_chat_invitation_proto_enumTypes[0] 64 } 65 66 func (x GroupChatInvitation_State) Number() protoreflect.EnumNumber { 67 return protoreflect.EnumNumber(x) 68 } 69 70 // Deprecated: Use GroupChatInvitation_State.Descriptor instead. 71 func (GroupChatInvitation_State) EnumDescriptor() ([]byte, []int) { 72 return file_group_chat_invitation_proto_rawDescGZIP(), []int{0, 0} 73 } 74 75 type GroupChatInvitation struct { 76 state protoimpl.MessageState 77 sizeCache protoimpl.SizeCache 78 unknownFields protoimpl.UnknownFields 79 80 // clock Lamport timestamp of the chat message 81 Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` 82 // 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 83 // target message also stores the chat_id 84 ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` 85 IntroductionMessage string `protobuf:"bytes,3,opt,name=introduction_message,json=introductionMessage,proto3" json:"introduction_message,omitempty"` 86 // state of invitation 87 State GroupChatInvitation_State `protobuf:"varint,4,opt,name=state,proto3,enum=protobuf.GroupChatInvitation_State" json:"state,omitempty"` 88 } 89 90 func (x *GroupChatInvitation) Reset() { 91 *x = GroupChatInvitation{} 92 if protoimpl.UnsafeEnabled { 93 mi := &file_group_chat_invitation_proto_msgTypes[0] 94 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 95 ms.StoreMessageInfo(mi) 96 } 97 } 98 99 func (x *GroupChatInvitation) String() string { 100 return protoimpl.X.MessageStringOf(x) 101 } 102 103 func (*GroupChatInvitation) ProtoMessage() {} 104 105 func (x *GroupChatInvitation) ProtoReflect() protoreflect.Message { 106 mi := &file_group_chat_invitation_proto_msgTypes[0] 107 if protoimpl.UnsafeEnabled && x != nil { 108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 109 if ms.LoadMessageInfo() == nil { 110 ms.StoreMessageInfo(mi) 111 } 112 return ms 113 } 114 return mi.MessageOf(x) 115 } 116 117 // Deprecated: Use GroupChatInvitation.ProtoReflect.Descriptor instead. 118 func (*GroupChatInvitation) Descriptor() ([]byte, []int) { 119 return file_group_chat_invitation_proto_rawDescGZIP(), []int{0} 120 } 121 122 func (x *GroupChatInvitation) GetClock() uint64 { 123 if x != nil { 124 return x.Clock 125 } 126 return 0 127 } 128 129 func (x *GroupChatInvitation) GetChatId() string { 130 if x != nil { 131 return x.ChatId 132 } 133 return "" 134 } 135 136 func (x *GroupChatInvitation) GetIntroductionMessage() string { 137 if x != nil { 138 return x.IntroductionMessage 139 } 140 return "" 141 } 142 143 func (x *GroupChatInvitation) GetState() GroupChatInvitation_State { 144 if x != nil { 145 return x.State 146 } 147 return GroupChatInvitation_UNKNOWN 148 } 149 150 var File_group_chat_invitation_proto protoreflect.FileDescriptor 151 152 var file_group_chat_invitation_proto_rawDesc = []byte{ 153 0x0a, 0x1b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x76, 154 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 155 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0xf1, 0x01, 0x0a, 0x13, 0x47, 0x72, 0x6f, 0x75, 156 0x70, 0x43, 0x68, 0x61, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 157 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 158 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 159 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x31, 160 0x0a, 0x14, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 161 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x69, 0x6e, 162 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 163 0x65, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 164 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x47, 0x72, 0x6f, 0x75, 165 0x70, 0x43, 0x68, 0x61, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 166 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3d, 0x0a, 0x05, 167 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 168 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x01, 0x12, 169 0x0c, 0x0a, 0x08, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0c, 0x0a, 170 0x08, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x03, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 171 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 172 0x6f, 0x33, 173 } 174 175 var ( 176 file_group_chat_invitation_proto_rawDescOnce sync.Once 177 file_group_chat_invitation_proto_rawDescData = file_group_chat_invitation_proto_rawDesc 178 ) 179 180 func file_group_chat_invitation_proto_rawDescGZIP() []byte { 181 file_group_chat_invitation_proto_rawDescOnce.Do(func() { 182 file_group_chat_invitation_proto_rawDescData = protoimpl.X.CompressGZIP(file_group_chat_invitation_proto_rawDescData) 183 }) 184 return file_group_chat_invitation_proto_rawDescData 185 } 186 187 var file_group_chat_invitation_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 188 var file_group_chat_invitation_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 189 var file_group_chat_invitation_proto_goTypes = []interface{}{ 190 (GroupChatInvitation_State)(0), // 0: protobuf.GroupChatInvitation.State 191 (*GroupChatInvitation)(nil), // 1: protobuf.GroupChatInvitation 192 } 193 var file_group_chat_invitation_proto_depIdxs = []int32{ 194 0, // 0: protobuf.GroupChatInvitation.state:type_name -> protobuf.GroupChatInvitation.State 195 1, // [1:1] is the sub-list for method output_type 196 1, // [1:1] is the sub-list for method input_type 197 1, // [1:1] is the sub-list for extension type_name 198 1, // [1:1] is the sub-list for extension extendee 199 0, // [0:1] is the sub-list for field type_name 200 } 201 202 func init() { file_group_chat_invitation_proto_init() } 203 func file_group_chat_invitation_proto_init() { 204 if File_group_chat_invitation_proto != nil { 205 return 206 } 207 if !protoimpl.UnsafeEnabled { 208 file_group_chat_invitation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 209 switch v := v.(*GroupChatInvitation); i { 210 case 0: 211 return &v.state 212 case 1: 213 return &v.sizeCache 214 case 2: 215 return &v.unknownFields 216 default: 217 return nil 218 } 219 } 220 } 221 type x struct{} 222 out := protoimpl.TypeBuilder{ 223 File: protoimpl.DescBuilder{ 224 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 225 RawDescriptor: file_group_chat_invitation_proto_rawDesc, 226 NumEnums: 1, 227 NumMessages: 1, 228 NumExtensions: 0, 229 NumServices: 0, 230 }, 231 GoTypes: file_group_chat_invitation_proto_goTypes, 232 DependencyIndexes: file_group_chat_invitation_proto_depIdxs, 233 EnumInfos: file_group_chat_invitation_proto_enumTypes, 234 MessageInfos: file_group_chat_invitation_proto_msgTypes, 235 }.Build() 236 File_group_chat_invitation_proto = out.File 237 file_group_chat_invitation_proto_rawDesc = nil 238 file_group_chat_invitation_proto_goTypes = nil 239 file_group_chat_invitation_proto_depIdxs = nil 240 }