Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* <pre>
* <code>
* try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
* DataSourceNameOneof name = DataSourceNameOneof.from(LocationDataSourceName.of("[PROJECT]", "[LOCATION]", "[DATA_SOURCE]"));
* DataSourceName name = ProjectDataSourceName.of("[PROJECT]", "[DATA_SOURCE]");
* DataSource response = dataTransferServiceClient.getDataSource(name);
* }
* </code>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public final OperationFuture<Instance, CreateInstanceMetadata> createInstanceAsy

CreateInstanceRequest request =
CreateInstanceRequest.newBuilder()
.setParent(parent.toString())
.setParent(parent == null ? null : parent.toString())
.setInstanceId(instanceId)
.setInstance(instance)
.putAllClusters(clusters)
Expand Down Expand Up @@ -353,7 +353,8 @@ public final UnaryCallable<CreateInstanceRequest, Operation> createInstanceCalla
*/
public final Instance getInstance(InstanceName name) {

GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name.toString()).build();
GetInstanceRequest request =
GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return getInstance(request);
}

Expand Down Expand Up @@ -422,7 +423,9 @@ public final UnaryCallable<GetInstanceRequest, Instance> getInstanceCallable() {
public final ListInstancesResponse listInstances(ProjectName parent) {

ListInstancesRequest request =
ListInstancesRequest.newBuilder().setParent(parent.toString()).build();
ListInstancesRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.build();
return listInstances(request);
}

Expand Down Expand Up @@ -597,7 +600,7 @@ public final OperationFuture<Instance, UpdateInstanceMetadata> partialUpdateInst
public final void deleteInstance(InstanceName name) {

DeleteInstanceRequest request =
DeleteInstanceRequest.newBuilder().setName(name.toString()).build();
DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
deleteInstance(request);
}

Expand Down Expand Up @@ -673,7 +676,7 @@ public final OperationFuture<Cluster, CreateClusterMetadata> createClusterAsync(

CreateClusterRequest request =
CreateClusterRequest.newBuilder()
.setParent(parent.toString())
.setParent(parent == null ? null : parent.toString())
.setClusterId(clusterId)
.setCluster(cluster)
.build();
Expand Down Expand Up @@ -780,7 +783,8 @@ public final UnaryCallable<CreateClusterRequest, Operation> createClusterCallabl
*/
public final Cluster getCluster(ClusterName name) {

GetClusterRequest request = GetClusterRequest.newBuilder().setName(name.toString()).build();
GetClusterRequest request =
GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return getCluster(request);
}

Expand Down Expand Up @@ -851,7 +855,9 @@ public final UnaryCallable<GetClusterRequest, Cluster> getClusterCallable() {
public final ListClustersResponse listClusters(InstanceName parent) {

ListClustersRequest request =
ListClustersRequest.newBuilder().setParent(parent.toString()).build();
ListClustersRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.build();
return listClusters(request);
}

Expand Down Expand Up @@ -1000,7 +1006,7 @@ public final UnaryCallable<Cluster, Operation> updateClusterCallable() {
public final void deleteCluster(ClusterName name) {

DeleteClusterRequest request =
DeleteClusterRequest.newBuilder().setName(name.toString()).build();
DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build();
deleteCluster(request);
}

Expand Down Expand Up @@ -1082,7 +1088,7 @@ public final AppProfile createAppProfile(

CreateAppProfileRequest request =
CreateAppProfileRequest.newBuilder()
.setParent(parent.toString())
.setParent(parent == null ? null : parent.toString())
.setAppProfileId(appProfileId)
.setAppProfile(appProfile)
.build();
Expand Down Expand Up @@ -1177,7 +1183,7 @@ public final UnaryCallable<CreateAppProfileRequest, AppProfile> createAppProfile
public final AppProfile getAppProfile(AppProfileName name) {

GetAppProfileRequest request =
GetAppProfileRequest.newBuilder().setName(name.toString()).build();
GetAppProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return getAppProfile(request);
}

Expand Down Expand Up @@ -1262,7 +1268,9 @@ public final UnaryCallable<GetAppProfileRequest, AppProfile> getAppProfileCallab
*/
public final ListAppProfilesPagedResponse listAppProfiles(InstanceName parent) {
ListAppProfilesRequest request =
ListAppProfilesRequest.newBuilder().setParent(parent.toString()).build();
ListAppProfilesRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.build();
return listAppProfiles(request);
}

Expand Down Expand Up @@ -1513,7 +1521,7 @@ public final UnaryCallable<UpdateAppProfileRequest, Operation> updateAppProfileC
public final void deleteAppProfile(AppProfileName name) {

DeleteAppProfileRequest request =
DeleteAppProfileRequest.newBuilder().setName(name.toString()).build();
DeleteAppProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build();
deleteAppProfile(request);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public final Table createTable(InstanceName parent, String tableId, Table table)

CreateTableRequest request =
CreateTableRequest.newBuilder()
.setParent(parent.toString())
.setParent(parent == null ? null : parent.toString())
.setTableId(tableId)
.setTable(table)
.build();
Expand Down Expand Up @@ -323,7 +323,7 @@ public final OperationFuture<Table, CreateTableFromSnapshotMetadata> createTable

CreateTableFromSnapshotRequest request =
CreateTableFromSnapshotRequest.newBuilder()
.setParent(parent.toString())
.setParent(parent == null ? null : parent.toString())
.setTableId(tableId)
.setSourceSnapshot(sourceSnapshot)
.build();
Expand Down Expand Up @@ -451,7 +451,8 @@ public final OperationFuture<Table, CreateTableFromSnapshotMetadata> createTable
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTablesPagedResponse listTables(InstanceName parent) {
ListTablesRequest request = ListTablesRequest.newBuilder().setParent(parent.toString()).build();
ListTablesRequest request =
ListTablesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
return listTables(request);
}

Expand Down Expand Up @@ -554,7 +555,8 @@ public final UnaryCallable<ListTablesRequest, ListTablesResponse> listTablesCall
*/
public final Table getTable(TableName name) {

GetTableRequest request = GetTableRequest.newBuilder().setName(name.toString()).build();
GetTableRequest request =
GetTableRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return getTable(request);
}

Expand Down Expand Up @@ -622,7 +624,8 @@ public final UnaryCallable<GetTableRequest, Table> getTableCallable() {
*/
public final void deleteTable(TableName name) {

DeleteTableRequest request = DeleteTableRequest.newBuilder().setName(name.toString()).build();
DeleteTableRequest request =
DeleteTableRequest.newBuilder().setName(name == null ? null : name.toString()).build();
deleteTable(request);
}

Expand Down Expand Up @@ -699,7 +702,7 @@ public final Table modifyColumnFamilies(

ModifyColumnFamiliesRequest request =
ModifyColumnFamiliesRequest.newBuilder()
.setName(name.toString())
.setName(name == null ? null : name.toString())
.addAllModifications(modifications)
.build();
return modifyColumnFamilies(request);
Expand Down Expand Up @@ -832,7 +835,9 @@ public final UnaryCallable<DropRowRangeRequest, Empty> dropRowRangeCallable() {
public final GenerateConsistencyTokenResponse generateConsistencyToken(TableName name) {

GenerateConsistencyTokenRequest request =
GenerateConsistencyTokenRequest.newBuilder().setName(name.toString()).build();
GenerateConsistencyTokenRequest.newBuilder()
.setName(name == null ? null : name.toString())
.build();
return generateConsistencyToken(request);
}

Expand Down Expand Up @@ -926,7 +931,7 @@ public final CheckConsistencyResponse checkConsistency(TableName name, String co

CheckConsistencyRequest request =
CheckConsistencyRequest.newBuilder()
.setName(name.toString())
.setName(name == null ? null : name.toString())
.setConsistencyToken(consistencyToken)
.build();
return checkConsistency(request);
Expand Down Expand Up @@ -1123,7 +1128,8 @@ public final UnaryCallable<SnapshotTableRequest, Operation> snapshotTableCallabl
*/
public final Snapshot getSnapshot(SnapshotName name) {

GetSnapshotRequest request = GetSnapshotRequest.newBuilder().setName(name.toString()).build();
GetSnapshotRequest request =
GetSnapshotRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return getSnapshot(request);
}

Expand Down Expand Up @@ -1210,7 +1216,9 @@ public final UnaryCallable<GetSnapshotRequest, Snapshot> getSnapshotCallable() {
*/
public final ListSnapshotsPagedResponse listSnapshots(ClusterName parent) {
ListSnapshotsRequest request =
ListSnapshotsRequest.newBuilder().setParent(parent.toString()).build();
ListSnapshotsRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.build();
return listSnapshots(request);
}

Expand Down Expand Up @@ -1335,7 +1343,7 @@ public final UnaryCallable<ListSnapshotsRequest, ListSnapshotsResponse> listSnap
public final void deleteSnapshot(SnapshotName name) {

DeleteSnapshotRequest request =
DeleteSnapshotRequest.newBuilder().setName(name.toString()).build();
DeleteSnapshotRequest.newBuilder().setName(name == null ? null : name.toString()).build();
deleteSnapshot(request);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public final MutateRowResponse mutateRow(

MutateRowRequest request =
MutateRowRequest.newBuilder()
.setTableName(tableName.toString())
.setTableName(tableName == null ? null : tableName.toString())
.setRowKey(rowKey)
.addAllMutations(mutations)
.build();
Expand Down Expand Up @@ -426,7 +426,7 @@ public final CheckAndMutateRowResponse checkAndMutateRow(

CheckAndMutateRowRequest request =
CheckAndMutateRowRequest.newBuilder()
.setTableName(tableName.toString())
.setTableName(tableName == null ? null : tableName.toString())
.setRowKey(rowKey)
.setPredicateFilter(predicateFilter)
.addAllTrueMutations(trueMutations)
Expand Down Expand Up @@ -517,7 +517,7 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(

ReadModifyWriteRowRequest request =
ReadModifyWriteRowRequest.newBuilder()
.setTableName(tableName.toString())
.setTableName(tableName == null ? null : tableName.toString())
.setRowKey(rowKey)
.addAllRules(rules)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ private static Builder initDefaults(Builder builder) {

builder
.mutateRowSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));

builder
Expand Down
6 changes: 3 additions & 3 deletions google-cloud-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@
<properties>
<api-client.version>1.23.0</api-client.version>

<api-common.version>1.2.0</api-common.version>
<api-common.version>1.3.0</api-common.version>
<gax.version>1.19.0</gax.version>
<gax-grpc.version>1.19.0</gax-grpc.version>
<gax-httpjson.version>0.36.0</gax-httpjson.version>
<generated-proto-beta.version>0.1.30</generated-proto-beta.version>
<generated-proto-ga.version>1.0.6</generated-proto-ga.version>
<generated-proto-beta.version>0.2.0</generated-proto-beta.version>
<generated-proto-ga.version>1.1.0</generated-proto-ga.version>
<google.auth.version>0.9.0</google.auth.version>
<grpc.version>1.9.0</grpc.version>
<nettyssl.version>2.0.7.Final</nettyssl.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,29 @@

// AUTO-GENERATED DOCUMENTATION AND SERVICE
/**
* Service Description: Manages conversational agents.
* Service Description: Agents are best described as Natural Language Understanding (NLU) modules
* that transform user requests into actionable data. You can include agents in your app, product,
* or service to determine user intent and respond to the user in a natural way.
*
* <p>Refer to the [Dialogflow documentation](https://dialogflow.com/docs/agents) for more details
* about agents. #
* <p>After you create an agent, you can add [Intents][google.cloud.dialogflow.v2beta1.Intents],
* [Contexts][google.cloud.dialogflow.v2beta1.Contexts], [Entity
* Types][google.cloud.dialogflow.v2beta1.EntityTypes],
* [Webhooks][google.cloud.dialogflow.v2beta1.WebhookRequest], and so on to manage the flow of a
* conversation and match user input to predefined intents and actions.
*
* <p>You can create an agent using both Dialogflow Standard Edition and Dialogflow Enterprise
* Edition. For details, see [Dialogflow Editions](/dialogflow-enterprise/docs/editions).
*
* <p>You can save your agent for backup or versioning by exporting the agent by using the
* [ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent] method. You can import a saved
* agent by using the [ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent] method.
*
* <p>Dialogflow provides several [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for
* common conversation scenarios such as determining a date and time, converting currency, and so
* on.
*
* <p>For more information about agents, see the [Dialogflow
* documentation](https://dialogflow.com/docs/agents).
*
* <p>This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods. Sample code to get started:
Expand Down Expand Up @@ -189,7 +208,8 @@ public final OperationsClient getOperationsClient() {
*/
public final Agent getAgent(ProjectName parent) {

GetAgentRequest request = GetAgentRequest.newBuilder().setParent(parent.toString()).build();
GetAgentRequest request =
GetAgentRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
return getAgent(request);
}

Expand Down Expand Up @@ -264,7 +284,9 @@ public final UnaryCallable<GetAgentRequest, Agent> getAgentCallable() {
*/
public final SearchAgentsPagedResponse searchAgents(ProjectName parent) {
SearchAgentsRequest request =
SearchAgentsRequest.newBuilder().setParent(parent.toString()).build();
SearchAgentsRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.build();
return searchAgents(request);
}

Expand Down Expand Up @@ -386,7 +408,8 @@ public final UnaryCallable<SearchAgentsRequest, SearchAgentsResponse> searchAgen
*/
public final OperationFuture<Empty, Struct> trainAgentAsync(ProjectName parent) {

TrainAgentRequest request = TrainAgentRequest.newBuilder().setParent(parent.toString()).build();
TrainAgentRequest request =
TrainAgentRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
return trainAgentAsync(request);
}

Expand Down Expand Up @@ -490,7 +513,9 @@ public final UnaryCallable<TrainAgentRequest, Operation> trainAgentCallable() {
public final OperationFuture<ExportAgentResponse, Struct> exportAgentAsync(ProjectName parent) {

ExportAgentRequest request =
ExportAgentRequest.newBuilder().setParent(parent.toString()).build();
ExportAgentRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.build();
return exportAgentAsync(request);
}

Expand Down
Loading