github.com/hyperledger/fabric-protos-go@v0.3.3/orderer/etcdraft/configuration.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: orderer/etcdraft/configuration.proto
     3  
     4  package etcdraft
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/golang/protobuf/proto"
     9  	math "math"
    10  )
    11  
    12  // Reference imports to suppress errors if they are not otherwise used.
    13  var _ = proto.Marshal
    14  var _ = fmt.Errorf
    15  var _ = math.Inf
    16  
    17  // This is a compile-time assertion to ensure that this generated file
    18  // is compatible with the proto package it is being compiled against.
    19  // A compilation error at this line likely means your copy of the
    20  // proto package needs to be updated.
    21  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    22  
    23  // ConfigMetadata is serialized and set as the value of ConsensusType.Metadata in
    24  // a channel configuration when the ConsensusType.Type is set "etcdraft".
    25  type ConfigMetadata struct {
    26  	Consenters           []*Consenter `protobuf:"bytes,1,rep,name=consenters,proto3" json:"consenters,omitempty"`
    27  	Options              *Options     `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
    28  	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
    29  	XXX_unrecognized     []byte       `json:"-"`
    30  	XXX_sizecache        int32        `json:"-"`
    31  }
    32  
    33  func (m *ConfigMetadata) Reset()         { *m = ConfigMetadata{} }
    34  func (m *ConfigMetadata) String() string { return proto.CompactTextString(m) }
    35  func (*ConfigMetadata) ProtoMessage()    {}
    36  func (*ConfigMetadata) Descriptor() ([]byte, []int) {
    37  	return fileDescriptor_6f12d215c949b072, []int{0}
    38  }
    39  
    40  func (m *ConfigMetadata) XXX_Unmarshal(b []byte) error {
    41  	return xxx_messageInfo_ConfigMetadata.Unmarshal(m, b)
    42  }
    43  func (m *ConfigMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    44  	return xxx_messageInfo_ConfigMetadata.Marshal(b, m, deterministic)
    45  }
    46  func (m *ConfigMetadata) XXX_Merge(src proto.Message) {
    47  	xxx_messageInfo_ConfigMetadata.Merge(m, src)
    48  }
    49  func (m *ConfigMetadata) XXX_Size() int {
    50  	return xxx_messageInfo_ConfigMetadata.Size(m)
    51  }
    52  func (m *ConfigMetadata) XXX_DiscardUnknown() {
    53  	xxx_messageInfo_ConfigMetadata.DiscardUnknown(m)
    54  }
    55  
    56  var xxx_messageInfo_ConfigMetadata proto.InternalMessageInfo
    57  
    58  func (m *ConfigMetadata) GetConsenters() []*Consenter {
    59  	if m != nil {
    60  		return m.Consenters
    61  	}
    62  	return nil
    63  }
    64  
    65  func (m *ConfigMetadata) GetOptions() *Options {
    66  	if m != nil {
    67  		return m.Options
    68  	}
    69  	return nil
    70  }
    71  
    72  // Consenter represents a consenting node (i.e. replica).
    73  type Consenter struct {
    74  	Host                 string   `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
    75  	Port                 uint32   `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
    76  	ClientTlsCert        []byte   `protobuf:"bytes,3,opt,name=client_tls_cert,json=clientTlsCert,proto3" json:"client_tls_cert,omitempty"`
    77  	ServerTlsCert        []byte   `protobuf:"bytes,4,opt,name=server_tls_cert,json=serverTlsCert,proto3" json:"server_tls_cert,omitempty"`
    78  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    79  	XXX_unrecognized     []byte   `json:"-"`
    80  	XXX_sizecache        int32    `json:"-"`
    81  }
    82  
    83  func (m *Consenter) Reset()         { *m = Consenter{} }
    84  func (m *Consenter) String() string { return proto.CompactTextString(m) }
    85  func (*Consenter) ProtoMessage()    {}
    86  func (*Consenter) Descriptor() ([]byte, []int) {
    87  	return fileDescriptor_6f12d215c949b072, []int{1}
    88  }
    89  
    90  func (m *Consenter) XXX_Unmarshal(b []byte) error {
    91  	return xxx_messageInfo_Consenter.Unmarshal(m, b)
    92  }
    93  func (m *Consenter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    94  	return xxx_messageInfo_Consenter.Marshal(b, m, deterministic)
    95  }
    96  func (m *Consenter) XXX_Merge(src proto.Message) {
    97  	xxx_messageInfo_Consenter.Merge(m, src)
    98  }
    99  func (m *Consenter) XXX_Size() int {
   100  	return xxx_messageInfo_Consenter.Size(m)
   101  }
   102  func (m *Consenter) XXX_DiscardUnknown() {
   103  	xxx_messageInfo_Consenter.DiscardUnknown(m)
   104  }
   105  
   106  var xxx_messageInfo_Consenter proto.InternalMessageInfo
   107  
   108  func (m *Consenter) GetHost() string {
   109  	if m != nil {
   110  		return m.Host
   111  	}
   112  	return ""
   113  }
   114  
   115  func (m *Consenter) GetPort() uint32 {
   116  	if m != nil {
   117  		return m.Port
   118  	}
   119  	return 0
   120  }
   121  
   122  func (m *Consenter) GetClientTlsCert() []byte {
   123  	if m != nil {
   124  		return m.ClientTlsCert
   125  	}
   126  	return nil
   127  }
   128  
   129  func (m *Consenter) GetServerTlsCert() []byte {
   130  	if m != nil {
   131  		return m.ServerTlsCert
   132  	}
   133  	return nil
   134  }
   135  
   136  // Options to be specified for all the etcd/raft nodes. These can be modified on a
   137  // per-channel basis.
   138  type Options struct {
   139  	TickInterval      string `protobuf:"bytes,1,opt,name=tick_interval,json=tickInterval,proto3" json:"tick_interval,omitempty"`
   140  	ElectionTick      uint32 `protobuf:"varint,2,opt,name=election_tick,json=electionTick,proto3" json:"election_tick,omitempty"`
   141  	HeartbeatTick     uint32 `protobuf:"varint,3,opt,name=heartbeat_tick,json=heartbeatTick,proto3" json:"heartbeat_tick,omitempty"`
   142  	MaxInflightBlocks uint32 `protobuf:"varint,4,opt,name=max_inflight_blocks,json=maxInflightBlocks,proto3" json:"max_inflight_blocks,omitempty"`
   143  	// Take snapshot when cumulative data exceeds certain size in bytes.
   144  	SnapshotIntervalSize uint32   `protobuf:"varint,5,opt,name=snapshot_interval_size,json=snapshotIntervalSize,proto3" json:"snapshot_interval_size,omitempty"`
   145  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   146  	XXX_unrecognized     []byte   `json:"-"`
   147  	XXX_sizecache        int32    `json:"-"`
   148  }
   149  
   150  func (m *Options) Reset()         { *m = Options{} }
   151  func (m *Options) String() string { return proto.CompactTextString(m) }
   152  func (*Options) ProtoMessage()    {}
   153  func (*Options) Descriptor() ([]byte, []int) {
   154  	return fileDescriptor_6f12d215c949b072, []int{2}
   155  }
   156  
   157  func (m *Options) XXX_Unmarshal(b []byte) error {
   158  	return xxx_messageInfo_Options.Unmarshal(m, b)
   159  }
   160  func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   161  	return xxx_messageInfo_Options.Marshal(b, m, deterministic)
   162  }
   163  func (m *Options) XXX_Merge(src proto.Message) {
   164  	xxx_messageInfo_Options.Merge(m, src)
   165  }
   166  func (m *Options) XXX_Size() int {
   167  	return xxx_messageInfo_Options.Size(m)
   168  }
   169  func (m *Options) XXX_DiscardUnknown() {
   170  	xxx_messageInfo_Options.DiscardUnknown(m)
   171  }
   172  
   173  var xxx_messageInfo_Options proto.InternalMessageInfo
   174  
   175  func (m *Options) GetTickInterval() string {
   176  	if m != nil {
   177  		return m.TickInterval
   178  	}
   179  	return ""
   180  }
   181  
   182  func (m *Options) GetElectionTick() uint32 {
   183  	if m != nil {
   184  		return m.ElectionTick
   185  	}
   186  	return 0
   187  }
   188  
   189  func (m *Options) GetHeartbeatTick() uint32 {
   190  	if m != nil {
   191  		return m.HeartbeatTick
   192  	}
   193  	return 0
   194  }
   195  
   196  func (m *Options) GetMaxInflightBlocks() uint32 {
   197  	if m != nil {
   198  		return m.MaxInflightBlocks
   199  	}
   200  	return 0
   201  }
   202  
   203  func (m *Options) GetSnapshotIntervalSize() uint32 {
   204  	if m != nil {
   205  		return m.SnapshotIntervalSize
   206  	}
   207  	return 0
   208  }
   209  
   210  func init() {
   211  	proto.RegisterType((*ConfigMetadata)(nil), "etcdraft.ConfigMetadata")
   212  	proto.RegisterType((*Consenter)(nil), "etcdraft.Consenter")
   213  	proto.RegisterType((*Options)(nil), "etcdraft.Options")
   214  }
   215  
   216  func init() {
   217  	proto.RegisterFile("orderer/etcdraft/configuration.proto", fileDescriptor_6f12d215c949b072)
   218  }
   219  
   220  var fileDescriptor_6f12d215c949b072 = []byte{
   221  	// 392 bytes of a gzipped FileDescriptorProto
   222  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0x4f, 0x6b, 0xdc, 0x30,
   223  	0x10, 0xc5, 0x71, 0x37, 0x6d, 0x1a, 0x65, 0x9d, 0x12, 0xa5, 0x14, 0x1f, 0xcd, 0xf6, 0x0f, 0x86,
   224  	0x12, 0x19, 0x92, 0x1e, 0x7a, 0xce, 0x9e, 0x72, 0x28, 0x05, 0x37, 0xa7, 0x5e, 0x8c, 0x2c, 0x8f,
   225  	0x6d, 0x75, 0xb5, 0x96, 0x19, 0x4d, 0x42, 0x9a, 0x6b, 0xbf, 0x68, 0x3f, 0x4a, 0xb1, 0x64, 0x3b,
   226  	0x4b, 0x6f, 0xc3, 0x7b, 0xbf, 0x37, 0x7a, 0xa0, 0x61, 0x1f, 0x2c, 0xd6, 0x80, 0x80, 0x39, 0x90,
   227  	0xaa, 0x51, 0x36, 0x94, 0x2b, 0xdb, 0x37, 0xba, 0xbd, 0x47, 0x49, 0xda, 0xf6, 0x62, 0x40, 0x4b,
   228  	0x96, 0xbf, 0x9e, 0xdd, 0x0d, 0xb2, 0xb3, 0xad, 0x07, 0xbe, 0x01, 0xc9, 0x5a, 0x92, 0xe4, 0xd7,
   229  	0x8c, 0x29, 0xdb, 0x3b, 0xe8, 0x09, 0xd0, 0x25, 0x51, 0xba, 0xca, 0x4e, 0xaf, 0x2e, 0xc4, 0x1c,
   230  	0x10, 0xdb, 0xd9, 0x2b, 0x0e, 0x30, 0xfe, 0x99, 0x1d, 0xdb, 0x61, 0x7c, 0xc0, 0x25, 0x2f, 0xd2,
   231  	0x28, 0x3b, 0xbd, 0x3a, 0x7f, 0x4e, 0x7c, 0x0f, 0x46, 0x31, 0x13, 0x9b, 0x3f, 0x11, 0x3b, 0x59,
   232  	0xd6, 0x70, 0xce, 0x8e, 0x3a, 0xeb, 0x28, 0x89, 0xd2, 0x28, 0x3b, 0x29, 0xfc, 0x3c, 0x6a, 0x83,
   233  	0x45, 0xf2, 0xbb, 0xe2, 0xc2, 0xcf, 0xfc, 0x13, 0x7b, 0xa3, 0x8c, 0x86, 0x9e, 0x4a, 0x32, 0xae,
   234  	0x54, 0x80, 0x94, 0xac, 0xd2, 0x28, 0x5b, 0x17, 0x71, 0x90, 0xef, 0x8c, 0xdb, 0x42, 0xe0, 0x1c,
   235  	0xe0, 0x03, 0xe0, 0x33, 0x77, 0x14, 0xb8, 0x20, 0x4f, 0xdc, 0xe6, 0x6f, 0xc4, 0x8e, 0xa7, 0x6a,
   236  	0xfc, 0x3d, 0x8b, 0x49, 0xab, 0x5d, 0xa9, 0xc7, 0x46, 0x0f, 0xd2, 0x4c, 0x65, 0xd6, 0xa3, 0x78,
   237  	0x3b, 0x69, 0x23, 0x04, 0x06, 0xd4, 0x98, 0x28, 0x47, 0x63, 0x6a, 0xb7, 0x9e, 0xc5, 0x3b, 0xad,
   238  	0x76, 0xfc, 0x23, 0x3b, 0xeb, 0x40, 0x22, 0x55, 0x20, 0x29, 0x50, 0x2b, 0x4f, 0xc5, 0x8b, 0xea,
   239  	0x31, 0xc1, 0x2e, 0xf6, 0xf2, 0xb1, 0xd4, 0x7d, 0x63, 0x74, 0xdb, 0x51, 0x59, 0x19, 0xab, 0x76,
   240  	0xce, 0x17, 0x8d, 0x8b, 0xf3, 0xbd, 0x7c, 0xbc, 0x9d, 0x9c, 0x1b, 0x6f, 0xf0, 0x2f, 0xec, 0x9d,
   241  	0xeb, 0xe5, 0xe0, 0x3a, 0x4b, 0x4b, 0xc9, 0xd2, 0xe9, 0x27, 0x48, 0x5e, 0xfa, 0xc8, 0xdb, 0xd9,
   242  	0x9d, 0xdb, 0xfe, 0xd0, 0x4f, 0x70, 0xf3, 0x8b, 0x09, 0x8b, 0xad, 0xe8, 0x7e, 0x0f, 0x80, 0x06,
   243  	0xea, 0x16, 0x50, 0x34, 0xb2, 0x42, 0xad, 0xc2, 0x19, 0x38, 0x31, 0x1d, 0xcb, 0xf2, 0x57, 0x3f,
   244  	0xbf, 0xb6, 0x9a, 0xba, 0xfb, 0x4a, 0x28, 0xbb, 0xcf, 0x0f, 0x62, 0x79, 0x88, 0x5d, 0x86, 0xd8,
   245  	0x65, 0x6b, 0xf3, 0xff, 0xcf, 0xac, 0x7a, 0xe5, 0xbd, 0xeb, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff,
   246  	0x25, 0x12, 0x78, 0xc2, 0x81, 0x02, 0x00, 0x00,
   247  }