forked from tw-bc-group/fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.pb.go
156 lines (133 loc) · 6.48 KB
/
configuration.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: orderer/configuration.proto
package orderer
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type ConsensusType struct {
Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
}
func (m *ConsensusType) Reset() { *m = ConsensusType{} }
func (m *ConsensusType) String() string { return proto.CompactTextString(m) }
func (*ConsensusType) ProtoMessage() {}
func (*ConsensusType) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *ConsensusType) GetType() string {
if m != nil {
return m.Type
}
return ""
}
type BatchSize struct {
// Simply specified as number of messages for now, in the future
// we may want to allow this to be specified by size in bytes
MaxMessageCount uint32 `protobuf:"varint,1,opt,name=max_message_count,json=maxMessageCount" json:"max_message_count,omitempty"`
// The byte count of the serialized messages in a batch cannot
// exceed this value.
AbsoluteMaxBytes uint32 `protobuf:"varint,2,opt,name=absolute_max_bytes,json=absoluteMaxBytes" json:"absolute_max_bytes,omitempty"`
// The byte count of the serialized messages in a batch should not
// exceed this value.
PreferredMaxBytes uint32 `protobuf:"varint,3,opt,name=preferred_max_bytes,json=preferredMaxBytes" json:"preferred_max_bytes,omitempty"`
}
func (m *BatchSize) Reset() { *m = BatchSize{} }
func (m *BatchSize) String() string { return proto.CompactTextString(m) }
func (*BatchSize) ProtoMessage() {}
func (*BatchSize) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (m *BatchSize) GetMaxMessageCount() uint32 {
if m != nil {
return m.MaxMessageCount
}
return 0
}
func (m *BatchSize) GetAbsoluteMaxBytes() uint32 {
if m != nil {
return m.AbsoluteMaxBytes
}
return 0
}
func (m *BatchSize) GetPreferredMaxBytes() uint32 {
if m != nil {
return m.PreferredMaxBytes
}
return 0
}
type BatchTimeout struct {
// Any duration string parseable by ParseDuration():
// https://golang.org/pkg/time/#ParseDuration
Timeout string `protobuf:"bytes,1,opt,name=timeout" json:"timeout,omitempty"`
}
func (m *BatchTimeout) Reset() { *m = BatchTimeout{} }
func (m *BatchTimeout) String() string { return proto.CompactTextString(m) }
func (*BatchTimeout) ProtoMessage() {}
func (*BatchTimeout) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
func (m *BatchTimeout) GetTimeout() string {
if m != nil {
return m.Timeout
}
return ""
}
// Carries a list of bootstrap brokers, i.e. this is not the exclusive set of
// brokers an ordering service
type KafkaBrokers struct {
// Each broker here should be identified using the (IP|host):port notation,
// e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
Brokers []string `protobuf:"bytes,1,rep,name=brokers" json:"brokers,omitempty"`
}
func (m *KafkaBrokers) Reset() { *m = KafkaBrokers{} }
func (m *KafkaBrokers) String() string { return proto.CompactTextString(m) }
func (*KafkaBrokers) ProtoMessage() {}
func (*KafkaBrokers) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
func (m *KafkaBrokers) GetBrokers() []string {
if m != nil {
return m.Brokers
}
return nil
}
// ChannelRestrictions is the mssage which conveys restrictions on channel creation for an orderer
type ChannelRestrictions struct {
MaxCount uint64 `protobuf:"varint,1,opt,name=max_count,json=maxCount" json:"max_count,omitempty"`
}
func (m *ChannelRestrictions) Reset() { *m = ChannelRestrictions{} }
func (m *ChannelRestrictions) String() string { return proto.CompactTextString(m) }
func (*ChannelRestrictions) ProtoMessage() {}
func (*ChannelRestrictions) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
func (m *ChannelRestrictions) GetMaxCount() uint64 {
if m != nil {
return m.MaxCount
}
return 0
}
func init() {
proto.RegisterType((*ConsensusType)(nil), "orderer.ConsensusType")
proto.RegisterType((*BatchSize)(nil), "orderer.BatchSize")
proto.RegisterType((*BatchTimeout)(nil), "orderer.BatchTimeout")
proto.RegisterType((*KafkaBrokers)(nil), "orderer.KafkaBrokers")
proto.RegisterType((*ChannelRestrictions)(nil), "orderer.ChannelRestrictions")
}
func init() { proto.RegisterFile("orderer/configuration.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 313 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x4c, 0xd0, 0xcd, 0x4a, 0xc3, 0x40,
0x10, 0x07, 0x70, 0x62, 0x8b, 0xb5, 0x8b, 0x45, 0xbb, 0xbd, 0x04, 0x7a, 0x29, 0x11, 0xa1, 0x48,
0x49, 0x40, 0xdf, 0x20, 0x3d, 0x4a, 0x2f, 0xb1, 0x5e, 0xbc, 0x94, 0x4d, 0x3a, 0x49, 0x96, 0x36,
0x3b, 0x61, 0x76, 0x03, 0x89, 0xef, 0xe1, 0xfb, 0xca, 0x6e, 0x52, 0xed, 0x6d, 0x3e, 0x7e, 0x0b,
0xb3, 0x7f, 0xb6, 0x44, 0x3a, 0x02, 0x01, 0x45, 0x19, 0xaa, 0x5c, 0x16, 0x0d, 0x09, 0x23, 0x51,
0x85, 0x35, 0xa1, 0x41, 0x3e, 0x19, 0x96, 0xc1, 0x13, 0x9b, 0x6d, 0x51, 0x69, 0x50, 0xba, 0xd1,
0xfb, 0xae, 0x06, 0xce, 0xd9, 0xd8, 0x74, 0x35, 0x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