@@ -41,7 +41,7 @@ service Environments {
4141 "https://www.googleapis.com/auth/cloud-platform,"
4242 "https://www.googleapis.com/auth/dialogflow" ;
4343
44- // Returns the list of all non-draft environments of the specified agent.
44+ // Returns the list of all non-default environments of the specified agent.
4545 rpc ListEnvironments (ListEnvironmentsRequest ) returns (ListEnvironmentsResponse ) {
4646 option (google.api.http ) = {
4747 get : "/v2/{parent=projects/*/agent}/environments"
@@ -79,13 +79,13 @@ service Environments {
7979 // This method allows you to deploy new agent versions into the environment.
8080 // When an environment is pointed to a new agent version by setting
8181 // `environment.agent_version`, the environment is temporarily set to the
82- // `LOADING` state. During that time, the environment keeps on serving the
82+ // `LOADING` state. During that time, the environment continues serving the
8383 // previous version of the agent. After the new agent version is done loading,
8484 // the environment is set back to the `RUNNING` state.
85- // You can use "-" as Environment ID in environment name to update version
86- // in "draft" environment. WARNING: this will negate all recent changes to
87- // draft and can't be undone. You may want to save the draft to a version
88- // before calling this function .
85+ // You can use "-" as Environment ID in environment name to update an agent
86+ // version in the default environment. WARNING: this will negate all recent
87+ // changes to the draft agent and can't be undone. You may want to save the
88+ // draft agent to a version before calling this method .
8989 rpc UpdateEnvironment (UpdateEnvironmentRequest ) returns (Environment ) {
9090 option (google.api.http ) = {
9191 patch : "/v2/{environment.name=projects/*/agent/environments/*}"
@@ -164,17 +164,21 @@ message Environment {
164164
165165 // Output only. The unique identifier of this agent environment.
166166 // Supported formats:
167+ //
167168 // - `projects/<Project ID>/agent/environments/<Environment ID>`
168169 // - `projects/<Project ID>/locations/<Location
169170 // ID>/agent/environments/<Environment ID>`
171+ //
172+ // The environment ID for the default environment is `-`.
170173 string name = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
171174
172175 // Optional. The developer-provided description for this environment.
173176 // The maximum length is 500 characters. If exceeded, the request is rejected.
174177 string description = 2 [(google.api.field_behavior ) = OPTIONAL ];
175178
176- // Required . The agent version loaded into this environment.
179+ // Optional . The agent version loaded into this environment.
177180 // Supported formats:
181+ //
178182 // - `projects/<Project ID>/agent/versions/<Version ID>`
179183 // - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
180184 // ID>`
@@ -226,6 +230,7 @@ message TextToSpeechSettings {
226230message ListEnvironmentsRequest {
227231 // Required. The agent to list all environments from.
228232 // Format:
233+ //
229234 // - `projects/<Project ID>/agent`
230235 // - `projects/<Project ID>/locations/<Location ID>/agent`
231236 string parent = 1 [
@@ -258,9 +263,12 @@ message ListEnvironmentsResponse {
258263message GetEnvironmentRequest {
259264 // Required. The name of the environment.
260265 // Supported formats:
266+ //
261267 // - `projects/<Project ID>/agent/environments/<Environment ID>`
262268 // - `projects/<Project ID>/locations/<Location
263269 // ID>/agent/environments/<Environment ID>`
270+ //
271+ // The environment ID for the default environment is `-`.
264272 string name = 1 [
265273 (google.api.field_behavior ) = REQUIRED ,
266274 (google.api.resource_reference ) = {
@@ -273,6 +281,7 @@ message GetEnvironmentRequest {
273281message CreateEnvironmentRequest {
274282 // Required. The agent to create an environment for.
275283 // Supported formats:
284+ //
276285 // - `projects/<Project ID>/agent`
277286 // - `projects/<Project ID>/locations/<Location ID>/agent`
278287 string parent = 1 [
@@ -297,20 +306,23 @@ message UpdateEnvironmentRequest {
297306 // Required. The mask to control which fields get updated.
298307 google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior ) = REQUIRED ];
299308
300- // Optional. This field is used to prevent accidental overwrite of the draft
309+ // Optional. This field is used to prevent accidental overwrite of the default
301310 // environment, which is an operation that cannot be undone. To confirm that
302311 // the caller desires this overwrite, this field must be explicitly set to
303- // true when updating the draft environment (environment ID = `-`).
312+ // true when updating the default environment (environment ID = `-`).
304313 bool allow_load_to_draft_and_discard_changes = 3 [(google.api.field_behavior ) = OPTIONAL ];
305314}
306315
307316// The request message for [Environments.DeleteEnvironment][google.cloud.dialogflow.v2.Environments.DeleteEnvironment].
308317message DeleteEnvironmentRequest {
309318 // Required. The name of the environment to delete.
310319 // / Format:
320+ //
311321 // - `projects/<Project ID>/agent/environments/<Environment ID>`
312322 // - `projects/<Project ID>/locations/<Location
313- // ID>/agent/environments/<Environment ID>`
323+ // ID>/agent/environments/<Environment ID>`
324+ //
325+ // The environment ID for the default environment is `-`.
314326 string name = 1 [
315327 (google.api.field_behavior ) = REQUIRED ,
316328 (google.api.resource_reference ) = {
@@ -323,9 +335,12 @@ message DeleteEnvironmentRequest {
323335message GetEnvironmentHistoryRequest {
324336 // Required. The name of the environment to retrieve history for.
325337 // Supported formats:
338+ //
326339 // - `projects/<Project ID>/agent/environments/<Environment ID>`
327340 // - `projects/<Project ID>/locations/<Location
328341 // ID>/agent/environments/<Environment ID>`
342+ //
343+ // The environment ID for the default environment is `-`.
329344 string parent = 1 [
330345 (google.api.field_behavior ) = REQUIRED ,
331346 (google.api.resource_reference ) = {
@@ -357,9 +372,12 @@ message EnvironmentHistory {
357372
358373 // Output only. The name of the environment this history is for.
359374 // Supported formats:
375+ //
360376 // - `projects/<Project ID>/agent/environments/<Environment ID>`
361377 // - `projects/<Project ID>/locations/<Location
362378 // ID>/agent/environments/<Environment ID>`
379+ //
380+ // The environment ID for the default environment is `-`.
363381 string parent = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
364382
365383 // Output only. The list of agent environments. There will be a maximum number of items
0 commit comments