changelog.proto 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. // Copyright 2022 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.cloud.dialogflow.cx.v3;
  16. import "google/api/annotations.proto";
  17. import "google/api/client.proto";
  18. import "google/api/field_behavior.proto";
  19. import "google/api/resource.proto";
  20. import "google/protobuf/timestamp.proto";
  21. option cc_enable_arenas = true;
  22. option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
  23. option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "ChangelogProto";
  26. option java_package = "com.google.cloud.dialogflow.cx.v3";
  27. option objc_class_prefix = "DF";
  28. option ruby_package = "Google::Cloud::Dialogflow::CX::V3";
  29. // Service for managing [Changelogs][google.cloud.dialogflow.cx.v3.Changelog].
  30. service Changelogs {
  31. option (google.api.default_host) = "dialogflow.googleapis.com";
  32. option (google.api.oauth_scopes) =
  33. "https://www.googleapis.com/auth/cloud-platform,"
  34. "https://www.googleapis.com/auth/dialogflow";
  35. // Returns the list of Changelogs.
  36. rpc ListChangelogs(ListChangelogsRequest) returns (ListChangelogsResponse) {
  37. option (google.api.http) = {
  38. get: "/v3/{parent=projects/*/locations/*/agents/*}/changelogs"
  39. };
  40. option (google.api.method_signature) = "parent";
  41. }
  42. // Retrieves the specified Changelog.
  43. rpc GetChangelog(GetChangelogRequest) returns (Changelog) {
  44. option (google.api.http) = {
  45. get: "/v3/{name=projects/*/locations/*/agents/*/changelogs/*}"
  46. };
  47. option (google.api.method_signature) = "name";
  48. }
  49. }
  50. // The request message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
  51. message ListChangelogsRequest {
  52. // Required. The agent containing the changelogs.
  53. // Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
  54. string parent = 1 [
  55. (google.api.field_behavior) = REQUIRED,
  56. (google.api.resource_reference) = {
  57. child_type: "dialogflow.googleapis.com/Changelog"
  58. }
  59. ];
  60. // The filter string. Supports filter by user_email, resource, type and
  61. // create_time. Some examples:
  62. // 1. By user email:
  63. // user_email = "someone@google.com"
  64. // 2. By resource name:
  65. // resource = "projects/123/locations/global/agents/456/flows/789"
  66. // 3. By resource display name:
  67. // display_name = "my agent"
  68. // 4. By action:
  69. // action = "Create"
  70. // 5. By type:
  71. // type = "flows"
  72. // 6. By create time. Currently predicates on `create_time` and
  73. // `create_time_epoch_seconds` are supported:
  74. // create_time_epoch_seconds > 1551790877 AND create_time <=
  75. // 2017-01-15T01:30:15.01Z
  76. // 7. Combination of above filters:
  77. // resource = "projects/123/locations/global/agents/456/flows/789"
  78. // AND user_email = "someone@google.com"
  79. // AND create_time <= 2017-01-15T01:30:15.01Z
  80. string filter = 2;
  81. // The maximum number of items to return in a single page. By default 100 and
  82. // at most 1000.
  83. int32 page_size = 3;
  84. // The next_page_token value returned from a previous list request.
  85. string page_token = 4;
  86. }
  87. // The response message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
  88. message ListChangelogsResponse {
  89. // The list of changelogs. There will be a maximum number of items returned
  90. // based on the page_size field in the request. The changelogs will be ordered
  91. // by timestamp.
  92. repeated Changelog changelogs = 1;
  93. // Token to retrieve the next page of results, or empty if there are no more
  94. // results in the list.
  95. string next_page_token = 2;
  96. }
  97. // The request message for [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog].
  98. message GetChangelogRequest {
  99. // Required. The name of the changelog to get.
  100. // Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
  101. // ID>/changelogs/<Changelog ID>`.
  102. string name = 1 [
  103. (google.api.field_behavior) = REQUIRED,
  104. (google.api.resource_reference) = {
  105. type: "dialogflow.googleapis.com/Changelog"
  106. }
  107. ];
  108. }
  109. // Changelogs represents a change made to a given agent.
  110. message Changelog {
  111. option (google.api.resource) = {
  112. type: "dialogflow.googleapis.com/Changelog"
  113. pattern: "projects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}"
  114. };
  115. // The unique identifier of the changelog.
  116. // Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
  117. // ID>/changelogs/<Changelog ID>`.
  118. string name = 1;
  119. // Email address of the authenticated user.
  120. string user_email = 2;
  121. // The affected resource display name of the change.
  122. string display_name = 7;
  123. // The action of the change.
  124. string action = 11;
  125. // The affected resource type.
  126. string type = 8;
  127. // The affected resource name of the change.
  128. string resource = 3;
  129. // The timestamp of the change.
  130. google.protobuf.Timestamp create_time = 4;
  131. }