1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package visibility
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 descriptorpb "google.golang.org/protobuf/types/descriptorpb"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
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 type Visibility struct {
63 state protoimpl.MessageState
64 sizeCache protoimpl.SizeCache
65 unknownFields protoimpl.UnknownFields
66
67
68
69
70 Rules []*VisibilityRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
71 }
72
73 func (x *Visibility) Reset() {
74 *x = Visibility{}
75 if protoimpl.UnsafeEnabled {
76 mi := &file_google_api_visibility_proto_msgTypes[0]
77 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
78 ms.StoreMessageInfo(mi)
79 }
80 }
81
82 func (x *Visibility) String() string {
83 return protoimpl.X.MessageStringOf(x)
84 }
85
86 func (*Visibility) ProtoMessage() {}
87
88 func (x *Visibility) ProtoReflect() protoreflect.Message {
89 mi := &file_google_api_visibility_proto_msgTypes[0]
90 if protoimpl.UnsafeEnabled && x != nil {
91 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
92 if ms.LoadMessageInfo() == nil {
93 ms.StoreMessageInfo(mi)
94 }
95 return ms
96 }
97 return mi.MessageOf(x)
98 }
99
100
101 func (*Visibility) Descriptor() ([]byte, []int) {
102 return file_google_api_visibility_proto_rawDescGZIP(), []int{0}
103 }
104
105 func (x *Visibility) GetRules() []*VisibilityRule {
106 if x != nil {
107 return x.Rules
108 }
109 return nil
110 }
111
112
113
114 type VisibilityRule struct {
115 state protoimpl.MessageState
116 sizeCache protoimpl.SizeCache
117 unknownFields protoimpl.UnknownFields
118
119
120
121
122
123 Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139 Restriction string `protobuf:"bytes,2,opt,name=restriction,proto3" json:"restriction,omitempty"`
140 }
141
142 func (x *VisibilityRule) Reset() {
143 *x = VisibilityRule{}
144 if protoimpl.UnsafeEnabled {
145 mi := &file_google_api_visibility_proto_msgTypes[1]
146 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
147 ms.StoreMessageInfo(mi)
148 }
149 }
150
151 func (x *VisibilityRule) String() string {
152 return protoimpl.X.MessageStringOf(x)
153 }
154
155 func (*VisibilityRule) ProtoMessage() {}
156
157 func (x *VisibilityRule) ProtoReflect() protoreflect.Message {
158 mi := &file_google_api_visibility_proto_msgTypes[1]
159 if protoimpl.UnsafeEnabled && x != nil {
160 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
161 if ms.LoadMessageInfo() == nil {
162 ms.StoreMessageInfo(mi)
163 }
164 return ms
165 }
166 return mi.MessageOf(x)
167 }
168
169
170 func (*VisibilityRule) Descriptor() ([]byte, []int) {
171 return file_google_api_visibility_proto_rawDescGZIP(), []int{1}
172 }
173
174 func (x *VisibilityRule) GetSelector() string {
175 if x != nil {
176 return x.Selector
177 }
178 return ""
179 }
180
181 func (x *VisibilityRule) GetRestriction() string {
182 if x != nil {
183 return x.Restriction
184 }
185 return ""
186 }
187
188 var file_google_api_visibility_proto_extTypes = []protoimpl.ExtensionInfo{
189 {
190 ExtendedType: (*descriptorpb.EnumOptions)(nil),
191 ExtensionType: (*VisibilityRule)(nil),
192 Field: 72295727,
193 Name: "google.api.enum_visibility",
194 Tag: "bytes,72295727,opt,name=enum_visibility",
195 Filename: "google/api/visibility.proto",
196 },
197 {
198 ExtendedType: (*descriptorpb.EnumValueOptions)(nil),
199 ExtensionType: (*VisibilityRule)(nil),
200 Field: 72295727,
201 Name: "google.api.value_visibility",
202 Tag: "bytes,72295727,opt,name=value_visibility",
203 Filename: "google/api/visibility.proto",
204 },
205 {
206 ExtendedType: (*descriptorpb.FieldOptions)(nil),
207 ExtensionType: (*VisibilityRule)(nil),
208 Field: 72295727,
209 Name: "google.api.field_visibility",
210 Tag: "bytes,72295727,opt,name=field_visibility",
211 Filename: "google/api/visibility.proto",
212 },
213 {
214 ExtendedType: (*descriptorpb.MessageOptions)(nil),
215 ExtensionType: (*VisibilityRule)(nil),
216 Field: 72295727,
217 Name: "google.api.message_visibility",
218 Tag: "bytes,72295727,opt,name=message_visibility",
219 Filename: "google/api/visibility.proto",
220 },
221 {
222 ExtendedType: (*descriptorpb.MethodOptions)(nil),
223 ExtensionType: (*VisibilityRule)(nil),
224 Field: 72295727,
225 Name: "google.api.method_visibility",
226 Tag: "bytes,72295727,opt,name=method_visibility",
227 Filename: "google/api/visibility.proto",
228 },
229 {
230 ExtendedType: (*descriptorpb.ServiceOptions)(nil),
231 ExtensionType: (*VisibilityRule)(nil),
232 Field: 72295727,
233 Name: "google.api.api_visibility",
234 Tag: "bytes,72295727,opt,name=api_visibility",
235 Filename: "google/api/visibility.proto",
236 },
237 }
238
239
240 var (
241
242
243
244 E_EnumVisibility = &file_google_api_visibility_proto_extTypes[0]
245 )
246
247
248 var (
249
250
251
252 E_ValueVisibility = &file_google_api_visibility_proto_extTypes[1]
253 )
254
255
256 var (
257
258
259
260 E_FieldVisibility = &file_google_api_visibility_proto_extTypes[2]
261 )
262
263
264 var (
265
266
267
268 E_MessageVisibility = &file_google_api_visibility_proto_extTypes[3]
269 )
270
271
272 var (
273
274
275
276 E_MethodVisibility = &file_google_api_visibility_proto_extTypes[4]
277 )
278
279
280 var (
281
282
283
284 E_ApiVisibility = &file_google_api_visibility_proto_extTypes[5]
285 )
286
287 var File_google_api_visibility_proto protoreflect.FileDescriptor
288
289 var file_google_api_visibility_proto_rawDesc = []byte{
290 0x0a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x69, 0x73,
291 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67,
292 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
293 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72,
294 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3e, 0x0a, 0x0a, 0x56,
295 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x72, 0x75, 0x6c,
296 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
297 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
298 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x4e, 0x0a, 0x0e, 0x56,
299 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x1a, 0x0a,
300 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
301 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x73,
302 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
303 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x64, 0x0a, 0x0f, 0x65,
304 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1c,
305 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
306 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xaf, 0xca, 0xbc,
307 0x22, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61,
308 0x70, 0x69, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x75, 0x6c,
309 0x65, 0x52, 0x0e, 0x65, 0x6e, 0x75, 0x6d, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74,
310 0x79, 0x3a, 0x6b, 0x0a, 0x10, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62,
311 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
312 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75,
313 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xaf, 0xca, 0xbc, 0x22, 0x20, 0x01, 0x28,
314 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56,
315 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0f, 0x76,
316 0x61, 0x6c, 0x75, 0x65, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x3a, 0x67,
317 0x0a, 0x10, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69,
318 0x74, 0x79, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
319 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
320 0x73, 0x18, 0xaf, 0xca, 0xbc, 0x22, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
321 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69,
322 0x74, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x56, 0x69, 0x73,
323 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x3a, 0x6d, 0x0a, 0x12, 0x6d, 0x65, 0x73, 0x73, 0x61,
324 0x67, 0x65, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x2e,
325 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
326 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xaf,
327 0xca, 0xbc, 0x22, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
328 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52,
329 0x75, 0x6c, 0x65, 0x52, 0x11, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x56, 0x69, 0x73, 0x69,
330 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x3a, 0x6a, 0x0a, 0x11, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64,
331 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1e, 0x2e, 0x67, 0x6f,
332 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65,
333 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xaf, 0xca, 0xbc, 0x22,
334 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
335 0x69, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x75, 0x6c, 0x65,
336 0x52, 0x10, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69,
337 0x74, 0x79, 0x3a, 0x65, 0x0a, 0x0e, 0x61, 0x70, 0x69, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69,
338 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
339 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4f, 0x70,
340 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xaf, 0xca, 0xbc, 0x22, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
341 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x69, 0x73, 0x69,
342 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x61, 0x70, 0x69, 0x56,
343 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x42, 0x6e, 0x0a, 0x0e, 0x63, 0x6f, 0x6d,
344 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x42, 0x0f, 0x56, 0x69, 0x73,
345 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3f,
346 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72,
347 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
348 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69,
349 0x6c, 0x69, 0x74, 0x79, 0x3b, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0xf8,
350 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
351 0x33,
352 }
353
354 var (
355 file_google_api_visibility_proto_rawDescOnce sync.Once
356 file_google_api_visibility_proto_rawDescData = file_google_api_visibility_proto_rawDesc
357 )
358
359 func file_google_api_visibility_proto_rawDescGZIP() []byte {
360 file_google_api_visibility_proto_rawDescOnce.Do(func() {
361 file_google_api_visibility_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_visibility_proto_rawDescData)
362 })
363 return file_google_api_visibility_proto_rawDescData
364 }
365
366 var file_google_api_visibility_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
367 var file_google_api_visibility_proto_goTypes = []interface{}{
368 (*Visibility)(nil),
369 (*VisibilityRule)(nil),
370 (*descriptorpb.EnumOptions)(nil),
371 (*descriptorpb.EnumValueOptions)(nil),
372 (*descriptorpb.FieldOptions)(nil),
373 (*descriptorpb.MessageOptions)(nil),
374 (*descriptorpb.MethodOptions)(nil),
375 (*descriptorpb.ServiceOptions)(nil),
376 }
377 var file_google_api_visibility_proto_depIdxs = []int32{
378 1,
379 2,
380 3,
381 4,
382 5,
383 6,
384 7,
385 1,
386 1,
387 1,
388 1,
389 1,
390 1,
391 13,
392 13,
393 7,
394 1,
395 0,
396 }
397
398 func init() { file_google_api_visibility_proto_init() }
399 func file_google_api_visibility_proto_init() {
400 if File_google_api_visibility_proto != nil {
401 return
402 }
403 if !protoimpl.UnsafeEnabled {
404 file_google_api_visibility_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
405 switch v := v.(*Visibility); i {
406 case 0:
407 return &v.state
408 case 1:
409 return &v.sizeCache
410 case 2:
411 return &v.unknownFields
412 default:
413 return nil
414 }
415 }
416 file_google_api_visibility_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
417 switch v := v.(*VisibilityRule); i {
418 case 0:
419 return &v.state
420 case 1:
421 return &v.sizeCache
422 case 2:
423 return &v.unknownFields
424 default:
425 return nil
426 }
427 }
428 }
429 type x struct{}
430 out := protoimpl.TypeBuilder{
431 File: protoimpl.DescBuilder{
432 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
433 RawDescriptor: file_google_api_visibility_proto_rawDesc,
434 NumEnums: 0,
435 NumMessages: 2,
436 NumExtensions: 6,
437 NumServices: 0,
438 },
439 GoTypes: file_google_api_visibility_proto_goTypes,
440 DependencyIndexes: file_google_api_visibility_proto_depIdxs,
441 MessageInfos: file_google_api_visibility_proto_msgTypes,
442 ExtensionInfos: file_google_api_visibility_proto_extTypes,
443 }.Build()
444 File_google_api_visibility_proto = out.File
445 file_google_api_visibility_proto_rawDesc = nil
446 file_google_api_visibility_proto_goTypes = nil
447 file_google_api_visibility_proto_depIdxs = nil
448 }
449
View as plain text