blob: 3571ad634f515ed5c100bf585674824702718bb4 [file] [log] [blame]
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001// Copyright 2018 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Don Newton98fd8812019-09-23 15:15:02 -040015// Code generated by protoc-gen-go. DO NOT EDIT.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016// versions:
17// protoc-gen-go v1.26.0
18// protoc v3.12.2
Don Newton98fd8812019-09-23 15:15:02 -040019// source: google/api/resource.proto
20
21package annotations
22
23import (
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000024 reflect "reflect"
25 sync "sync"
Don Newton98fd8812019-09-23 15:15:02 -040026
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000027 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 descriptorpb "google.golang.org/protobuf/types/descriptorpb"
Don Newton98fd8812019-09-23 15:15:02 -040030)
31
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000032const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37)
Don Newton98fd8812019-09-23 15:15:02 -040038
39// A description of the historical or future-looking state of the
40// resource pattern.
41type ResourceDescriptor_History int32
42
43const (
44 // The "unset" value.
45 ResourceDescriptor_HISTORY_UNSPECIFIED ResourceDescriptor_History = 0
46 // The resource originally had one pattern and launched as such, and
47 // additional patterns were added later.
48 ResourceDescriptor_ORIGINALLY_SINGLE_PATTERN ResourceDescriptor_History = 1
49 // The resource has one pattern, but the API owner expects to add more
50 // later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
51 // that from being necessary once there are multiple patterns.)
52 ResourceDescriptor_FUTURE_MULTI_PATTERN ResourceDescriptor_History = 2
53)
54
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000055// Enum value maps for ResourceDescriptor_History.
56var (
57 ResourceDescriptor_History_name = map[int32]string{
58 0: "HISTORY_UNSPECIFIED",
59 1: "ORIGINALLY_SINGLE_PATTERN",
60 2: "FUTURE_MULTI_PATTERN",
61 }
62 ResourceDescriptor_History_value = map[string]int32{
63 "HISTORY_UNSPECIFIED": 0,
64 "ORIGINALLY_SINGLE_PATTERN": 1,
65 "FUTURE_MULTI_PATTERN": 2,
66 }
67)
Don Newton98fd8812019-09-23 15:15:02 -040068
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000069func (x ResourceDescriptor_History) Enum() *ResourceDescriptor_History {
70 p := new(ResourceDescriptor_History)
71 *p = x
72 return p
Don Newton98fd8812019-09-23 15:15:02 -040073}
74
75func (x ResourceDescriptor_History) String() string {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000076 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Don Newton98fd8812019-09-23 15:15:02 -040077}
78
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000079func (ResourceDescriptor_History) Descriptor() protoreflect.EnumDescriptor {
80 return file_google_api_resource_proto_enumTypes[0].Descriptor()
81}
82
83func (ResourceDescriptor_History) Type() protoreflect.EnumType {
84 return &file_google_api_resource_proto_enumTypes[0]
85}
86
87func (x ResourceDescriptor_History) Number() protoreflect.EnumNumber {
88 return protoreflect.EnumNumber(x)
89}
90
91// Deprecated: Use ResourceDescriptor_History.Descriptor instead.
Don Newton98fd8812019-09-23 15:15:02 -040092func (ResourceDescriptor_History) EnumDescriptor() ([]byte, []int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000093 return file_google_api_resource_proto_rawDescGZIP(), []int{0, 0}
94}
95
96// A flag representing a specific style that a resource claims to conform to.
97type ResourceDescriptor_Style int32
98
99const (
100 // The unspecified value. Do not use.
101 ResourceDescriptor_STYLE_UNSPECIFIED ResourceDescriptor_Style = 0
102 // This resource is intended to be "declarative-friendly".
103 //
104 // Declarative-friendly resources must be more strictly consistent, and
105 // setting this to true communicates to tools that this resource should
106 // adhere to declarative-friendly expectations.
107 //
108 // Note: This is used by the API linter (linter.aip.dev) to enable
109 // additional checks.
110 ResourceDescriptor_DECLARATIVE_FRIENDLY ResourceDescriptor_Style = 1
111)
112
113// Enum value maps for ResourceDescriptor_Style.
114var (
115 ResourceDescriptor_Style_name = map[int32]string{
116 0: "STYLE_UNSPECIFIED",
117 1: "DECLARATIVE_FRIENDLY",
118 }
119 ResourceDescriptor_Style_value = map[string]int32{
120 "STYLE_UNSPECIFIED": 0,
121 "DECLARATIVE_FRIENDLY": 1,
122 }
123)
124
125func (x ResourceDescriptor_Style) Enum() *ResourceDescriptor_Style {
126 p := new(ResourceDescriptor_Style)
127 *p = x
128 return p
129}
130
131func (x ResourceDescriptor_Style) String() string {
132 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
133}
134
135func (ResourceDescriptor_Style) Descriptor() protoreflect.EnumDescriptor {
136 return file_google_api_resource_proto_enumTypes[1].Descriptor()
137}
138
139func (ResourceDescriptor_Style) Type() protoreflect.EnumType {
140 return &file_google_api_resource_proto_enumTypes[1]
141}
142
143func (x ResourceDescriptor_Style) Number() protoreflect.EnumNumber {
144 return protoreflect.EnumNumber(x)
145}
146
147// Deprecated: Use ResourceDescriptor_Style.Descriptor instead.
148func (ResourceDescriptor_Style) EnumDescriptor() ([]byte, []int) {
149 return file_google_api_resource_proto_rawDescGZIP(), []int{0, 1}
Don Newton98fd8812019-09-23 15:15:02 -0400150}
151
152// A simple descriptor of a resource type.
153//
154// ResourceDescriptor annotates a resource message (either by means of a
155// protobuf annotation or use in the service config), and associates the
156// resource's schema, the resource type, and the pattern of the resource name.
157//
158// Example:
159//
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000160// message Topic {
161// // Indicates this message defines a resource schema.
162// // Declares the resource type in the format of {service}/{kind}.
163// // For Kubernetes resources, the format is {api group}/{kind}.
164// option (google.api.resource) = {
165// type: "pubsub.googleapis.com/Topic"
166// name_descriptor: {
167// pattern: "projects/{project}/topics/{topic}"
168// parent_type: "cloudresourcemanager.googleapis.com/Project"
169// parent_name_extractor: "projects/{project}"
170// }
171// };
172// }
173//
174// The ResourceDescriptor Yaml config will look like:
175//
176// resources:
177// - type: "pubsub.googleapis.com/Topic"
178// name_descriptor:
179// - pattern: "projects/{project}/topics/{topic}"
180// parent_type: "cloudresourcemanager.googleapis.com/Project"
181// parent_name_extractor: "projects/{project}"
Don Newton98fd8812019-09-23 15:15:02 -0400182//
183// Sometimes, resources have multiple patterns, typically because they can
184// live under multiple parents.
185//
186// Example:
187//
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000188// message LogEntry {
189// option (google.api.resource) = {
190// type: "logging.googleapis.com/LogEntry"
191// name_descriptor: {
192// pattern: "projects/{project}/logs/{log}"
193// parent_type: "cloudresourcemanager.googleapis.com/Project"
194// parent_name_extractor: "projects/{project}"
195// }
196// name_descriptor: {
197// pattern: "folders/{folder}/logs/{log}"
198// parent_type: "cloudresourcemanager.googleapis.com/Folder"
199// parent_name_extractor: "folders/{folder}"
200// }
201// name_descriptor: {
202// pattern: "organizations/{organization}/logs/{log}"
203// parent_type: "cloudresourcemanager.googleapis.com/Organization"
204// parent_name_extractor: "organizations/{organization}"
205// }
206// name_descriptor: {
207// pattern: "billingAccounts/{billing_account}/logs/{log}"
208// parent_type: "billing.googleapis.com/BillingAccount"
209// parent_name_extractor: "billingAccounts/{billing_account}"
210// }
211// };
212// }
213//
214// The ResourceDescriptor Yaml config will look like:
215//
216// resources:
217// - type: 'logging.googleapis.com/LogEntry'
218// name_descriptor:
219// - pattern: "projects/{project}/logs/{log}"
220// parent_type: "cloudresourcemanager.googleapis.com/Project"
221// parent_name_extractor: "projects/{project}"
222// - pattern: "folders/{folder}/logs/{log}"
223// parent_type: "cloudresourcemanager.googleapis.com/Folder"
224// parent_name_extractor: "folders/{folder}"
225// - pattern: "organizations/{organization}/logs/{log}"
226// parent_type: "cloudresourcemanager.googleapis.com/Organization"
227// parent_name_extractor: "organizations/{organization}"
228// - pattern: "billingAccounts/{billing_account}/logs/{log}"
229// parent_type: "billing.googleapis.com/BillingAccount"
230// parent_name_extractor: "billingAccounts/{billing_account}"
231//
232// For flexible resources, the resource name doesn't contain parent names, but
233// the resource itself has parents for policy evaluation.
234//
235// Example:
236//
237// message Shelf {
238// option (google.api.resource) = {
239// type: "library.googleapis.com/Shelf"
240// name_descriptor: {
241// pattern: "shelves/{shelf}"
242// parent_type: "cloudresourcemanager.googleapis.com/Project"
243// }
244// name_descriptor: {
245// pattern: "shelves/{shelf}"
246// parent_type: "cloudresourcemanager.googleapis.com/Folder"
247// }
248// };
249// }
250//
251// The ResourceDescriptor Yaml config will look like:
252//
253// resources:
254// - type: 'library.googleapis.com/Shelf'
255// name_descriptor:
256// - pattern: "shelves/{shelf}"
257// parent_type: "cloudresourcemanager.googleapis.com/Project"
258// - pattern: "shelves/{shelf}"
259// parent_type: "cloudresourcemanager.googleapis.com/Folder"
Don Newton98fd8812019-09-23 15:15:02 -0400260type ResourceDescriptor struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000261 state protoimpl.MessageState
262 sizeCache protoimpl.SizeCache
263 unknownFields protoimpl.UnknownFields
264
Don Newton98fd8812019-09-23 15:15:02 -0400265 // The resource type. It must be in the format of
266 // {service_name}/{resource_type_kind}. The `resource_type_kind` must be
267 // singular and must not include version numbers.
268 //
269 // Example: `storage.googleapis.com/Bucket`
270 //
271 // The value of the resource_type_kind must follow the regular expression
272 // /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
273 // should use PascalCase (UpperCamelCase). The maximum number of
274 // characters allowed for the `resource_type_kind` is 100.
275 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000276 // Optional. The relative resource name pattern associated with this resource
277 // type. The DNS prefix of the full resource name shouldn't be specified here.
278 //
279 // The path pattern must follow the syntax, which aligns with HTTP binding
280 // syntax:
281 //
282 // Template = Segment { "/" Segment } ;
283 // Segment = LITERAL | Variable ;
284 // Variable = "{" LITERAL "}" ;
Don Newton98fd8812019-09-23 15:15:02 -0400285 //
286 // Examples:
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000287 //
288 // - "projects/{project}/topics/{topic}"
289 // - "projects/{project}/knowledgeBases/{knowledge_base}"
Don Newton98fd8812019-09-23 15:15:02 -0400290 //
291 // The components in braces correspond to the IDs for each resource in the
292 // hierarchy. It is expected that, if multiple patterns are provided,
293 // the same component name (e.g. "project") refers to IDs of the same
294 // type of resource.
295 Pattern []string `protobuf:"bytes,2,rep,name=pattern,proto3" json:"pattern,omitempty"`
296 // Optional. The field on the resource that designates the resource name
297 // field. If omitted, this is assumed to be "name".
298 NameField string `protobuf:"bytes,3,opt,name=name_field,json=nameField,proto3" json:"name_field,omitempty"`
299 // Optional. The historical or future-looking state of the resource pattern.
300 //
301 // Example:
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000302 //
303 // // The InspectTemplate message originally only supported resource
304 // // names with organization, and project was added later.
305 // message InspectTemplate {
306 // option (google.api.resource) = {
307 // type: "dlp.googleapis.com/InspectTemplate"
308 // pattern:
309 // "organizations/{organization}/inspectTemplates/{inspect_template}"
310 // pattern: "projects/{project}/inspectTemplates/{inspect_template}"
311 // history: ORIGINALLY_SINGLE_PATTERN
312 // };
313 // }
314 History ResourceDescriptor_History `protobuf:"varint,4,opt,name=history,proto3,enum=google.api.ResourceDescriptor_History" json:"history,omitempty"`
315 // The plural name used in the resource name and permission names, such as
316 // 'projects' for the resource name of 'projects/{project}' and the permission
317 // name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
318 // concept of the `plural` field in k8s CRD spec
319 // https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
320 //
321 // Note: The plural form is required even for singleton resources. See
322 // https://aip.dev/156
323 Plural string `protobuf:"bytes,5,opt,name=plural,proto3" json:"plural,omitempty"`
324 // The same concept of the `singular` field in k8s CRD spec
325 // https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
326 // Such as "project" for the `resourcemanager.googleapis.com/Project` type.
327 Singular string `protobuf:"bytes,6,opt,name=singular,proto3" json:"singular,omitempty"`
328 // Style flag(s) for this resource.
329 // These indicate that a resource is expected to conform to a given
330 // style. See the specific style flags for additional information.
331 Style []ResourceDescriptor_Style `protobuf:"varint,10,rep,packed,name=style,proto3,enum=google.api.ResourceDescriptor_Style" json:"style,omitempty"`
Don Newton98fd8812019-09-23 15:15:02 -0400332}
333
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000334func (x *ResourceDescriptor) Reset() {
335 *x = ResourceDescriptor{}
336 if protoimpl.UnsafeEnabled {
337 mi := &file_google_api_resource_proto_msgTypes[0]
338 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
339 ms.StoreMessageInfo(mi)
340 }
341}
342
343func (x *ResourceDescriptor) String() string {
344 return protoimpl.X.MessageStringOf(x)
345}
346
347func (*ResourceDescriptor) ProtoMessage() {}
348
349func (x *ResourceDescriptor) ProtoReflect() protoreflect.Message {
350 mi := &file_google_api_resource_proto_msgTypes[0]
351 if protoimpl.UnsafeEnabled && x != nil {
352 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
353 if ms.LoadMessageInfo() == nil {
354 ms.StoreMessageInfo(mi)
355 }
356 return ms
357 }
358 return mi.MessageOf(x)
359}
360
361// Deprecated: Use ResourceDescriptor.ProtoReflect.Descriptor instead.
Don Newton98fd8812019-09-23 15:15:02 -0400362func (*ResourceDescriptor) Descriptor() ([]byte, []int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000363 return file_google_api_resource_proto_rawDescGZIP(), []int{0}
Don Newton98fd8812019-09-23 15:15:02 -0400364}
365
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000366func (x *ResourceDescriptor) GetType() string {
367 if x != nil {
368 return x.Type
Don Newton98fd8812019-09-23 15:15:02 -0400369 }
370 return ""
371}
372
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000373func (x *ResourceDescriptor) GetPattern() []string {
374 if x != nil {
375 return x.Pattern
Don Newton98fd8812019-09-23 15:15:02 -0400376 }
377 return nil
378}
379
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000380func (x *ResourceDescriptor) GetNameField() string {
381 if x != nil {
382 return x.NameField
Don Newton98fd8812019-09-23 15:15:02 -0400383 }
384 return ""
385}
386
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000387func (x *ResourceDescriptor) GetHistory() ResourceDescriptor_History {
388 if x != nil {
389 return x.History
Don Newton98fd8812019-09-23 15:15:02 -0400390 }
391 return ResourceDescriptor_HISTORY_UNSPECIFIED
392}
393
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000394func (x *ResourceDescriptor) GetPlural() string {
395 if x != nil {
396 return x.Plural
397 }
398 return ""
399}
400
401func (x *ResourceDescriptor) GetSingular() string {
402 if x != nil {
403 return x.Singular
404 }
405 return ""
406}
407
408func (x *ResourceDescriptor) GetStyle() []ResourceDescriptor_Style {
409 if x != nil {
410 return x.Style
411 }
412 return nil
413}
414
415// Defines a proto annotation that describes a string field that refers to
416// an API resource.
Don Newton98fd8812019-09-23 15:15:02 -0400417type ResourceReference struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000418 state protoimpl.MessageState
419 sizeCache protoimpl.SizeCache
420 unknownFields protoimpl.UnknownFields
421
Don Newton98fd8812019-09-23 15:15:02 -0400422 // The resource type that the annotated field references.
423 //
424 // Example:
425 //
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000426 // message Subscription {
427 // string topic = 2 [(google.api.resource_reference) = {
428 // type: "pubsub.googleapis.com/Topic"
429 // }];
430 // }
431 //
432 // Occasionally, a field may reference an arbitrary resource. In this case,
433 // APIs use the special value * in their resource reference.
Don Newton98fd8812019-09-23 15:15:02 -0400434 //
435 // Example:
436 //
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000437 // message GetIamPolicyRequest {
438 // string resource = 2 [(google.api.resource_reference) = {
439 // type: "*"
440 // }];
441 // }
442 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
443 // The resource type of a child collection that the annotated field
444 // references. This is useful for annotating the `parent` field that
445 // doesn't have a fixed resource type.
446 //
447 // Example:
448 //
449 // message ListLogEntriesRequest {
450 // string parent = 1 [(google.api.resource_reference) = {
451 // child_type: "logging.googleapis.com/LogEntry"
452 // };
453 // }
454 ChildType string `protobuf:"bytes,2,opt,name=child_type,json=childType,proto3" json:"child_type,omitempty"`
Don Newton98fd8812019-09-23 15:15:02 -0400455}
456
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000457func (x *ResourceReference) Reset() {
458 *x = ResourceReference{}
459 if protoimpl.UnsafeEnabled {
460 mi := &file_google_api_resource_proto_msgTypes[1]
461 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
462 ms.StoreMessageInfo(mi)
463 }
464}
465
466func (x *ResourceReference) String() string {
467 return protoimpl.X.MessageStringOf(x)
468}
469
470func (*ResourceReference) ProtoMessage() {}
471
472func (x *ResourceReference) ProtoReflect() protoreflect.Message {
473 mi := &file_google_api_resource_proto_msgTypes[1]
474 if protoimpl.UnsafeEnabled && x != nil {
475 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
476 if ms.LoadMessageInfo() == nil {
477 ms.StoreMessageInfo(mi)
478 }
479 return ms
480 }
481 return mi.MessageOf(x)
482}
483
484// Deprecated: Use ResourceReference.ProtoReflect.Descriptor instead.
Don Newton98fd8812019-09-23 15:15:02 -0400485func (*ResourceReference) Descriptor() ([]byte, []int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000486 return file_google_api_resource_proto_rawDescGZIP(), []int{1}
Don Newton98fd8812019-09-23 15:15:02 -0400487}
488
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000489func (x *ResourceReference) GetType() string {
490 if x != nil {
491 return x.Type
Don Newton98fd8812019-09-23 15:15:02 -0400492 }
493 return ""
494}
495
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000496func (x *ResourceReference) GetChildType() string {
497 if x != nil {
498 return x.ChildType
Don Newton98fd8812019-09-23 15:15:02 -0400499 }
500 return ""
501}
502
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000503var file_google_api_resource_proto_extTypes = []protoimpl.ExtensionInfo{
504 {
505 ExtendedType: (*descriptorpb.FieldOptions)(nil),
506 ExtensionType: (*ResourceReference)(nil),
507 Field: 1055,
508 Name: "google.api.resource_reference",
509 Tag: "bytes,1055,opt,name=resource_reference",
510 Filename: "google/api/resource.proto",
511 },
512 {
513 ExtendedType: (*descriptorpb.FileOptions)(nil),
514 ExtensionType: ([]*ResourceDescriptor)(nil),
515 Field: 1053,
516 Name: "google.api.resource_definition",
517 Tag: "bytes,1053,rep,name=resource_definition",
518 Filename: "google/api/resource.proto",
519 },
520 {
521 ExtendedType: (*descriptorpb.MessageOptions)(nil),
522 ExtensionType: (*ResourceDescriptor)(nil),
523 Field: 1053,
524 Name: "google.api.resource",
525 Tag: "bytes,1053,opt,name=resource",
526 Filename: "google/api/resource.proto",
527 },
Don Newton98fd8812019-09-23 15:15:02 -0400528}
529
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000530// Extension fields to descriptorpb.FieldOptions.
531var (
532 // An annotation that describes a resource reference, see
533 // [ResourceReference][].
534 //
535 // optional google.api.ResourceReference resource_reference = 1055;
536 E_ResourceReference = &file_google_api_resource_proto_extTypes[0]
537)
538
539// Extension fields to descriptorpb.FileOptions.
540var (
541 // An annotation that describes a resource definition without a corresponding
542 // message; see [ResourceDescriptor][].
543 //
544 // repeated google.api.ResourceDescriptor resource_definition = 1053;
545 E_ResourceDefinition = &file_google_api_resource_proto_extTypes[1]
546)
547
548// Extension fields to descriptorpb.MessageOptions.
549var (
550 // An annotation that describes a resource definition, see
551 // [ResourceDescriptor][].
552 //
553 // optional google.api.ResourceDescriptor resource = 1053;
554 E_Resource = &file_google_api_resource_proto_extTypes[2]
555)
556
557var File_google_api_resource_proto protoreflect.FileDescriptor
558
559var file_google_api_resource_proto_rawDesc = []byte{
560 0x0a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73,
561 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f,
562 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
563 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
564 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaa, 0x03, 0x0a, 0x12, 0x52, 0x65,
565 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72,
566 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
567 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18,
568 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x1d,
569 0x0a, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01,
570 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x40, 0x0a,
571 0x07, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26,
572 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f,
573 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x48,
574 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x07, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12,
575 0x16, 0x0a, 0x06, 0x70, 0x6c, 0x75, 0x72, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
576 0x06, 0x70, 0x6c, 0x75, 0x72, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x69, 0x6e, 0x67, 0x75,
577 0x6c, 0x61, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x69, 0x6e, 0x67, 0x75,
578 0x6c, 0x61, 0x72, 0x12, 0x3a, 0x0a, 0x05, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x0a, 0x20, 0x03,
579 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e,
580 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
581 0x6f, 0x72, 0x2e, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x52, 0x05, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x22,
582 0x5b, 0x0a, 0x07, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x13, 0x48, 0x49,
583 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
584 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x52, 0x49, 0x47, 0x49, 0x4e, 0x41, 0x4c, 0x4c,
585 0x59, 0x5f, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x5f, 0x50, 0x41, 0x54, 0x54, 0x45, 0x52, 0x4e,
586 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x46, 0x55, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4d, 0x55, 0x4c,
587 0x54, 0x49, 0x5f, 0x50, 0x41, 0x54, 0x54, 0x45, 0x52, 0x4e, 0x10, 0x02, 0x22, 0x38, 0x0a, 0x05,
588 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x59, 0x4c, 0x45, 0x5f, 0x55,
589 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14,
590 0x44, 0x45, 0x43, 0x4c, 0x41, 0x52, 0x41, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x46, 0x52, 0x49, 0x45,
591 0x4e, 0x44, 0x4c, 0x59, 0x10, 0x01, 0x22, 0x46, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
592 0x63, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74,
593 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
594 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20,
595 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x6c,
596 0x0a, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72,
597 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
598 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69,
599 0x6f, 0x6e, 0x73, 0x18, 0x9f, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f,
600 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
601 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x75,
602 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x3a, 0x6e, 0x0a, 0x13,
603 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74,
604 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
605 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
606 0x73, 0x18, 0x9d, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
607 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65,
608 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
609 0x63, 0x65, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x5c, 0x0a, 0x08,
610 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
611 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61,
612 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x9d, 0x08, 0x20, 0x01, 0x28, 0x0b,
613 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65,
614 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72,
615 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x6e, 0x0a, 0x0e, 0x63, 0x6f,
616 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x42, 0x0d, 0x52, 0x65,
617 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67,
618 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
619 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
620 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
621 0x69, 0x6f, 0x6e, 0x73, 0x3b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
622 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
623 0x6f, 0x33,
Don Newton98fd8812019-09-23 15:15:02 -0400624}
625
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000626var (
627 file_google_api_resource_proto_rawDescOnce sync.Once
628 file_google_api_resource_proto_rawDescData = file_google_api_resource_proto_rawDesc
629)
630
631func file_google_api_resource_proto_rawDescGZIP() []byte {
632 file_google_api_resource_proto_rawDescOnce.Do(func() {
633 file_google_api_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_resource_proto_rawDescData)
634 })
635 return file_google_api_resource_proto_rawDescData
Don Newton98fd8812019-09-23 15:15:02 -0400636}
637
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000638var file_google_api_resource_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
639var file_google_api_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
640var file_google_api_resource_proto_goTypes = []interface{}{
641 (ResourceDescriptor_History)(0), // 0: google.api.ResourceDescriptor.History
642 (ResourceDescriptor_Style)(0), // 1: google.api.ResourceDescriptor.Style
643 (*ResourceDescriptor)(nil), // 2: google.api.ResourceDescriptor
644 (*ResourceReference)(nil), // 3: google.api.ResourceReference
645 (*descriptorpb.FieldOptions)(nil), // 4: google.protobuf.FieldOptions
646 (*descriptorpb.FileOptions)(nil), // 5: google.protobuf.FileOptions
647 (*descriptorpb.MessageOptions)(nil), // 6: google.protobuf.MessageOptions
648}
649var file_google_api_resource_proto_depIdxs = []int32{
650 0, // 0: google.api.ResourceDescriptor.history:type_name -> google.api.ResourceDescriptor.History
651 1, // 1: google.api.ResourceDescriptor.style:type_name -> google.api.ResourceDescriptor.Style
652 4, // 2: google.api.resource_reference:extendee -> google.protobuf.FieldOptions
653 5, // 3: google.api.resource_definition:extendee -> google.protobuf.FileOptions
654 6, // 4: google.api.resource:extendee -> google.protobuf.MessageOptions
655 3, // 5: google.api.resource_reference:type_name -> google.api.ResourceReference
656 2, // 6: google.api.resource_definition:type_name -> google.api.ResourceDescriptor
657 2, // 7: google.api.resource:type_name -> google.api.ResourceDescriptor
658 8, // [8:8] is the sub-list for method output_type
659 8, // [8:8] is the sub-list for method input_type
660 5, // [5:8] is the sub-list for extension type_name
661 2, // [2:5] is the sub-list for extension extendee
662 0, // [0:2] is the sub-list for field type_name
663}
Don Newton98fd8812019-09-23 15:15:02 -0400664
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000665func init() { file_google_api_resource_proto_init() }
666func file_google_api_resource_proto_init() {
667 if File_google_api_resource_proto != nil {
668 return
669 }
670 if !protoimpl.UnsafeEnabled {
671 file_google_api_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
672 switch v := v.(*ResourceDescriptor); i {
673 case 0:
674 return &v.state
675 case 1:
676 return &v.sizeCache
677 case 2:
678 return &v.unknownFields
679 default:
680 return nil
681 }
682 }
683 file_google_api_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
684 switch v := v.(*ResourceReference); i {
685 case 0:
686 return &v.state
687 case 1:
688 return &v.sizeCache
689 case 2:
690 return &v.unknownFields
691 default:
692 return nil
693 }
694 }
695 }
696 type x struct{}
697 out := protoimpl.TypeBuilder{
698 File: protoimpl.DescBuilder{
699 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
700 RawDescriptor: file_google_api_resource_proto_rawDesc,
701 NumEnums: 2,
702 NumMessages: 2,
703 NumExtensions: 3,
704 NumServices: 0,
705 },
706 GoTypes: file_google_api_resource_proto_goTypes,
707 DependencyIndexes: file_google_api_resource_proto_depIdxs,
708 EnumInfos: file_google_api_resource_proto_enumTypes,
709 MessageInfos: file_google_api_resource_proto_msgTypes,
710 ExtensionInfos: file_google_api_resource_proto_extTypes,
711 }.Build()
712 File_google_api_resource_proto = out.File
713 file_google_api_resource_proto_rawDesc = nil
714 file_google_api_resource_proto_goTypes = nil
715 file_google_api_resource_proto_depIdxs = nil
Don Newton98fd8812019-09-23 15:15:02 -0400716}