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

Commit 11e9d09

Browse files
feat!: release gapic-generator-java v2.0.0 (#644)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/3bbb9072-f017-4d09-80a4-f1955fc5009c/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 389760020 Source-Link: googleapis/googleapis@411e51e PiperOrigin-RevId: 388737553 Source-Link: googleapis/googleapis@09e5b17 PiperOrigin-RevId: 388737005 Source-Link: googleapis/googleapis@8dfb215 PiperOrigin-RevId: 388535346 Source-Link: googleapis/googleapis@d9eaf41 PiperOrigin-RevId: 388499329 Source-Link: googleapis/googleapis@bb0a090 fix: fix validation result docs feat: add language code to streaming recognition result docs: update environment docs fix: fix validation result docs feat: add language code to streaming recognition result feat: add time zone and security settings to conversation profile docs: update agent docs docs: update entity type docs docs: update intent docs feat: Expose Locations service to get/list avaliable locations of Dialogflow products docs: reorder some fields
1 parent 00bce0e commit 11e9d09

158 files changed

Lines changed: 4255 additions & 2355 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.dialogflow.v2;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -1276,12 +1275,7 @@ public static ApiFuture<SearchAgentsPagedResponse> createAsync(
12761275
SearchAgentsPage.createEmptyPage().createPageAsync(context, futureResponse);
12771276
return ApiFutures.transform(
12781277
futurePage,
1279-
new ApiFunction<SearchAgentsPage, SearchAgentsPagedResponse>() {
1280-
@Override
1281-
public SearchAgentsPagedResponse apply(SearchAgentsPage input) {
1282-
return new SearchAgentsPagedResponse(input);
1283-
}
1284-
},
1278+
input -> new SearchAgentsPagedResponse(input),
12851279
MoreExecutors.directExecutor());
12861280
}
12871281

google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,13 @@ public AgentsStubSettings.Builder getStubSettingsBuilder() {
224224
return ((AgentsStubSettings.Builder) getStubSettings());
225225
}
226226

227-
// NEXT_MAJOR_VER: remove 'throws Exception'.
228227
/**
229228
* Applies the given settings updater function to all of the unary API methods in this service.
230229
*
231230
* <p>Note: This method does not support applying settings to streaming methods.
232231
*/
233232
public Builder applyToAllUnaryMethods(
234-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
233+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
235234
super.applyToAllUnaryMethods(
236235
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
237236
return this;

google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.dialogflow.v2;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -449,12 +448,7 @@ public static ApiFuture<ListAnswerRecordsPagedResponse> createAsync(
449448
ListAnswerRecordsPage.createEmptyPage().createPageAsync(context, futureResponse);
450449
return ApiFutures.transform(
451450
futurePage,
452-
new ApiFunction<ListAnswerRecordsPage, ListAnswerRecordsPagedResponse>() {
453-
@Override
454-
public ListAnswerRecordsPagedResponse apply(ListAnswerRecordsPage input) {
455-
return new ListAnswerRecordsPagedResponse(input);
456-
}
457-
},
451+
input -> new ListAnswerRecordsPagedResponse(input),
458452
MoreExecutors.directExecutor());
459453
}
460454

google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,13 @@ public AnswerRecordsStubSettings.Builder getStubSettingsBuilder() {
165165
return ((AnswerRecordsStubSettings.Builder) getStubSettings());
166166
}
167167

168-
// NEXT_MAJOR_VER: remove 'throws Exception'.
169168
/**
170169
* Applies the given settings updater function to all of the unary API methods in this service.
171170
*
172171
* <p>Note: This method does not support applying settings to streaming methods.
173172
*/
174173
public Builder applyToAllUnaryMethods(
175-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
174+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
176175
super.applyToAllUnaryMethods(
177176
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
178177
return this;

google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.dialogflow.v2;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -846,12 +845,7 @@ public static ApiFuture<ListContextsPagedResponse> createAsync(
846845
ListContextsPage.createEmptyPage().createPageAsync(context, futureResponse);
847846
return ApiFutures.transform(
848847
futurePage,
849-
new ApiFunction<ListContextsPage, ListContextsPagedResponse>() {
850-
@Override
851-
public ListContextsPagedResponse apply(ListContextsPage input) {
852-
return new ListContextsPagedResponse(input);
853-
}
854-
},
848+
input -> new ListContextsPagedResponse(input),
855849
MoreExecutors.directExecutor());
856850
}
857851

google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,13 @@ public ContextsStubSettings.Builder getStubSettingsBuilder() {
184184
return ((ContextsStubSettings.Builder) getStubSettings());
185185
}
186186

187-
// NEXT_MAJOR_VER: remove 'throws Exception'.
188187
/**
189188
* Applies the given settings updater function to all of the unary API methods in this service.
190189
*
191190
* <p>Note: This method does not support applying settings to streaming methods.
192191
*/
193192
public Builder applyToAllUnaryMethods(
194-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
193+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
195194
super.applyToAllUnaryMethods(
196195
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
197196
return this;

google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.dialogflow.v2;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -897,12 +896,7 @@ public static ApiFuture<ListConversationProfilesPagedResponse> createAsync(
897896
ListConversationProfilesPage.createEmptyPage().createPageAsync(context, futureResponse);
898897
return ApiFutures.transform(
899898
futurePage,
900-
new ApiFunction<ListConversationProfilesPage, ListConversationProfilesPagedResponse>() {
901-
@Override
902-
public ListConversationProfilesPagedResponse apply(ListConversationProfilesPage input) {
903-
return new ListConversationProfilesPagedResponse(input);
904-
}
905-
},
899+
input -> new ListConversationProfilesPagedResponse(input),
906900
MoreExecutors.directExecutor());
907901
}
908902

google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,13 @@ public ConversationProfilesStubSettings.Builder getStubSettingsBuilder() {
194194
return ((ConversationProfilesStubSettings.Builder) getStubSettings());
195195
}
196196

197-
// NEXT_MAJOR_VER: remove 'throws Exception'.
198197
/**
199198
* Applies the given settings updater function to all of the unary API methods in this service.
200199
*
201200
* <p>Note: This method does not support applying settings to streaming methods.
202201
*/
203202
public Builder applyToAllUnaryMethods(
204-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
203+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
205204
super.applyToAllUnaryMethods(
206205
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
207206
return this;

google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.dialogflow.v2;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -967,12 +966,7 @@ public static ApiFuture<ListConversationsPagedResponse> createAsync(
967966
ListConversationsPage.createEmptyPage().createPageAsync(context, futureResponse);
968967
return ApiFutures.transform(
969968
futurePage,
970-
new ApiFunction<ListConversationsPage, ListConversationsPagedResponse>() {
971-
@Override
972-
public ListConversationsPagedResponse apply(ListConversationsPage input) {
973-
return new ListConversationsPagedResponse(input);
974-
}
975-
},
969+
input -> new ListConversationsPagedResponse(input),
976970
MoreExecutors.directExecutor());
977971
}
978972

@@ -1052,12 +1046,7 @@ public static ApiFuture<ListMessagesPagedResponse> createAsync(
10521046
ListMessagesPage.createEmptyPage().createPageAsync(context, futureResponse);
10531047
return ApiFutures.transform(
10541048
futurePage,
1055-
new ApiFunction<ListMessagesPage, ListMessagesPagedResponse>() {
1056-
@Override
1057-
public ListMessagesPagedResponse apply(ListMessagesPage input) {
1058-
return new ListMessagesPagedResponse(input);
1059-
}
1060-
},
1049+
input -> new ListMessagesPagedResponse(input),
10611050
MoreExecutors.directExecutor());
10621051
}
10631052

google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,13 @@ public ConversationsStubSettings.Builder getStubSettingsBuilder() {
183183
return ((ConversationsStubSettings.Builder) getStubSettings());
184184
}
185185

186-
// NEXT_MAJOR_VER: remove 'throws Exception'.
187186
/**
188187
* Applies the given settings updater function to all of the unary API methods in this service.
189188
*
190189
* <p>Note: This method does not support applying settings to streaming methods.
191190
*/
192191
public Builder applyToAllUnaryMethods(
193-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
192+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
194193
super.applyToAllUnaryMethods(
195194
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
196195
return this;

0 commit comments

Comments
 (0)