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

Commit

Permalink
feat!: release gapic-generator-java v2.0.0 (#644)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yoshi-automation committed Aug 10, 2021
1 parent 00bce0e commit 11e9d09
Show file tree
Hide file tree
Showing 158 changed files with 4,255 additions and 2,355 deletions.
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.dialogflow.v2;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
Expand Down Expand Up @@ -1276,12 +1275,7 @@ public static ApiFuture<SearchAgentsPagedResponse> createAsync(
SearchAgentsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<SearchAgentsPage, SearchAgentsPagedResponse>() {
@Override
public SearchAgentsPagedResponse apply(SearchAgentsPage input) {
return new SearchAgentsPagedResponse(input);
}
},
input -> new SearchAgentsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Expand Up @@ -224,14 +224,13 @@ public AgentsStubSettings.Builder getStubSettingsBuilder() {
return ((AgentsStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
Expand Down
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.dialogflow.v2;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
Expand Down Expand Up @@ -449,12 +448,7 @@ public static ApiFuture<ListAnswerRecordsPagedResponse> createAsync(
ListAnswerRecordsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListAnswerRecordsPage, ListAnswerRecordsPagedResponse>() {
@Override
public ListAnswerRecordsPagedResponse apply(ListAnswerRecordsPage input) {
return new ListAnswerRecordsPagedResponse(input);
}
},
input -> new ListAnswerRecordsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Expand Up @@ -165,14 +165,13 @@ public AnswerRecordsStubSettings.Builder getStubSettingsBuilder() {
return ((AnswerRecordsStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
Expand Down
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.dialogflow.v2;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
Expand Down Expand Up @@ -846,12 +845,7 @@ public static ApiFuture<ListContextsPagedResponse> createAsync(
ListContextsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListContextsPage, ListContextsPagedResponse>() {
@Override
public ListContextsPagedResponse apply(ListContextsPage input) {
return new ListContextsPagedResponse(input);
}
},
input -> new ListContextsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Expand Up @@ -184,14 +184,13 @@ public ContextsStubSettings.Builder getStubSettingsBuilder() {
return ((ContextsStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
Expand Down
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.dialogflow.v2;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
Expand Down Expand Up @@ -897,12 +896,7 @@ public static ApiFuture<ListConversationProfilesPagedResponse> createAsync(
ListConversationProfilesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListConversationProfilesPage, ListConversationProfilesPagedResponse>() {
@Override
public ListConversationProfilesPagedResponse apply(ListConversationProfilesPage input) {
return new ListConversationProfilesPagedResponse(input);
}
},
input -> new ListConversationProfilesPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Expand Up @@ -194,14 +194,13 @@ public ConversationProfilesStubSettings.Builder getStubSettingsBuilder() {
return ((ConversationProfilesStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
Expand Down
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.dialogflow.v2;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
Expand Down Expand Up @@ -967,12 +966,7 @@ public static ApiFuture<ListConversationsPagedResponse> createAsync(
ListConversationsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListConversationsPage, ListConversationsPagedResponse>() {
@Override
public ListConversationsPagedResponse apply(ListConversationsPage input) {
return new ListConversationsPagedResponse(input);
}
},
input -> new ListConversationsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down Expand Up @@ -1052,12 +1046,7 @@ public static ApiFuture<ListMessagesPagedResponse> createAsync(
ListMessagesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListMessagesPage, ListMessagesPagedResponse>() {
@Override
public ListMessagesPagedResponse apply(ListMessagesPage input) {
return new ListMessagesPagedResponse(input);
}
},
input -> new ListMessagesPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Expand Up @@ -183,14 +183,13 @@ public ConversationsStubSettings.Builder getStubSettingsBuilder() {
return ((ConversationsStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
Expand Down
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.dialogflow.v2;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
Expand Down Expand Up @@ -1074,12 +1073,7 @@ public static ApiFuture<ListDocumentsPagedResponse> createAsync(
ListDocumentsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListDocumentsPage, ListDocumentsPagedResponse>() {
@Override
public ListDocumentsPagedResponse apply(ListDocumentsPage input) {
return new ListDocumentsPagedResponse(input);
}
},
input -> new ListDocumentsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Expand Up @@ -210,14 +210,13 @@ public DocumentsStubSettings.Builder getStubSettingsBuilder() {
return ((DocumentsStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
Expand Down
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.dialogflow.v2;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
Expand Down Expand Up @@ -1935,12 +1934,7 @@ public static ApiFuture<ListEntityTypesPagedResponse> createAsync(
ListEntityTypesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListEntityTypesPage, ListEntityTypesPagedResponse>() {
@Override
public ListEntityTypesPagedResponse apply(ListEntityTypesPage input) {
return new ListEntityTypesPagedResponse(input);
}
},
input -> new ListEntityTypesPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Expand Up @@ -241,14 +241,13 @@ public EntityTypesStubSettings.Builder getStubSettingsBuilder() {
return ((EntityTypesStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
Expand Down

0 comments on commit 11e9d09

Please sign in to comment.