Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e43a27

Browse files
authored
Regen to update grpc/proto dependency versions
1 parent 112b25c commit 3e43a27

File tree

24 files changed

+4006
-2
lines changed

24 files changed

+4006
-2
lines changed

google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java

Lines changed: 308 additions & 0 deletions
Large diffs are not rendered by default.

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminClient.java

Lines changed: 333 additions & 0 deletions
Large diffs are not rendered by default.

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,42 @@ public final MutateRowResponse mutateRow(
286286
return mutateRow(request);
287287
}
288288

289+
// AUTO-GENERATED DOCUMENTATION AND METHOD
290+
/**
291+
* Mutates a row atomically. Cells already present in the row are left unchanged unless explicitly
292+
* changed by `mutation`.
293+
*
294+
* <p>Sample code:
295+
*
296+
* <pre><code>
297+
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
298+
* TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
299+
* ByteString rowKey = ByteString.copyFromUtf8("");
300+
* List&lt;Mutation&gt; mutations = new ArrayList&lt;&gt;();
301+
* MutateRowResponse response = baseBigtableDataClient.mutateRow(tableName.toString(), rowKey, mutations);
302+
* }
303+
* </code></pre>
304+
*
305+
* @param tableName The unique name of the table to which the mutation should be applied. Values
306+
* are of the form `projects/&lt;project&gt;/instances/&lt;instance&gt;/tables/&lt;table&gt;`.
307+
* @param rowKey The key of the row to which the mutation should be applied.
308+
* @param mutations Changes to be atomically applied to the specified row. Entries are applied in
309+
* order, meaning that earlier mutations can be masked by later ones. Must contain at least
310+
* one entry and at most 100000.
311+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
312+
*/
313+
public final MutateRowResponse mutateRow(
314+
String tableName, ByteString rowKey, List<Mutation> mutations) {
315+
316+
MutateRowRequest request =
317+
MutateRowRequest.newBuilder()
318+
.setTableName(tableName)
319+
.setRowKey(rowKey)
320+
.addAllMutations(mutations)
321+
.build();
322+
return mutateRow(request);
323+
}
324+
289325
// AUTO-GENERATED DOCUMENTATION AND METHOD
290326
/**
291327
* Mutates a row atomically. Cells already present in the row are left unchanged unless explicitly
@@ -435,6 +471,58 @@ public final CheckAndMutateRowResponse checkAndMutateRow(
435471
return checkAndMutateRow(request);
436472
}
437473

474+
// AUTO-GENERATED DOCUMENTATION AND METHOD
475+
/**
476+
* Mutates a row atomically based on the output of a predicate Reader filter.
477+
*
478+
* <p>Sample code:
479+
*
480+
* <pre><code>
481+
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
482+
* TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
483+
* ByteString rowKey = ByteString.copyFromUtf8("");
484+
* RowFilter predicateFilter = RowFilter.newBuilder().build();
485+
* List&lt;Mutation&gt; trueMutations = new ArrayList&lt;&gt;();
486+
* List&lt;Mutation&gt; falseMutations = new ArrayList&lt;&gt;();
487+
* CheckAndMutateRowResponse response = baseBigtableDataClient.checkAndMutateRow(tableName.toString(), rowKey, predicateFilter, trueMutations, falseMutations);
488+
* }
489+
* </code></pre>
490+
*
491+
* @param tableName The unique name of the table to which the conditional mutation should be
492+
* applied. Values are of the form
493+
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/tables/&lt;table&gt;`.
494+
* @param rowKey The key of the row to which the conditional mutation should be applied.
495+
* @param predicateFilter The filter to be applied to the contents of the specified row. Depending
496+
* on whether or not any results are yielded, either `true_mutations` or `false_mutations`
497+
* will be executed. If unset, checks that the row contains any values at all.
498+
* @param trueMutations Changes to be atomically applied to the specified row if
499+
* `predicate_filter` yields at least one cell when applied to `row_key`. Entries are applied
500+
* in order, meaning that earlier mutations can be masked by later ones. Must contain at least
501+
* one entry if `false_mutations` is empty, and at most 100000.
502+
* @param falseMutations Changes to be atomically applied to the specified row if
503+
* `predicate_filter` does not yield any cells when applied to `row_key`. Entries are applied
504+
* in order, meaning that earlier mutations can be masked by later ones. Must contain at least
505+
* one entry if `true_mutations` is empty, and at most 100000.
506+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
507+
*/
508+
public final CheckAndMutateRowResponse checkAndMutateRow(
509+
String tableName,
510+
ByteString rowKey,
511+
RowFilter predicateFilter,
512+
List<Mutation> trueMutations,
513+
List<Mutation> falseMutations) {
514+
515+
CheckAndMutateRowRequest request =
516+
CheckAndMutateRowRequest.newBuilder()
517+
.setTableName(tableName)
518+
.setRowKey(rowKey)
519+
.setPredicateFilter(predicateFilter)
520+
.addAllTrueMutations(trueMutations)
521+
.addAllFalseMutations(falseMutations)
522+
.build();
523+
return checkAndMutateRow(request);
524+
}
525+
438526
// AUTO-GENERATED DOCUMENTATION AND METHOD
439527
/**
440528
* Mutates a row atomically based on the output of a predicate Reader filter.
@@ -524,6 +612,45 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(
524612
return readModifyWriteRow(request);
525613
}
526614

615+
// AUTO-GENERATED DOCUMENTATION AND METHOD
616+
/**
617+
* Modifies a row atomically on the server. The method reads the latest existing timestamp and
618+
* value from the specified columns and writes a new entry based on pre-defined read/modify/write
619+
* rules. The new value for the timestamp is the greater of the existing timestamp or the current
620+
* server time. The method returns the new contents of all modified cells.
621+
*
622+
* <p>Sample code:
623+
*
624+
* <pre><code>
625+
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
626+
* TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
627+
* ByteString rowKey = ByteString.copyFromUtf8("");
628+
* List&lt;ReadModifyWriteRule&gt; rules = new ArrayList&lt;&gt;();
629+
* ReadModifyWriteRowResponse response = baseBigtableDataClient.readModifyWriteRow(tableName.toString(), rowKey, rules);
630+
* }
631+
* </code></pre>
632+
*
633+
* @param tableName The unique name of the table to which the read/modify/write rules should be
634+
* applied. Values are of the form
635+
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/tables/&lt;table&gt;`.
636+
* @param rowKey The key of the row to which the read/modify/write rules should be applied.
637+
* @param rules Rules specifying how the specified row's contents are to be transformed into
638+
* writes. Entries are applied in order, meaning that earlier rules will affect the results of
639+
* later ones.
640+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
641+
*/
642+
public final ReadModifyWriteRowResponse readModifyWriteRow(
643+
String tableName, ByteString rowKey, List<ReadModifyWriteRule> rules) {
644+
645+
ReadModifyWriteRowRequest request =
646+
ReadModifyWriteRowRequest.newBuilder()
647+
.setTableName(tableName)
648+
.setRowKey(rowKey)
649+
.addAllRules(rules)
650+
.build();
651+
return readModifyWriteRow(request);
652+
}
653+
527654
// AUTO-GENERATED DOCUMENTATION AND METHOD
528655
/**
529656
* Modifies a row atomically on the server. The method reads the latest existing timestamp and

google-cloud-bom/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@
130130
<gax.version>1.19.0</gax.version>
131131
<gax-grpc.version>1.19.0</gax-grpc.version>
132132
<gax-httpjson.version>0.36.0</gax-httpjson.version>
133-
<generated-proto-beta.version>0.2.0</generated-proto-beta.version>
134-
<generated-proto-ga.version>1.1.0</generated-proto-ga.version>
133+
<generated-proto-beta.version>0.2.1</generated-proto-beta.version>
134+
<generated-proto-ga.version>1.1.1</generated-proto-ga.version>
135135
<google.auth.version>0.9.0</google.auth.version>
136136
<grpc.version>1.9.0</grpc.version>
137137
<nettyssl.version>2.0.7.Final</nettyssl.version>

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

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,29 @@ public final Agent getAgent(ProjectName parent) {
213213
return getAgent(request);
214214
}
215215

216+
// AUTO-GENERATED DOCUMENTATION AND METHOD
217+
/**
218+
* Retrieves the specified agent.
219+
*
220+
* <p>Sample code:
221+
*
222+
* <pre><code>
223+
* try (AgentsClient agentsClient = AgentsClient.create()) {
224+
* ProjectName parent = ProjectName.of("[PROJECT]");
225+
* Agent response = agentsClient.getAgent(parent.toString());
226+
* }
227+
* </code></pre>
228+
*
229+
* @param parent Required. The project that the agent to fetch is associated with. Format:
230+
* `projects/&lt;Project ID&gt;`.
231+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
232+
*/
233+
public final Agent getAgent(String parent) {
234+
235+
GetAgentRequest request = GetAgentRequest.newBuilder().setParent(parent).build();
236+
return getAgent(request);
237+
}
238+
216239
// AUTO-GENERATED DOCUMENTATION AND METHOD
217240
/**
218241
* Retrieves the specified agent.
@@ -290,6 +313,35 @@ public final SearchAgentsPagedResponse searchAgents(ProjectName parent) {
290313
return searchAgents(request);
291314
}
292315

316+
// AUTO-GENERATED DOCUMENTATION AND METHOD
317+
/**
318+
* Returns the list of agents.
319+
*
320+
* <p>Since there is at most one conversational agent per project, this method is useful primarily
321+
* for listing all agents across projects the caller has access to. One can achieve that with a
322+
* wildcard project collection id "-". Refer to [List
323+
* Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
324+
*
325+
* <p>Sample code:
326+
*
327+
* <pre><code>
328+
* try (AgentsClient agentsClient = AgentsClient.create()) {
329+
* ProjectName parent = ProjectName.of("[PROJECT]");
330+
* for (Agent element : agentsClient.searchAgents(parent.toString()).iterateAll()) {
331+
* // doThingsWith(element);
332+
* }
333+
* }
334+
* </code></pre>
335+
*
336+
* @param parent Required. The project to list agents from. Format: `projects/&lt;Project ID or
337+
* '-'&gt;`.
338+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
339+
*/
340+
public final SearchAgentsPagedResponse searchAgents(String parent) {
341+
SearchAgentsRequest request = SearchAgentsRequest.newBuilder().setParent(parent).build();
342+
return searchAgents(request);
343+
}
344+
293345
// AUTO-GENERATED DOCUMENTATION AND METHOD
294346
/**
295347
* Returns the list of agents.
@@ -413,6 +465,32 @@ public final OperationFuture<Empty, Struct> trainAgentAsync(ProjectName parent)
413465
return trainAgentAsync(request);
414466
}
415467

468+
// AUTO-GENERATED DOCUMENTATION AND METHOD
469+
/**
470+
* Trains the specified agent.
471+
*
472+
* <p>Operation &lt;response: [google.protobuf.Empty][google.protobuf.Empty], metadata:
473+
* [google.protobuf.Struct][google.protobuf.Struct]&gt;
474+
*
475+
* <p>Sample code:
476+
*
477+
* <pre><code>
478+
* try (AgentsClient agentsClient = AgentsClient.create()) {
479+
* ProjectName parent = ProjectName.of("[PROJECT]");
480+
* Empty response = agentsClient.trainAgentAsync(parent.toString()).get();
481+
* }
482+
* </code></pre>
483+
*
484+
* @param parent Required. The project that the agent to train is associated with. Format:
485+
* `projects/&lt;Project ID&gt;`.
486+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
487+
*/
488+
public final OperationFuture<Empty, Struct> trainAgentAsync(String parent) {
489+
490+
TrainAgentRequest request = TrainAgentRequest.newBuilder().setParent(parent).build();
491+
return trainAgentAsync(request);
492+
}
493+
416494
// AUTO-GENERATED DOCUMENTATION AND METHOD
417495
/**
418496
* Trains the specified agent.
@@ -519,6 +597,33 @@ public final OperationFuture<ExportAgentResponse, Struct> exportAgentAsync(Proje
519597
return exportAgentAsync(request);
520598
}
521599

600+
// AUTO-GENERATED DOCUMENTATION AND METHOD
601+
/**
602+
* Exports the specified agent to a ZIP file.
603+
*
604+
* <p>Operation &lt;response:
605+
* [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse], metadata:
606+
* [google.protobuf.Struct][google.protobuf.Struct]&gt;
607+
*
608+
* <p>Sample code:
609+
*
610+
* <pre><code>
611+
* try (AgentsClient agentsClient = AgentsClient.create()) {
612+
* ProjectName parent = ProjectName.of("[PROJECT]");
613+
* ExportAgentResponse response = agentsClient.exportAgentAsync(parent.toString()).get();
614+
* }
615+
* </code></pre>
616+
*
617+
* @param parent Required. The project that the agent to export is associated with. Format:
618+
* `projects/&lt;Project ID&gt;`.
619+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
620+
*/
621+
public final OperationFuture<ExportAgentResponse, Struct> exportAgentAsync(String parent) {
622+
623+
ExportAgentRequest request = ExportAgentRequest.newBuilder().setParent(parent).build();
624+
return exportAgentAsync(request);
625+
}
626+
522627
// AUTO-GENERATED DOCUMENTATION AND METHOD
523628
/**
524629
* Exports the specified agent to a ZIP file.

0 commit comments

Comments
 (0)