github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/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 // 318 bytes of a gzipped FileDescriptorProto 136 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0x41, 0x4b, 0xfb, 0x40, 137 0x10, 0xc5, 0xc9, 0xbf, 0xe5, 0x5f, 0xbb, 0x58, 0xb4, 0xdb, 0x4b, 0xa0, 0x97, 0x12, 0x2f, 0x45, 138 0x34, 0x01, 0xf5, 0x13, 0xa4, 0x47, 0xe9, 0x25, 0xf6, 0xe4, 0xa5, 0x4c, 0xd2, 0x49, 0xb2, 0xa4, 139 0xd9, 0x09, 0xbb, 0x1b, 0x48, 0xfd, 0x1e, 0x7e, 0x5f, 0xd9, 0x4d, 0xa2, 0x82, 0xb7, 0x99, 0x79, 140 0xbf, 0x07, 0x6f, 0x1e, 0x5b, 0x93, 0x3a, 0xa1, 0x42, 0x15, 0x65, 0x24, 0x73, 0x51, 0xb4, 0x0a, 141 0x8c, 0x20, 0x19, 0x36, 0x8a, 0x0c, 0xf1, 0xd9, 0x20, 0x06, 0x77, 0x6c, 0xb1, 0x23, 0xa9, 0x51, 142 0xea, 0x56, 0x1f, 0x2e, 0x0d, 0x72, 0xce, 0xa6, 0xe6, 0xd2, 0xa0, 0xef, 0x6d, 0xbc, 0xed, 0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