routing.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  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/routing.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. // Specifies the routing information that should be sent along with the request
  34. // in the form of routing header.
  35. // **NOTE:** All service configuration rules follow the "last one wins" order.
  36. //
  37. // The examples below will apply to an RPC which has the following request type:
  38. //
  39. // Message Definition:
  40. //
  41. // message Request {
  42. // // The name of the Table
  43. // // Values can be of the following formats:
  44. // // - `projects/<project>/tables/<table>`
  45. // // - `projects/<project>/instances/<instance>/tables/<table>`
  46. // // - `region/<region>/zones/<zone>/tables/<table>`
  47. // string table_name = 1;
  48. //
  49. // // This value specifies routing for replication.
  50. // // It can be in the following formats:
  51. // // - `profiles/<profile_id>`
  52. // // - a legacy `profile_id` that can be any string
  53. // string app_profile_id = 2;
  54. // }
  55. //
  56. // Example message:
  57. //
  58. // {
  59. // table_name: projects/proj_foo/instances/instance_bar/table/table_baz,
  60. // app_profile_id: profiles/prof_qux
  61. // }
  62. //
  63. // The routing header consists of one or multiple key-value pairs. Every key
  64. // and value must be percent-encoded, and joined together in the format of
  65. // `key1=value1&key2=value2`.
  66. // In the examples below I am skipping the percent-encoding for readablity.
  67. //
  68. // # Example 1
  69. //
  70. // Extracting a field from the request to put into the routing header
  71. // unchanged, with the key equal to the field name.
  72. //
  73. // annotation:
  74. //
  75. // option (google.api.routing) = {
  76. // // Take the `app_profile_id`.
  77. // routing_parameters {
  78. // field: "app_profile_id"
  79. // }
  80. // };
  81. //
  82. // result:
  83. //
  84. // x-goog-request-params: app_profile_id=profiles/prof_qux
  85. //
  86. // # Example 2
  87. //
  88. // Extracting a field from the request to put into the routing header
  89. // unchanged, with the key different from the field name.
  90. //
  91. // annotation:
  92. //
  93. // option (google.api.routing) = {
  94. // // Take the `app_profile_id`, but name it `routing_id` in the header.
  95. // routing_parameters {
  96. // field: "app_profile_id"
  97. // path_template: "{routing_id=**}"
  98. // }
  99. // };
  100. //
  101. // result:
  102. //
  103. // x-goog-request-params: routing_id=profiles/prof_qux
  104. //
  105. // # Example 3
  106. //
  107. // Extracting a field from the request to put into the routing
  108. // header, while matching a path template syntax on the field's value.
  109. //
  110. // NB: it is more useful to send nothing than to send garbage for the purpose
  111. // of dynamic routing, since garbage pollutes cache. Thus the matching.
  112. //
  113. // # Sub-example 3a
  114. //
  115. // The field matches the template.
  116. //
  117. // annotation:
  118. //
  119. // option (google.api.routing) = {
  120. // // Take the `table_name`, if it's well-formed (with project-based
  121. // // syntax).
  122. // routing_parameters {
  123. // field: "table_name"
  124. // path_template: "{table_name=projects/*/instances/*/**}"
  125. // }
  126. // };
  127. //
  128. // result:
  129. //
  130. // x-goog-request-params:
  131. // table_name=projects/proj_foo/instances/instance_bar/table/table_baz
  132. //
  133. // # Sub-example 3b
  134. //
  135. // The field does not match the template.
  136. //
  137. // annotation:
  138. //
  139. // option (google.api.routing) = {
  140. // // Take the `table_name`, if it's well-formed (with region-based
  141. // // syntax).
  142. // routing_parameters {
  143. // field: "table_name"
  144. // path_template: "{table_name=regions/*/zones/*/**}"
  145. // }
  146. // };
  147. //
  148. // result:
  149. //
  150. // <no routing header will be sent>
  151. //
  152. // # Sub-example 3c
  153. //
  154. // Multiple alternative conflictingly named path templates are
  155. // specified. The one that matches is used to construct the header.
  156. //
  157. // annotation:
  158. //
  159. // option (google.api.routing) = {
  160. // // Take the `table_name`, if it's well-formed, whether
  161. // // using the region- or projects-based syntax.
  162. //
  163. // routing_parameters {
  164. // field: "table_name"
  165. // path_template: "{table_name=regions/*/zones/*/**}"
  166. // }
  167. // routing_parameters {
  168. // field: "table_name"
  169. // path_template: "{table_name=projects/*/instances/*/**}"
  170. // }
  171. // };
  172. //
  173. // result:
  174. //
  175. // x-goog-request-params:
  176. // table_name=projects/proj_foo/instances/instance_bar/table/table_baz
  177. //
  178. // # Example 4
  179. //
  180. // Extracting a single routing header key-value pair by matching a
  181. // template syntax on (a part of) a single request field.
  182. //
  183. // annotation:
  184. //
  185. // option (google.api.routing) = {
  186. // // Take just the project id from the `table_name` field.
  187. // routing_parameters {
  188. // field: "table_name"
  189. // path_template: "{routing_id=projects/*}/**"
  190. // }
  191. // };
  192. //
  193. // result:
  194. //
  195. // x-goog-request-params: routing_id=projects/proj_foo
  196. //
  197. // # Example 5
  198. //
  199. // Extracting a single routing header key-value pair by matching
  200. // several conflictingly named path templates on (parts of) a single request
  201. // field. The last template to match "wins" the conflict.
  202. //
  203. // annotation:
  204. //
  205. // option (google.api.routing) = {
  206. // // If the `table_name` does not have instances information,
  207. // // take just the project id for routing.
  208. // // Otherwise take project + instance.
  209. //
  210. // routing_parameters {
  211. // field: "table_name"
  212. // path_template: "{routing_id=projects/*}/**"
  213. // }
  214. // routing_parameters {
  215. // field: "table_name"
  216. // path_template: "{routing_id=projects/*/instances/*}/**"
  217. // }
  218. // };
  219. //
  220. // result:
  221. //
  222. // x-goog-request-params:
  223. // routing_id=projects/proj_foo/instances/instance_bar
  224. //
  225. // # Example 6
  226. //
  227. // Extracting multiple routing header key-value pairs by matching
  228. // several non-conflicting path templates on (parts of) a single request field.
  229. //
  230. // # Sub-example 6a
  231. //
  232. // Make the templates strict, so that if the `table_name` does not
  233. // have an instance information, nothing is sent.
  234. //
  235. // annotation:
  236. //
  237. // option (google.api.routing) = {
  238. // // The routing code needs two keys instead of one composite
  239. // // but works only for the tables with the "project-instance" name
  240. // // syntax.
  241. //
  242. // routing_parameters {
  243. // field: "table_name"
  244. // path_template: "{project_id=projects/*}/instances/*/**"
  245. // }
  246. // routing_parameters {
  247. // field: "table_name"
  248. // path_template: "projects/*/{instance_id=instances/*}/**"
  249. // }
  250. // };
  251. //
  252. // result:
  253. //
  254. // x-goog-request-params:
  255. // project_id=projects/proj_foo&instance_id=instances/instance_bar
  256. //
  257. // # Sub-example 6b
  258. //
  259. // Make the templates loose, so that if the `table_name` does not
  260. // have an instance information, just the project id part is sent.
  261. //
  262. // annotation:
  263. //
  264. // option (google.api.routing) = {
  265. // // The routing code wants two keys instead of one composite
  266. // // but will work with just the `project_id` for tables without
  267. // // an instance in the `table_name`.
  268. //
  269. // routing_parameters {
  270. // field: "table_name"
  271. // path_template: "{project_id=projects/*}/**"
  272. // }
  273. // routing_parameters {
  274. // field: "table_name"
  275. // path_template: "projects/*/{instance_id=instances/*}/**"
  276. // }
  277. // };
  278. //
  279. // result (is the same as 6a for our example message because it has the instance
  280. // information):
  281. //
  282. // x-goog-request-params:
  283. // project_id=projects/proj_foo&instance_id=instances/instance_bar
  284. //
  285. // # Example 7
  286. //
  287. // Extracting multiple routing header key-value pairs by matching
  288. // several path templates on multiple request fields.
  289. //
  290. // NB: note that here there is no way to specify sending nothing if one of the
  291. // fields does not match its template. E.g. if the `table_name` is in the wrong
  292. // format, the `project_id` will not be sent, but the `routing_id` will be.
  293. // The backend routing code has to be aware of that and be prepared to not
  294. // receive a full complement of keys if it expects multiple.
  295. //
  296. // annotation:
  297. //
  298. // option (google.api.routing) = {
  299. // // The routing needs both `project_id` and `routing_id`
  300. // // (from the `app_profile_id` field) for routing.
  301. //
  302. // routing_parameters {
  303. // field: "table_name"
  304. // path_template: "{project_id=projects/*}/**"
  305. // }
  306. // routing_parameters {
  307. // field: "app_profile_id"
  308. // path_template: "{routing_id=**}"
  309. // }
  310. // };
  311. //
  312. // result:
  313. //
  314. // x-goog-request-params:
  315. // project_id=projects/proj_foo&routing_id=profiles/prof_qux
  316. //
  317. // # Example 8
  318. //
  319. // Extracting a single routing header key-value pair by matching
  320. // several conflictingly named path templates on several request fields. The
  321. // last template to match "wins" the conflict.
  322. //
  323. // annotation:
  324. //
  325. // option (google.api.routing) = {
  326. // // The `routing_id` can be a project id or a region id depending on
  327. // // the table name format, but only if the `app_profile_id` is not set.
  328. // // If `app_profile_id` is set it should be used instead.
  329. //
  330. // routing_parameters {
  331. // field: "table_name"
  332. // path_template: "{routing_id=projects/*}/**"
  333. // }
  334. // routing_parameters {
  335. // field: "table_name"
  336. // path_template: "{routing_id=regions/*}/**"
  337. // }
  338. // routing_parameters {
  339. // field: "app_profile_id"
  340. // path_template: "{routing_id=**}"
  341. // }
  342. // };
  343. //
  344. // result:
  345. //
  346. // x-goog-request-params: routing_id=profiles/prof_qux
  347. //
  348. // # Example 9
  349. //
  350. // Bringing it all together.
  351. //
  352. // annotation:
  353. //
  354. // option (google.api.routing) = {
  355. // // For routing both `table_location` and a `routing_id` are needed.
  356. // //
  357. // // table_location can be either an instance id or a region+zone id.
  358. // //
  359. // // For `routing_id`, take the value of `app_profile_id`
  360. // // - If it's in the format `profiles/<profile_id>`, send
  361. // // just the `<profile_id>` part.
  362. // // - If it's any other literal, send it as is.
  363. // // If the `app_profile_id` is empty, and the `table_name` starts with
  364. // // the project_id, send that instead.
  365. //
  366. // routing_parameters {
  367. // field: "table_name"
  368. // path_template: "projects/*/{table_location=instances/*}/tables/*"
  369. // }
  370. // routing_parameters {
  371. // field: "table_name"
  372. // path_template: "{table_location=regions/*/zones/*}/tables/*"
  373. // }
  374. // routing_parameters {
  375. // field: "table_name"
  376. // path_template: "{routing_id=projects/*}/**"
  377. // }
  378. // routing_parameters {
  379. // field: "app_profile_id"
  380. // path_template: "{routing_id=**}"
  381. // }
  382. // routing_parameters {
  383. // field: "app_profile_id"
  384. // path_template: "profiles/{routing_id=*}"
  385. // }
  386. // };
  387. //
  388. // result:
  389. //
  390. // x-goog-request-params:
  391. // table_location=instances/instance_bar&routing_id=prof_qux
  392. type RoutingRule struct {
  393. state protoimpl.MessageState
  394. sizeCache protoimpl.SizeCache
  395. unknownFields protoimpl.UnknownFields
  396. // A collection of Routing Parameter specifications.
  397. // **NOTE:** If multiple Routing Parameters describe the same key
  398. // (via the `path_template` field or via the `field` field when
  399. // `path_template` is not provided), "last one wins" rule
  400. // determines which Parameter gets used.
  401. // See the examples for more details.
  402. RoutingParameters []*RoutingParameter `protobuf:"bytes,2,rep,name=routing_parameters,json=routingParameters,proto3" json:"routing_parameters,omitempty"`
  403. }
  404. func (x *RoutingRule) Reset() {
  405. *x = RoutingRule{}
  406. if protoimpl.UnsafeEnabled {
  407. mi := &file_google_api_routing_proto_msgTypes[0]
  408. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  409. ms.StoreMessageInfo(mi)
  410. }
  411. }
  412. func (x *RoutingRule) String() string {
  413. return protoimpl.X.MessageStringOf(x)
  414. }
  415. func (*RoutingRule) ProtoMessage() {}
  416. func (x *RoutingRule) ProtoReflect() protoreflect.Message {
  417. mi := &file_google_api_routing_proto_msgTypes[0]
  418. if protoimpl.UnsafeEnabled && x != nil {
  419. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  420. if ms.LoadMessageInfo() == nil {
  421. ms.StoreMessageInfo(mi)
  422. }
  423. return ms
  424. }
  425. return mi.MessageOf(x)
  426. }
  427. // Deprecated: Use RoutingRule.ProtoReflect.Descriptor instead.
  428. func (*RoutingRule) Descriptor() ([]byte, []int) {
  429. return file_google_api_routing_proto_rawDescGZIP(), []int{0}
  430. }
  431. func (x *RoutingRule) GetRoutingParameters() []*RoutingParameter {
  432. if x != nil {
  433. return x.RoutingParameters
  434. }
  435. return nil
  436. }
  437. // A projection from an input message to the GRPC or REST header.
  438. type RoutingParameter struct {
  439. state protoimpl.MessageState
  440. sizeCache protoimpl.SizeCache
  441. unknownFields protoimpl.UnknownFields
  442. // A request field to extract the header key-value pair from.
  443. Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
  444. // A pattern matching the key-value field. Optional.
  445. // If not specified, the whole field specified in the `field` field will be
  446. // taken as value, and its name used as key. If specified, it MUST contain
  447. // exactly one named segment (along with any number of unnamed segments) The
  448. // pattern will be matched over the field specified in the `field` field, then
  449. // if the match is successful:
  450. // - the name of the single named segment will be used as a header name,
  451. // - the match value of the segment will be used as a header value;
  452. // if the match is NOT successful, nothing will be sent.
  453. //
  454. // Example:
  455. //
  456. // -- This is a field in the request message
  457. // | that the header value will be extracted from.
  458. // |
  459. // | -- This is the key name in the
  460. // | | routing header.
  461. // V |
  462. // field: "table_name" v
  463. // path_template: "projects/*/{table_location=instances/*}/tables/*"
  464. // ^ ^
  465. // | |
  466. // In the {} brackets is the pattern that -- |
  467. // specifies what to extract from the |
  468. // field as a value to be sent. |
  469. // |
  470. // The string in the field must match the whole pattern --
  471. // before brackets, inside brackets, after brackets.
  472. //
  473. // When looking at this specific example, we can see that:
  474. // - A key-value pair with the key `table_location`
  475. // and the value matching `instances/*` should be added
  476. // to the x-goog-request-params routing header.
  477. // - The value is extracted from the request message's `table_name` field
  478. // if it matches the full pattern specified:
  479. // `projects/*/instances/*/tables/*`.
  480. //
  481. // **NB:** If the `path_template` field is not provided, the key name is
  482. // equal to the field name, and the whole field should be sent as a value.
  483. // This makes the pattern for the field and the value functionally equivalent
  484. // to `**`, and the configuration
  485. //
  486. // {
  487. // field: "table_name"
  488. // }
  489. //
  490. // is a functionally equivalent shorthand to:
  491. //
  492. // {
  493. // field: "table_name"
  494. // path_template: "{table_name=**}"
  495. // }
  496. //
  497. // See Example 1 for more details.
  498. PathTemplate string `protobuf:"bytes,2,opt,name=path_template,json=pathTemplate,proto3" json:"path_template,omitempty"`
  499. }
  500. func (x *RoutingParameter) Reset() {
  501. *x = RoutingParameter{}
  502. if protoimpl.UnsafeEnabled {
  503. mi := &file_google_api_routing_proto_msgTypes[1]
  504. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  505. ms.StoreMessageInfo(mi)
  506. }
  507. }
  508. func (x *RoutingParameter) String() string {
  509. return protoimpl.X.MessageStringOf(x)
  510. }
  511. func (*RoutingParameter) ProtoMessage() {}
  512. func (x *RoutingParameter) ProtoReflect() protoreflect.Message {
  513. mi := &file_google_api_routing_proto_msgTypes[1]
  514. if protoimpl.UnsafeEnabled && x != nil {
  515. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  516. if ms.LoadMessageInfo() == nil {
  517. ms.StoreMessageInfo(mi)
  518. }
  519. return ms
  520. }
  521. return mi.MessageOf(x)
  522. }
  523. // Deprecated: Use RoutingParameter.ProtoReflect.Descriptor instead.
  524. func (*RoutingParameter) Descriptor() ([]byte, []int) {
  525. return file_google_api_routing_proto_rawDescGZIP(), []int{1}
  526. }
  527. func (x *RoutingParameter) GetField() string {
  528. if x != nil {
  529. return x.Field
  530. }
  531. return ""
  532. }
  533. func (x *RoutingParameter) GetPathTemplate() string {
  534. if x != nil {
  535. return x.PathTemplate
  536. }
  537. return ""
  538. }
  539. var file_google_api_routing_proto_extTypes = []protoimpl.ExtensionInfo{
  540. {
  541. ExtendedType: (*descriptorpb.MethodOptions)(nil),
  542. ExtensionType: (*RoutingRule)(nil),
  543. Field: 72295729,
  544. Name: "google.api.routing",
  545. Tag: "bytes,72295729,opt,name=routing",
  546. Filename: "google/api/routing.proto",
  547. },
  548. }
  549. // Extension fields to descriptorpb.MethodOptions.
  550. var (
  551. // See RoutingRule.
  552. //
  553. // optional google.api.RoutingRule routing = 72295729;
  554. E_Routing = &file_google_api_routing_proto_extTypes[0]
  555. )
  556. var File_google_api_routing_proto protoreflect.FileDescriptor
  557. var file_google_api_routing_proto_rawDesc = []byte{
  558. 0x0a, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x6f, 0x75,
  559. 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67,
  560. 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
  561. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
  562. 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5a, 0x0a, 0x0b, 0x52, 0x6f, 0x75, 0x74,
  563. 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x4b, 0x0a, 0x12, 0x72, 0x6f, 0x75, 0x74, 0x69,
  564. 0x6e, 0x67, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20,
  565. 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69,
  566. 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65,
  567. 0x72, 0x52, 0x11, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65,
  568. 0x74, 0x65, 0x72, 0x73, 0x22, 0x4d, 0x0a, 0x10, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x50,
  569. 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c,
  570. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x23,
  571. 0x0a, 0x0d, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18,
  572. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x61, 0x74, 0x68, 0x54, 0x65, 0x6d, 0x70, 0x6c,
  573. 0x61, 0x74, 0x65, 0x3a, 0x54, 0x0a, 0x07, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1e,
  574. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  575. 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xb1,
  576. 0xca, 0xbc, 0x22, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  577. 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65,
  578. 0x52, 0x07, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x6a, 0x0a, 0x0e, 0x63, 0x6f, 0x6d,
  579. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x42, 0x0c, 0x52, 0x6f, 0x75,
  580. 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, 0x6f, 0x6f,
  581. 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67,
  582. 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
  583. 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
  584. 0x6e, 0x73, 0x3b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0xa2, 0x02,
  585. 0x04, 0x47, 0x41, 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  586. }
  587. var (
  588. file_google_api_routing_proto_rawDescOnce sync.Once
  589. file_google_api_routing_proto_rawDescData = file_google_api_routing_proto_rawDesc
  590. )
  591. func file_google_api_routing_proto_rawDescGZIP() []byte {
  592. file_google_api_routing_proto_rawDescOnce.Do(func() {
  593. file_google_api_routing_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_routing_proto_rawDescData)
  594. })
  595. return file_google_api_routing_proto_rawDescData
  596. }
  597. var file_google_api_routing_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  598. var file_google_api_routing_proto_goTypes = []interface{}{
  599. (*RoutingRule)(nil), // 0: google.api.RoutingRule
  600. (*RoutingParameter)(nil), // 1: google.api.RoutingParameter
  601. (*descriptorpb.MethodOptions)(nil), // 2: google.protobuf.MethodOptions
  602. }
  603. var file_google_api_routing_proto_depIdxs = []int32{
  604. 1, // 0: google.api.RoutingRule.routing_parameters:type_name -> google.api.RoutingParameter
  605. 2, // 1: google.api.routing:extendee -> google.protobuf.MethodOptions
  606. 0, // 2: google.api.routing:type_name -> google.api.RoutingRule
  607. 3, // [3:3] is the sub-list for method output_type
  608. 3, // [3:3] is the sub-list for method input_type
  609. 2, // [2:3] is the sub-list for extension type_name
  610. 1, // [1:2] is the sub-list for extension extendee
  611. 0, // [0:1] is the sub-list for field type_name
  612. }
  613. func init() { file_google_api_routing_proto_init() }
  614. func file_google_api_routing_proto_init() {
  615. if File_google_api_routing_proto != nil {
  616. return
  617. }
  618. if !protoimpl.UnsafeEnabled {
  619. file_google_api_routing_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  620. switch v := v.(*RoutingRule); i {
  621. case 0:
  622. return &v.state
  623. case 1:
  624. return &v.sizeCache
  625. case 2:
  626. return &v.unknownFields
  627. default:
  628. return nil
  629. }
  630. }
  631. file_google_api_routing_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  632. switch v := v.(*RoutingParameter); i {
  633. case 0:
  634. return &v.state
  635. case 1:
  636. return &v.sizeCache
  637. case 2:
  638. return &v.unknownFields
  639. default:
  640. return nil
  641. }
  642. }
  643. }
  644. type x struct{}
  645. out := protoimpl.TypeBuilder{
  646. File: protoimpl.DescBuilder{
  647. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  648. RawDescriptor: file_google_api_routing_proto_rawDesc,
  649. NumEnums: 0,
  650. NumMessages: 2,
  651. NumExtensions: 1,
  652. NumServices: 0,
  653. },
  654. GoTypes: file_google_api_routing_proto_goTypes,
  655. DependencyIndexes: file_google_api_routing_proto_depIdxs,
  656. MessageInfos: file_google_api_routing_proto_msgTypes,
  657. ExtensionInfos: file_google_api_routing_proto_extTypes,
  658. }.Build()
  659. File_google_api_routing_proto = out.File
  660. file_google_api_routing_proto_rawDesc = nil
  661. file_google_api_routing_proto_goTypes = nil
  662. file_google_api_routing_proto_depIdxs = nil
  663. }