File
Blob: spec/protocol/config.pb.go
| 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 | |
| 7 | package protocol |
| 8 | |
| 9 | import ( |
| 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 | |
| 17 | const ( |
| 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 | |
| 24 | type 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 | |
| 33 | func (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 | |
| 40 | func (x *ConfigSnapshot) String() string { |
| 41 | return protoimpl.X.MessageStringOf(x) |
| 42 | } |
| 43 | |
| 44 | func (*ConfigSnapshot) ProtoMessage() {} |
| 45 | |
| 46 | func (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. |
| 59 | func (*ConfigSnapshot) Descriptor() ([]byte, []int) { |
| 60 | return file_spec_proto_config_proto_rawDescGZIP(), []int{0} |
| 61 | } |
| 62 | |
| 63 | func (x *ConfigSnapshot) GetData() []byte { |
| 64 | if x != nil { |
| 65 | return x.Data |
| 66 | } |
| 67 | return nil |
| 68 | } |
| 69 | |
| 70 | type 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 | |
| 77 | func (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 | |
| 84 | func (x *ConfigGetRequest) String() string { |
| 85 | return protoimpl.X.MessageStringOf(x) |
| 86 | } |
| 87 | |
| 88 | func (*ConfigGetRequest) ProtoMessage() {} |
| 89 | |
| 90 | func (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. |
| 103 | func (*ConfigGetRequest) Descriptor() ([]byte, []int) { |
| 104 | return file_spec_proto_config_proto_rawDescGZIP(), []int{1} |
| 105 | } |
| 106 | |
| 107 | func (x *ConfigGetRequest) GetName() string { |
| 108 | if x != nil { |
| 109 | return x.Name |
| 110 | } |
| 111 | return "" |
| 112 | } |
| 113 | |
| 114 | type 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 | |
| 125 | func (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 | |
| 132 | func (x *ConfigRecord) String() string { |
| 133 | return protoimpl.X.MessageStringOf(x) |
| 134 | } |
| 135 | |
| 136 | func (*ConfigRecord) ProtoMessage() {} |
| 137 | |
| 138 | func (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. |
| 151 | func (*ConfigRecord) Descriptor() ([]byte, []int) { |
| 152 | return file_spec_proto_config_proto_rawDescGZIP(), []int{2} |
| 153 | } |
| 154 | |
| 155 | func (x *ConfigRecord) GetName() string { |
| 156 | if x != nil { |
| 157 | return x.Name |
| 158 | } |
| 159 | return "" |
| 160 | } |
| 161 | |
| 162 | func (x *ConfigRecord) GetVersion() []byte { |
| 163 | if x != nil { |
| 164 | return x.Version |
| 165 | } |
| 166 | return nil |
| 167 | } |
| 168 | |
| 169 | func (x *ConfigRecord) GetValue() []byte { |
| 170 | if x != nil { |
| 171 | return x.Value |
| 172 | } |
| 173 | return nil |
| 174 | } |
| 175 | |
| 176 | var File_spec_proto_config_proto protoreflect.FileDescriptor |
| 177 | |
| 178 | const 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 | |
| 193 | var ( |
| 194 | file_spec_proto_config_proto_rawDescOnce sync.Once |
| 195 | file_spec_proto_config_proto_rawDescData []byte |
| 196 | ) |
| 197 | |
| 198 | func 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 | |
| 205 | var file_spec_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| 206 | var 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 | } |
| 211 | var 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 | |
| 223 | func init() { file_spec_proto_config_proto_init() } |
| 224 | func 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 | } |