Content-Length: 2053905 | pFad | https://github.com/googleapis/google-cloud-java/commit/f4a2a5ae3f2771343e09af1933ba4a9ee28edcd6

81 chore: Update generation configuration at Tue Jul 9 02:14:47 UTC 202… · googleapis/google-cloud-java@f4a2a5a · GitHub
Skip to content

Commit f4a2a5a

Browse files
chore: Update generation configuration at Tue Jul 9 02:14:47 UTC 2024 (#11008)
* chore: Update generation configuration at Mon Jul 8 13:38:12 UTC 2024 * chore: generate libraries at Mon Jul 8 13:41:35 UTC 2024 * chore: Update generation configuration at Tue Jul 9 02:14:47 UTC 2024 * chore: generate libraries at Tue Jul 9 02:16:24 UTC 2024
1 parent 1d97e4d commit f4a2a5a

File tree

571 files changed

+169817
-18137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

571 files changed

+169817
-18137
lines changed

generation_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
gapic_generator_version: 2.42.0
2-
googleapis_commitish: efae79d0ba30034f2dd075d0213d09e93ebeccff
2+
googleapis_commitish: a3528c3c840f3382747a64e8ede3b2e974053d7f
33
libraries_bom_version: 26.42.0
44

55
# the libraries are ordered with respect to library name, which is

java-aiplatform/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.46.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.47.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolServiceClient.java

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import com.google.longrunning.Operation;
4242
import com.google.longrunning.OperationsClient;
4343
import com.google.protobuf.Empty;
44+
import com.google.protobuf.FieldMask;
4445
import java.io.IOException;
4546
import java.util.List;
4647
import java.util.concurrent.TimeUnit;
@@ -139,6 +140,25 @@
139140
* </td>
140141
* </tr>
141142
* <tr>
143+
* <td><p> UpdateDeploymentResourcePool</td>
144+
* <td><p> Update a DeploymentResourcePool.</td>
145+
* <td>
146+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
147+
* <ul>
148+
* <li><p> updateDeploymentResourcePoolAsync(UpdateDeploymentResourcePoolRequest request)
149+
* </ul>
150+
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
151+
* <ul>
152+
* <li><p> updateDeploymentResourcePoolAsync(DeploymentResourcePool deploymentResourcePool, FieldMask updateMask)
153+
* </ul>
154+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
155+
* <ul>
156+
* <li><p> updateDeploymentResourcePoolOperationCallable()
157+
* <li><p> updateDeploymentResourcePoolCallable()
158+
* </ul>
159+
* </td>
160+
* </tr>
161+
* <tr>
142162
* <td><p> DeleteDeploymentResourcePool</td>
143163
* <td><p> Delete a DeploymentResourcePool.</td>
144164
* <td>
@@ -877,6 +897,151 @@ public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePool
877897
return stub.listDeploymentResourcePoolsCallable();
878898
}
879899

