Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.

Commit e80418c

Browse files
feat(v2beta1): add Location parent to Environment resource (#243)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/58020715-0b4b-44c4-95c1-cbec2e342b42/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 320004023 Source-Link: googleapis/googleapis@4139410
1 parent 21a2cb6 commit e80418c

File tree

8 files changed

+119
-64
lines changed

8 files changed

+119
-64
lines changed

google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ public EnvironmentsStub getStub() {
169169
* }
170170
* </code></pre>
171171
*
172-
* @param parent Required. The agent to list all environments from. Format: `projects/&lt;Project
173-
* ID&gt;/agent`.
172+
* @param parent Required. The agent to list all environments from. Format: -
173+
* `projects/&lt;Project Number / ID&gt;/agent` - `projects/&lt;Project Number /
174+
* ID&gt;/locations/&lt;Location ID&gt;/agent
174175
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
175176
*/
176177
public final ListEnvironmentsPagedResponse listEnvironments(ProjectAgentName parent) {
@@ -196,8 +197,9 @@ public final ListEnvironmentsPagedResponse listEnvironments(ProjectAgentName par
196197
* }
197198
* </code></pre>
198199
*
199-
* @param parent Required. The agent to list all environments from. Format: `projects/&lt;Project
200-
* ID&gt;/agent`.
200+
* @param parent Required. The agent to list all environments from. Format: -
201+
* `projects/&lt;Project Number / ID&gt;/agent` - `projects/&lt;Project Number /
202+
* ID&gt;/locations/&lt;Location ID&gt;/agent
201203
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
202204
*/
203205
public final ListEnvironmentsPagedResponse listEnvironments(String parent) {

proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Environment.java

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,10 @@ private State(int value) {
340340
*
341341
* <pre>
342342
* Output only. The unique identifier of this agent environment.
343-
* Format: `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;`.
344-
* For Environment ID, "-" is reserved for 'draft' environment.
343+
* Format:
344+
* - `projects/&lt;Project Number / ID&gt;/agent/environments/&lt;Environment ID&gt;`
345+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
346+
* ID&gt;/agent/environments/&lt;Environment ID&gt;`
345347
* </pre>
346348
*
347349
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -365,8 +367,10 @@ public java.lang.String getName() {
365367
*
366368
* <pre>
367369
* Output only. The unique identifier of this agent environment.
368-
* Format: `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;`.
369-
* For Environment ID, "-" is reserved for 'draft' environment.
370+
* Format:
371+
* - `projects/&lt;Project Number / ID&gt;/agent/environments/&lt;Environment ID&gt;`
372+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
373+
* ID&gt;/agent/environments/&lt;Environment ID&gt;`
370374
* </pre>
371375
*
372376
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -984,8 +988,10 @@ public Builder mergeFrom(
984988
*
985989
* <pre>
986990
* Output only. The unique identifier of this agent environment.
987-
* Format: `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;`.
988-
* For Environment ID, "-" is reserved for 'draft' environment.
991+
* Format:
992+
* - `projects/&lt;Project Number / ID&gt;/agent/environments/&lt;Environment ID&gt;`
993+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
994+
* ID&gt;/agent/environments/&lt;Environment ID&gt;`
989995
* </pre>
990996
*
991997
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -1008,8 +1014,10 @@ public java.lang.String getName() {
10081014
*
10091015
* <pre>
10101016
* Output only. The unique identifier of this agent environment.
1011-
* Format: `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;`.
1012-
* For Environment ID, "-" is reserved for 'draft' environment.
1017+
* Format:
1018+
* - `projects/&lt;Project Number / ID&gt;/agent/environments/&lt;Environment ID&gt;`
1019+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
1020+
* ID&gt;/agent/environments/&lt;Environment ID&gt;`
10131021
* </pre>
10141022
*
10151023
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -1032,8 +1040,10 @@ public com.google.protobuf.ByteString getNameBytes() {
10321040
*
10331041
* <pre>
10341042
* Output only. The unique identifier of this agent environment.
1035-
* Format: `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;`.
1036-
* For Environment ID, "-" is reserved for 'draft' environment.
1043+
* Format:
1044+
* - `projects/&lt;Project Number / ID&gt;/agent/environments/&lt;Environment ID&gt;`
1045+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
1046+
* ID&gt;/agent/environments/&lt;Environment ID&gt;`
10371047
* </pre>
10381048
*
10391049
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -1055,8 +1065,10 @@ public Builder setName(java.lang.String value) {
10551065
*
10561066
* <pre>
10571067
* Output only. The unique identifier of this agent environment.
1058-
* Format: `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;`.
1059-
* For Environment ID, "-" is reserved for 'draft' environment.
1068+
* Format:
1069+
* - `projects/&lt;Project Number / ID&gt;/agent/environments/&lt;Environment ID&gt;`
1070+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
1071+
* ID&gt;/agent/environments/&lt;Environment ID&gt;`
10601072
* </pre>
10611073
*
10621074
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -1074,8 +1086,10 @@ public Builder clearName() {
10741086
*
10751087
* <pre>
10761088
* Output only. The unique identifier of this agent environment.
1077-
* Format: `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;`.
1078-
* For Environment ID, "-" is reserved for 'draft' environment.
1089+
* Format:
1090+
* - `projects/&lt;Project Number / ID&gt;/agent/environments/&lt;Environment ID&gt;`
1091+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
1092+
* ID&gt;/agent/environments/&lt;Environment ID&gt;`
10791093
* </pre>
10801094
*
10811095
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>

proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentOrBuilder.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ public interface EnvironmentOrBuilder
2828
*
2929
* <pre>
3030
* Output only. The unique identifier of this agent environment.
31-
* Format: `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;`.
32-
* For Environment ID, "-" is reserved for 'draft' environment.
31+
* Format:
32+
* - `projects/&lt;Project Number / ID&gt;/agent/environments/&lt;Environment ID&gt;`
33+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
34+
* ID&gt;/agent/environments/&lt;Environment ID&gt;`
3335
* </pre>
3436
*
3537
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -42,8 +44,10 @@ public interface EnvironmentOrBuilder
4244
*
4345
* <pre>
4446
* Output only. The unique identifier of this agent environment.
45-
* Format: `projects/&lt;Project ID&gt;/agent/environments/&lt;Environment ID&gt;`.
46-
* For Environment ID, "-" is reserved for 'draft' environment.
47+
* Format:
48+
* - `projects/&lt;Project Number / ID&gt;/agent/environments/&lt;Environment ID&gt;`
49+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
50+
* ID&gt;/agent/environments/&lt;Environment ID&gt;`
4751
* </pre>
4852
*
4953
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>

proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentProto.java

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -56,38 +56,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
5656
+ "v2beta1/audio_config.proto\032\033google/proto"
5757
+ "buf/empty.proto\032 google/protobuf/field_m"
5858
+ "ask.proto\032\037google/protobuf/timestamp.pro"
59-
+ "to\032\027google/api/client.proto\"\374\002\n\013Environm"
59+
+ "to\032\027google/api/client.proto\"\310\003\n\013Environm"
6060
+ "ent\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\030\n\013description\030\002 "
6161
+ "\001(\tB\003\340A\001\022\032\n\ragent_version\030\003 \001(\tB\003\340A\001\022F\n\005"
6262
+ "state\030\004 \001(\01622.google.cloud.dialogflow.v2"
6363
+ "beta1.Environment.StateB\003\340A\003\0224\n\013update_t"
6464
+ "ime\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340"
6565
+ "A\003\"E\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007ST"
66-
+ "OPPED\020\001\022\013\n\007LOADING\020\002\022\013\n\007RUNNING\020\003:_\352A\\\n%"
67-
+ "dialogflow.googleapis.com/Environment\0223p"
68-
+ "rojects/{project}/agent/environments/{en"
69-
+ "vironment}\"\211\001\n\027ListEnvironmentsRequest\022="
70-
+ "\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dialogflow.googl"
71-
+ "eapis.com/Environment\022\026\n\tpage_size\030\002 \001(\005"
72-
+ "B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"w\n\030ListEn"
73-
+ "vironmentsResponse\022B\n\014environments\030\001 \003(\013"
74-
+ "2,.google.cloud.dialogflow.v2beta1.Envir"
75-
+ "onment\022\027\n\017next_page_token\030\002 \001(\t2\212\003\n\014Envi"
76-
+ "ronments\022\377\001\n\020ListEnvironments\0228.google.c"
77-
+ "loud.dialogflow.v2beta1.ListEnvironments"
78-
+ "Request\0329.google.cloud.dialogflow.v2beta"
79-
+ "1.ListEnvironmentsResponse\"v\202\323\344\223\002p\022//v2b"
80-
+ "eta1/{parent=projects/*/agent}/environme"
81-
+ "ntsZ=\022;/v2beta1/{parent=projects/*/locat"
82-
+ "ions/*/agent}/environments\032x\312A\031dialogflo"
83-
+ "w.googleapis.com\322AYhttps://www.googleapi"
84-
+ "s.com/auth/cloud-platform,https://www.go"
85-
+ "ogleapis.com/auth/dialogflowB\256\001\n#com.goo"
86-
+ "gle.cloud.dialogflow.v2beta1B\020Environmen"
87-
+ "tProtoP\001ZIgoogle.golang.org/genproto/goo"
88-
+ "gleapis/cloud/dialogflow/v2beta1;dialogf"
89-
+ "low\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2"
90-
+ "beta1b\006proto3"
66+
+ "OPPED\020\001\022\013\n\007LOADING\020\002\022\013\n\007RUNNING\020\003:\252\001\352A\246\001"
67+
+ "\n%dialogflow.googleapis.com/Environment\022"
68+
+ "3projects/{project}/agent/environments/{"
69+
+ "environment}\022Hprojects/{project}/locatio"
70+
+ "ns/{location}/agent/environments/{enviro"
71+
+ "nment}\"\211\001\n\027ListEnvironmentsRequest\022=\n\006pa"
72+
+ "rent\030\001 \001(\tB-\340A\002\372A\'\022%dialogflow.googleapi"
73+
+ "s.com/Environment\022\026\n\tpage_size\030\002 \001(\005B\003\340A"
74+
+ "\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"w\n\030ListEnviro"
75+
+ "nmentsResponse\022B\n\014environments\030\001 \003(\0132,.g"
76+
+ "oogle.cloud.dialogflow.v2beta1.Environme"
77+
+ "nt\022\027\n\017next_page_token\030\002 \001(\t2\212\003\n\014Environm"
78+
+ "ents\022\377\001\n\020ListEnvironments\0228.google.cloud"
79+
+ ".dialogflow.v2beta1.ListEnvironmentsRequ"
80+
+ "est\0329.google.cloud.dialogflow.v2beta1.Li"
81+
+ "stEnvironmentsResponse\"v\202\323\344\223\002p\022//v2beta1"
82+
+ "/{parent=projects/*/agent}/environmentsZ"
83+
+ "=\022;/v2beta1/{parent=projects/*/locations"
84+
+ "/*/agent}/environments\032x\312A\031dialogflow.go"
85+
+ "ogleapis.com\322AYhttps://www.googleapis.co"
86+
+ "m/auth/cloud-platform,https://www.google"
87+
+ "apis.com/auth/dialogflowB\256\001\n#com.google."
88+
+ "cloud.dialogflow.v2beta1B\020EnvironmentPro"
89+
+ "toP\001ZIgoogle.golang.org/genproto/googlea"
90+
+ "pis/cloud/dialogflow/v2beta1;dialogflow\370"
91+
+ "\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2beta"
92+
+ "1b\006proto3"
9193
};
9294
descriptor =
9395
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(

proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEnvironmentsRequest.java

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
131131
*
132132
* <pre>
133133
* Required. The agent to list all environments from.
134-
* Format: `projects/&lt;Project ID&gt;/agent`.
134+
* Format:
135+
* - `projects/&lt;Project Number / ID&gt;/agent`
136+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
137+
* ID&gt;/agent
135138
* </pre>
136139
*
137140
* <code>
@@ -157,7 +160,10 @@ public java.lang.String getParent() {
157160
*
158161
* <pre>
159162
* Required. The agent to list all environments from.
160-
* Format: `projects/&lt;Project ID&gt;/agent`.
163+
* Format:
164+
* - `projects/&lt;Project Number / ID&gt;/agent`
165+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
166+
* ID&gt;/agent
161167
* </pre>
162168
*
163169
* <code>
@@ -603,7 +609,10 @@ public Builder mergeFrom(
603609
*
604610
* <pre>
605611
* Required. The agent to list all environments from.
606-
* Format: `projects/&lt;Project ID&gt;/agent`.
612+
* Format:
613+
* - `projects/&lt;Project Number / ID&gt;/agent`
614+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
615+
* ID&gt;/agent
607616
* </pre>
608617
*
609618
* <code>
@@ -628,7 +637,10 @@ public java.lang.String getParent() {
628637
*
629638
* <pre>
630639
* Required. The agent to list all environments from.
631-
* Format: `projects/&lt;Project ID&gt;/agent`.
640+
* Format:
641+
* - `projects/&lt;Project Number / ID&gt;/agent`
642+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
643+
* ID&gt;/agent
632644
* </pre>
633645
*
634646
* <code>
@@ -653,7 +665,10 @@ public com.google.protobuf.ByteString getParentBytes() {
653665
*
654666
* <pre>
655667
* Required. The agent to list all environments from.
656-
* Format: `projects/&lt;Project ID&gt;/agent`.
668+
* Format:
669+
* - `projects/&lt;Project Number / ID&gt;/agent`
670+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
671+
* ID&gt;/agent
657672
* </pre>
658673
*
659674
* <code>
@@ -677,7 +692,10 @@ public Builder setParent(java.lang.String value) {
677692
*
678693
* <pre>
679694
* Required. The agent to list all environments from.
680-
* Format: `projects/&lt;Project ID&gt;/agent`.
695+
* Format:
696+
* - `projects/&lt;Project Number / ID&gt;/agent`
697+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
698+
* ID&gt;/agent
681699
* </pre>
682700
*
683701
* <code>
@@ -697,7 +715,10 @@ public Builder clearParent() {
697715
*
698716
* <pre>
699717
* Required. The agent to list all environments from.
700-
* Format: `projects/&lt;Project ID&gt;/agent`.
718+
* Format:
719+
* - `projects/&lt;Project Number / ID&gt;/agent`
720+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
721+
* ID&gt;/agent
701722
* </pre>
702723
*
703724
* <code>

proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEnvironmentsRequestOrBuilder.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ public interface ListEnvironmentsRequestOrBuilder
2828
*
2929
* <pre>
3030
* Required. The agent to list all environments from.
31-
* Format: `projects/&lt;Project ID&gt;/agent`.
31+
* Format:
32+
* - `projects/&lt;Project Number / ID&gt;/agent`
33+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
34+
* ID&gt;/agent
3235
* </pre>
3336
*
3437
* <code>
@@ -43,7 +46,10 @@ public interface ListEnvironmentsRequestOrBuilder
4346
*
4447
* <pre>
4548
* Required. The agent to list all environments from.
46-
* Format: `projects/&lt;Project ID&gt;/agent`.
49+
* Format:
50+
* - `projects/&lt;Project Number / ID&gt;/agent`
51+
* - `projects/&lt;Project Number / ID&gt;/locations/&lt;Location
52+
* ID&gt;/agent
4753
* </pre>
4854
*
4955
* <code>

proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ message Environment {
5656
option (google.api.resource) = {
5757
type: "dialogflow.googleapis.com/Environment"
5858
pattern: "projects/{project}/agent/environments/{environment}"
59+
pattern: "projects/{project}/locations/{location}/agent/environments/{environment}"
5960
};
6061

6162
// Represents an environment state. When an environment is pointed to a new
@@ -78,8 +79,10 @@ message Environment {
7879
}
7980

8081
// Output only. The unique identifier of this agent environment.
81-
// Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
82-
// For Environment ID, "-" is reserved for 'draft' environment.
82+
// Format:
83+
// - `projects/<Project Number / ID>/agent/environments/<Environment ID>`
84+
// - `projects/<Project Number / ID>/locations/<Location
85+
// ID>/agent/environments/<Environment ID>`
8386
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
8487

8588
// Optional. The developer-provided description for this environment.
@@ -102,7 +105,10 @@ message Environment {
102105
// The request message for [Environments.ListEnvironments][google.cloud.dialogflow.v2beta1.Environments.ListEnvironments].
103106
message ListEnvironmentsRequest {
104107
// Required. The agent to list all environments from.
105-
// Format: `projects/<Project ID>/agent`.
108+
// Format:
109+
// - `projects/<Project Number / ID>/agent`
110+
// - `projects/<Project Number / ID>/locations/<Location
111+
// ID>/agent
106112
string parent = 1 [
107113
(google.api.field_behavior) = REQUIRED,
108114
(google.api.resource_reference) = {

synth.metadata

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "dc3682a7075d3028f00de866446fd0543ebc6079",
15-
"internalRef": "318303567"
14+
"sha": "4139410a6b2a3ce9df083c3d97f98498cefbfd78",
15+
"internalRef": "320004023"
1616
}
1717
},
1818
{
1919
"git": {
2020
"name": "googleapis",
2121
"remote": "https://github.com/googleapis/googleapis.git",
22-
"sha": "dc3682a7075d3028f00de866446fd0543ebc6079",
23-
"internalRef": "318303567"
22+
"sha": "4139410a6b2a3ce9df083c3d97f98498cefbfd78",
23+
"internalRef": "320004023"
2424
}
2525
},
2626
{

0 commit comments

Comments
 (0)