github.com/status-im/status-go@v1.1.0/protocol/protobuf/shard.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: shard.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 Shard struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	Cluster int32 `protobuf:"varint,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
    29  	Index   int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
    30  }
    31  
    32  func (x *Shard) Reset() {
    33  	*x = Shard{}
    34  	if protoimpl.UnsafeEnabled {
    35  		mi := &file_shard_proto_msgTypes[0]
    36  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    37  		ms.StoreMessageInfo(mi)
    38  	}
    39  }
    40  
    41  func (x *Shard) String() string {
    42  	return protoimpl.X.MessageStringOf(x)
    43  }
    44  
    45  func (*Shard) ProtoMessage() {}
    46  
    47  func (x *Shard) ProtoReflect() protoreflect.Message {
    48  	mi := &file_shard_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 Shard.ProtoReflect.Descriptor instead.
    60  func (*Shard) Descriptor() ([]byte, []int) {
    61  	return file_shard_proto_rawDescGZIP(), []int{0}
    62  }
    63  
    64  func (x *Shard) GetCluster() int32 {
    65  	if x != nil {
    66  		return x.Cluster
    67  	}
    68  	return 0
    69  }
    70  
    71  func (x *Shard) GetIndex() int32 {
    72  	if x != nil {
    73  		return x.Index
    74  	}
    75  	return 0
    76  }
    77  
    78  type PublicShardInfo struct {
    79  	state         protoimpl.MessageState
    80  	sizeCache     protoimpl.SizeCache
    81  	unknownFields protoimpl.UnknownFields
    82  
    83  	// clock
    84  	Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
    85  	// community ID
    86  	CommunityId []byte `protobuf:"bytes,2,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"`
    87  	// shard information
    88  	Shard *Shard `protobuf:"bytes,3,opt,name=shard,proto3" json:"shard,omitempty"`
    89  	// if chainID > 0, the signer must be verified through the community contract
    90  	ChainId uint64 `protobuf:"varint,4,opt,name=chainId,proto3" json:"chainId,omitempty"`
    91  }
    92  
    93  func (x *PublicShardInfo) Reset() {
    94  	*x = PublicShardInfo{}
    95  	if protoimpl.UnsafeEnabled {
    96  		mi := &file_shard_proto_msgTypes[1]
    97  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    98  		ms.StoreMessageInfo(mi)
    99  	}
   100  }
   101  
   102  func (x *PublicShardInfo) String() string {
   103  	return protoimpl.X.MessageStringOf(x)
   104  }
   105  
   106  func (*PublicShardInfo) ProtoMessage() {}
   107  
   108  func (x *PublicShardInfo) ProtoReflect() protoreflect.Message {
   109  	mi := &file_shard_proto_msgTypes[1]
   110  	if protoimpl.UnsafeEnabled && x != nil {
   111  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   112  		if ms.LoadMessageInfo() == nil {
   113  			ms.StoreMessageInfo(mi)
   114  		}
   115  		return ms
   116  	}
   117  	return mi.MessageOf(x)
   118  }
   119  
   120  // Deprecated: Use PublicShardInfo.ProtoReflect.Descriptor instead.
   121  func (*PublicShardInfo) Descriptor() ([]byte, []int) {
   122  	return file_shard_proto_rawDescGZIP(), []int{1}
   123  }
   124  
   125  func (x *PublicShardInfo) GetClock() uint64 {
   126  	if x != nil {
   127  		return x.Clock
   128  	}
   129  	return 0
   130  }
   131  
   132  func (x *PublicShardInfo) GetCommunityId() []byte {
   133  	if x != nil {
   134  		return x.CommunityId
   135  	}
   136  	return nil
   137  }
   138  
   139  func (x *PublicShardInfo) GetShard() *Shard {
   140  	if x != nil {
   141  		return x.Shard
   142  	}
   143  	return nil
   144  }
   145  
   146  func (x *PublicShardInfo) GetChainId() uint64 {
   147  	if x != nil {
   148  		return x.ChainId
   149  	}
   150  	return 0
   151  }
   152  
   153  type CommunityPublicShardInfo struct {
   154  	state         protoimpl.MessageState
   155  	sizeCache     protoimpl.SizeCache
   156  	unknownFields protoimpl.UnknownFields
   157  
   158  	// Signature of the payload field
   159  	Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
   160  	// Marshaled PublicShardInfo
   161  	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
   162  }
   163  
   164  func (x *CommunityPublicShardInfo) Reset() {
   165  	*x = CommunityPublicShardInfo{}
   166  	if protoimpl.UnsafeEnabled {
   167  		mi := &file_shard_proto_msgTypes[2]
   168  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   169  		ms.StoreMessageInfo(mi)
   170  	}
   171  }
   172  
   173  func (x *CommunityPublicShardInfo) String() string {
   174  	return protoimpl.X.MessageStringOf(x)
   175  }
   176  
   177  func (*CommunityPublicShardInfo) ProtoMessage() {}
   178  
   179  func (x *CommunityPublicShardInfo) ProtoReflect() protoreflect.Message {
   180  	mi := &file_shard_proto_msgTypes[2]
   181  	if protoimpl.UnsafeEnabled && x != nil {
   182  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   183  		if ms.LoadMessageInfo() == nil {
   184  			ms.StoreMessageInfo(mi)
   185  		}
   186  		return ms
   187  	}
   188  	return mi.MessageOf(x)
   189  }
   190  
   191  // Deprecated: Use CommunityPublicShardInfo.ProtoReflect.Descriptor instead.
   192  func (*CommunityPublicShardInfo) Descriptor() ([]byte, []int) {
   193  	return file_shard_proto_rawDescGZIP(), []int{2}
   194  }
   195  
   196  func (x *CommunityPublicShardInfo) GetSignature() []byte {
   197  	if x != nil {
   198  		return x.Signature
   199  	}
   200  	return nil
   201  }
   202  
   203  func (x *CommunityPublicShardInfo) GetPayload() []byte {
   204  	if x != nil {
   205  		return x.Payload
   206  	}
   207  	return nil
   208  }
   209  
   210  var File_shard_proto protoreflect.FileDescriptor
   211  
   212  var file_shard_proto_rawDesc = []byte{
   213  	0x0a, 0x0b, 0x73, 0x68, 0x61, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70,
   214  	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x37, 0x0a, 0x05, 0x53, 0x68, 0x61, 0x72, 0x64,
   215  	0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
   216  	0x05, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e,
   217  	0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78,
   218  	0x22, 0x8b, 0x01, 0x0a, 0x0f, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x68, 0x61, 0x72, 0x64,
   219  	0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20,
   220  	0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f,
   221  	0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c,
   222  	0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x25, 0x0a,
   223  	0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70,
   224  	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x05, 0x73,
   225  	0x68, 0x61, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18,
   226  	0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x52,
   227  	0x0a, 0x18, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x75, 0x62, 0x6c, 0x69,
   228  	0x63, 0x53, 0x68, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69,
   229  	0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73,
   230  	0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c,
   231  	0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f,
   232  	0x61, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
   233  	0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   234  }
   235  
   236  var (
   237  	file_shard_proto_rawDescOnce sync.Once
   238  	file_shard_proto_rawDescData = file_shard_proto_rawDesc
   239  )
   240  
   241  func file_shard_proto_rawDescGZIP() []byte {
   242  	file_shard_proto_rawDescOnce.Do(func() {
   243  		file_shard_proto_rawDescData = protoimpl.X.CompressGZIP(file_shard_proto_rawDescData)
   244  	})
   245  	return file_shard_proto_rawDescData
   246  }
   247  
   248  var file_shard_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   249  var file_shard_proto_goTypes = []interface{}{
   250  	(*Shard)(nil),                    // 0: protobuf.Shard
   251  	(*PublicShardInfo)(nil),          // 1: protobuf.PublicShardInfo
   252  	(*CommunityPublicShardInfo)(nil), // 2: protobuf.CommunityPublicShardInfo
   253  }
   254  var file_shard_proto_depIdxs = []int32{
   255  	0, // 0: protobuf.PublicShardInfo.shard:type_name -> protobuf.Shard
   256  	1, // [1:1] is the sub-list for method output_type
   257  	1, // [1:1] is the sub-list for method input_type
   258  	1, // [1:1] is the sub-list for extension type_name
   259  	1, // [1:1] is the sub-list for extension extendee
   260  	0, // [0:1] is the sub-list for field type_name
   261  }
   262  
   263  func init() { file_shard_proto_init() }
   264  func file_shard_proto_init() {
   265  	if File_shard_proto != nil {
   266  		return
   267  	}
   268  	if !protoimpl.UnsafeEnabled {
   269  		file_shard_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   270  			switch v := v.(*Shard); i {
   271  			case 0:
   272  				return &v.state
   273  			case 1:
   274  				return &v.sizeCache
   275  			case 2:
   276  				return &v.unknownFields
   277  			default:
   278  				return nil
   279  			}
   280  		}
   281  		file_shard_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   282  			switch v := v.(*PublicShardInfo); i {
   283  			case 0:
   284  				return &v.state
   285  			case 1:
   286  				return &v.sizeCache
   287  			case 2:
   288  				return &v.unknownFields
   289  			default:
   290  				return nil
   291  			}
   292  		}
   293  		file_shard_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   294  			switch v := v.(*CommunityPublicShardInfo); i {
   295  			case 0:
   296  				return &v.state
   297  			case 1:
   298  				return &v.sizeCache
   299  			case 2:
   300  				return &v.unknownFields
   301  			default:
   302  				return nil
   303  			}
   304  		}
   305  	}
   306  	type x struct{}
   307  	out := protoimpl.TypeBuilder{
   308  		File: protoimpl.DescBuilder{
   309  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   310  			RawDescriptor: file_shard_proto_rawDesc,
   311  			NumEnums:      0,
   312  			NumMessages:   3,
   313  			NumExtensions: 0,
   314  			NumServices:   0,
   315  		},
   316  		GoTypes:           file_shard_proto_goTypes,
   317  		DependencyIndexes: file_shard_proto_depIdxs,
   318  		MessageInfos:      file_shard_proto_msgTypes,
   319  	}.Build()
   320  	File_shard_proto = out.File
   321  	file_shard_proto_rawDesc = nil
   322  	file_shard_proto_goTypes = nil
   323  	file_shard_proto_depIdxs = nil
   324  }