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

Commit

Permalink
feat!: release gapic-generator-java v2.0.0 (#47)
Browse files Browse the repository at this point in the history
Committer: @miraleung
PiperOrigin-RevId: 388535346

Source-Link: googleapis/googleapis@d9eaf41

Source-Link: googleapis/googleapis-gen@976c5ab
  • Loading branch information
gcf-owl-bot[bot] committed Aug 6, 2021
1 parent 5e2f087 commit 19d5ad3
Show file tree
Hide file tree
Showing 20 changed files with 5,368 additions and 2,546 deletions.
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.contactcenterinsights.v1;

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 @@ -2589,12 +2588,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 @@ -2674,12 +2668,7 @@ public static ApiFuture<ListAnalysesPagedResponse> createAsync(
ListAnalysesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListAnalysesPage, ListAnalysesPagedResponse>() {
@Override
public ListAnalysesPagedResponse apply(ListAnalysesPage input) {
return new ListAnalysesPagedResponse(input);
}
},
input -> new ListAnalysesPagedResponse(input),
MoreExecutors.directExecutor());
}

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

Expand Down
Expand Up @@ -296,14 +296,13 @@ public ContactCenterInsightsStubSettings.Builder getStubSettingsBuilder() {
return ((ContactCenterInsightsStubSettings.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 @@ -959,14 +959,13 @@ private static Builder initDefaults(Builder builder) {
return builder;
}

// 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(unaryMethodSettingsBuilders, settingsUpdater);
return this;
}
Expand Down

Large diffs are not rendered by default.

Expand Up @@ -1695,6 +1695,7 @@ public void calculateStatsTest() throws Exception {
.putAllSmartHighlighterMatches(new HashMap<String, Integer>())
.putAllCustomHighlighterMatches(new HashMap<String, Integer>())
.putAllIssueMatches(new HashMap<String, Integer>())
.setConversationCountTimeSeries(CalculateStatsResponse.TimeSeries.newBuilder().build())
.build();
mockContactCenterInsights.addResponse(expectedResponse);

Expand Down Expand Up @@ -1738,6 +1739,7 @@ public void calculateStatsTest2() throws Exception {
.putAllSmartHighlighterMatches(new HashMap<String, Integer>())
.putAllCustomHighlighterMatches(new HashMap<String, Integer>())
.putAllIssueMatches(new HashMap<String, Integer>())
.setConversationCountTimeSeries(CalculateStatsResponse.TimeSeries.newBuilder().build())
.build();
mockContactCenterInsights.addResponse(expectedResponse);

Expand Down
Expand Up @@ -16,4 +16,33 @@
<className>com/google/cloud/contactcenterinsights/v1/*OrBuilder</className>
<method>boolean has*(*)</method>
</difference>
<difference>
<differenceType>7002</differenceType>
<className>com/google/cloud/contactcenterinsights/v1/AnnotationBoundary*</className>
<method>*TimeOffset*</method>
</difference>
<difference>
<differenceType>7002</differenceType>
<className>com/google/cloud/contactcenterinsights/v1/Conversation$Transcript*</className>
<method>*Participant*</method>
</difference>
<difference>
<differenceType>6011</differenceType>
<className>com/google/cloud/contactcenterinsights/v1/AnnotationBoundary*</className>
<field>*FIELD_NUMBER</field>
</difference>
<difference>
<differenceType>6011</differenceType>
<className>com/google/cloud/contactcenterinsights/v1/Conversation*</className>
<field>*FIELD_NUMBER</field>
</difference>
<difference>
<differenceType>6001</differenceType>
<className>com/google/cloud/contactcenterinsights/v1/AnnotationBoundary*</className>
<field>*TIME_OFFSET</field>
</difference>
<difference>
<differenceType>8001</differenceType>
<className>com/google/cloud/contactcenterinsights/v1/Conversation*</className>
</difference>
</differences>

0 comments on commit 19d5ad3

Please sign in to comment.