backend.proto 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright 2016 Google Inc.
  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. syntax = "proto3";
  15. package google.api;
  16. option java_multiple_files = true;
  17. option java_outer_classname = "BackendProto";
  18. option java_package = "com.google.api";
  19. option objc_class_prefix = "GAPI";
  20. // `Backend` defines the backend configuration for a service.
  21. message Backend {
  22. // A list of API backend rules that apply to individual API methods.
  23. //
  24. // **NOTE:** All service configuration rules follow "last one wins" order.
  25. repeated BackendRule rules = 1;
  26. }
  27. // A backend rule provides configuration for an individual API element.
  28. message BackendRule {
  29. // Selects the methods to which this rule applies.
  30. //
  31. // Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
  32. string selector = 1;
  33. // The address of the API backend.
  34. string address = 2;
  35. // The number of seconds to wait for a response from a request. The
  36. // default depends on the deployment context.
  37. double deadline = 3;
  38. }