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

Commit

Permalink
feat: added support for DLP templates; expose Locations service to …
Browse files Browse the repository at this point in the history
…get/list avaliable locations of Dialogflow products (#277)

PiperOrigin-RevId: 389939863
Source-Link: googleapis/googleapis@626df52
Source-Link: googleapis/googleapis-gen@6d110f5

docs: reorder some fields

chore(docs): remove mention about samples README 
Fixes googleapis/java-logging#586.
Since no java repos have README in samples/ subfolder, we remove the mentioning from README
Source-Link: googleapis/synthtool@82fe6d9
Post-Processor: gcr.io/repo-automation-bots/owlbot-java:latest@sha256:7384f9f7e64785e8d765266519fe217f3b7ab15837326e5bda548b23dc16aeeb

feat: add advanced settings for agent level 
feat: add rollout config, state and failure reason for experiment 
feat: add insights export settings for security setting 
feat: add language code for streaming recognition result and flow versions for query parameters 
docs: deprecate legacy logging settings
PiperOrigin-RevId: 387850898
Source-Link: googleapis/googleapis@05d477b
Source-Link: googleapis/googleapis-gen@6982a6f
  • Loading branch information
gcf-owl-bot[bot] committed Aug 11, 2021
1 parent a3870e3 commit 4057134
Show file tree
Hide file tree
Showing 195 changed files with 21,038 additions and 4,241 deletions.
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.dialogflow.cx.v3;

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 @@ -1040,14 +1039,7 @@ public static ApiFuture<ListAgentsPagedResponse> createAsync(
ApiFuture<ListAgentsPage> futurePage =
ListAgentsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListAgentsPage, ListAgentsPagedResponse>() {
@Override
public ListAgentsPagedResponse apply(ListAgentsPage input) {
return new ListAgentsPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListAgentsPagedResponse(input), MoreExecutors.directExecutor());
}

private ListAgentsPagedResponse(ListAgentsPage page) {
Expand Down
Expand Up @@ -214,14 +214,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.cx.v3;

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 @@ -764,12 +763,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 @@ -180,14 +180,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
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.dialogflow.cx.v3;

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 @@ -1223,12 +1222,7 @@ public static ApiFuture<ListEnvironmentsPagedResponse> createAsync(
ListEnvironmentsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListEnvironmentsPage, ListEnvironmentsPagedResponse>() {
@Override
public ListEnvironmentsPagedResponse apply(ListEnvironmentsPage input) {
return new ListEnvironmentsPagedResponse(input);
}
},
input -> new ListEnvironmentsPagedResponse(input),
MoreExecutors.directExecutor());
}

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

Expand Down Expand Up @@ -1398,13 +1387,7 @@ public static ApiFuture<ListContinuousTestResultsPagedResponse> createAsync(
ListContinuousTestResultsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListContinuousTestResultsPage, ListContinuousTestResultsPagedResponse>() {
@Override
public ListContinuousTestResultsPagedResponse apply(
ListContinuousTestResultsPage input) {
return new ListContinuousTestResultsPagedResponse(input);
}
},
input -> new ListContinuousTestResultsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Expand Up @@ -228,14 +228,13 @@ public EnvironmentsStubSettings.Builder getStubSettingsBuilder() {
return ((EnvironmentsStubSettings.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.cx.v3;

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 @@ -963,12 +962,7 @@ public static ApiFuture<ListExperimentsPagedResponse> createAsync(
ListExperimentsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListExperimentsPage, ListExperimentsPagedResponse>() {
@Override
public ListExperimentsPagedResponse apply(ListExperimentsPage input) {
return new ListExperimentsPagedResponse(input);
}
},
input -> new ListExperimentsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Expand Up @@ -190,14 +190,13 @@ public ExperimentsStubSettings.Builder getStubSettingsBuilder() {
return ((ExperimentsStubSettings.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.cx.v3;

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 @@ -1174,14 +1173,7 @@ public static ApiFuture<ListFlowsPagedResponse> createAsync(
ApiFuture<ListFlowsPage> futurePage =
ListFlowsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListFlowsPage, ListFlowsPagedResponse>() {
@Override
public ListFlowsPagedResponse apply(ListFlowsPage input) {
return new ListFlowsPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListFlowsPagedResponse(input), MoreExecutors.directExecutor());
}

private ListFlowsPagedResponse(ListFlowsPage page) {
Expand Down
Expand Up @@ -225,14 +225,13 @@ public FlowsStubSettings.Builder getStubSettingsBuilder() {
return ((FlowsStubSettings.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.cx.v3;

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 @@ -725,14 +724,7 @@ public static ApiFuture<ListIntentsPagedResponse> createAsync(
ApiFuture<ListIntentsPage> futurePage =
ListIntentsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListIntentsPage, ListIntentsPagedResponse>() {
@Override
public ListIntentsPagedResponse apply(ListIntentsPage input) {
return new ListIntentsPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListIntentsPagedResponse(input), MoreExecutors.directExecutor());
}

private ListIntentsPagedResponse(ListIntentsPage page) {
Expand Down
Expand Up @@ -179,14 +179,13 @@ public IntentsStubSettings.Builder getStubSettingsBuilder() {
return ((IntentsStubSettings.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.cx.v3;

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 @@ -734,14 +733,7 @@ public static ApiFuture<ListPagesPagedResponse> createAsync(
ApiFuture<ListPagesPage> futurePage =
ListPagesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListPagesPage, ListPagesPagedResponse>() {
@Override
public ListPagesPagedResponse apply(ListPagesPage input) {
return new ListPagesPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListPagesPagedResponse(input), MoreExecutors.directExecutor());
}

private ListPagesPagedResponse(ListPagesPage page) {
Expand Down
Expand Up @@ -179,14 +179,13 @@ public PagesStubSettings.Builder getStubSettingsBuilder() {
return ((PagesStubSettings.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.cx.v3;

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 @@ -781,12 +780,7 @@ public static ApiFuture<ListSecuritySettingsPagedResponse> createAsync(
ListSecuritySettingsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListSecuritySettingsPage, ListSecuritySettingsPagedResponse>() {
@Override
public ListSecuritySettingsPagedResponse apply(ListSecuritySettingsPage input) {
return new ListSecuritySettingsPagedResponse(input);
}
},
input -> new ListSecuritySettingsPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Expand Up @@ -193,14 +193,13 @@ public SecuritySettingsServiceStubSettings.Builder getStubSettingsBuilder() {
return ((SecuritySettingsServiceStubSettings.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.cx.v3;

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 @@ -808,12 +807,7 @@ public static ApiFuture<ListSessionEntityTypesPagedResponse> createAsync(
ListSessionEntityTypesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListSessionEntityTypesPage, ListSessionEntityTypesPagedResponse>() {
@Override
public ListSessionEntityTypesPagedResponse apply(ListSessionEntityTypesPage input) {
return new ListSessionEntityTypesPagedResponse(input);
}
},
input -> new ListSessionEntityTypesPagedResponse(input),
MoreExecutors.directExecutor());
}

Expand Down
Expand Up @@ -189,14 +189,13 @@ public SessionEntityTypesStubSettings.Builder getStubSettingsBuilder() {
return ((SessionEntityTypesStubSettings.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 @@ -171,14 +171,13 @@ public SessionsStubSettings.Builder getStubSettingsBuilder() {
return ((SessionsStubSettings.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 4057134

Please sign in to comment.