Skip to content

Commit

Permalink
chore: Update generation configuration at Tue Jul 9 02:14:47 UTC 2024 (
Browse files Browse the repository at this point in the history
…googleapis#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
  • Loading branch information
cloud-java-bot committed Jul 9, 2024
1 parent 1d97e4d commit f4a2a5a
Show file tree
Hide file tree
Showing 571 changed files with 169,817 additions and 18,137 deletions.
2 changes: 1 addition & 1 deletion generation_config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
gapic_generator_version: 2.42.0
googleapis_commitish: efae79d0ba30034f2dd075d0213d09e93ebeccff
googleapis_commitish: a3528c3c840f3382747a64e8ede3b2e974053d7f
libraries_bom_version: 26.42.0

# the libraries are ordered with respect to library name, which is
Expand Down
2 changes: 1 addition & 1 deletion java-aiplatform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.46.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.47.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import com.google.longrunning.Operation;
import com.google.longrunning.OperationsClient;
import com.google.protobuf.Empty;
import com.google.protobuf.FieldMask;
import java.io.IOException;
import java.util.List;
import java.util.concurrent.TimeUnit;
Expand Down Expand Up @@ -139,6 +140,25 @@
* </td>
* </tr>
* <tr>
* <td><p> UpdateDeploymentResourcePool</td>
* <td><p> Update a DeploymentResourcePool.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> updateDeploymentResourcePoolAsync(UpdateDeploymentResourcePoolRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> updateDeploymentResourcePoolAsync(DeploymentResourcePool deploymentResourcePool, FieldMask updateMask)
* </ul>
* <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>
* <ul>
* <li><p> updateDeploymentResourcePoolOperationCallable()
* <li><p> updateDeploymentResourcePoolCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> DeleteDeploymentResourcePool</td>
* <td><p> Delete a DeploymentResourcePool.</td>
* <td>
Expand Down Expand Up @@ -877,6 +897,151 @@ public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePool
return stub.listDeploymentResourcePoolsCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Update a DeploymentResourcePool.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
* DeploymentResourcePoolServiceClient.create()) {
* DeploymentResourcePool deploymentResourcePool = DeploymentResourcePool.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
* DeploymentResourcePool response =
* deploymentResourcePoolServiceClient
* .updateDeploymentResourcePoolAsync(deploymentResourcePool, updateMask)
* .get();
* }
* }</pre>
*
* @param deploymentResourcePool Required. The DeploymentResourcePool to update.
* <p>The DeploymentResourcePool's `name` field is used to identify the DeploymentResourcePool
* to update. Format:
* `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
* @param updateMask Required. The list of fields to update.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<
DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata>
updateDeploymentResourcePoolAsync(
DeploymentResourcePool deploymentResourcePool, FieldMask updateMask) {
UpdateDeploymentResourcePoolRequest request =
UpdateDeploymentResourcePoolRequest.newBuilder()
.setDeploymentResourcePool(deploymentResourcePool)
.setUpdateMask(updateMask)
.build();
return updateDeploymentResourcePoolAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Update a DeploymentResourcePool.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
* DeploymentResourcePoolServiceClient.create()) {
* UpdateDeploymentResourcePoolRequest request =
* UpdateDeploymentResourcePoolRequest.newBuilder()
* .setDeploymentResourcePool(DeploymentResourcePool.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* DeploymentResourcePool response =
* deploymentResourcePoolServiceClient.updateDeploymentResourcePoolAsync(request).get();
* }
* }</pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<
DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata>
updateDeploymentResourcePoolAsync(UpdateDeploymentResourcePoolRequest request) {
return updateDeploymentResourcePoolOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Update a DeploymentResourcePool.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
* DeploymentResourcePoolServiceClient.create()) {
* UpdateDeploymentResourcePoolRequest request =
* UpdateDeploymentResourcePoolRequest.newBuilder()
* .setDeploymentResourcePool(DeploymentResourcePool.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* OperationFuture<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata>
* future =
* deploymentResourcePoolServiceClient
* .updateDeploymentResourcePoolOperationCallable()
* .futureCall(request);
* // Do something.
* DeploymentResourcePool response = future.get();
* }
* }</pre>
*/
public final OperationCallable<
UpdateDeploymentResourcePoolRequest,
DeploymentResourcePool,
UpdateDeploymentResourcePoolOperationMetadata>
updateDeploymentResourcePoolOperationCallable() {
return stub.updateDeploymentResourcePoolOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Update a DeploymentResourcePool.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
* DeploymentResourcePoolServiceClient.create()) {
* UpdateDeploymentResourcePoolRequest request =
* UpdateDeploymentResourcePoolRequest.newBuilder()
* .setDeploymentResourcePool(DeploymentResourcePool.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* ApiFuture<Operation> future =
* deploymentResourcePoolServiceClient
* .updateDeploymentResourcePoolCallable()
* .futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<UpdateDeploymentResourcePoolRequest, Operation>
updateDeploymentResourcePoolCallable() {
return stub.updateDeploymentResourcePoolCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Delete a DeploymentResourcePool.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,23 @@ public class DeploymentResourcePoolServiceSettings
.listDeploymentResourcePoolsSettings();
}

/** Returns the object with the settings used for calls to updateDeploymentResourcePool. */
public UnaryCallSettings<UpdateDeploymentResourcePoolRequest, Operation>
updateDeploymentResourcePoolSettings() {
return ((DeploymentResourcePoolServiceStubSettings) getStubSettings())
.updateDeploymentResourcePoolSettings();
}

/** Returns the object with the settings used for calls to updateDeploymentResourcePool. */
public OperationCallSettings<
UpdateDeploymentResourcePoolRequest,
DeploymentResourcePool,
UpdateDeploymentResourcePoolOperationMetadata>
updateDeploymentResourcePoolOperationSettings() {
return ((DeploymentResourcePoolServiceStubSettings) getStubSettings())
.updateDeploymentResourcePoolOperationSettings();
}

/** Returns the object with the settings used for calls to deleteDeploymentResourcePool. */
public UnaryCallSettings<DeleteDeploymentResourcePoolRequest, Operation>
deleteDeploymentResourcePoolSettings() {
Expand Down Expand Up @@ -300,6 +317,21 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().listDeploymentResourcePoolsSettings();
}

/** Returns the builder for the settings used for calls to updateDeploymentResourcePool. */
public UnaryCallSettings.Builder<UpdateDeploymentResourcePoolRequest, Operation>
updateDeploymentResourcePoolSettings() {
return getStubSettingsBuilder().updateDeploymentResourcePoolSettings();
}

/** Returns the builder for the settings used for calls to updateDeploymentResourcePool. */
public OperationCallSettings.Builder<
UpdateDeploymentResourcePoolRequest,
DeploymentResourcePool,
UpdateDeploymentResourcePoolOperationMetadata>
updateDeploymentResourcePoolOperationSettings() {
return getStubSettingsBuilder().updateDeploymentResourcePoolOperationSettings();
}

/** Returns the builder for the settings used for calls to deleteDeploymentResourcePool. */
public UnaryCallSettings.Builder<DeleteDeploymentResourcePoolRequest, Operation>
deleteDeploymentResourcePoolSettings() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ public final UnaryCallable<CountTokensRequest, CountTokensResponse> countTokensC
*
* @param endpoint Required. The name of the Endpoint requested to get lists of tokens and token
* ids.
* @param instances Required. The instances that are the input to token computing API call. Schema
* @param instances Optional. The instances that are the input to token computing API call. Schema
* is identical to the prediction schema of the text model, even for the non-text models, like
* chat models, or Codey models.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
Expand Down Expand Up @@ -473,7 +473,7 @@ public final ComputeTokensResponse computeTokens(EndpointName endpoint, List<Val
*
* @param endpoint Required. The name of the Endpoint requested to get lists of tokens and token
* ids.
* @param instances Required. The instances that are the input to token computing API call. Schema
* @param instances Optional. The instances that are the input to token computing API call. Schema
* is identical to the prediction schema of the text model, even for the non-text models, like
* chat models, or Codey models.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
Expand Down Expand Up @@ -504,6 +504,8 @@ public final ComputeTokensResponse computeTokens(String endpoint, List<Value> in
* "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
* .toString())
* .addAllInstances(new ArrayList<Value>())
* .setModel("model104069929")
* .addAllContents(new ArrayList<Content>())
* .build();
* ComputeTokensResponse response = llmUtilityServiceClient.computeTokens(request);
* }
Expand Down Expand Up @@ -536,6 +538,8 @@ public final ComputeTokensResponse computeTokens(ComputeTokensRequest request) {
* "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
* .toString())
* .addAllInstances(new ArrayList<Value>())
* .setModel("model104069929")
* .addAllContents(new ArrayList<Content>())
* .build();
* ApiFuture<ComputeTokensResponse> future =
* llmUtilityServiceClient.computeTokensCallable().futureCall(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@
},
"TestIamPermissions": {
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
},
"UpdateDeploymentResourcePool": {
"methods": ["updateDeploymentResourcePoolAsync", "updateDeploymentResourcePoolAsync", "updateDeploymentResourcePoolOperationCallable", "updateDeploymentResourcePoolCallable"]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
import com.google.cloud.aiplatform.v1.ListDeploymentResourcePoolsResponse;
import com.google.cloud.aiplatform.v1.QueryDeployedModelsRequest;
import com.google.cloud.aiplatform.v1.QueryDeployedModelsResponse;
import com.google.cloud.aiplatform.v1.UpdateDeploymentResourcePoolOperationMetadata;
import com.google.cloud.aiplatform.v1.UpdateDeploymentResourcePoolRequest;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
Expand Down Expand Up @@ -92,6 +94,21 @@ public OperationsStub getOperationsStub() {
"Not implemented: listDeploymentResourcePoolsCallable()");
}

public OperationCallable<
UpdateDeploymentResourcePoolRequest,
DeploymentResourcePool,
UpdateDeploymentResourcePoolOperationMetadata>
updateDeploymentResourcePoolOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: updateDeploymentResourcePoolOperationCallable()");
}

public UnaryCallable<UpdateDeploymentResourcePoolRequest, Operation>
updateDeploymentResourcePoolCallable() {
throw new UnsupportedOperationException(
"Not implemented: updateDeploymentResourcePoolCallable()");
}

public OperationCallable<DeleteDeploymentResourcePoolRequest, Empty, DeleteOperationMetadata>
deleteDeploymentResourcePoolOperationCallable() {
throw new UnsupportedOperationException(
Expand Down
Loading

0 comments on commit f4a2a5a

Please sign in to comment.