github.com/status-im/status-go@v1.1.0/protocol/protobuf/contact_verification.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: contact_verification.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 RequestContactVerification struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` 29 Challenge string `protobuf:"bytes,3,opt,name=challenge,proto3" json:"challenge,omitempty"` 30 } 31 32 func (x *RequestContactVerification) Reset() { 33 *x = RequestContactVerification{} 34 if protoimpl.UnsafeEnabled { 35 mi := &file_contact_verification_proto_msgTypes[0] 36 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 37 ms.StoreMessageInfo(mi) 38 } 39 } 40 41 func (x *RequestContactVerification) String() string { 42 return protoimpl.X.MessageStringOf(x) 43 } 44 45 func (*RequestContactVerification) ProtoMessage() {} 46 47 func (x *RequestContactVerification) ProtoReflect() protoreflect.Message { 48 mi := &file_contact_verification_proto_msgTypes[0] 49 if protoimpl.UnsafeEnabled && x != nil { 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 if ms.LoadMessageInfo() == nil { 52 ms.StoreMessageInfo(mi) 53 } 54 return ms 55 } 56 return mi.MessageOf(x) 57 } 58 59 // Deprecated: Use RequestContactVerification.ProtoReflect.Descriptor instead. 60 func (*RequestContactVerification) Descriptor() ([]byte, []int) { 61 return file_contact_verification_proto_rawDescGZIP(), []int{0} 62 } 63 64 func (x *RequestContactVerification) GetClock() uint64 { 65 if x != nil { 66 return x.Clock 67 } 68 return 0 69 } 70 71 func (x *RequestContactVerification) GetChallenge() string { 72 if x != nil { 73 return x.Challenge 74 } 75 return "" 76 } 77 78 type AcceptContactVerification struct { 79 state protoimpl.MessageState 80 sizeCache protoimpl.SizeCache 81 unknownFields protoimpl.UnknownFields 82 83 Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` 84 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 85 Response string `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` 86 } 87 88 func (x *AcceptContactVerification) Reset() { 89 *x = AcceptContactVerification{} 90 if protoimpl.UnsafeEnabled { 91 mi := &file_contact_verification_proto_msgTypes[1] 92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 93 ms.StoreMessageInfo(mi) 94 } 95 } 96 97 func (x *AcceptContactVerification) String() string { 98 return protoimpl.X.MessageStringOf(x) 99 } 100 101 func (*AcceptContactVerification) ProtoMessage() {} 102 103 func (x *AcceptContactVerification) ProtoReflect() protoreflect.Message { 104 mi := &file_contact_verification_proto_msgTypes[1] 105 if protoimpl.UnsafeEnabled && x != nil { 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 if ms.LoadMessageInfo() == nil { 108 ms.StoreMessageInfo(mi) 109 } 110 return ms 111 } 112 return mi.MessageOf(x) 113 } 114 115 // Deprecated: Use AcceptContactVerification.ProtoReflect.Descriptor instead. 116 func (*AcceptContactVerification) Descriptor() ([]byte, []int) { 117 return file_contact_verification_proto_rawDescGZIP(), []int{1} 118 } 119 120 func (x *AcceptContactVerification) GetClock() uint64 { 121 if x != nil { 122 return x.Clock 123 } 124 return 0 125 } 126 127 func (x *AcceptContactVerification) GetId() string { 128 if x != nil { 129 return x.Id 130 } 131 return "" 132 } 133 134 func (x *AcceptContactVerification) GetResponse() string { 135 if x != nil { 136 return x.Response 137 } 138 return "" 139 } 140 141 type DeclineContactVerification struct { 142 state protoimpl.MessageState 143 sizeCache protoimpl.SizeCache 144 unknownFields protoimpl.UnknownFields 145 146 Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` 147 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 148 } 149 150 func (x *DeclineContactVerification) Reset() { 151 *x = DeclineContactVerification{} 152 if protoimpl.UnsafeEnabled { 153 mi := &file_contact_verification_proto_msgTypes[2] 154 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 155 ms.StoreMessageInfo(mi) 156 } 157 } 158 159 func (x *DeclineContactVerification) String() string { 160 return protoimpl.X.MessageStringOf(x) 161 } 162 163 func (*DeclineContactVerification) ProtoMessage() {} 164 165 func (x *DeclineContactVerification) ProtoReflect() protoreflect.Message { 166 mi := &file_contact_verification_proto_msgTypes[2] 167 if protoimpl.UnsafeEnabled && x != nil { 168 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 169 if ms.LoadMessageInfo() == nil { 170 ms.StoreMessageInfo(mi) 171 } 172 return ms 173 } 174 return mi.MessageOf(x) 175 } 176 177 // Deprecated: Use DeclineContactVerification.ProtoReflect.Descriptor instead. 178 func (*DeclineContactVerification) Descriptor() ([]byte, []int) { 179 return file_contact_verification_proto_rawDescGZIP(), []int{2} 180 } 181 182 func (x *DeclineContactVerification) GetClock() uint64 { 183 if x != nil { 184 return x.Clock 185 } 186 return 0 187 } 188 189 func (x *DeclineContactVerification) GetId() string { 190 if x != nil { 191 return x.Id 192 } 193 return "" 194 } 195 196 type CancelContactVerification struct { 197 state protoimpl.MessageState 198 sizeCache protoimpl.SizeCache 199 unknownFields protoimpl.UnknownFields 200 201 Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` 202 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 203 } 204 205 func (x *CancelContactVerification) Reset() { 206 *x = CancelContactVerification{} 207 if protoimpl.UnsafeEnabled { 208 mi := &file_contact_verification_proto_msgTypes[3] 209 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 210 ms.StoreMessageInfo(mi) 211 } 212 } 213 214 func (x *CancelContactVerification) String() string { 215 return protoimpl.X.MessageStringOf(x) 216 } 217 218 func (*CancelContactVerification) ProtoMessage() {} 219 220 func (x *CancelContactVerification) ProtoReflect() protoreflect.Message { 221 mi := &file_contact_verification_proto_msgTypes[3] 222 if protoimpl.UnsafeEnabled && x != nil { 223 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 224 if ms.LoadMessageInfo() == nil { 225 ms.StoreMessageInfo(mi) 226 } 227 return ms 228 } 229 return mi.MessageOf(x) 230 } 231 232 // Deprecated: Use CancelContactVerification.ProtoReflect.Descriptor instead. 233 func (*CancelContactVerification) Descriptor() ([]byte, []int) { 234 return file_contact_verification_proto_rawDescGZIP(), []int{3} 235 } 236 237 func (x *CancelContactVerification) GetClock() uint64 { 238 if x != nil { 239 return x.Clock 240 } 241 return 0 242 } 243 244 func (x *CancelContactVerification) GetId() string { 245 if x != nil { 246 return x.Id 247 } 248 return "" 249 } 250 251 var File_contact_verification_proto protoreflect.FileDescriptor 252 253 var file_contact_verification_proto_rawDesc = []byte{ 254 0x0a, 0x1a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 255 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 256 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x50, 0x0a, 0x1a, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 257 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 258 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 259 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 260 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 261 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x22, 0x5d, 0x0a, 0x19, 0x41, 0x63, 0x63, 0x65, 262 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 263 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 264 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 265 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 266 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 267 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x0a, 0x1a, 0x44, 0x65, 0x63, 0x6c, 0x69, 268 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 269 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 270 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 271 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x41, 0x0a, 0x19, 0x43, 272 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x56, 0x65, 0x72, 0x69, 273 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 274 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 275 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x42, 0x0d, 276 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 277 0x72, 0x6f, 0x74, 0x6f, 0x33, 278 } 279 280 var ( 281 file_contact_verification_proto_rawDescOnce sync.Once 282 file_contact_verification_proto_rawDescData = file_contact_verification_proto_rawDesc 283 ) 284 285 func file_contact_verification_proto_rawDescGZIP() []byte { 286 file_contact_verification_proto_rawDescOnce.Do(func() { 287 file_contact_verification_proto_rawDescData = protoimpl.X.CompressGZIP(file_contact_verification_proto_rawDescData) 288 }) 289 return file_contact_verification_proto_rawDescData 290 } 291 292 var file_contact_verification_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 293 var file_contact_verification_proto_goTypes = []interface{}{ 294 (*RequestContactVerification)(nil), // 0: protobuf.RequestContactVerification 295 (*AcceptContactVerification)(nil), // 1: protobuf.AcceptContactVerification 296 (*DeclineContactVerification)(nil), // 2: protobuf.DeclineContactVerification 297 (*CancelContactVerification)(nil), // 3: protobuf.CancelContactVerification 298 } 299 var file_contact_verification_proto_depIdxs = []int32{ 300 0, // [0:0] is the sub-list for method output_type 301 0, // [0:0] is the sub-list for method input_type 302 0, // [0:0] is the sub-list for extension type_name 303 0, // [0:0] is the sub-list for extension extendee 304 0, // [0:0] is the sub-list for field type_name 305 } 306 307 func init() { file_contact_verification_proto_init() } 308 func file_contact_verification_proto_init() { 309 if File_contact_verification_proto != nil { 310 return 311 } 312 if !protoimpl.UnsafeEnabled { 313 file_contact_verification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 314 switch v := v.(*RequestContactVerification); i { 315 case 0: 316 return &v.state 317 case 1: 318 return &v.sizeCache 319 case 2: 320 return &v.unknownFields 321 default: 322 return nil 323 } 324 } 325 file_contact_verification_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 326 switch v := v.(*AcceptContactVerification); i { 327 case 0: 328 return &v.state 329 case 1: 330 return &v.sizeCache 331 case 2: 332 return &v.unknownFields 333 default: 334 return nil 335 } 336 } 337 file_contact_verification_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 338 switch v := v.(*DeclineContactVerification); i { 339 case 0: 340 return &v.state 341 case 1: 342 return &v.sizeCache 343 case 2: 344 return &v.unknownFields 345 default: 346 return nil 347 } 348 } 349 file_contact_verification_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 350 switch v := v.(*CancelContactVerification); i { 351 case 0: 352 return &v.state 353 case 1: 354 return &v.sizeCache 355 case 2: 356 return &v.unknownFields 357 default: 358 return nil 359 } 360 } 361 } 362 type x struct{} 363 out := protoimpl.TypeBuilder{ 364 File: protoimpl.DescBuilder{ 365 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 366 RawDescriptor: file_contact_verification_proto_rawDesc, 367 NumEnums: 0, 368 NumMessages: 4, 369 NumExtensions: 0, 370 NumServices: 0, 371 }, 372 GoTypes: file_contact_verification_proto_goTypes, 373 DependencyIndexes: file_contact_verification_proto_depIdxs, 374 MessageInfos: file_contact_verification_proto_msgTypes, 375 }.Build() 376 File_contact_verification_proto = out.File 377 file_contact_verification_proto_rawDesc = nil 378 file_contact_verification_proto_goTypes = nil 379 file_contact_verification_proto_depIdxs = nil 380 }