Debian Codegraph @

go/xds/core/v3/collection_entry.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/collection_entry.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 anypb "google.golang.org/protobuf/types/known/anypb"
15 reflect "reflect"
16 sync "sync"
17 unsafe "unsafe"
18 )
19
20 const (
21 // Verify that this generated code is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23 // Verify that runtime/protoimpl is sufficiently up-to-date.
24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
25 )
26
27 type CollectionEntry struct {
28 state protoimpl.MessageState `protogen:"open.v1"`
29 // Types that are valid to be assigned to ResourceSpecifier:
30 //
31 // *CollectionEntry_Locator
32 // *CollectionEntry_InlineEntry_
33 ResourceSpecifier isCollectionEntry_ResourceSpecifier `protobuf_oneof:"resource_specifier"`
34 unknownFields protoimpl.UnknownFields
35 sizeCache protoimpl.SizeCache
36 }
37
38 func (x *CollectionEntry) Reset() {
39 *x = CollectionEntry{}
40 mi := &file_xds_core_v3_collection_entry_proto_msgTypes[0]
41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
42 ms.StoreMessageInfo(mi)
43 }
44
45 func (x *CollectionEntry) String() string {
46 return protoimpl.X.MessageStringOf(x)
47 }
48
49 func (*CollectionEntry) ProtoMessage() {}
50
51 func (x *CollectionEntry) ProtoReflect() protoreflect.Message {
52 mi := &file_xds_core_v3_collection_entry_proto_msgTypes[0]
53 if x != nil {
54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
55 if ms.LoadMessageInfo() == nil {
56 ms.StoreMessageInfo(mi)
57 }
58 return ms
59 }
60 return mi.MessageOf(x)
61 }
62
63 // Deprecated: Use CollectionEntry.ProtoReflect.Descriptor instead.
64 func (*CollectionEntry) Descriptor() ([]byte, []int) {
65 return file_xds_core_v3_collection_entry_proto_rawDescGZIP(), []int{0}
66 }
67
68 func (x *CollectionEntry) GetResourceSpecifier() isCollectionEntry_ResourceSpecifier {
69 if x != nil {
70 return x.ResourceSpecifier
71 }
72 return nil
73 }
74
75 func (x *CollectionEntry) GetLocator() *ResourceLocator {
76 if x != nil {
77 if x, ok := x.ResourceSpecifier.(*CollectionEntry_Locator); ok {
78 return x.Locator
79 }
80 }
81 return nil
82 }
83
84 func (x *CollectionEntry) GetInlineEntry() *CollectionEntry_InlineEntry {
85 if x != nil {
86 if x, ok := x.ResourceSpecifier.(*CollectionEntry_InlineEntry_); ok {
87 return x.InlineEntry
88 }
89 }
90 return nil
91 }
92
93 type isCollectionEntry_ResourceSpecifier interface {
94 isCollectionEntry_ResourceSpecifier()
95 }
96
97 type CollectionEntry_Locator struct {
98 Locator *ResourceLocator `protobuf:"bytes,1,opt,name=locator,proto3,oneof"`
99 }
100
101 type CollectionEntry_InlineEntry_ struct {
102 InlineEntry *CollectionEntry_InlineEntry `protobuf:"bytes,2,opt,name=inline_entry,json=inlineEntry,proto3,oneof"`
103 }
104
105 func (*CollectionEntry_Locator) isCollectionEntry_ResourceSpecifier() {}
106
107 func (*CollectionEntry_InlineEntry_) isCollectionEntry_ResourceSpecifier() {}
108
109 type CollectionEntry_InlineEntry struct {
110 state protoimpl.MessageState `protogen:"open.v1"`
111 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
112 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
113 Resource *anypb.Any `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
114 unknownFields protoimpl.UnknownFields
115 sizeCache protoimpl.SizeCache
116 }
117
118 func (x *CollectionEntry_InlineEntry) Reset() {
119 *x = CollectionEntry_InlineEntry{}
120 mi := &file_xds_core_v3_collection_entry_proto_msgTypes[1]
121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
122 ms.StoreMessageInfo(mi)
123 }
124
125 func (x *CollectionEntry_InlineEntry) String() string {
126 return protoimpl.X.MessageStringOf(x)
127 }
128
129 func (*CollectionEntry_InlineEntry) ProtoMessage() {}
130
131 func (x *CollectionEntry_InlineEntry) ProtoReflect() protoreflect.Message {
132 mi := &file_xds_core_v3_collection_entry_proto_msgTypes[1]
133 if x != nil {
134 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
135 if ms.LoadMessageInfo() == nil {
136 ms.StoreMessageInfo(mi)
137 }
138 return ms
139 }
140 return mi.MessageOf(x)
141 }
142
143 // Deprecated: Use CollectionEntry_InlineEntry.ProtoReflect.Descriptor instead.
144 func (*CollectionEntry_InlineEntry) Descriptor() ([]byte, []int) {
145 return file_xds_core_v3_collection_entry_proto_rawDescGZIP(), []int{0, 0}
146 }
147
148 func (x *CollectionEntry_InlineEntry) GetName() string {
149 if x != nil {
150 return x.Name
151 }
152 return ""
153 }
154
155 func (x *CollectionEntry_InlineEntry) GetVersion() string {
156 if x != nil {
157 return x.Version
158 }
159 return ""
160 }
161
162 func (x *CollectionEntry_InlineEntry) GetResource() *anypb.Any {
163 if x != nil {
164 return x.Resource
165 }
166 return nil
167 }
168
169 var File_xds_core_v3_collection_entry_proto protoreflect.FileDescriptor
170
171 const file_xds_core_v3_collection_entry_proto_rawDesc = "" +
172 "\n" +
173 "\"xds/core/v3/collection_entry.proto\x12\vxds.core.v3\x1a\x19google/protobuf/any.proto\x1a\x1fxds/annotations/v3/status.proto\x1a\"xds/core/v3/resource_locator.proto\x1a\x17validate/validate.proto\"\xc3\x02\n" +
174 "\x0fCollectionEntry\x128\n" +
175 "\alocator\x18\x01 \x01(\v2\x1c.xds.core.v3.ResourceLocatorH\x00R\alocator\x12M\n" +
176 "\finline_entry\x18\x02 \x01(\v2(.xds.core.v3.CollectionEntry.InlineEntryH\x00R\vinlineEntry\x1a\x8b\x01\n" +
177 "\vInlineEntry\x120\n" +
178 "\x04name\x18\x01 \x01(\tB\x1c\xfaB\x19r\x172\x15^[0-9a-zA-Z_\\-\\.~:]+$R\x04name\x12\x18\n" +
179 "\aversion\x18\x02 \x01(\tR\aversion\x120\n" +
180 "\bresource\x18\x03 \x01(\v2\x14.google.protobuf.AnyR\bresourceB\x19\n" +
181 "\x12resource_specifier\x12\x03\xf8B\x01B\\\xd2Ƥ\xe1\x06\x02\b\x01\n" +
182 "\x16com.github.xds.core.v3B\x14CollectionEntryProtoP\x01Z\"github.com/cncf/xds/go/xds/core/v3b\x06proto3"
183
184 var (
185 file_xds_core_v3_collection_entry_proto_rawDescOnce sync.Once
186 file_xds_core_v3_collection_entry_proto_rawDescData []byte
187 )
188
189 func file_xds_core_v3_collection_entry_proto_rawDescGZIP() []byte {
190 file_xds_core_v3_collection_entry_proto_rawDescOnce.Do(func() {
191 file_xds_core_v3_collection_entry_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xds_core_v3_collection_entry_proto_rawDesc), len(file_xds_core_v3_collection_entry_proto_rawDesc)))
192 })
193 return file_xds_core_v3_collection_entry_proto_rawDescData
194 }
195
196 var file_xds_core_v3_collection_entry_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
197 var file_xds_core_v3_collection_entry_proto_goTypes = []any{
198 (*CollectionEntry)(nil), // 0: xds.core.v3.CollectionEntry
199 (*CollectionEntry_InlineEntry)(nil), // 1: xds.core.v3.CollectionEntry.InlineEntry
200 (*ResourceLocator)(nil), // 2: xds.core.v3.ResourceLocator
201 (*anypb.Any)(nil), // 3: google.protobuf.Any
202 }
203 var file_xds_core_v3_collection_entry_proto_depIdxs = []int32{
204 2, // 0: xds.core.v3.CollectionEntry.locator:type_name -> xds.core.v3.ResourceLocator
205 1, // 1: xds.core.v3.CollectionEntry.inline_entry:type_name -> xds.core.v3.CollectionEntry.InlineEntry
206 3, // 2: xds.core.v3.CollectionEntry.InlineEntry.resource:type_name -> google.protobuf.Any
207 3, // [3:3] is the sub-list for method output_type
208 3, // [3:3] is the sub-list for method input_type
209 3, // [3:3] is the sub-list for extension type_name
210 3, // [3:3] is the sub-list for extension extendee
211 0, // [0:3] is the sub-list for field type_name
212 }
213
214 func init() { file_xds_core_v3_collection_entry_proto_init() }
215 func file_xds_core_v3_collection_entry_proto_init() {
216 if File_xds_core_v3_collection_entry_proto != nil {
217 return
218 }
219 file_xds_core_v3_resource_locator_proto_init()
220 file_xds_core_v3_collection_entry_proto_msgTypes[0].OneofWrappers = []any{
221 (*CollectionEntry_Locator)(nil),
222 (*CollectionEntry_InlineEntry_)(nil),
223 }
224 type x struct{}
225 out := protoimpl.TypeBuilder{
226 File: protoimpl.DescBuilder{
227 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
228 RawDescriptor: unsafe.Slice(unsafe.StringData(file_xds_core_v3_collection_entry_proto_rawDesc), len(file_xds_core_v3_collection_entry_proto_rawDesc)),
229 NumEnums: 0,
230 NumMessages: 2,
231 NumExtensions: 0,
232 NumServices: 0,
233 },
234 GoTypes: file_xds_core_v3_collection_entry_proto_goTypes,
235 DependencyIndexes: file_xds_core_v3_collection_entry_proto_depIdxs,
236 MessageInfos: file_xds_core_v3_collection_entry_proto_msgTypes,
237 }.Build()
238 File_xds_core_v3_collection_entry_proto = out.File
239 file_xds_core_v3_collection_entry_proto_goTypes = nil
240 file_xds_core_v3_collection_entry_proto_depIdxs = nil
241 }