Skip to content

Commit

Permalink
chore: generate libraries at Tue Nov 19 02:30:20 UTC 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-java-bot committed Nov 19, 2024
1 parent 6c1cce1 commit 9f2079c
Show file tree
Hide file tree
Showing 135 changed files with 57,617 additions and 1,926 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,25 @@
* </td>
* </tr>
* <tr>
* <td><p> UpdateEndpointLongRunning</td>
* <td><p> Updates an Endpoint with a long running operation.</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> updateEndpointLongRunningAsync(UpdateEndpointLongRunningRequest 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> updateEndpointLongRunningAsync(Endpoint endpoint)
* </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> updateEndpointLongRunningOperationCallable()
* <li><p> updateEndpointLongRunningCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> DeleteEndpoint</td>
* <td><p> Deletes an Endpoint.</td>
* <td>
Expand Down Expand Up @@ -1047,6 +1066,124 @@ public final UnaryCallable<UpdateEndpointRequest, Endpoint> updateEndpointCallab
return stub.updateEndpointCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates an Endpoint with a long running operation.
*
* <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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
* Endpoint endpoint = Endpoint.newBuilder().build();
* Endpoint response = endpointServiceClient.updateEndpointLongRunningAsync(endpoint).get();
* }
* }</pre>
*
* @param endpoint Required. The Endpoint which replaces the resource on the server. Currently we
* only support updating the `client_connection_config` field, all the other fields' update
* will be blocked.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Endpoint, UpdateEndpointOperationMetadata>
updateEndpointLongRunningAsync(Endpoint endpoint) {
UpdateEndpointLongRunningRequest request =
UpdateEndpointLongRunningRequest.newBuilder().setEndpoint(endpoint).build();
return updateEndpointLongRunningAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates an Endpoint with a long running operation.
*
* <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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
* UpdateEndpointLongRunningRequest request =
* UpdateEndpointLongRunningRequest.newBuilder()
* .setEndpoint(Endpoint.newBuilder().build())
* .build();
* Endpoint response = endpointServiceClient.updateEndpointLongRunningAsync(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<Endpoint, UpdateEndpointOperationMetadata>
updateEndpointLongRunningAsync(UpdateEndpointLongRunningRequest request) {
return updateEndpointLongRunningOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates an Endpoint with a long running operation.
*
* <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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
* UpdateEndpointLongRunningRequest request =
* UpdateEndpointLongRunningRequest.newBuilder()
* .setEndpoint(Endpoint.newBuilder().build())
* .build();
* OperationFuture<Endpoint, UpdateEndpointOperationMetadata> future =
* endpointServiceClient.updateEndpointLongRunningOperationCallable().futureCall(request);
* // Do something.
* Endpoint response = future.get();
* }
* }</pre>
*/
public final OperationCallable<
UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata>
updateEndpointLongRunningOperationCallable() {
return stub.updateEndpointLongRunningOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates an Endpoint with a long running operation.
*
* <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 (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
* UpdateEndpointLongRunningRequest request =
* UpdateEndpointLongRunningRequest.newBuilder()
* .setEndpoint(Endpoint.newBuilder().build())
* .build();
* ApiFuture<Operation> future =
* endpointServiceClient.updateEndpointLongRunningCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<UpdateEndpointLongRunningRequest, Operation>
updateEndpointLongRunningCallable() {
return stub.updateEndpointLongRunningCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes an Endpoint.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,20 @@ public UnaryCallSettings<UpdateEndpointRequest, Endpoint> updateEndpointSettings
return ((EndpointServiceStubSettings) getStubSettings()).updateEndpointSettings();
}

/** Returns the object with the settings used for calls to updateEndpointLongRunning. */
public UnaryCallSettings<UpdateEndpointLongRunningRequest, Operation>
updateEndpointLongRunningSettings() {
return ((EndpointServiceStubSettings) getStubSettings()).updateEndpointLongRunningSettings();
}

/** Returns the object with the settings used for calls to updateEndpointLongRunning. */
public OperationCallSettings<
UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata>
updateEndpointLongRunningOperationSettings() {
return ((EndpointServiceStubSettings) getStubSettings())
.updateEndpointLongRunningOperationSettings();
}

/** Returns the object with the settings used for calls to deleteEndpoint. */
public UnaryCallSettings<DeleteEndpointRequest, Operation> deleteEndpointSettings() {
return ((EndpointServiceStubSettings) getStubSettings()).deleteEndpointSettings();
Expand Down Expand Up @@ -353,6 +367,19 @@ public UnaryCallSettings.Builder<UpdateEndpointRequest, Endpoint> updateEndpoint
return getStubSettingsBuilder().updateEndpointSettings();
}

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

/** Returns the builder for the settings used for calls to updateEndpointLongRunning. */
public OperationCallSettings.Builder<
UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata>
updateEndpointLongRunningOperationSettings() {
return getStubSettingsBuilder().updateEndpointLongRunningOperationSettings();
}

/** Returns the builder for the settings used for calls to deleteEndpoint. */
public UnaryCallSettings.Builder<DeleteEndpointRequest, Operation> deleteEndpointSettings() {
return getStubSettingsBuilder().deleteEndpointSettings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@
},
"UpdateEndpoint": {
"methods": ["updateEndpoint", "updateEndpoint", "updateEndpointCallable"]
},
"UpdateEndpointLongRunning": {
"methods": ["updateEndpointLongRunningAsync", "updateEndpointLongRunningAsync", "updateEndpointLongRunningOperationCallable", "updateEndpointLongRunningCallable"]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
import com.google.cloud.aiplatform.v1.UndeployModelOperationMetadata;
import com.google.cloud.aiplatform.v1.UndeployModelRequest;
import com.google.cloud.aiplatform.v1.UndeployModelResponse;
import com.google.cloud.aiplatform.v1.UpdateEndpointLongRunningRequest;
import com.google.cloud.aiplatform.v1.UpdateEndpointOperationMetadata;
import com.google.cloud.aiplatform.v1.UpdateEndpointRequest;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
Expand Down Expand Up @@ -93,6 +95,18 @@ public UnaryCallable<UpdateEndpointRequest, Endpoint> updateEndpointCallable() {
throw new UnsupportedOperationException("Not implemented: updateEndpointCallable()");
}

public OperationCallable<
UpdateEndpointLongRunningRequest, Endpoint, UpdateEndpointOperationMetadata>
updateEndpointLongRunningOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: updateEndpointLongRunningOperationCallable()");
}

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

public OperationCallable<DeleteEndpointRequest, Empty, DeleteOperationMetadata>
deleteEndpointOperationCallable() {
throw new UnsupportedOperationException("Not implemented: deleteEndpointOperationCallable()");
Expand Down
Loading

0 comments on commit 9f2079c

Please sign in to comment.