Debian Codegraph @

go/xds/core/v3/resource_locator.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.36.10
4 // protoc v5.29.3
5 // source: xds/core/v3/resource_locator.proto
6
7 package v3
8
9 import (
10 _ "github.com/cncf/xds/go/xds/annotations/v3"
11 _ "github.com/envoyproxy/protoc-gen-validate/validate"
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 reflect "reflect"
15 sync "sync"
16 unsafe "unsafe"
17 )
18
19 const (
20 // Verify that this generated code is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22 // Verify that runtime/protoimpl is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24 )
25
26 type ResourceLocator_Scheme int32
27
28 const (
29 ResourceLocator_XDSTP ResourceLocator_Scheme = 0
30 ResourceLocator_HTTP ResourceLocator_Scheme = 1
31 ResourceLocator_FILE ResourceLocator_Scheme = 2
32 )
33
34 // Enum value maps for ResourceLocator_Scheme.
35 var (
36 ResourceLocator_Scheme_name = map[int32]string{
37 0: "XDSTP",
38 1: "HTTP",
39 2: "FILE",
40 }
41 ResourceLocator_Scheme_value = map[string]int32{
42 "XDSTP": 0,
43 "HTTP": 1,
44 "FILE": 2,
45 }
46 )
47
48 func (x ResourceLocator_Scheme) Enum() *ResourceLocator_Scheme {
49 p := new(ResourceLocator_Scheme)
50 *p = x
51 return p
52 }
53
54 func (x ResourceLocator_Scheme) String() string {
55 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
56 }
57
58 func (ResourceLocator_Scheme) Descriptor() protoreflect.EnumDescriptor {
59 return file_xds_core_v3_resource_locator_proto_enumTypes[0].Descriptor()
60 }
61
62 func (ResourceLocator_Scheme) Type() protoreflect.EnumType {
63 return &file_xds_core_v3_resource_locator_proto_enumTypes[0]
64 }
65
66 func (x ResourceLocator_Scheme) Number() protoreflect.EnumNumber {
67 return protoreflect.EnumNumber(x)
68 }
69
70 // Deprecated: Use ResourceLocator_Scheme.Descriptor instead.
71 func (ResourceLocator_Scheme) EnumDescriptor() ([]byte, []int) {
72 return file_xds_core_v3_resource_locator_proto_rawDescGZIP(), []int{0, 0}
73 }
74
75 type ResourceLocator struct {
76 state protoimpl.MessageState `protogen:"open.v1"`
77 Scheme ResourceLocator_Scheme `protobuf:"varint,1,opt,name=scheme,proto3,enum=xds.core.v3.ResourceLocator_Scheme" json:"scheme,omitempty"`
78 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
79 Authority string `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"`
80 ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
81 // Types that are valid to be assigned to ContextParamSpecifier:
82 //
83 // *ResourceLocator_ExactContext
84 ContextParamSpecifier isResourceLocator_ContextParamSpecifier `protobuf_oneof:"context_param_specifier"`
85 Directives []*ResourceLocator_Directive `protobuf:"bytes,6,rep,name=directives,proto3" json:"directives,omitempty"`
86 unknownFields protoimpl.UnknownFields
87 sizeCache protoimpl.SizeCache
88 }
89
90 func (x *ResourceLocator) Reset() {
91 *x = ResourceLocator{}
92 mi := &file_xds_core_v3_resource_locator_proto_msgTypes[0]
93 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
94 ms.StoreMessageInfo(mi)
95 }
96
97 func (x *ResourceLocator) String() string {
98 return protoimpl.X.MessageStringOf(x)
99 }
100
101 func (*ResourceLocator) ProtoMessage() {}
102
103 func (x *ResourceLocator) ProtoReflect() protoreflect.Message {
104 mi := &file_xds_core_v3_resource_locator_proto_msgTypes[0]
105 if x != nil {
106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
107 if ms.LoadMessageInfo() == nil {
108 ms.StoreMessageInfo(mi)
109 }
110 return ms
111 }
112 return mi.MessageOf(x)
113 }
114
115 // Deprecated: Use ResourceLocator.ProtoReflect.Descriptor instead.
116 func (*ResourceLocator) Descriptor() ([]byte, []int) {
117 return file_xds_core_v3_resource_locator_proto_rawDescGZIP(), []int{0}
118 }
119
120 func (x *ResourceLocator) GetScheme() ResourceLocator_Scheme {
121 if x != nil {
122 return x.Scheme
123 }
124 return ResourceLocator_XDSTP
125 }
126
127 func (x *ResourceLocator) GetId() string {
128 if x != nil {
129 return x.Id
130 }
131 return ""
132 }
133
134 func (x *ResourceLocator) GetAuthority() string {
135 if x != nil {
136 return x.Authority
137 }
138 return ""
139 }
140
141 func (x *ResourceLocator) GetResourceType() string {
142 if x != nil {
143 return x.ResourceType
144 }
145 return ""
146 }
147
148 func (x *ResourceLocator) GetContextParamSpecifier() isResourceLocator_ContextParamSpecifier {
149 if x != nil {
150 return x.ContextParamSpecifier
151 }
152 return nil
153 }
154
155 func (x *ResourceLocator) GetExactContext() *ContextParams {
156 if x != nil {
157 if x, ok := x.ContextParamSpecifier.(*ResourceLocator_ExactContext); ok {
158 return x.ExactContext
159 }
160 }
161 return nil
162 }
163
164 func (x *ResourceLocator) GetDirectives() []*ResourceLocator_Directive {
165 if x != nil {
166 return x.Directives
167 }
168 return nil
169 }
170
171 type isResourceLocator_ContextParamSpecifier interface {
172 isResourceLocator_ContextParamSpecifier()
173 }
174
175 type ResourceLocator_ExactContext struct {
176 ExactContext *ContextParams `protobuf:"bytes,5,opt,name=exact_context,json=exactContext,proto3,oneof"`
177 }
178
179 func (*ResourceLocator_ExactContext) isResourceLocator_ContextParamSpecifier() {}
180
181 type ResourceLocator_Directive struct {
182 state protoimpl.MessageState `protogen:"open.v1"`
183 // Types that are valid to be assigned to Directive:
184 //
185 // *ResourceLocator_Directive_Alt
186 // *ResourceLocator_Directive_Entry
187 Directive isResourceLocator_Directive_Directive `protobuf_oneof:"directive"`
188 unknownFields protoimpl.UnknownFields
189 sizeCache protoimpl.SizeCache
190 }
191
192 func (x *ResourceLocator_Directive) Reset() {
193 *x = ResourceLocator_Directive{}
194 mi := &file_xds_core_v3_resource_locator_proto_msgTypes[1]
195 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
196 ms.StoreMessageInfo(mi)
197 }
198
199 func (x *ResourceLocator_Directive) String() string {
200 return protoimpl.X.MessageStringOf(x)
201 }
202
203 func (*ResourceLocator_Directive) ProtoMessage() {}
204
205 func (x *ResourceLocator_Directive) ProtoReflect() protoreflect.Message {
206 mi := &file_xds_core_v3_resource_locator_proto_msgTypes[1]
207 if x != nil {
208 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
209 if ms.LoadMessageInfo() == nil {
210 ms.StoreMessageInfo(mi)
211 }
212 return ms
213 }
214 return mi.MessageOf(x)
215 }
216
217 // Deprecated: Use ResourceLocator_Directive.ProtoReflect.Descriptor instead.
218 func (*ResourceLocator_Directive) Descriptor() ([]byte, []int) {
219 return file_xds_core_v3_resource_locator_proto_rawDescGZIP(), []int{0, 0}
220 }
221
222 func (x *ResourceLocator_Directive) GetDirective() isResourceLocator_Directive_Directive {
223 if x != nil {
224 return x.Directive
225 }
226 return nil
227 }
228
229 func (x *ResourceLocator_Directive) GetAlt() *ResourceLocator {
230 if x != nil {
231 if x, ok := x.Directive.(*ResourceLocator_Directive_Alt); ok {
232 return x.Alt
233 }
234 }
235 return nil
236 }
237
238 func (x *ResourceLocator_Directive) GetEntry() string {
239 if x != nil {
240 if x, ok := x.Directive.(*ResourceLocator_Directive_Entry); ok {
241 return x.Entry
242 }
243 }
244 return ""
245 }
246
247 type isResourceLocator_Directive_Directive interface {
248 isResourceLocator_Directive_Directive()
249 }
250
251 type ResourceLocator_Directive_Alt struct {
252 Alt *ResourceLocator `protobuf:"bytes,1,opt,name=alt,proto3,oneof"`
253 }
254
255 type ResourceLocator_Directive_Entry struct {
256 Entry string `protobuf:"bytes,2,opt,name=entry,proto3,oneof"`
257 }
258
259 func (*ResourceLocator_Directive_Alt) isResourceLocator_Directive_Directive() {}
260
261 func (*ResourceLocator_Directive_Entry) isResourceLocator_Directive_Directive() {}
262
263 var File_xds_core_v3_resource_locator_proto protoreflect.FileDescriptor
264
265 const file_xds_core_v3_resource_locator_proto_rawDesc = "" +
266 "\n" +
267 "\"xds/core/v3/resource_locator.proto\x12\vxds.core.v3\x1a\x1fxds/annotations/v3/status.proto\x1a xds/core/v3/context_params.proto\x1a\x17validate/validate.proto\"\x8e\x04\n" +
268 "\x0fResourceLocator\x12E\n" +
269 "\x06scheme\x18\x01 \x01(\x0e2#.xds.core.v3.ResourceLocator.SchemeB\b\xfaB\x05\x82\x01\x02\x10\x01R\x06scheme\x12\x0e\n" +
270 "\x02id\x18\x02 \x01(\tR\x02id\x12\x1c\n" +
271 "\tauthority\x18\x03 \x01(\tR\tauthority\x12,\n" +
272 "\rresource_type\x18\x04 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\fresourceType\x12A\n" +
273 "\rexact_context\x18\x05 \x01(\v2\x1a.xds.core.v3.ContextParamsH\x00R\fexactContext\x12F\n" +
274 "\n" +
275 "directives\x18\x06 \x03(\v2&.xds.core.v3.ResourceLocator.DirectiveR\n" +
276 "directives\x1a\x88\x01\n" +
277 "\tDirective\x120\n" +
278 "\x03alt\x18\x01 \x01(\v2\x1c.xds.core.v3.ResourceLocatorH\x00R\x03alt\x127\n" +
279 "\x05entry\x18\x02 \x01(\tB\x1f\xfaB\x1cr\x1a\x10\x012\x16^[0-9a-zA-Z_\\-\\./~:]+$H\x00R\x05entryB\x10\n" +
280 "\tdirective\x12\x03\xf8B\x01\"'\n" +
281 "\x06Scheme\x12\t\n" +
282 "\x05XDSTP\x10\x00\x12\b\n" +
283 "\x04HTTP\x10\x01\x12\b\n" +
284 "\x04FILE\x10\x02B\x19\n" +
285 "\x17context_param_specifierB\\\xd2Ƥ\xe1\x06\x02\b\x01\n" +
286 "\x16com.github.xds.core.v3B\x14ResourceLocatorProtoP\x01Z\"github.com/cncf/xds/go/xds/core/v3b\x06proto3"
287
288 var (
289 file_xds_core_v3_resource_locator_proto_rawDescOnce sync.Once
290 file_xds_core_v3_resource_locator_proto_rawDescData []byte
291 )
292
293 func file_xds_core_v3_resource_locator_proto_rawDescGZIP() []byte {
294 file_xds_core_v3_resource_locator_proto_rawDescOnce.Do(func() {
295 file_xds_core_v3_resource_locator_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xds_core_v3_resource_locator_proto_rawDesc), len(file_xds_core_v3_resource_locator_proto_rawDesc)))
296 })
297 return file_xds_core_v3_resource_locator_proto_rawDescData
298 }
299
300 var file_xds_core_v3_resource_locator_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
301 var file_xds_core_v3_resource_locator_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
302 var file_xds_core_v3_resource_locator_proto_goTypes = []any{
303 (ResourceLocator_Scheme)(0), // 0: xds.core.v3.ResourceLocator.Scheme
304 (*ResourceLocator)(nil), // 1: xds.core.v3.ResourceLocator
305 (*ResourceLocator_Directive)(nil), // 2: xds.core.v3.ResourceLocator.Directive
306 (*ContextParams)(nil), // 3: xds.core.v3.ContextParams
307 }
308 var file_xds_core_v3_resource_locator_proto_depIdxs = []int32{
309 0, // 0: xds.core.v3.ResourceLocator.scheme:type_name -> xds.core.v3.ResourceLocator.Scheme
310 3, // 1: xds.core.v3.ResourceLocator.exact_context:type_name -> xds.core.v3.ContextParams
311 2, // 2: xds.core.v3.ResourceLocator.directives:type_name -> xds.core.v3.ResourceLocator.Directive
312 1, // 3: xds.core.v3.ResourceLocator.Directive.alt:type_name -> xds.core.v3.ResourceLocator
313 4, // [4:4] is the sub-list for method output_type
314 4, // [4:4] is the sub-list for method input_type
315 4, // [4:4] is the sub-list for extension type_name
316 4, // [4:4] is the sub-list for extension extendee
317 0, // [0:4] is the sub-list for field type_name
318 }
319
320 func init() { file_xds_core_v3_resource_locator_proto_init() }
321 func file_xds_core_v3_resource_locator_proto_init() {
322 if File_xds_core_v3_resource_locator_proto != nil {
323 return
324 }
325 file_xds_core_v3_context_params_proto_init()
326 file_xds_core_v3_resource_locator_proto_msgTypes[0].OneofWrappers = []any{
327 (*ResourceLocator_ExactContext)(nil),
328 }
329 file_xds_core_v3_resource_locator_proto_msgTypes[1].OneofWrappers = []any{
330 (*ResourceLocator_Directive_Alt)(nil),
331 (*ResourceLocator_Directive_Entry)(nil),
332 }
333 type x struct{}
334 out := protoimpl.TypeBuilder{
335 File: protoimpl.DescBuilder{
336 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
337 RawDescriptor: unsafe.Slice(unsafe.StringData(file_xds_core_v3_resource_locator_proto_rawDesc), len(file_xds_core_v3_resource_locator_proto_rawDesc)),
338 NumEnums: 1,
339 NumMessages: 2,
340 NumExtensions: 0,
341 NumServices: 0,
342 },
343 GoTypes: file_xds_core_v3_resource_locator_proto_goTypes,
344 DependencyIndexes: file_xds_core_v3_resource_locator_proto_depIdxs,
345 EnumInfos: file_xds_core_v3_resource_locator_proto_enumTypes,
346 MessageInfos: file_xds_core_v3_resource_locator_proto_msgTypes,
347 }.Build()
348 File_xds_core_v3_resource_locator_proto = out.File
349 file_xds_core_v3_resource_locator_proto_goTypes = nil
350 file_xds_core_v3_resource_locator_proto_depIdxs = nil
351 }