github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/protos/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 proto "github.com/golang/protobuf/proto"
     7  import fmt "fmt"
     8  import math "math"
     9  
    10  // Reference imports to suppress errors if they are not otherwise used.
    11  var _ = proto.Marshal
    12  var _ = fmt.Errorf
    13  var _ = math.Inf
    14  
    15  type ConsensusType struct {
    16  	Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
    17  }
    18  
    19  func (m *ConsensusType) Reset()                    { *m = ConsensusType{} }
    20  func (m *ConsensusType) String() string            { return proto.CompactTextString(m) }
    21  func (*ConsensusType) ProtoMessage()               {}
    22  func (*ConsensusType) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
    23  
    24  func (m *ConsensusType) GetType() string {
    25  	if m != nil {
    26  		return m.Type
    27  	}
    28  	return ""
    29  }
    30  
    31  type BatchSize struct {
    32  	// Simply specified as number of messages for now, in the future
    33  	// we may want to allow this to be specified by size in bytes
    34  	MaxMessageCount uint32 `protobuf:"varint,1,opt,name=max_message_count,json=maxMessageCount" json:"max_message_count,omitempty"`
    35  	// The byte count of the serialized messages in a batch cannot
    36  	// exceed this value.
    37  	AbsoluteMaxBytes uint32 `protobuf:"varint,2,opt,name=absolute_max_bytes,json=absoluteMaxBytes" json:"absolute_max_bytes,omitempty"`
    38  	// The byte count of the serialized messages in a batch should not
    39  	// exceed this value.
    40  	PreferredMaxBytes uint32 `protobuf:"varint,3,opt,name=preferred_max_bytes,json=preferredMaxBytes" json:"preferred_max_bytes,omitempty"`
    41  }
    42  
    43  func (m *BatchSize) Reset()                    { *m = BatchSize{} }
    44  func (m *BatchSize) String() string            { return proto.CompactTextString(m) }
    45  func (*BatchSize) ProtoMessage()               {}
    46  func (*BatchSize) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
    47  
    48  func (m *BatchSize) GetMaxMessageCount() uint32 {
    49  	if m != nil {
    50  		return m.MaxMessageCount
    51  	}
    52  	return 0
    53  }
    54  
    55  func (m *BatchSize) GetAbsoluteMaxBytes() uint32 {
    56  	if m != nil {
    57  		return m.AbsoluteMaxBytes
    58  	}
    59  	return 0
    60  }
    61  
    62  func (m *BatchSize) GetPreferredMaxBytes() uint32 {
    63  	if m != nil {
    64  		return m.PreferredMaxBytes
    65  	}
    66  	return 0
    67  }
    68  
    69  type BatchTimeout struct {
    70  	// Any duration string parseable by ParseDuration():
    71  	// https://golang.org/pkg/time/#ParseDuration
    72  	Timeout string `protobuf:"bytes,1,opt,name=timeout" json:"timeout,omitempty"`
    73  }
    74  
    75  func (m *BatchTimeout) Reset()                    { *m = BatchTimeout{} }
    76  func (m *BatchTimeout) String() string            { return proto.CompactTextString(m) }
    77  func (*BatchTimeout) ProtoMessage()               {}
    78  func (*BatchTimeout) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
    79  
    80  func (m *BatchTimeout) GetTimeout() string {
    81  	if m != nil {
    82  		return m.Timeout
    83  	}
    84  	return ""
    85  }
    86  
    87  // Carries a list of bootstrap brokers, i.e. this is not the exclusive set of
    88  // brokers an ordering service
    89  type KafkaBrokers struct {
    90  	// Each broker here should be identified using the (IP|host):port notation,
    91  	// e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
    92  	Brokers []string `protobuf:"bytes,1,rep,name=brokers" json:"brokers,omitempty"`
    93  }
    94  
    95  func (m *KafkaBrokers) Reset()                    { *m = KafkaBrokers{} }
    96  func (m *KafkaBrokers) String() string            { return proto.CompactTextString(m) }
    97  func (*KafkaBrokers) ProtoMessage()               {}
    98  func (*KafkaBrokers) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
    99  
   100  func (m *KafkaBrokers) GetBrokers() []string {
   101  	if m != nil {
   102  		return m.Brokers
   103  	}
   104  	return nil
   105  }
   106  
   107  // ChannelRestrictions is the mssage which conveys restrictions on channel creation for an orderer
   108  type ChannelRestrictions struct {
   109  	MaxCount uint64 `protobuf:"varint,1,opt,name=max_count,json=maxCount" json:"max_count,omitempty"`
   110  }
   111  
   112  func (m *ChannelRestrictions) Reset()                    { *m = ChannelRestrictions{} }
   113  func (m *ChannelRestrictions) String() string            { return proto.CompactTextString(m) }
   114  func (*ChannelRestrictions) ProtoMessage()               {}
   115  func (*ChannelRestrictions) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
   116  
   117  func (m *ChannelRestrictions) GetMaxCount() uint64 {
   118  	if m != nil {
   119  		return m.MaxCount
   120  	}
   121  	return 0
   122  }
   123  
   124  func init() {
   125  	proto.RegisterType((*ConsensusType)(nil), "orderer.ConsensusType")
   126  	proto.RegisterType((*BatchSize)(nil), "orderer.BatchSize")
   127  	proto.RegisterType((*BatchTimeout)(nil), "orderer.BatchTimeout")
   128  	proto.RegisterType((*KafkaBrokers)(nil), "orderer.KafkaBrokers")
   129  	proto.RegisterType((*ChannelRestrictions)(nil), "orderer.ChannelRestrictions")
   130  }
   131  
   132  func init() { proto.RegisterFile("orderer/configuration.proto", fileDescriptor1) }
   133  
   134  var fileDescriptor1 = []byte{
   135  	// 313 bytes of a gzipped FileDescriptorProto
   136  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x4c, 0xd0, 0xcd, 0x4a, 0xc3, 0x40,
   137  	0x10, 0x07, 0x70, 0x62, 0x8b, 0xb5, 0x8b, 0x45, 0xbb, 0xbd, 0x04, 0x7a, 0x29, 0x11, 0xa1, 0x48,
   138  	0x49, 0x40, 0xdf, 0x20, 0x3d, 0x4a, 0x2f, 0xb1, 0x5e, 0xbc, 0x94, 0x4d, 0x3a, 0x49, 0x96, 0x36,
   139  	0x3b, 0x61, 0x76, 0x03, 0x89, 0xef, 0xe1, 0xfb, 0xca, 0x6e, 0x52, 0xed, 0x6d, 0x3e, 0x7e, 0x0b,
   140  	0xb3, 0x7f, 0xb6, 0x44, 0x3a, 0x02, 0x01, 0x45, 0x19, 0xaa, 0x5c, 0x16, 0x0d, 0x09, 0x23, 0x51,
   141  	0x85, 0x35, 0xa1, 0x41, 0x3e, 0x19, 0x96, 0xc1, 0x13, 0x9b, 0x6d, 0x51, 0x69, 0x50, 0xba, 0xd1,
   142  	0xfb, 0xae, 0x06, 0xce, 0xd9, 0xd8, 0x74, 0x35, 0xf8, 0xde, 0xca, 0x5b, 0x4f, 0x13, 0x57, 0x07,
   143  	0x3f, 0x1e, 0x9b, 0xc6, 0xc2, 0x64, 0xe5, 0x87, 0xfc, 0x06, 0xfe, 0xc2, 0xe6, 0x95, 0x68, 0x0f,
   144  	0x15, 0x68, 0x2d, 0x0a, 0x38, 0x64, 0xd8, 0x28, 0xe3, 0xf8, 0x2c, 0x79, 0xa8, 0x44, 0xbb, 0xeb,
   145  	0xe7, 0x5b, 0x3b, 0xe6, 0x1b, 0xc6, 0x45, 0xaa, 0xf1, 0xdc, 0x18, 0x38, 0xd8, 0x47, 0x69, 0x67,
   146  	0x40, 0xfb, 0x37, 0x0e, 0x3f, 0x5e, 0x36, 0x3b, 0xd1, 0xc6, 0x76, 0xce, 0x43, 0xb6, 0xa8, 0x09,
   147  	0x72, 0x20, 0x82, 0xe3, 0x15, 0x1f, 0x39, 0x3e, 0xff, 0x5b, 0x5d, 0x7c, 0xb0, 0x66, 0xf7, 0xee,
   148  	0xac, 0xbd, 0xac, 0x00, 0x1b, 0xc3, 0x7d, 0x36, 0x31, 0x7d, 0x39, 0x9c, 0x7f, 0x69, 0xad, 0x7c,
   149  	0x17, 0xf9, 0x49, 0xc4, 0x84, 0x27, 0x20, 0x6d, 0x65, 0xda, 0x97, 0xbe, 0xb7, 0x1a, 0x59, 0x39,
   150  	0xb4, 0xc1, 0x2b, 0x5b, 0x6c, 0x4b, 0xa1, 0x14, 0x9c, 0x13, 0xd0, 0x86, 0x64, 0x66, 0x53, 0xd3,
   151  	0x7c, 0xc9, 0xa6, 0xf6, 0xa0, 0xff, 0xcf, 0x8e, 0x93, 0xbb, 0x4a, 0xb4, 0xee, 0x97, 0xf1, 0x27,
   152  	0x7b, 0x46, 0x2a, 0xc2, 0xb2, 0xab, 0x81, 0xce, 0x70, 0x2c, 0x80, 0xc2, 0x5c, 0xa4, 0x24, 0xb3,
   153  	0x3e, 0x6d, 0x1d, 0x0e, 0x69, 0x7f, 0x6d, 0x0a, 0x69, 0xca, 0x26, 0x0d, 0x33, 0xac, 0xa2, 0x2b,
   154  	0x1d, 0xf5, 0x3a, 0xea, 0x75, 0x34, 0xe8, 0xf4, 0xd6, 0xf5, 0x6f, 0xbf, 0x01, 0x00, 0x00, 0xff,
   155  	0xff, 0x0c, 0x47, 0xa2, 0x55, 0xca, 0x01, 0x00, 0x00,
   156  }