resource.pb.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. // Copyright 2023 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. // Code generated by protoc-gen-go. DO NOT EDIT.
  15. // versions:
  16. // protoc-gen-go v1.26.0
  17. // protoc v3.21.9
  18. // source: google/api/resource.proto
  19. package annotations
  20. import (
  21. reflect "reflect"
  22. sync "sync"
  23. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  24. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  25. descriptorpb "google.golang.org/protobuf/types/descriptorpb"
  26. )
  27. const (
  28. // Verify that this generated code is sufficiently up-to-date.
  29. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  30. // Verify that runtime/protoimpl is sufficiently up-to-date.
  31. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  32. )
  33. // A description of the historical or future-looking state of the
  34. // resource pattern.
  35. type ResourceDescriptor_History int32
  36. const (
  37. // The "unset" value.
  38. ResourceDescriptor_HISTORY_UNSPECIFIED ResourceDescriptor_History = 0
  39. // The resource originally had one pattern and launched as such, and
  40. // additional patterns were added later.
  41. ResourceDescriptor_ORIGINALLY_SINGLE_PATTERN ResourceDescriptor_History = 1
  42. // The resource has one pattern, but the API owner expects to add more
  43. // later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
  44. // that from being necessary once there are multiple patterns.)
  45. ResourceDescriptor_FUTURE_MULTI_PATTERN ResourceDescriptor_History = 2
  46. )
  47. // Enum value maps for ResourceDescriptor_History.
  48. var (
  49. ResourceDescriptor_History_name = map[int32]string{
  50. 0: "HISTORY_UNSPECIFIED",
  51. 1: "ORIGINALLY_SINGLE_PATTERN",
  52. 2: "FUTURE_MULTI_PATTERN",
  53. }
  54. ResourceDescriptor_History_value = map[string]int32{
  55. "HISTORY_UNSPECIFIED": 0,
  56. "ORIGINALLY_SINGLE_PATTERN": 1,
  57. "FUTURE_MULTI_PATTERN": 2,
  58. }
  59. )
  60. func (x ResourceDescriptor_History) Enum() *ResourceDescriptor_History {
  61. p := new(ResourceDescriptor_History)
  62. *p = x
  63. return p
  64. }
  65. func (x ResourceDescriptor_History) String() string {
  66. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  67. }
  68. func (ResourceDescriptor_History) Descriptor() protoreflect.EnumDescriptor {
  69. return file_google_api_resource_proto_enumTypes[0].Descriptor()
  70. }
  71. func (ResourceDescriptor_History) Type() protoreflect.EnumType {
  72. return &file_google_api_resource_proto_enumTypes[0]
  73. }
  74. func (x ResourceDescriptor_History) Number() protoreflect.EnumNumber {
  75. return protoreflect.EnumNumber(x)
  76. }
  77. // Deprecated: Use ResourceDescriptor_History.Descriptor instead.
  78. func (ResourceDescriptor_History) EnumDescriptor() ([]byte, []int) {
  79. return file_google_api_resource_proto_rawDescGZIP(), []int{0, 0}
  80. }
  81. // A flag representing a specific style that a resource claims to conform to.
  82. type ResourceDescriptor_Style int32
  83. const (
  84. // The unspecified value. Do not use.
  85. ResourceDescriptor_STYLE_UNSPECIFIED ResourceDescriptor_Style = 0
  86. // This resource is intended to be "declarative-friendly".
  87. //
  88. // Declarative-friendly resources must be more strictly consistent, and
  89. // setting this to true communicates to tools that this resource should
  90. // adhere to declarative-friendly expectations.
  91. //
  92. // Note: This is used by the API linter (linter.aip.dev) to enable
  93. // additional checks.
  94. ResourceDescriptor_DECLARATIVE_FRIENDLY ResourceDescriptor_Style = 1
  95. )
  96. // Enum value maps for ResourceDescriptor_Style.
  97. var (
  98. ResourceDescriptor_Style_name = map[int32]string{
  99. 0: "STYLE_UNSPECIFIED",
  100. 1: "DECLARATIVE_FRIENDLY",
  101. }
  102. ResourceDescriptor_Style_value = map[string]int32{
  103. "STYLE_UNSPECIFIED": 0,
  104. "DECLARATIVE_FRIENDLY": 1,
  105. }
  106. )
  107. func (x ResourceDescriptor_Style) Enum() *ResourceDescriptor_Style {
  108. p := new(ResourceDescriptor_Style)
  109. *p = x
  110. return p
  111. }
  112. func (x ResourceDescriptor_Style) String() string {
  113. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  114. }
  115. func (ResourceDescriptor_Style) Descriptor() protoreflect.EnumDescriptor {
  116. return file_google_api_resource_proto_enumTypes[1].Descriptor()
  117. }
  118. func (ResourceDescriptor_Style) Type() protoreflect.EnumType {
  119. return &file_google_api_resource_proto_enumTypes[1]
  120. }
  121. func (x ResourceDescriptor_Style) Number() protoreflect.EnumNumber {
  122. return protoreflect.EnumNumber(x)
  123. }
  124. // Deprecated: Use ResourceDescriptor_Style.Descriptor instead.
  125. func (ResourceDescriptor_Style) EnumDescriptor() ([]byte, []int) {
  126. return file_google_api_resource_proto_rawDescGZIP(), []int{0, 1}
  127. }
  128. // A simple descriptor of a resource type.
  129. //
  130. // ResourceDescriptor annotates a resource message (either by means of a
  131. // protobuf annotation or use in the service config), and associates the
  132. // resource's schema, the resource type, and the pattern of the resource name.
  133. //
  134. // Example:
  135. //
  136. // message Topic {
  137. // // Indicates this message defines a resource schema.
  138. // // Declares the resource type in the format of {service}/{kind}.
  139. // // For Kubernetes resources, the format is {api group}/{kind}.
  140. // option (google.api.resource) = {
  141. // type: "pubsub.googleapis.com/Topic"
  142. // pattern: "projects/{project}/topics/{topic}"
  143. // };
  144. // }
  145. //
  146. // The ResourceDescriptor Yaml config will look like:
  147. //
  148. // resources:
  149. // - type: "pubsub.googleapis.com/Topic"
  150. // pattern: "projects/{project}/topics/{topic}"
  151. //
  152. // Sometimes, resources have multiple patterns, typically because they can
  153. // live under multiple parents.
  154. //
  155. // Example:
  156. //
  157. // message LogEntry {
  158. // option (google.api.resource) = {
  159. // type: "logging.googleapis.com/LogEntry"
  160. // pattern: "projects/{project}/logs/{log}"
  161. // pattern: "folders/{folder}/logs/{log}"
  162. // pattern: "organizations/{organization}/logs/{log}"
  163. // pattern: "billingAccounts/{billing_account}/logs/{log}"
  164. // };
  165. // }
  166. //
  167. // The ResourceDescriptor Yaml config will look like:
  168. //
  169. // resources:
  170. // - type: 'logging.googleapis.com/LogEntry'
  171. // pattern: "projects/{project}/logs/{log}"
  172. // pattern: "folders/{folder}/logs/{log}"
  173. // pattern: "organizations/{organization}/logs/{log}"
  174. // pattern: "billingAccounts/{billing_account}/logs/{log}"
  175. type ResourceDescriptor struct {
  176. state protoimpl.MessageState
  177. sizeCache protoimpl.SizeCache
  178. unknownFields protoimpl.UnknownFields
  179. // The resource type. It must be in the format of
  180. // {service_name}/{resource_type_kind}. The `resource_type_kind` must be
  181. // singular and must not include version numbers.
  182. //
  183. // Example: `storage.googleapis.com/Bucket`
  184. //
  185. // The value of the resource_type_kind must follow the regular expression
  186. // /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
  187. // should use PascalCase (UpperCamelCase). The maximum number of
  188. // characters allowed for the `resource_type_kind` is 100.
  189. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  190. // Optional. The relative resource name pattern associated with this resource
  191. // type. The DNS prefix of the full resource name shouldn't be specified here.
  192. //
  193. // The path pattern must follow the syntax, which aligns with HTTP binding
  194. // syntax:
  195. //
  196. // Template = Segment { "/" Segment } ;
  197. // Segment = LITERAL | Variable ;
  198. // Variable = "{" LITERAL "}" ;
  199. //
  200. // Examples:
  201. //
  202. // - "projects/{project}/topics/{topic}"
  203. // - "projects/{project}/knowledgeBases/{knowledge_base}"
  204. //
  205. // The components in braces correspond to the IDs for each resource in the
  206. // hierarchy. It is expected that, if multiple patterns are provided,
  207. // the same component name (e.g. "project") refers to IDs of the same
  208. // type of resource.
  209. Pattern []string `protobuf:"bytes,2,rep,name=pattern,proto3" json:"pattern,omitempty"`
  210. // Optional. The field on the resource that designates the resource name
  211. // field. If omitted, this is assumed to be "name".
  212. NameField string `protobuf:"bytes,3,opt,name=name_field,json=nameField,proto3" json:"name_field,omitempty"`
  213. // Optional. The historical or future-looking state of the resource pattern.
  214. //
  215. // Example:
  216. //
  217. // // The InspectTemplate message originally only supported resource
  218. // // names with organization, and project was added later.
  219. // message InspectTemplate {
  220. // option (google.api.resource) = {
  221. // type: "dlp.googleapis.com/InspectTemplate"
  222. // pattern:
  223. // "organizations/{organization}/inspectTemplates/{inspect_template}"
  224. // pattern: "projects/{project}/inspectTemplates/{inspect_template}"
  225. // history: ORIGINALLY_SINGLE_PATTERN
  226. // };
  227. // }
  228. History ResourceDescriptor_History `protobuf:"varint,4,opt,name=history,proto3,enum=google.api.ResourceDescriptor_History" json:"history,omitempty"`
  229. // The plural name used in the resource name and permission names, such as
  230. // 'projects' for the resource name of 'projects/{project}' and the permission
  231. // name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
  232. // concept of the `plural` field in k8s CRD spec
  233. // https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
  234. //
  235. // Note: The plural form is required even for singleton resources. See
  236. // https://aip.dev/156
  237. Plural string `protobuf:"bytes,5,opt,name=plural,proto3" json:"plural,omitempty"`
  238. // The same concept of the `singular` field in k8s CRD spec
  239. // https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
  240. // Such as "project" for the `resourcemanager.googleapis.com/Project` type.
  241. Singular string `protobuf:"bytes,6,opt,name=singular,proto3" json:"singular,omitempty"`
  242. // Style flag(s) for this resource.
  243. // These indicate that a resource is expected to conform to a given
  244. // style. See the specific style flags for additional information.
  245. Style []ResourceDescriptor_Style `protobuf:"varint,10,rep,packed,name=style,proto3,enum=google.api.ResourceDescriptor_Style" json:"style,omitempty"`
  246. }
  247. func (x *ResourceDescriptor) Reset() {
  248. *x = ResourceDescriptor{}
  249. if protoimpl.UnsafeEnabled {
  250. mi := &file_google_api_resource_proto_msgTypes[0]
  251. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  252. ms.StoreMessageInfo(mi)
  253. }
  254. }
  255. func (x *ResourceDescriptor) String() string {
  256. return protoimpl.X.MessageStringOf(x)
  257. }
  258. func (*ResourceDescriptor) ProtoMessage() {}
  259. func (x *ResourceDescriptor) ProtoReflect() protoreflect.Message {
  260. mi := &file_google_api_resource_proto_msgTypes[0]
  261. if protoimpl.UnsafeEnabled && x != nil {
  262. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  263. if ms.LoadMessageInfo() == nil {
  264. ms.StoreMessageInfo(mi)
  265. }
  266. return ms
  267. }
  268. return mi.MessageOf(x)
  269. }
  270. // Deprecated: Use ResourceDescriptor.ProtoReflect.Descriptor instead.
  271. func (*ResourceDescriptor) Descriptor() ([]byte, []int) {
  272. return file_google_api_resource_proto_rawDescGZIP(), []int{0}
  273. }
  274. func (x *ResourceDescriptor) GetType() string {
  275. if x != nil {
  276. return x.Type
  277. }
  278. return ""
  279. }
  280. func (x *ResourceDescriptor) GetPattern() []string {
  281. if x != nil {
  282. return x.Pattern
  283. }
  284. return nil
  285. }
  286. func (x *ResourceDescriptor) GetNameField() string {
  287. if x != nil {
  288. return x.NameField
  289. }
  290. return ""
  291. }
  292. func (x *ResourceDescriptor) GetHistory() ResourceDescriptor_History {
  293. if x != nil {
  294. return x.History
  295. }
  296. return ResourceDescriptor_HISTORY_UNSPECIFIED
  297. }
  298. func (x *ResourceDescriptor) GetPlural() string {
  299. if x != nil {
  300. return x.Plural
  301. }
  302. return ""
  303. }
  304. func (x *ResourceDescriptor) GetSingular() string {
  305. if x != nil {
  306. return x.Singular
  307. }
  308. return ""
  309. }
  310. func (x *ResourceDescriptor) GetStyle() []ResourceDescriptor_Style {
  311. if x != nil {
  312. return x.Style
  313. }
  314. return nil
  315. }
  316. // Defines a proto annotation that describes a string field that refers to
  317. // an API resource.
  318. type ResourceReference struct {
  319. state protoimpl.MessageState
  320. sizeCache protoimpl.SizeCache
  321. unknownFields protoimpl.UnknownFields
  322. // The resource type that the annotated field references.
  323. //
  324. // Example:
  325. //
  326. // message Subscription {
  327. // string topic = 2 [(google.api.resource_reference) = {
  328. // type: "pubsub.googleapis.com/Topic"
  329. // }];
  330. // }
  331. //
  332. // Occasionally, a field may reference an arbitrary resource. In this case,
  333. // APIs use the special value * in their resource reference.
  334. //
  335. // Example:
  336. //
  337. // message GetIamPolicyRequest {
  338. // string resource = 2 [(google.api.resource_reference) = {
  339. // type: "*"
  340. // }];
  341. // }
  342. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  343. // The resource type of a child collection that the annotated field
  344. // references. This is useful for annotating the `parent` field that
  345. // doesn't have a fixed resource type.
  346. //
  347. // Example:
  348. //
  349. // message ListLogEntriesRequest {
  350. // string parent = 1 [(google.api.resource_reference) = {
  351. // child_type: "logging.googleapis.com/LogEntry"
  352. // };
  353. // }
  354. ChildType string `protobuf:"bytes,2,opt,name=child_type,json=childType,proto3" json:"child_type,omitempty"`
  355. }
  356. func (x *ResourceReference) Reset() {
  357. *x = ResourceReference{}
  358. if protoimpl.UnsafeEnabled {
  359. mi := &file_google_api_resource_proto_msgTypes[1]
  360. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  361. ms.StoreMessageInfo(mi)
  362. }
  363. }
  364. func (x *ResourceReference) String() string {
  365. return protoimpl.X.MessageStringOf(x)
  366. }
  367. func (*ResourceReference) ProtoMessage() {}
  368. func (x *ResourceReference) ProtoReflect() protoreflect.Message {
  369. mi := &file_google_api_resource_proto_msgTypes[1]
  370. if protoimpl.UnsafeEnabled && x != nil {
  371. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  372. if ms.LoadMessageInfo() == nil {
  373. ms.StoreMessageInfo(mi)
  374. }
  375. return ms
  376. }
  377. return mi.MessageOf(x)
  378. }
  379. // Deprecated: Use ResourceReference.ProtoReflect.Descriptor instead.
  380. func (*ResourceReference) Descriptor() ([]byte, []int) {
  381. return file_google_api_resource_proto_rawDescGZIP(), []int{1}
  382. }
  383. func (x *ResourceReference) GetType() string {
  384. if x != nil {
  385. return x.Type
  386. }
  387. return ""
  388. }
  389. func (x *ResourceReference) GetChildType() string {
  390. if x != nil {
  391. return x.ChildType
  392. }
  393. return ""
  394. }
  395. var file_google_api_resource_proto_extTypes = []protoimpl.ExtensionInfo{
  396. {
  397. ExtendedType: (*descriptorpb.FieldOptions)(nil),
  398. ExtensionType: (*ResourceReference)(nil),
  399. Field: 1055,
  400. Name: "google.api.resource_reference",
  401. Tag: "bytes,1055,opt,name=resource_reference",
  402. Filename: "google/api/resource.proto",
  403. },
  404. {
  405. ExtendedType: (*descriptorpb.FileOptions)(nil),
  406. ExtensionType: ([]*ResourceDescriptor)(nil),
  407. Field: 1053,
  408. Name: "google.api.resource_definition",
  409. Tag: "bytes,1053,rep,name=resource_definition",
  410. Filename: "google/api/resource.proto",
  411. },
  412. {
  413. ExtendedType: (*descriptorpb.MessageOptions)(nil),
  414. ExtensionType: (*ResourceDescriptor)(nil),
  415. Field: 1053,
  416. Name: "google.api.resource",
  417. Tag: "bytes,1053,opt,name=resource",
  418. Filename: "google/api/resource.proto",
  419. },
  420. }
  421. // Extension fields to descriptorpb.FieldOptions.
  422. var (
  423. // An annotation that describes a resource reference, see
  424. // [ResourceReference][].
  425. //
  426. // optional google.api.ResourceReference resource_reference = 1055;
  427. E_ResourceReference = &file_google_api_resource_proto_extTypes[0]
  428. )
  429. // Extension fields to descriptorpb.FileOptions.
  430. var (
  431. // An annotation that describes a resource definition without a corresponding
  432. // message; see [ResourceDescriptor][].
  433. //
  434. // repeated google.api.ResourceDescriptor resource_definition = 1053;
  435. E_ResourceDefinition = &file_google_api_resource_proto_extTypes[1]
  436. )
  437. // Extension fields to descriptorpb.MessageOptions.
  438. var (
  439. // An annotation that describes a resource definition, see
  440. // [ResourceDescriptor][].
  441. //
  442. // optional google.api.ResourceDescriptor resource = 1053;
  443. E_Resource = &file_google_api_resource_proto_extTypes[2]
  444. )
  445. var File_google_api_resource_proto protoreflect.FileDescriptor
  446. var file_google_api_resource_proto_rawDesc = []byte{
  447. 0x0a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73,
  448. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f,
  449. 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
  450. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
  451. 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaa, 0x03, 0x0a, 0x12, 0x52, 0x65,
  452. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72,
  453. 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  454. 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18,
  455. 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x1d,
  456. 0x0a, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01,
  457. 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x40, 0x0a,
  458. 0x07, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26,
  459. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f,
  460. 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x48,
  461. 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x07, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12,
  462. 0x16, 0x0a, 0x06, 0x70, 0x6c, 0x75, 0x72, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
  463. 0x06, 0x70, 0x6c, 0x75, 0x72, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x69, 0x6e, 0x67, 0x75,
  464. 0x6c, 0x61, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x69, 0x6e, 0x67, 0x75,
  465. 0x6c, 0x61, 0x72, 0x12, 0x3a, 0x0a, 0x05, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x0a, 0x20, 0x03,
  466. 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  467. 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
  468. 0x6f, 0x72, 0x2e, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x52, 0x05, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x22,
  469. 0x5b, 0x0a, 0x07, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x17, 0x0a, 0x13, 0x48, 0x49,
  470. 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
  471. 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x4f, 0x52, 0x49, 0x47, 0x49, 0x4e, 0x41, 0x4c, 0x4c,
  472. 0x59, 0x5f, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x5f, 0x50, 0x41, 0x54, 0x54, 0x45, 0x52, 0x4e,
  473. 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x46, 0x55, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4d, 0x55, 0x4c,
  474. 0x54, 0x49, 0x5f, 0x50, 0x41, 0x54, 0x54, 0x45, 0x52, 0x4e, 0x10, 0x02, 0x22, 0x38, 0x0a, 0x05,
  475. 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x59, 0x4c, 0x45, 0x5f, 0x55,
  476. 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14,
  477. 0x44, 0x45, 0x43, 0x4c, 0x41, 0x52, 0x41, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x46, 0x52, 0x49, 0x45,
  478. 0x4e, 0x44, 0x4c, 0x59, 0x10, 0x01, 0x22, 0x46, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
  479. 0x63, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74,
  480. 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
  481. 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20,
  482. 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x6c,
  483. 0x0a, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72,
  484. 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
  485. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69,
  486. 0x6f, 0x6e, 0x73, 0x18, 0x9f, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f,
  487. 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
  488. 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x75,
  489. 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x3a, 0x6e, 0x0a, 0x13,
  490. 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74,
  491. 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  492. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  493. 0x73, 0x18, 0x9d, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  494. 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65,
  495. 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
  496. 0x63, 0x65, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x5c, 0x0a, 0x08,
  497. 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  498. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61,
  499. 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x9d, 0x08, 0x20, 0x01, 0x28, 0x0b,
  500. 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65,
  501. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72,
  502. 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x6e, 0x0a, 0x0e, 0x63, 0x6f,
  503. 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x42, 0x0d, 0x52, 0x65,
  504. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67,
  505. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
  506. 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  507. 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
  508. 0x69, 0x6f, 0x6e, 0x73, 0x3b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  509. 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  510. 0x6f, 0x33,
  511. }
  512. var (
  513. file_google_api_resource_proto_rawDescOnce sync.Once
  514. file_google_api_resource_proto_rawDescData = file_google_api_resource_proto_rawDesc
  515. )
  516. func file_google_api_resource_proto_rawDescGZIP() []byte {
  517. file_google_api_resource_proto_rawDescOnce.Do(func() {
  518. file_google_api_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_resource_proto_rawDescData)
  519. })
  520. return file_google_api_resource_proto_rawDescData
  521. }
  522. var file_google_api_resource_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  523. var file_google_api_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  524. var file_google_api_resource_proto_goTypes = []interface{}{
  525. (ResourceDescriptor_History)(0), // 0: google.api.ResourceDescriptor.History
  526. (ResourceDescriptor_Style)(0), // 1: google.api.ResourceDescriptor.Style
  527. (*ResourceDescriptor)(nil), // 2: google.api.ResourceDescriptor
  528. (*ResourceReference)(nil), // 3: google.api.ResourceReference
  529. (*descriptorpb.FieldOptions)(nil), // 4: google.protobuf.FieldOptions
  530. (*descriptorpb.FileOptions)(nil), // 5: google.protobuf.FileOptions
  531. (*descriptorpb.MessageOptions)(nil), // 6: google.protobuf.MessageOptions
  532. }
  533. var file_google_api_resource_proto_depIdxs = []int32{
  534. 0, // 0: google.api.ResourceDescriptor.history:type_name -> google.api.ResourceDescriptor.History
  535. 1, // 1: google.api.ResourceDescriptor.style:type_name -> google.api.ResourceDescriptor.Style
  536. 4, // 2: google.api.resource_reference:extendee -> google.protobuf.FieldOptions
  537. 5, // 3: google.api.resource_definition:extendee -> google.protobuf.FileOptions
  538. 6, // 4: google.api.resource:extendee -> google.protobuf.MessageOptions
  539. 3, // 5: google.api.resource_reference:type_name -> google.api.ResourceReference
  540. 2, // 6: google.api.resource_definition:type_name -> google.api.ResourceDescriptor
  541. 2, // 7: google.api.resource:type_name -> google.api.ResourceDescriptor
  542. 8, // [8:8] is the sub-list for method output_type
  543. 8, // [8:8] is the sub-list for method input_type
  544. 5, // [5:8] is the sub-list for extension type_name
  545. 2, // [2:5] is the sub-list for extension extendee
  546. 0, // [0:2] is the sub-list for field type_name
  547. }
  548. func init() { file_google_api_resource_proto_init() }
  549. func file_google_api_resource_proto_init() {
  550. if File_google_api_resource_proto != nil {
  551. return
  552. }
  553. if !protoimpl.UnsafeEnabled {
  554. file_google_api_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  555. switch v := v.(*ResourceDescriptor); i {
  556. case 0:
  557. return &v.state
  558. case 1:
  559. return &v.sizeCache
  560. case 2:
  561. return &v.unknownFields
  562. default:
  563. return nil
  564. }
  565. }
  566. file_google_api_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  567. switch v := v.(*ResourceReference); i {
  568. case 0:
  569. return &v.state
  570. case 1:
  571. return &v.sizeCache
  572. case 2:
  573. return &v.unknownFields
  574. default:
  575. return nil
  576. }
  577. }
  578. }
  579. type x struct{}
  580. out := protoimpl.TypeBuilder{
  581. File: protoimpl.DescBuilder{
  582. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  583. RawDescriptor: file_google_api_resource_proto_rawDesc,
  584. NumEnums: 2,
  585. NumMessages: 2,
  586. NumExtensions: 3,
  587. NumServices: 0,
  588. },
  589. GoTypes: file_google_api_resource_proto_goTypes,
  590. DependencyIndexes: file_google_api_resource_proto_depIdxs,
  591. EnumInfos: file_google_api_resource_proto_enumTypes,
  592. MessageInfos: file_google_api_resource_proto_msgTypes,
  593. ExtensionInfos: file_google_api_resource_proto_extTypes,
  594. }.Build()
  595. File_google_api_resource_proto = out.File
  596. file_google_api_resource_proto_rawDesc = nil
  597. file_google_api_resource_proto_goTypes = nil
  598. file_google_api_resource_proto_depIdxs = nil
  599. }