blob: 6515668d34f2636868835a5195e31a979a14d25d [file] [log] [blame]
khenaidoo106c61a2021-08-11 18:05:46 -04001// 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
William Kurkianea869482019-04-09 15:16:11 -040015// Code generated by protoc-gen-go. DO NOT EDIT.
khenaidoo106c61a2021-08-11 18:05:46 -040016// versions:
17// protoc-gen-go v1.26.0
18// protoc v3.12.2
William Kurkianea869482019-04-09 15:16:11 -040019// source: google/api/resource.proto
20
Abhilash S.L3b494632019-07-16 15:51:09 +053021package annotations
William Kurkianea869482019-04-09 15:16:11 -040022
Abhilash S.L3b494632019-07-16 15:51:09 +053023import (
khenaidoo106c61a2021-08-11 18:05:46 -040024 reflect "reflect"
25 sync "sync"
Abhilash S.L3b494632019-07-16 15:51:09 +053026
khenaidoo106c61a2021-08-11 18:05:46 -040027 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 descriptorpb "google.golang.org/protobuf/types/descriptorpb"
Abhilash S.L3b494632019-07-16 15:51:09 +053030)
William Kurkianea869482019-04-09 15:16:11 -040031
khenaidoo106c61a2021-08-11 18:05:46 -040032const (
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)
William Kurkianea869482019-04-09 15:16:11 -040038
Abhilash S.L3b494632019-07-16 15:51:09 +053039// 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
khenaidoo106c61a2021-08-11 18:05:46 -040055// 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)
Abhilash S.L3b494632019-07-16 15:51:09 +053068
khenaidoo106c61a2021-08-11 18:05:46 -040069func (x ResourceDescriptor_History) Enum() *ResourceDescriptor_History {
70 p := new(ResourceDescriptor_History)
71 *p = x
72 return p
Abhilash S.L3b494632019-07-16 15:51:09 +053073}
74
75func (x ResourceDescriptor_History) String() string {
khenaidoo106c61a2021-08-11 18:05:46 -040076 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Abhilash S.L3b494632019-07-16 15:51:09 +053077}
78
khenaidoo106c61a2021-08-11 18:05:46 -040079func (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.
Abhilash S.L3b494632019-07-16 15:51:09 +053092func (ResourceDescriptor_History) EnumDescriptor() ([]byte, []int) {
khenaidoo106c61a2021-08-11 18:05:46 -040093 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}
Abhilash S.L3b494632019-07-16 15:51:09 +0530150}
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.
William Kurkianea869482019-04-09 15:16:11 -0400157//
158// Example:
159//
khenaidoo106c61a2021-08-11 18:05:46 -0400160// 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"
khenaidooefff76e2021-12-15 16:51:30 -0500166// pattern: "projects/{project}/topics/{topic}"
khenaidoo106c61a2021-08-11 18:05:46 -0400167// };
168// }
169//
170// The ResourceDescriptor Yaml config will look like:
171//
172// resources:
173// - type: "pubsub.googleapis.com/Topic"
khenaidooefff76e2021-12-15 16:51:30 -0500174// pattern: "projects/{project}/topics/{topic}"
Abhilash S.L3b494632019-07-16 15:51:09 +0530175//
176// Sometimes, resources have multiple patterns, typically because they can
177// live under multiple parents.
178//
179// Example:
180//
khenaidoo106c61a2021-08-11 18:05:46 -0400181// message LogEntry {
182// option (google.api.resource) = {
183// type: "logging.googleapis.com/LogEntry"
khenaidooefff76e2021-12-15 16:51:30 -0500184// pattern: "projects/{project}/logs/{log}"
185// pattern: "folders/{folder}/logs/{log}"
186// pattern: "organizations/{organization}/logs/{log}"
187// pattern: "billingAccounts/{billing_account}/logs/{log}"
khenaidoo106c61a2021-08-11 18:05:46 -0400188// };
189// }
190//
191// The ResourceDescriptor Yaml config will look like:
192//
193// resources:
194// - type: 'logging.googleapis.com/LogEntry'
khenaidooefff76e2021-12-15 16:51:30 -0500195// pattern: "projects/{project}/logs/{log}"
196// pattern: "folders/{folder}/logs/{log}"
197// pattern: "organizations/{organization}/logs/{log}"
198// pattern: "billingAccounts/{billing_account}/logs/{log}"
Abhilash S.L3b494632019-07-16 15:51:09 +0530199type ResourceDescriptor struct {
khenaidoo106c61a2021-08-11 18:05:46 -0400200 state protoimpl.MessageState
201 sizeCache protoimpl.SizeCache
202 unknownFields protoimpl.UnknownFields
203
Abhilash S.L3b494632019-07-16 15:51:09 +0530204 // The resource type. It must be in the format of
205 // {service_name}/{resource_type_kind}. The `resource_type_kind` must be
206 // singular and must not include version numbers.
207 //
208 // Example: `storage.googleapis.com/Bucket`
209 //
210 // The value of the resource_type_kind must follow the regular expression
211 // /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
212 // should use PascalCase (UpperCamelCase). The maximum number of
213 // characters allowed for the `resource_type_kind` is 100.
214 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
khenaidoo106c61a2021-08-11 18:05:46 -0400215 // Optional. The relative resource name pattern associated with this resource
216 // type. The DNS prefix of the full resource name shouldn't be specified here.
217 //
218 // The path pattern must follow the syntax, which aligns with HTTP binding
219 // syntax:
220 //
221 // Template = Segment { "/" Segment } ;
222 // Segment = LITERAL | Variable ;
223 // Variable = "{" LITERAL "}" ;
William Kurkianea869482019-04-09 15:16:11 -0400224 //
225 // Examples:
khenaidoo106c61a2021-08-11 18:05:46 -0400226 //
227 // - "projects/{project}/topics/{topic}"
228 // - "projects/{project}/knowledgeBases/{knowledge_base}"
William Kurkianea869482019-04-09 15:16:11 -0400229 //
Abhilash S.L3b494632019-07-16 15:51:09 +0530230 // The components in braces correspond to the IDs for each resource in the
231 // hierarchy. It is expected that, if multiple patterns are provided,
232 // the same component name (e.g. "project") refers to IDs of the same
233 // type of resource.
234 Pattern []string `protobuf:"bytes,2,rep,name=pattern,proto3" json:"pattern,omitempty"`
235 // Optional. The field on the resource that designates the resource name
236 // field. If omitted, this is assumed to be "name".
237 NameField string `protobuf:"bytes,3,opt,name=name_field,json=nameField,proto3" json:"name_field,omitempty"`
238 // Optional. The historical or future-looking state of the resource pattern.
William Kurkianea869482019-04-09 15:16:11 -0400239 //
240 // Example:
khenaidoo106c61a2021-08-11 18:05:46 -0400241 //
242 // // The InspectTemplate message originally only supported resource
243 // // names with organization, and project was added later.
244 // message InspectTemplate {
245 // option (google.api.resource) = {
246 // type: "dlp.googleapis.com/InspectTemplate"
247 // pattern:
248 // "organizations/{organization}/inspectTemplates/{inspect_template}"
249 // pattern: "projects/{project}/inspectTemplates/{inspect_template}"
250 // history: ORIGINALLY_SINGLE_PATTERN
251 // };
252 // }
253 History ResourceDescriptor_History `protobuf:"varint,4,opt,name=history,proto3,enum=google.api.ResourceDescriptor_History" json:"history,omitempty"`
254 // The plural name used in the resource name and permission names, such as
255 // 'projects' for the resource name of 'projects/{project}' and the permission
256 // name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
257 // concept of the `plural` field in k8s CRD spec
258 // https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
259 //
260 // Note: The plural form is required even for singleton resources. See
261 // https://aip.dev/156
262 Plural string `protobuf:"bytes,5,opt,name=plural,proto3" json:"plural,omitempty"`
263 // The same concept of the `singular` field in k8s CRD spec
264 // https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
265 // Such as "project" for the `resourcemanager.googleapis.com/Project` type.
266 Singular string `protobuf:"bytes,6,opt,name=singular,proto3" json:"singular,omitempty"`
267 // Style flag(s) for this resource.
268 // These indicate that a resource is expected to conform to a given
269 // style. See the specific style flags for additional information.
270 Style []ResourceDescriptor_Style `protobuf:"varint,10,rep,packed,name=style,proto3,enum=google.api.ResourceDescriptor_Style" json:"style,omitempty"`
Abhilash S.L3b494632019-07-16 15:51:09 +0530271}
272
khenaidoo106c61a2021-08-11 18:05:46 -0400273func (x *ResourceDescriptor) Reset() {
274 *x = ResourceDescriptor{}
275 if protoimpl.UnsafeEnabled {
276 mi := &file_google_api_resource_proto_msgTypes[0]
277 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
278 ms.StoreMessageInfo(mi)
279 }
280}
281
282func (x *ResourceDescriptor) String() string {
283 return protoimpl.X.MessageStringOf(x)
284}
285
286func (*ResourceDescriptor) ProtoMessage() {}
287
288func (x *ResourceDescriptor) ProtoReflect() protoreflect.Message {
289 mi := &file_google_api_resource_proto_msgTypes[0]
290 if protoimpl.UnsafeEnabled && x != nil {
291 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
292 if ms.LoadMessageInfo() == nil {
293 ms.StoreMessageInfo(mi)
294 }
295 return ms
296 }
297 return mi.MessageOf(x)
298}
299
300// Deprecated: Use ResourceDescriptor.ProtoReflect.Descriptor instead.
Abhilash S.L3b494632019-07-16 15:51:09 +0530301func (*ResourceDescriptor) Descriptor() ([]byte, []int) {
khenaidoo106c61a2021-08-11 18:05:46 -0400302 return file_google_api_resource_proto_rawDescGZIP(), []int{0}
Abhilash S.L3b494632019-07-16 15:51:09 +0530303}
304
khenaidoo106c61a2021-08-11 18:05:46 -0400305func (x *ResourceDescriptor) GetType() string {
306 if x != nil {
307 return x.Type
Abhilash S.L3b494632019-07-16 15:51:09 +0530308 }
309 return ""
310}
311
khenaidoo106c61a2021-08-11 18:05:46 -0400312func (x *ResourceDescriptor) GetPattern() []string {
313 if x != nil {
314 return x.Pattern
Abhilash S.L3b494632019-07-16 15:51:09 +0530315 }
316 return nil
317}
318
khenaidoo106c61a2021-08-11 18:05:46 -0400319func (x *ResourceDescriptor) GetNameField() string {
320 if x != nil {
321 return x.NameField
Abhilash S.L3b494632019-07-16 15:51:09 +0530322 }
323 return ""
324}
325
khenaidoo106c61a2021-08-11 18:05:46 -0400326func (x *ResourceDescriptor) GetHistory() ResourceDescriptor_History {
327 if x != nil {
328 return x.History
Abhilash S.L3b494632019-07-16 15:51:09 +0530329 }
330 return ResourceDescriptor_HISTORY_UNSPECIFIED
331}
332
khenaidoo106c61a2021-08-11 18:05:46 -0400333func (x *ResourceDescriptor) GetPlural() string {
334 if x != nil {
335 return x.Plural
336 }
337 return ""
338}
339
340func (x *ResourceDescriptor) GetSingular() string {
341 if x != nil {
342 return x.Singular
343 }
344 return ""
345}
346
347func (x *ResourceDescriptor) GetStyle() []ResourceDescriptor_Style {
348 if x != nil {
349 return x.Style
350 }
351 return nil
352}
353
354// Defines a proto annotation that describes a string field that refers to
355// an API resource.
Abhilash S.L3b494632019-07-16 15:51:09 +0530356type ResourceReference struct {
khenaidoo106c61a2021-08-11 18:05:46 -0400357 state protoimpl.MessageState
358 sizeCache protoimpl.SizeCache
359 unknownFields protoimpl.UnknownFields
360
Abhilash S.L3b494632019-07-16 15:51:09 +0530361 // The resource type that the annotated field references.
362 //
363 // Example:
364 //
khenaidoo106c61a2021-08-11 18:05:46 -0400365 // message Subscription {
366 // string topic = 2 [(google.api.resource_reference) = {
367 // type: "pubsub.googleapis.com/Topic"
368 // }];
369 // }
370 //
371 // Occasionally, a field may reference an arbitrary resource. In this case,
372 // APIs use the special value * in their resource reference.
Abhilash S.L3b494632019-07-16 15:51:09 +0530373 //
374 // Example:
375 //
khenaidoo106c61a2021-08-11 18:05:46 -0400376 // message GetIamPolicyRequest {
377 // string resource = 2 [(google.api.resource_reference) = {
378 // type: "*"
379 // }];
380 // }
381 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
382 // The resource type of a child collection that the annotated field
383 // references. This is useful for annotating the `parent` field that
384 // doesn't have a fixed resource type.
385 //
386 // Example:
387 //
388 // message ListLogEntriesRequest {
389 // string parent = 1 [(google.api.resource_reference) = {
390 // child_type: "logging.googleapis.com/LogEntry"
391 // };
392 // }
393 ChildType string `protobuf:"bytes,2,opt,name=child_type,json=childType,proto3" json:"child_type,omitempty"`
William Kurkianea869482019-04-09 15:16:11 -0400394}
395
khenaidoo106c61a2021-08-11 18:05:46 -0400396func (x *ResourceReference) Reset() {
397 *x = ResourceReference{}
398 if protoimpl.UnsafeEnabled {
399 mi := &file_google_api_resource_proto_msgTypes[1]
400 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
401 ms.StoreMessageInfo(mi)
402 }
403}
404
405func (x *ResourceReference) String() string {
406 return protoimpl.X.MessageStringOf(x)
407}
408
409func (*ResourceReference) ProtoMessage() {}
410
411func (x *ResourceReference) ProtoReflect() protoreflect.Message {
412 mi := &file_google_api_resource_proto_msgTypes[1]
413 if protoimpl.UnsafeEnabled && x != nil {
414 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
415 if ms.LoadMessageInfo() == nil {
416 ms.StoreMessageInfo(mi)
417 }
418 return ms
419 }
420 return mi.MessageOf(x)
421}
422
423// Deprecated: Use ResourceReference.ProtoReflect.Descriptor instead.
Abhilash S.L3b494632019-07-16 15:51:09 +0530424func (*ResourceReference) Descriptor() ([]byte, []int) {
khenaidoo106c61a2021-08-11 18:05:46 -0400425 return file_google_api_resource_proto_rawDescGZIP(), []int{1}
William Kurkianea869482019-04-09 15:16:11 -0400426}
427
khenaidoo106c61a2021-08-11 18:05:46 -0400428func (x *ResourceReference) GetType() string {
429 if x != nil {
430 return x.Type
William Kurkianea869482019-04-09 15:16:11 -0400431 }
432 return ""
433}
434
khenaidoo106c61a2021-08-11 18:05:46 -0400435func (x *ResourceReference) GetChildType() string {
436 if x != nil {
437 return x.ChildType
William Kurkianea869482019-04-09 15:16:11 -0400438 }
439 return ""
440}
441
khenaidoo106c61a2021-08-11 18:05:46 -0400442var file_google_api_resource_proto_extTypes = []protoimpl.ExtensionInfo{
443 {
444 ExtendedType: (*descriptorpb.FieldOptions)(nil),
445 ExtensionType: (*ResourceReference)(nil),
446 Field: 1055,
447 Name: "google.api.resource_reference",
448 Tag: "bytes,1055,opt,name=resource_reference",
449 Filename: "google/api/resource.proto",
450 },
451 {
452 ExtendedType: (*descriptorpb.FileOptions)(nil),
453 ExtensionType: ([]*ResourceDescriptor)(nil),
454 Field: 1053,
455 Name: "google.api.resource_definition",
456 Tag: "bytes,1053,rep,name=resource_definition",
457 Filename: "google/api/resource.proto",
458 },
459 {
460 ExtendedType: (*descriptorpb.MessageOptions)(nil),
461 ExtensionType: (*ResourceDescriptor)(nil),
462 Field: 1053,
463 Name: "google.api.resource",
464 Tag: "bytes,1053,opt,name=resource",
465 Filename: "google/api/resource.proto",
466 },
Abhilash S.L3b494632019-07-16 15:51:09 +0530467}
468
khenaidoo106c61a2021-08-11 18:05:46 -0400469// Extension fields to descriptorpb.FieldOptions.
470var (
471 // An annotation that describes a resource reference, see
472 // [ResourceReference][].
473 //
474 // optional google.api.ResourceReference resource_reference = 1055;
475 E_ResourceReference = &file_google_api_resource_proto_extTypes[0]
476)
477
478// Extension fields to descriptorpb.FileOptions.
479var (
480 // An annotation that describes a resource definition without a corresponding
481 // message; see [ResourceDescriptor][].
482 //
483 // repeated google.api.ResourceDescriptor resource_definition = 1053;
484 E_ResourceDefinition = &file_google_api_resource_proto_extTypes[1]
485)
486
487// Extension fields to descriptorpb.MessageOptions.
488var (
489 // An annotation that describes a resource definition, see
490 // [ResourceDescriptor][].
491 //
492 // optional google.api.ResourceDescriptor resource = 1053;
493 E_Resource = &file_google_api_resource_proto_extTypes[2]
494)
495
496var File_google_api_resource_proto protoreflect.FileDescriptor
497
498var file_google_api_resource_proto_rawDesc = []byte{
499 0x0a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73,
500 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f,
501 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
502 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
503 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaa, 0x03, 0x0a, 0x12, 0x52, 0x65,
504 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72,
505 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
506 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18,
507 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x1d,
508 0x0a, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01,
509 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x40, 0x0a,
510 0x07, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26,
511 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f,
512 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x48,
513 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x07, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12,
514 0x16, 0x0a, 0x06, 0x70, 0x6c, 0x75, 0x72, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
515 0x06, 0x70, 0x6c, 0x75, 0x72, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x69, 0x6e, 0x67, 0x75,
516 0x6c, 0x61, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x69, 0x6e, 0x67, 0x75,
517 0x6c, 0x61, 0x72, 0x12, 0x3a, 0x0a, 0x05, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x0a, 0x20, 0x03,
518 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e,
519 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
520 0x6f, 0x72, 0x2e, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x52, 0x05, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x22,
521 0x5b, 0x0a, 0x07, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x13, 0x48, 0x49,
522 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
523 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x52, 0x49, 0x47, 0x49, 0x4e, 0x41, 0x4c, 0x4c,
524 0x59, 0x5f, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x5f, 0x50, 0x41, 0x54, 0x54, 0x45, 0x52, 0x4e,
525 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x46, 0x55, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4d, 0x55, 0x4c,
526 0x54, 0x49, 0x5f, 0x50, 0x41, 0x54, 0x54, 0x45, 0x52, 0x4e, 0x10, 0x02, 0x22, 0x38, 0x0a, 0x05,
527 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x59, 0x4c, 0x45, 0x5f, 0x55,
528 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14,
529 0x44, 0x45, 0x43, 0x4c, 0x41, 0x52, 0x41, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x46, 0x52, 0x49, 0x45,
530 0x4e, 0x44, 0x4c, 0x59, 0x10, 0x01, 0x22, 0x46, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
531 0x63, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74,
532 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
533 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20,
534 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x6c,
535 0x0a, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72,
536 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
537 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69,
538 0x6f, 0x6e, 0x73, 0x18, 0x9f, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f,
539 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
540 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x75,
541 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x3a, 0x6e, 0x0a, 0x13,
542 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74,
543 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
544 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
545 0x73, 0x18, 0x9d, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
546 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65,
547 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
548 0x63, 0x65, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x5c, 0x0a, 0x08,
549 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
550 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61,
551 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x9d, 0x08, 0x20, 0x01, 0x28, 0x0b,
552 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65,
553 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72,
554 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x6e, 0x0a, 0x0e, 0x63, 0x6f,
555 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x42, 0x0d, 0x52, 0x65,
556 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67,
557 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
558 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
559 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
560 0x69, 0x6f, 0x6e, 0x73, 0x3b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
561 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
562 0x6f, 0x33,
William Kurkianea869482019-04-09 15:16:11 -0400563}
564
khenaidoo106c61a2021-08-11 18:05:46 -0400565var (
566 file_google_api_resource_proto_rawDescOnce sync.Once
567 file_google_api_resource_proto_rawDescData = file_google_api_resource_proto_rawDesc
568)
569
570func file_google_api_resource_proto_rawDescGZIP() []byte {
571 file_google_api_resource_proto_rawDescOnce.Do(func() {
572 file_google_api_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_resource_proto_rawDescData)
573 })
574 return file_google_api_resource_proto_rawDescData
William Kurkianea869482019-04-09 15:16:11 -0400575}
576
khenaidoo106c61a2021-08-11 18:05:46 -0400577var file_google_api_resource_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
578var file_google_api_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
579var file_google_api_resource_proto_goTypes = []interface{}{
580 (ResourceDescriptor_History)(0), // 0: google.api.ResourceDescriptor.History
581 (ResourceDescriptor_Style)(0), // 1: google.api.ResourceDescriptor.Style
582 (*ResourceDescriptor)(nil), // 2: google.api.ResourceDescriptor
583 (*ResourceReference)(nil), // 3: google.api.ResourceReference
584 (*descriptorpb.FieldOptions)(nil), // 4: google.protobuf.FieldOptions
585 (*descriptorpb.FileOptions)(nil), // 5: google.protobuf.FileOptions
586 (*descriptorpb.MessageOptions)(nil), // 6: google.protobuf.MessageOptions
587}
588var file_google_api_resource_proto_depIdxs = []int32{
589 0, // 0: google.api.ResourceDescriptor.history:type_name -> google.api.ResourceDescriptor.History
590 1, // 1: google.api.ResourceDescriptor.style:type_name -> google.api.ResourceDescriptor.Style
591 4, // 2: google.api.resource_reference:extendee -> google.protobuf.FieldOptions
592 5, // 3: google.api.resource_definition:extendee -> google.protobuf.FileOptions
593 6, // 4: google.api.resource:extendee -> google.protobuf.MessageOptions
594 3, // 5: google.api.resource_reference:type_name -> google.api.ResourceReference
595 2, // 6: google.api.resource_definition:type_name -> google.api.ResourceDescriptor
596 2, // 7: google.api.resource:type_name -> google.api.ResourceDescriptor
597 8, // [8:8] is the sub-list for method output_type
598 8, // [8:8] is the sub-list for method input_type
599 5, // [5:8] is the sub-list for extension type_name
600 2, // [2:5] is the sub-list for extension extendee
601 0, // [0:2] is the sub-list for field type_name
602}
William Kurkianea869482019-04-09 15:16:11 -0400603
khenaidoo106c61a2021-08-11 18:05:46 -0400604func init() { file_google_api_resource_proto_init() }
605func file_google_api_resource_proto_init() {
606 if File_google_api_resource_proto != nil {
607 return
608 }
609 if !protoimpl.UnsafeEnabled {
610 file_google_api_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
611 switch v := v.(*ResourceDescriptor); i {
612 case 0:
613 return &v.state
614 case 1:
615 return &v.sizeCache
616 case 2:
617 return &v.unknownFields
618 default:
619 return nil
620 }
621 }
622 file_google_api_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
623 switch v := v.(*ResourceReference); i {
624 case 0:
625 return &v.state
626 case 1:
627 return &v.sizeCache
628 case 2:
629 return &v.unknownFields
630 default:
631 return nil
632 }
633 }
634 }
635 type x struct{}
636 out := protoimpl.TypeBuilder{
637 File: protoimpl.DescBuilder{
638 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
639 RawDescriptor: file_google_api_resource_proto_rawDesc,
640 NumEnums: 2,
641 NumMessages: 2,
642 NumExtensions: 3,
643 NumServices: 0,
644 },
645 GoTypes: file_google_api_resource_proto_goTypes,
646 DependencyIndexes: file_google_api_resource_proto_depIdxs,
647 EnumInfos: file_google_api_resource_proto_enumTypes,
648 MessageInfos: file_google_api_resource_proto_msgTypes,
649 ExtensionInfos: file_google_api_resource_proto_extTypes,
650 }.Build()
651 File_google_api_resource_proto = out.File
652 file_google_api_resource_proto_rawDesc = nil
653 file_google_api_resource_proto_goTypes = nil
654 file_google_api_resource_proto_depIdxs = nil
William Kurkianea869482019-04-09 15:16:11 -0400655}