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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: orderer/configuration.proto
     3  
     4  package orderer
     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  // State defines the orderer mode of operation, typically for consensus-type migration.
    24  // NORMAL is during normal operation, when consensus-type migration is not, and can not, take place.
    25  // MAINTENANCE is when the consensus-type can be changed.
    26  type ConsensusType_State int32
    27  
    28  const (
    29  	ConsensusType_STATE_NORMAL      ConsensusType_State = 0
    30  	ConsensusType_STATE_MAINTENANCE ConsensusType_State = 1
    31  )
    32  
    33  var ConsensusType_State_name = map[int32]string{
    34  	0: "STATE_NORMAL",
    35  	1: "STATE_MAINTENANCE",
    36  }
    37  
    38  var ConsensusType_State_value = map[string]int32{
    39  	"STATE_NORMAL":      0,
    40  	"STATE_MAINTENANCE": 1,
    41  }
    42  
    43  func (x ConsensusType_State) String() string {
    44  	return proto.EnumName(ConsensusType_State_name, int32(x))
    45  }
    46  
    47  func (ConsensusType_State) EnumDescriptor() ([]byte, []int) {
    48  	return fileDescriptor_bcce68f21316dd30, []int{0, 0}
    49  }
    50  
    51  type ConsensusType struct {
    52  	// The consensus type: "solo" or "etcdraft".
    53  	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
    54  	// Opaque metadata, dependent on the consensus type.
    55  	Metadata []byte `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
    56  	// The state signals the ordering service to go into maintenance mode, typically for consensus-type migration.
    57  	State                ConsensusType_State `protobuf:"varint,3,opt,name=state,proto3,enum=orderer.ConsensusType_State" json:"state,omitempty"`
    58  	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
    59  	XXX_unrecognized     []byte              `json:"-"`
    60  	XXX_sizecache        int32               `json:"-"`
    61  }
    62  
    63  func (m *ConsensusType) Reset()         { *m = ConsensusType{} }
    64  func (m *ConsensusType) String() string { return proto.CompactTextString(m) }
    65  func (*ConsensusType) ProtoMessage()    {}
    66  func (*ConsensusType) Descriptor() ([]byte, []int) {
    67  	return fileDescriptor_bcce68f21316dd30, []int{0}
    68  }
    69  
    70  func (m *ConsensusType) XXX_Unmarshal(b []byte) error {
    71  	return xxx_messageInfo_ConsensusType.Unmarshal(m, b)
    72  }
    73  func (m *ConsensusType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    74  	return xxx_messageInfo_ConsensusType.Marshal(b, m, deterministic)
    75  }
    76  func (m *ConsensusType) XXX_Merge(src proto.Message) {
    77  	xxx_messageInfo_ConsensusType.Merge(m, src)
    78  }
    79  func (m *ConsensusType) XXX_Size() int {
    80  	return xxx_messageInfo_ConsensusType.Size(m)
    81  }
    82  func (m *ConsensusType) XXX_DiscardUnknown() {
    83  	xxx_messageInfo_ConsensusType.DiscardUnknown(m)
    84  }
    85  
    86  var xxx_messageInfo_ConsensusType proto.InternalMessageInfo
    87  
    88  func (m *ConsensusType) GetType() string {
    89  	if m != nil {
    90  		return m.Type
    91  	}
    92  	return ""
    93  }
    94  
    95  func (m *ConsensusType) GetMetadata() []byte {
    96  	if m != nil {
    97  		return m.Metadata
    98  	}
    99  	return nil
   100  }
   101  
   102  func (m *ConsensusType) GetState() ConsensusType_State {
   103  	if m != nil {
   104  		return m.State
   105  	}
   106  	return ConsensusType_STATE_NORMAL
   107  }
   108  
   109  type BatchSize struct {
   110  	// Simply specified as number of messages for now, in the future
   111  	// we may want to allow this to be specified by size in bytes
   112  	MaxMessageCount uint32 `protobuf:"varint,1,opt,name=max_message_count,json=maxMessageCount,proto3" json:"max_message_count,omitempty"`
   113  	// The byte count of the serialized messages in a batch cannot
   114  	// exceed this value.
   115  	AbsoluteMaxBytes uint32 `protobuf:"varint,2,opt,name=absolute_max_bytes,json=absoluteMaxBytes,proto3" json:"absolute_max_bytes,omitempty"`
   116  	// The byte count of the serialized messages in a batch should not
   117  	// exceed this value.
   118  	PreferredMaxBytes    uint32   `protobuf:"varint,3,opt,name=preferred_max_bytes,json=preferredMaxBytes,proto3" json:"preferred_max_bytes,omitempty"`
   119  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   120  	XXX_unrecognized     []byte   `json:"-"`
   121  	XXX_sizecache        int32    `json:"-"`
   122  }
   123  
   124  func (m *BatchSize) Reset()         { *m = BatchSize{} }
   125  func (m *BatchSize) String() string { return proto.CompactTextString(m) }
   126  func (*BatchSize) ProtoMessage()    {}
   127  func (*BatchSize) Descriptor() ([]byte, []int) {
   128  	return fileDescriptor_bcce68f21316dd30, []int{1}
   129  }
   130  
   131  func (m *BatchSize) XXX_Unmarshal(b []byte) error {
   132  	return xxx_messageInfo_BatchSize.Unmarshal(m, b)
   133  }
   134  func (m *BatchSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   135  	return xxx_messageInfo_BatchSize.Marshal(b, m, deterministic)
   136  }
   137  func (m *BatchSize) XXX_Merge(src proto.Message) {
   138  	xxx_messageInfo_BatchSize.Merge(m, src)
   139  }
   140  func (m *BatchSize) XXX_Size() int {
   141  	return xxx_messageInfo_BatchSize.Size(m)
   142  }
   143  func (m *BatchSize) XXX_DiscardUnknown() {
   144  	xxx_messageInfo_BatchSize.DiscardUnknown(m)
   145  }
   146  
   147  var xxx_messageInfo_BatchSize proto.InternalMessageInfo
   148  
   149  func (m *BatchSize) GetMaxMessageCount() uint32 {
   150  	if m != nil {
   151  		return m.MaxMessageCount
   152  	}
   153  	return 0
   154  }
   155  
   156  func (m *BatchSize) GetAbsoluteMaxBytes() uint32 {
   157  	if m != nil {
   158  		return m.AbsoluteMaxBytes
   159  	}
   160  	return 0
   161  }
   162  
   163  func (m *BatchSize) GetPreferredMaxBytes() uint32 {
   164  	if m != nil {
   165  		return m.PreferredMaxBytes
   166  	}
   167  	return 0
   168  }
   169  
   170  type BatchTimeout struct {
   171  	// Any duration string parseable by ParseDuration():
   172  	// https://golang.org/pkg/time/#ParseDuration
   173  	Timeout              string   `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"`
   174  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   175  	XXX_unrecognized     []byte   `json:"-"`
   176  	XXX_sizecache        int32    `json:"-"`
   177  }
   178  
   179  func (m *BatchTimeout) Reset()         { *m = BatchTimeout{} }
   180  func (m *BatchTimeout) String() string { return proto.CompactTextString(m) }
   181  func (*BatchTimeout) ProtoMessage()    {}
   182  func (*BatchTimeout) Descriptor() ([]byte, []int) {
   183  	return fileDescriptor_bcce68f21316dd30, []int{2}
   184  }
   185  
   186  func (m *BatchTimeout) XXX_Unmarshal(b []byte) error {
   187  	return xxx_messageInfo_BatchTimeout.Unmarshal(m, b)
   188  }
   189  func (m *BatchTimeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   190  	return xxx_messageInfo_BatchTimeout.Marshal(b, m, deterministic)
   191  }
   192  func (m *BatchTimeout) XXX_Merge(src proto.Message) {
   193  	xxx_messageInfo_BatchTimeout.Merge(m, src)
   194  }
   195  func (m *BatchTimeout) XXX_Size() int {
   196  	return xxx_messageInfo_BatchTimeout.Size(m)
   197  }
   198  func (m *BatchTimeout) XXX_DiscardUnknown() {
   199  	xxx_messageInfo_BatchTimeout.DiscardUnknown(m)
   200  }
   201  
   202  var xxx_messageInfo_BatchTimeout proto.InternalMessageInfo
   203  
   204  func (m *BatchTimeout) GetTimeout() string {
   205  	if m != nil {
   206  		return m.Timeout
   207  	}
   208  	return ""
   209  }
   210  
   211  // Carries a list of bootstrap brokers, i.e. this is not the exclusive set of
   212  // brokers an ordering service
   213  //
   214  // Deprecated: Do not use.
   215  type KafkaBrokers struct {
   216  	// Each broker here should be identified using the (IP|host):port notation,
   217  	// e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
   218  	Brokers              []string `protobuf:"bytes,1,rep,name=brokers,proto3" json:"brokers,omitempty"`
   219  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   220  	XXX_unrecognized     []byte   `json:"-"`
   221  	XXX_sizecache        int32    `json:"-"`
   222  }
   223  
   224  func (m *KafkaBrokers) Reset()         { *m = KafkaBrokers{} }
   225  func (m *KafkaBrokers) String() string { return proto.CompactTextString(m) }
   226  func (*KafkaBrokers) ProtoMessage()    {}
   227  func (*KafkaBrokers) Descriptor() ([]byte, []int) {
   228  	return fileDescriptor_bcce68f21316dd30, []int{3}
   229  }
   230  
   231  func (m *KafkaBrokers) XXX_Unmarshal(b []byte) error {
   232  	return xxx_messageInfo_KafkaBrokers.Unmarshal(m, b)
   233  }
   234  func (m *KafkaBrokers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   235  	return xxx_messageInfo_KafkaBrokers.Marshal(b, m, deterministic)
   236  }
   237  func (m *KafkaBrokers) XXX_Merge(src proto.Message) {
   238  	xxx_messageInfo_KafkaBrokers.Merge(m, src)
   239  }
   240  func (m *KafkaBrokers) XXX_Size() int {
   241  	return xxx_messageInfo_KafkaBrokers.Size(m)
   242  }
   243  func (m *KafkaBrokers) XXX_DiscardUnknown() {
   244  	xxx_messageInfo_KafkaBrokers.DiscardUnknown(m)
   245  }
   246  
   247  var xxx_messageInfo_KafkaBrokers proto.InternalMessageInfo
   248  
   249  func (m *KafkaBrokers) GetBrokers() []string {
   250  	if m != nil {
   251  		return m.Brokers
   252  	}
   253  	return nil
   254  }
   255  
   256  // ChannelRestrictions is the mssage which conveys restrictions on channel creation for an orderer
   257  type ChannelRestrictions struct {
   258  	MaxCount             uint64   `protobuf:"varint,1,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"`
   259  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   260  	XXX_unrecognized     []byte   `json:"-"`
   261  	XXX_sizecache        int32    `json:"-"`
   262  }
   263  
   264  func (m *ChannelRestrictions) Reset()         { *m = ChannelRestrictions{} }
   265  func (m *ChannelRestrictions) String() string { return proto.CompactTextString(m) }
   266  func (*ChannelRestrictions) ProtoMessage()    {}
   267  func (*ChannelRestrictions) Descriptor() ([]byte, []int) {
   268  	return fileDescriptor_bcce68f21316dd30, []int{4}
   269  }
   270  
   271  func (m *ChannelRestrictions) XXX_Unmarshal(b []byte) error {
   272  	return xxx_messageInfo_ChannelRestrictions.Unmarshal(m, b)
   273  }
   274  func (m *ChannelRestrictions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   275  	return xxx_messageInfo_ChannelRestrictions.Marshal(b, m, deterministic)
   276  }
   277  func (m *ChannelRestrictions) XXX_Merge(src proto.Message) {
   278  	xxx_messageInfo_ChannelRestrictions.Merge(m, src)
   279  }
   280  func (m *ChannelRestrictions) XXX_Size() int {
   281  	return xxx_messageInfo_ChannelRestrictions.Size(m)
   282  }
   283  func (m *ChannelRestrictions) XXX_DiscardUnknown() {
   284  	xxx_messageInfo_ChannelRestrictions.DiscardUnknown(m)
   285  }
   286  
   287  var xxx_messageInfo_ChannelRestrictions proto.InternalMessageInfo
   288  
   289  func (m *ChannelRestrictions) GetMaxCount() uint64 {
   290  	if m != nil {
   291  		return m.MaxCount
   292  	}
   293  	return 0
   294  }
   295  
   296  func init() {
   297  	proto.RegisterEnum("orderer.ConsensusType_State", ConsensusType_State_name, ConsensusType_State_value)
   298  	proto.RegisterType((*ConsensusType)(nil), "orderer.ConsensusType")
   299  	proto.RegisterType((*BatchSize)(nil), "orderer.BatchSize")
   300  	proto.RegisterType((*BatchTimeout)(nil), "orderer.BatchTimeout")
   301  	proto.RegisterType((*KafkaBrokers)(nil), "orderer.KafkaBrokers")
   302  	proto.RegisterType((*ChannelRestrictions)(nil), "orderer.ChannelRestrictions")
   303  }
   304  
   305  func init() { proto.RegisterFile("orderer/configuration.proto", fileDescriptor_bcce68f21316dd30) }
   306  
   307  var fileDescriptor_bcce68f21316dd30 = []byte{
   308  	// 413 bytes of a gzipped FileDescriptorProto
   309  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xc1, 0x6a, 0xdb, 0x40,
   310  	0x10, 0x86, 0xbb, 0x71, 0xd2, 0xc4, 0x83, 0xdd, 0xda, 0x1b, 0x0a, 0xa2, 0xe9, 0xc1, 0x08, 0x0a,
   311  	0xa6, 0x24, 0x52, 0x71, 0x6f, 0xbd, 0xd9, 0xc6, 0x87, 0xd2, 0xda, 0x85, 0xb5, 0x0e, 0xa5, 0x17,
   312  	0x33, 0x92, 0xc7, 0xb2, 0x88, 0xa5, 0x15, 0xbb, 0x2b, 0xb0, 0xfb, 0x1e, 0x7d, 0x84, 0xbe, 0x67,
   313  	0xd9, 0x5d, 0x39, 0x4d, 0x6f, 0xf3, 0xff, 0xf3, 0xed, 0x30, 0xb3, 0x3f, 0xdc, 0x49, 0xb5, 0x25,
   314  	0x45, 0x2a, 0xce, 0x64, 0xb5, 0x2b, 0xf2, 0x46, 0xa1, 0x29, 0x64, 0x15, 0xd5, 0x4a, 0x1a, 0xc9,
   315  	0xaf, 0xdb, 0x66, 0xf8, 0x87, 0x41, 0x7f, 0x2e, 0x2b, 0x4d, 0x95, 0x6e, 0x74, 0x72, 0xaa, 0x89,
   316  	0x73, 0xb8, 0x34, 0xa7, 0x9a, 0x02, 0x36, 0x62, 0xe3, 0xae, 0x70, 0x35, 0x7f, 0x0b, 0x37, 0x25,
   317  	0x19, 0xdc, 0xa2, 0xc1, 0xe0, 0x62, 0xc4, 0xc6, 0x3d, 0xf1, 0xa4, 0xf9, 0x04, 0xae, 0xb4, 0x41,
   318  	0x43, 0x41, 0x67, 0xc4, 0xc6, 0xaf, 0x26, 0xef, 0xa2, 0x76, 0x74, 0xf4, 0xdf, 0xd8, 0x68, 0x6d,
   319  	0x19, 0xe1, 0xd1, 0xf0, 0x23, 0x5c, 0x39, 0xcd, 0x07, 0xd0, 0x5b, 0x27, 0xd3, 0x64, 0xb1, 0x59,
   320  	0x7d, 0x17, 0xcb, 0xe9, 0xb7, 0xc1, 0x0b, 0xfe, 0x06, 0x86, 0xde, 0x59, 0x4e, 0xbf, 0xac, 0x92,
   321  	0xc5, 0x6a, 0xba, 0x9a, 0x2f, 0x06, 0x2c, 0xfc, 0xcd, 0xa0, 0x3b, 0x43, 0x93, 0xed, 0xd7, 0xc5,
   322  	0x2f, 0xe2, 0x1f, 0x60, 0x58, 0xe2, 0x71, 0x53, 0x92, 0xd6, 0x98, 0xd3, 0x26, 0x93, 0x4d, 0x65,
   323  	0xdc, 0xc2, 0x7d, 0xf1, 0xba, 0xc4, 0xe3, 0xd2, 0xfb, 0x73, 0x6b, 0xf3, 0x7b, 0xe0, 0x98, 0x6a,
   324  	0x79, 0x68, 0x0c, 0x6d, 0xec, 0xa3, 0xf4, 0x64, 0x48, 0xbb, 0x2b, 0xfa, 0x62, 0x70, 0xee, 0x2c,
   325  	0xf1, 0x38, 0xb3, 0x3e, 0x8f, 0xe0, 0xb6, 0x56, 0xb4, 0x23, 0xa5, 0x68, 0xfb, 0x0c, 0xef, 0x38,
   326  	0x7c, 0xf8, 0xd4, 0x3a, 0xf3, 0xe1, 0x18, 0x7a, 0x6e, 0xad, 0xa4, 0x28, 0x49, 0x36, 0x86, 0x07,
   327  	0x70, 0x6d, 0x7c, 0xd9, 0x7e, 0xe0, 0x59, 0x86, 0xf7, 0xd0, 0xfb, 0x8a, 0xbb, 0x47, 0x9c, 0x29,
   328  	0xf9, 0x48, 0x4a, 0x5b, 0x32, 0xf5, 0x65, 0xc0, 0x46, 0x1d, 0x4b, 0xb6, 0xf2, 0xf3, 0x45, 0xc0,
   329  	0xc2, 0x09, 0xdc, 0xce, 0xf7, 0x58, 0x55, 0x74, 0x10, 0xa4, 0x8d, 0x2a, 0x32, 0x1b, 0x9e, 0xe6,
   330  	0x77, 0xd0, 0xb5, 0x4b, 0xfd, 0x3b, 0xf8, 0x52, 0xdc, 0x94, 0x78, 0x74, 0x97, 0xce, 0x7e, 0xc0,
   331  	0x7b, 0xa9, 0xf2, 0x68, 0x7f, 0xaa, 0x49, 0x1d, 0x68, 0x9b, 0x93, 0x8a, 0x76, 0x98, 0xaa, 0x22,
   332  	0xf3, 0xa1, 0xeb, 0x73, 0x32, 0x3f, 0xe3, 0xbc, 0x30, 0xfb, 0x26, 0x8d, 0x32, 0x59, 0xc6, 0xcf,
   333  	0xe8, 0xd8, 0xd3, 0x0f, 0x9e, 0x7e, 0xc8, 0x65, 0xdc, 0x3e, 0x48, 0x5f, 0x3a, 0xeb, 0xd3, 0xdf,
   334  	0x00, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x40, 0x87, 0xa9, 0x54, 0x02, 0x00, 0x00,
   335  }