configuration.proto 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. syntax = "proto3";
  15. package google.devtools.resultstore.v2;
  16. import "google/api/resource.proto";
  17. import "google/devtools/resultstore/v2/common.proto";
  18. option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "ConfigurationProto";
  21. option java_package = "com.google.devtools.resultstore.v2";
  22. // Represents a configuration within an Invocation associated with one or more
  23. // ConfiguredTargets. It captures the environment and other settings that
  24. // were used.
  25. message Configuration {
  26. option (google.api.resource) = {
  27. type: "resultstore.googleapis.com/Configuration"
  28. pattern: "invocations/{invocation}/configs/{config}"
  29. };
  30. // The resource ID components that identify the Configuration.
  31. message Id {
  32. // The Invocation ID.
  33. string invocation_id = 1;
  34. // The Configuration ID.
  35. string configuration_id = 2;
  36. }
  37. // The format of this Configuration resource name must be:
  38. // invocations/${INVOCATION_ID}/configs/${url_encode(CONFIG_ID)}
  39. // The configuration ID of "default" should be preferred for the default
  40. // configuration in a single-config invocation.
  41. string name = 1;
  42. // The resource ID components that identify the Configuration. They must match
  43. // the resource name after proper encoding.
  44. Id id = 2;
  45. // The aggregate status for this configuration.
  46. StatusAttributes status_attributes = 3;
  47. // Attributes that apply only to this configuration.
  48. ConfigurationAttributes configuration_attributes = 5;
  49. // Arbitrary name-value pairs.
  50. // This is implemented as a multi-map. Multiple properties are allowed with
  51. // the same key. Properties will be returned in lexicographical order by key.
  52. repeated Property properties = 6;
  53. // A human-readable name for Configuration for UIs.
  54. // It is recommended that this name be unique.
  55. // If omitted, UIs should default to configuration_id.
  56. string display_name = 8;
  57. }
  58. // Attributes that apply only to the configuration.
  59. message ConfigurationAttributes {
  60. // The type of cpu. (e.g. "x86", "powerpc")
  61. string cpu = 1;
  62. }