version.proto 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. // Copyright 2020 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.actions.sdk.v2;
  16. import "google/api/resource.proto";
  17. import "google/protobuf/timestamp.proto";
  18. option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "VersionProto";
  21. option java_package = "com.google.actions.sdk.v2";
  22. // Definition of version resource.
  23. message Version {
  24. option (google.api.resource) = {
  25. type: "actions.googleapis.com/Version"
  26. pattern: "projects/{project}/versions/{version}"
  27. };
  28. // Represents the current state of the version.
  29. message VersionState {
  30. // Enum indicating the states that a Version can take. This enum is not yet
  31. // frozen and values maybe added later.
  32. enum State {
  33. // Default value of State.
  34. STATE_UNSPECIFIED = 0;
  35. // The version creation is in progress.
  36. CREATION_IN_PROGRESS = 1;
  37. // The version creation failed.
  38. CREATION_FAILED = 2;
  39. // The version has been successfully created.
  40. CREATED = 3;
  41. // The version is under policy review (aka Approval).
  42. REVIEW_IN_PROGRESS = 4;
  43. // The version has been approved for policy review and can be deployed.
  44. APPROVED = 5;
  45. // The version has been conditionally approved but is pending final
  46. // review. It may be rolled back if final review is denied.
  47. CONDITIONALLY_APPROVED = 6;
  48. // The version has been denied for policy review.
  49. DENIED = 7;
  50. // The version is taken down as entire agent and all versions are taken
  51. // down.
  52. UNDER_TAKEDOWN = 8;
  53. // The version has been deleted.
  54. DELETED = 9;
  55. }
  56. // The current state of the version.
  57. State state = 1;
  58. // User-friendly message for the current state of the version.
  59. string message = 2;
  60. }
  61. // The unique identifier of the version in the following format.
  62. // `projects/{project}/versions/{version}`.
  63. string name = 1;
  64. // The current state of the version.
  65. VersionState version_state = 2;
  66. // Email of the user who created this version.
  67. string creator = 3;
  68. // Timestamp of the last change to this version.
  69. google.protobuf.Timestamp update_time = 4;
  70. }