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