900+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
901+
/**
902+
* Update a DeploymentResourcePool.
903+
*
904+
* <p>Sample code:
905+
*
906+
* <pre>{@code
907+
* // This snippet has been automatically generated and should be regarded as a code template only.
908+
* // It will require modifications to work:
909+
* // - It may require correct/in-range values for request initialization.
910+
* // - It may require specifying regional endpoints when creating the service client as shown in
911+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
912+
* try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
913+
* DeploymentResourcePoolServiceClient.create()) {
914+
* DeploymentResourcePool deploymentResourcePool = DeploymentResourcePool.newBuilder().build();
915+
* FieldMask updateMask = FieldMask.newBuilder().build();
916+
* DeploymentResourcePool response =
917+
* deploymentResourcePoolServiceClient
918+
* .updateDeploymentResourcePoolAsync(deploymentResourcePool, updateMask)
919+
* .get();
920+
* }
921+
* }</pre>
922+
*
923+
* @param deploymentResourcePool Required. The DeploymentResourcePool to update.
924+
* <p>The DeploymentResourcePool's `name` field is used to identify the DeploymentResourcePool
925+
* to update. Format:
926+
* `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
927+
* @param updateMask Required. The list of fields to update.
928+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
929+
*/
930+
public final OperationFuture<
931+
DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata>
932+
updateDeploymentResourcePoolAsync(
933+
DeploymentResourcePool deploymentResourcePool, FieldMask updateMask) {
934+
UpdateDeploymentResourcePoolRequest request =
935+
UpdateDeploymentResourcePoolRequest.newBuilder()
936+
.setDeploymentResourcePool(deploymentResourcePool)
937+
.setUpdateMask(updateMask)
938+
.build();
939+
return updateDeploymentResourcePoolAsync(request);
940+
}
941+
942+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
943+
/**
944+
* Update a DeploymentResourcePool.
945+
*
946+
* <p>Sample code:
947+
*
948+
* <pre>{@code
949+
* // This snippet has been automatically generated and should be regarded as a code template only.
950+
* // It will require modifications to work:
951+
* // - It may require correct/in-range values for request initialization.
952+
* // - It may require specifying regional endpoints when creating the service client as shown in
953+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
954+
* try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
955+
* DeploymentResourcePoolServiceClient.create()) {
956+
* UpdateDeploymentResourcePoolRequest request =
957+
* UpdateDeploymentResourcePoolRequest.newBuilder()
958+
* .setDeploymentResourcePool(DeploymentResourcePool.newBuilder().build())
959+
* .setUpdateMask(FieldMask.newBuilder().build())
960+
* .build();
961+
* DeploymentResourcePool response =
962+
* deploymentResourcePoolServiceClient.updateDeploymentResourcePoolAsync(request).get();
963+
* }
964+
* }</pre>
965+
*
966+
* @param request The request object containing all of the parameters for the API call.
967+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
968+
*/
969+
public final OperationFuture<
970+
DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata>
971+
updateDeploymentResourcePoolAsync(UpdateDeploymentResourcePoolRequest request) {
972+
return updateDeploymentResourcePoolOperationCallable().futureCall(request);
973+
}
974+
975+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
976+
/**
977+
* Update a DeploymentResourcePool.
978+
*
979+
* <p>Sample code:
980+
*
981+
* <pre>{@code
982+
* // This snippet has been automatically generated and should be regarded as a code template only.
983+
* // It will require modifications to work:
984+
* // - It may require correct/in-range values for request initialization.
985+
* // - It may require specifying regional endpoints when creating the service client as shown in
986+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
987+
* try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
988+
* DeploymentResourcePoolServiceClient.create()) {
989+
* UpdateDeploymentResourcePoolRequest request =
990+
* UpdateDeploymentResourcePoolRequest.newBuilder()
991+
* .setDeploymentResourcePool(DeploymentResourcePool.newBuilder().build())
992+
* .setUpdateMask(FieldMask.newBuilder().build())
993+
* .build();
994+
* OperationFuture<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata>
995+
* future =
996+
* deploymentResourcePoolServiceClient
997+
* .updateDeploymentResourcePoolOperationCallable()
998+
* .futureCall(request);
999+
* // Do something.
1000+
* DeploymentResourcePool response = future.get();
1001+
* }
1002+
* }</pre>
1003+
*/
1004+
public final OperationCallable<
1005+
UpdateDeploymentResourcePoolRequest,
1006+
DeploymentResourcePool,
1007+
UpdateDeploymentResourcePoolOperationMetadata>
1008+
updateDeploymentResourcePoolOperationCallable() {
1009+
return stub.updateDeploymentResourcePoolOperationCallable();
1010+
}
1011+
1012+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1013+
/**
1014+
* Update a DeploymentResourcePool.
1015+
*
1016+
* <p>Sample code:
1017+
*
1018+
* <pre>{@code
1019+
* // This snippet has been automatically generated and should be regarded as a code template only.
1020+
* // It will require modifications to work:
1021+
* // - It may require correct/in-range values for request initialization.
1022+
* // - It may require specifying regional endpoints when creating the service client as shown in
1023+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1024+
* try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
1025+
* DeploymentResourcePoolServiceClient.create()) {
1026+
* UpdateDeploymentResourcePoolRequest request =
1027+
* UpdateDeploymentResourcePoolRequest.newBuilder()
1028+
* .setDeploymentResourcePool(DeploymentResourcePool.newBuilder().build())
1029+
* .setUpdateMask(FieldMask.newBuilder().build())
1030+
* .build();
1031+
* ApiFuture<Operation> future =
1032+
* deploymentResourcePoolServiceClient
1033+
* .updateDeploymentResourcePoolCallable()
1034+
* .futureCall(request);
1035+
* // Do something.
1036+
* Operation response = future.get();
1037+
* }
1038+
* }</pre>
1039+
*/
1040+
public final UnaryCallable<UpdateDeploymentResourcePoolRequest, Operation>
1041+
updateDeploymentResourcePoolCallable() {
1042+
return stub.updateDeploymentResourcePoolCallable();
1043+
}
1044+
8801045
// AUTO-GENERATED DOCUMENTATION AND METHOD.
8811046
/**
8821047
* Delete a DeploymentResourcePool.

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolServiceSettings.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,23 @@ public class DeploymentResourcePoolServiceSettings
123123
.listDeploymentResourcePoolsSettings();
124124
}
125125

126+
/** Returns the object with the settings used for calls to updateDeploymentResourcePool. */
127+
public UnaryCallSettings<UpdateDeploymentResourcePoolRequest, Operation>
128+
updateDeploymentResourcePoolSettings() {
129+
return ((DeploymentResourcePoolServiceStubSettings) getStubSettings())
130+
.updateDeploymentResourcePoolSettings();
131+
}
132+
133+
/** Returns the object with the settings used for calls to updateDeploymentResourcePool. */
134+
public OperationCallSettings<
135+
UpdateDeploymentResourcePoolRequest,
136+
DeploymentResourcePool,
137+
UpdateDeploymentResourcePoolOperationMetadata>
138+
updateDeploymentResourcePoolOperationSettings() {
139+
return ((DeploymentResourcePoolServiceStubSettings) getStubSettings())
140+
.updateDeploymentResourcePoolOperationSettings();
141+
}
142+
126143
/** Returns the object with the settings used for calls to deleteDeploymentResourcePool. */
127144
public UnaryCallSettings<DeleteDeploymentResourcePoolRequest, Operation>
128145
deleteDeploymentResourcePoolSettings() {
@@ -300,6 +317,21 @@ public Builder applyToAllUnaryMethods(
300317
return getStubSettingsBuilder().listDeploymentResourcePoolsSettings();
301318
}
302319

320+
/** Returns the builder for the settings used for calls to updateDeploymentResourcePool. */
321+
public UnaryCallSettings.Builder<UpdateDeploymentResourcePoolRequest, Operation>
322+
updateDeploymentResourcePoolSettings() {
323+
return getStubSettingsBuilder().updateDeploymentResourcePoolSettings();
324+
}
325+
326+
/** Returns the builder for the settings used for calls to updateDeploymentResourcePool. */
327+
public OperationCallSettings.Builder<
328+
UpdateDeploymentResourcePoolRequest,
329+
DeploymentResourcePool,
330+
UpdateDeploymentResourcePoolOperationMetadata>
331+
updateDeploymentResourcePoolOperationSettings() {
332+
return getStubSettingsBuilder().updateDeploymentResourcePoolOperationSettings();
333+
}
334+
303335
/** Returns the builder for the settings used for calls to deleteDeploymentResourcePool. */
304336
public UnaryCallSettings.Builder<DeleteDeploymentResourcePoolRequest, Operation>
305337
deleteDeploymentResourcePoolSettings() {

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceClient.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ public final UnaryCallable<CountTokensRequest, CountTokensResponse> countTokensC
436436
*
437437
* @param endpoint Required. The name of the Endpoint requested to get lists of tokens and token
438438
* ids.
439-
* @param instances Required. The instances that are the input to token computing API call. Schema
439+
* @param instances Optional. The instances that are the input to token computing API call. Schema
440440
* is identical to the prediction schema of the text model, even for the non-text models, like
441441
* chat models, or Codey models.
442442
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -473,7 +473,7 @@ public final ComputeTokensResponse computeTokens(EndpointName endpoint, List<Val
473473
*
474474
* @param endpoint Required. The name of the Endpoint requested to get lists of tokens and token
475475
* ids.
476-
* @param instances Required. The instances that are the input to token computing API call. Schema
476+
* @param instances Optional. The instances that are the input to token computing API call. Schema
477477
* is identical to the prediction schema of the text model, even for the non-text models, like
478478
* chat models, or Codey models.
479479
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -504,6 +504,8 @@ public final ComputeTokensResponse computeTokens(String endpoint, List<Value> in
504504
* "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
505505
* .toString())
506506
* .addAllInstances(new ArrayList<Value>())
507+
* .setModel("model104069929")
508+
* .addAllContents(new ArrayList<Content>())
507509
* .build();
508510
* ComputeTokensResponse response = llmUtilityServiceClient.computeTokens(request);
509511
* }
@@ -536,6 +538,8 @@ public final ComputeTokensResponse computeTokens(ComputeTokensRequest request) {
536538
* "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
537539
* .toString())
538540
* .addAllInstances(new ArrayList<Value>())
541+
* .setModel("model104069929")
542+
* .addAllContents(new ArrayList<Content>())
539543
* .build();
540544
* ApiFuture<ComputeTokensResponse> future =
541545
* llmUtilityServiceClient.computeTokensCallable().futureCall(request);

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@
120120
},
121121
"TestIamPermissions": {
122122
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
123+
},
124+
"UpdateDeploymentResourcePool": {
125+
"methods": ["updateDeploymentResourcePoolAsync", "updateDeploymentResourcePoolAsync", "updateDeploymentResourcePoolOperationCallable", "updateDeploymentResourcePoolCallable"]
123126
}
124127
}
125128
}

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DeploymentResourcePoolServiceStub.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
import com.google.cloud.aiplatform.v1.ListDeploymentResourcePoolsResponse;
3434
import com.google.cloud.aiplatform.v1.QueryDeployedModelsRequest;
3535
import com.google.cloud.aiplatform.v1.QueryDeployedModelsResponse;
36+
import com.google.cloud.aiplatform.v1.UpdateDeploymentResourcePoolOperationMetadata;
37+
import com.google.cloud.aiplatform.v1.UpdateDeploymentResourcePoolRequest;
3638
import com.google.cloud.location.GetLocationRequest;
3739
import com.google.cloud.location.ListLocationsRequest;
3840
import com.google.cloud.location.ListLocationsResponse;
@@ -92,6 +94,21 @@ public OperationsStub getOperationsStub() {
9294
"Not implemented: listDeploymentResourcePoolsCallable()");
9395
}
9496

97+
public OperationCallable<
98+
UpdateDeploymentResourcePoolRequest,
99+
DeploymentResourcePool,
100+
UpdateDeploymentResourcePoolOperationMetadata>
101+
updateDeploymentResourcePoolOperationCallable() {
102+
throw new UnsupportedOperationException(
103+
"Not implemented: updateDeploymentResourcePoolOperationCallable()");
104+
}
105+
106+
public UnaryCallable<UpdateDeploymentResourcePoolRequest, Operation>
107+
updateDeploymentResourcePoolCallable() {
108+
throw new UnsupportedOperationException(
109+
"Not implemented: updateDeploymentResourcePoolCallable()");
110+
}
111+
95112
public OperationCallable<DeleteDeploymentResourcePoolRequest, Empty, DeleteOperationMetadata>
96113
deleteDeploymentResourcePoolOperationCallable() {
97114
throw new UnsupportedOperationException(

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/google-cloud-java/commit/f4a2a5ae3f2771343e09af1933ba4a9ee28edcd6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy