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