github.com/status-im/status-go@v1.1.0/protocol/protobuf/community_shard_key.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: community_shard_key.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 CommunityShardKey struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 CommunityId []byte `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"` 29 PrivateKey []byte `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` 30 Clock uint64 `protobuf:"varint,3,opt,name=clock,proto3" json:"clock,omitempty"` 31 Shard *Shard `protobuf:"bytes,4,opt,name=shard,proto3" json:"shard,omitempty"` 32 } 33 34 func (x *CommunityShardKey) Reset() { 35 *x = CommunityShardKey{} 36 if protoimpl.UnsafeEnabled { 37 mi := &file_community_shard_key_proto_msgTypes[0] 38 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 39 ms.StoreMessageInfo(mi) 40 } 41 } 42 43 func (x *CommunityShardKey) String() string { 44 return protoimpl.X.MessageStringOf(x) 45 } 46 47 func (*CommunityShardKey) ProtoMessage() {} 48 49 func (x *CommunityShardKey) ProtoReflect() protoreflect.Message { 50 mi := &file_community_shard_key_proto_msgTypes[0] 51 if protoimpl.UnsafeEnabled && x != nil { 52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 53 if ms.LoadMessageInfo() == nil { 54 ms.StoreMessageInfo(mi) 55 } 56 return ms 57 } 58 return mi.MessageOf(x) 59 } 60 61 // Deprecated: Use CommunityShardKey.ProtoReflect.Descriptor instead. 62 func (*CommunityShardKey) Descriptor() ([]byte, []int) { 63 return file_community_shard_key_proto_rawDescGZIP(), []int{0} 64 } 65 66 func (x *CommunityShardKey) GetCommunityId() []byte { 67 if x != nil { 68 return x.CommunityId 69 } 70 return nil 71 } 72 73 func (x *CommunityShardKey) GetPrivateKey() []byte { 74 if x != nil { 75 return x.PrivateKey 76 } 77 return nil 78 } 79 80 func (x *CommunityShardKey) GetClock() uint64 { 81 if x != nil { 82 return x.Clock 83 } 84 return 0 85 } 86 87 func (x *CommunityShardKey) GetShard() *Shard { 88 if x != nil { 89 return x.Shard 90 } 91 return nil 92 } 93 94 var File_community_shard_key_proto protoreflect.FileDescriptor 95 96 var file_community_shard_key_proto_rawDesc = []byte{ 97 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 98 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 99 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x0b, 0x73, 0x68, 0x61, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 100 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 101 0x53, 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 102 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 103 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 104 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 105 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 106 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 107 0x63, 0x6b, 0x12, 0x25, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 108 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x68, 0x61, 109 0x72, 0x64, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 110 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 111 } 112 113 var ( 114 file_community_shard_key_proto_rawDescOnce sync.Once 115 file_community_shard_key_proto_rawDescData = file_community_shard_key_proto_rawDesc 116 ) 117 118 func file_community_shard_key_proto_rawDescGZIP() []byte { 119 file_community_shard_key_proto_rawDescOnce.Do(func() { 120 file_community_shard_key_proto_rawDescData = protoimpl.X.CompressGZIP(file_community_shard_key_proto_rawDescData) 121 }) 122 return file_community_shard_key_proto_rawDescData 123 } 124 125 var file_community_shard_key_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 126 var file_community_shard_key_proto_goTypes = []interface{}{ 127 (*CommunityShardKey)(nil), // 0: protobuf.CommunityShardKey 128 (*Shard)(nil), // 1: protobuf.Shard 129 } 130 var file_community_shard_key_proto_depIdxs = []int32{ 131 1, // 0: protobuf.CommunityShardKey.shard:type_name -> protobuf.Shard 132 1, // [1:1] is the sub-list for method output_type 133 1, // [1:1] is the sub-list for method input_type 134 1, // [1:1] is the sub-list for extension type_name 135 1, // [1:1] is the sub-list for extension extendee 136 0, // [0:1] is the sub-list for field type_name 137 } 138 139 func init() { file_community_shard_key_proto_init() } 140 func file_community_shard_key_proto_init() { 141 if File_community_shard_key_proto != nil { 142 return 143 } 144 file_shard_proto_init() 145 if !protoimpl.UnsafeEnabled { 146 file_community_shard_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 147 switch v := v.(*CommunityShardKey); i { 148 case 0: 149 return &v.state 150 case 1: 151 return &v.sizeCache 152 case 2: 153 return &v.unknownFields 154 default: 155 return nil 156 } 157 } 158 } 159 type x struct{} 160 out := protoimpl.TypeBuilder{ 161 File: protoimpl.DescBuilder{ 162 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 163 RawDescriptor: file_community_shard_key_proto_rawDesc, 164 NumEnums: 0, 165 NumMessages: 1, 166 NumExtensions: 0, 167 NumServices: 0, 168 }, 169 GoTypes: file_community_shard_key_proto_goTypes, 170 DependencyIndexes: file_community_shard_key_proto_depIdxs, 171 MessageInfos: file_community_shard_key_proto_msgTypes, 172 }.Build() 173 File_community_shard_key_proto = out.File 174 file_community_shard_key_proto_rawDesc = nil 175 file_community_shard_key_proto_goTypes = nil 176 file_community_shard_key_proto_depIdxs = nil 177 }