Skip to content
File

Blob: spec/protocol/config.pb.go

go246 lines
1// Code generated by protoc-gen-go. DO NOT EDIT.
2// versions:
3// protoc-gen-go v1.36.12
4// protoc v7.34.0
5// source: spec/proto/config.proto
6 
7package protocol
8 
9import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 reflect "reflect"
13 sync "sync"
14 unsafe "unsafe"
15)
16 
17const (
18 // Verify that this generated code is sufficiently up-to-date.
19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20 // Verify that runtime/protoimpl is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22)
23 
24type ConfigSnapshot struct {
25 state protoimpl.MessageState `protogen:"open.v1"`
26 // The shared configuration snapshot format, bounded to 8 MiB. Keeping it
27 // opaque here lets storage and replication use the same bounded codec.
28 Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
29 unknownFields protoimpl.UnknownFields
30 sizeCache protoimpl.SizeCache
31}
32 
33func (x *ConfigSnapshot) Reset() {
34 *x = ConfigSnapshot{}
35 mi := &file_spec_proto_config_proto_msgTypes[0]
36 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
37 ms.StoreMessageInfo(mi)
38}
39 
40func (x *ConfigSnapshot) String() string {
41 return protoimpl.X.MessageStringOf(x)
42}
43 
44func (*ConfigSnapshot) ProtoMessage() {}
45 
46func (x *ConfigSnapshot) ProtoReflect() protoreflect.Message {
47 mi := &file_spec_proto_config_proto_msgTypes[0]
48 if x != nil {
49 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
50 if ms.LoadMessageInfo() == nil {
51 ms.StoreMessageInfo(mi)
52 }
53 return ms
54 }
55 return mi.MessageOf(x)
56}
57 
58// Deprecated: Use ConfigSnapshot.ProtoReflect.Descriptor instead.
59func (*ConfigSnapshot) Descriptor() ([]byte, []int) {
60 return file_spec_proto_config_proto_rawDescGZIP(), []int{0}
61}
62 
63func (x *ConfigSnapshot) GetData() []byte {
64 if x != nil {
65 return x.Data
66 }
67 return nil
68}
69 
70type ConfigGetRequest struct {
71 state protoimpl.MessageState `protogen:"open.v1"`
72 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
73 unknownFields protoimpl.UnknownFields
74 sizeCache protoimpl.SizeCache
75}
76 
77func (x *ConfigGetRequest) Reset() {
78 *x = ConfigGetRequest{}
79 mi := &file_spec_proto_config_proto_msgTypes[1]
80 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
81 ms.StoreMessageInfo(mi)
82}
83 
84func (x *ConfigGetRequest) String() string {
85 return protoimpl.X.MessageStringOf(x)
86}
87 
88func (*ConfigGetRequest) ProtoMessage() {}
89 
90func (x *ConfigGetRequest) ProtoReflect() protoreflect.Message {
91 mi := &file_spec_proto_config_proto_msgTypes[1]
92 if x != nil {
93 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
94 if ms.LoadMessageInfo() == nil {
95 ms.StoreMessageInfo(mi)
96 }
97 return ms
98 }
99 return mi.MessageOf(x)
100}
101 
102// Deprecated: Use ConfigGetRequest.ProtoReflect.Descriptor instead.
103func (*ConfigGetRequest) Descriptor() ([]byte, []int) {
104 return file_spec_proto_config_proto_rawDescGZIP(), []int{1}
105}
106 
107func (x *ConfigGetRequest) GetName() string {
108 if x != nil {
109 return x.Name
110 }
111 return ""
112}
113 
114type ConfigRecord struct {
115 state protoimpl.MessageState `protogen:"open.v1"`
116 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
117 // The opaque 48-byte version used by configuration storage and replication.
118 Version []byte `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
119 // Complete document bytes, including schemas unknown to this server.
120 Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
121 unknownFields protoimpl.UnknownFields
122 sizeCache protoimpl.SizeCache
123}
124 
125func (x *ConfigRecord) Reset() {
126 *x = ConfigRecord{}
127 mi := &file_spec_proto_config_proto_msgTypes[2]
128 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
129 ms.StoreMessageInfo(mi)
130}
131 
132func (x *ConfigRecord) String() string {
133 return protoimpl.X.MessageStringOf(x)
134}
135 
136func (*ConfigRecord) ProtoMessage() {}
137 
138func (x *ConfigRecord) ProtoReflect() protoreflect.Message {
139 mi := &file_spec_proto_config_proto_msgTypes[2]
140 if x != nil {
141 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
142 if ms.LoadMessageInfo() == nil {
143 ms.StoreMessageInfo(mi)
144 }
145 return ms
146 }
147 return mi.MessageOf(x)
148}
149 
150// Deprecated: Use ConfigRecord.ProtoReflect.Descriptor instead.
151func (*ConfigRecord) Descriptor() ([]byte, []int) {
152 return file_spec_proto_config_proto_rawDescGZIP(), []int{2}
153}
154 
155func (x *ConfigRecord) GetName() string {
156 if x != nil {
157 return x.Name
158 }
159 return ""
160}
161 
162func (x *ConfigRecord) GetVersion() []byte {
163 if x != nil {
164 return x.Version
165 }
166 return nil
167}
168 
169func (x *ConfigRecord) GetValue() []byte {
170 if x != nil {
171 return x.Value
172 }
173 return nil
174}
175 
176var File_spec_proto_config_proto protoreflect.FileDescriptor
177 
178const file_spec_proto_config_proto_rawDesc = "" +
179 "\n" +
180 "\x17spec/proto/config.proto\x12\bprotocol\"$\n" +
181 "\x0eConfigSnapshot\x12\x12\n" +
182 "\x04data\x18\x01 \x01(\fR\x04data\"&\n" +
183 "\x10ConfigGetRequest\x12\x12\n" +
184 "\x04name\x18\x01 \x01(\tR\x04name\"R\n" +
185 "\fConfigRecord\x12\x12\n" +
186 "\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" +
187 "\aversion\x18\x02 \x01(\fR\aversion\x12\x14\n" +
188 "\x05value\x18\x03 \x01(\fR\x05value2\x8a\x01\n" +
189 "\rConfigService\x12>\n" +
190 "\bExchange\x12\x18.protocol.ConfigSnapshot\x1a\x18.protocol.ConfigSnapshot\x129\n" +
191 "\x03Get\x12\x1a.protocol.ConfigGetRequest\x1a\x16.protocol.ConfigRecordB+H\x01Z'go.miragespace.co/specter/spec/protocolb\x06proto3"
192 
193var (
194 file_spec_proto_config_proto_rawDescOnce sync.Once
195 file_spec_proto_config_proto_rawDescData []byte
196)
197 
198func file_spec_proto_config_proto_rawDescGZIP() []byte {
199 file_spec_proto_config_proto_rawDescOnce.Do(func() {
200 file_spec_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_spec_proto_config_proto_rawDesc), len(file_spec_proto_config_proto_rawDesc)))
201 })
202 return file_spec_proto_config_proto_rawDescData
203}
204 
205var file_spec_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
206var file_spec_proto_config_proto_goTypes = []any{
207 (*ConfigSnapshot)(nil), // 0: protocol.ConfigSnapshot
208 (*ConfigGetRequest)(nil), // 1: protocol.ConfigGetRequest
209 (*ConfigRecord)(nil), // 2: protocol.ConfigRecord
210}
211var file_spec_proto_config_proto_depIdxs = []int32{
212 0, // 0: protocol.ConfigService.Exchange:input_type -> protocol.ConfigSnapshot
213 1, // 1: protocol.ConfigService.Get:input_type -> protocol.ConfigGetRequest
214 0, // 2: protocol.ConfigService.Exchange:output_type -> protocol.ConfigSnapshot
215 2, // 3: protocol.ConfigService.Get:output_type -> protocol.ConfigRecord
216 2, // [2:4] is the sub-list for method output_type
217 0, // [0:2] is the sub-list for method input_type
218 0, // [0:0] is the sub-list for extension type_name
219 0, // [0:0] is the sub-list for extension extendee
220 0, // [0:0] is the sub-list for field type_name
221}
222 
223func init() { file_spec_proto_config_proto_init() }
224func file_spec_proto_config_proto_init() {
225 if File_spec_proto_config_proto != nil {
226 return
227 }
228 type x struct{}
229 out := protoimpl.TypeBuilder{
230 File: protoimpl.DescBuilder{
231 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
232 RawDescriptor: unsafe.Slice(unsafe.StringData(file_spec_proto_config_proto_rawDesc), len(file_spec_proto_config_proto_rawDesc)),
233 NumEnums: 0,
234 NumMessages: 3,
235 NumExtensions: 0,
236 NumServices: 1,
237 },
238 GoTypes: file_spec_proto_config_proto_goTypes,
239 DependencyIndexes: file_spec_proto_config_proto_depIdxs,
240 MessageInfos: file_spec_proto_config_proto_msgTypes,
241 }.Build()
242 File_spec_proto_config_proto = out.File
243 file_spec_proto_config_proto_goTypes = nil
244 file_spec_proto_config_proto_depIdxs = nil
245}