@Generated(value="by gapic-generator-java") public class AppPlatformClient extends Object implements com.google.api.gax.core.BackgroundResource
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:
// 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ApplicationName name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]");
Application response = appPlatformClient.getApplication(name);
}
Note: close() needs to be called on the AppPlatformClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
| Method | Description | Method Variants |
|---|---|---|
ListApplications |
Lists Applications in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetApplication |
Gets details of a single Application. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateApplication |
Creates a new Application in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateApplication |
Updates the parameters of a single Application. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteApplication |
Deletes a single Application. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeployApplication |
Deploys a single Application. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UndeployApplication |
Undeploys a single Application. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
AddApplicationStreamInput |
Adds target stream input to the Application. If the Application is deployed, the corresponding new Application instance will be created. If the stream has already been in the Application, the RPC will fail. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
RemoveApplicationStreamInput |
Remove target stream input to the Application, if the Application is deployed, the corresponding instance based will be deleted. If the stream is not in the Application, the RPC will fail. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateApplicationStreamInput |
Update target stream input to the Application, if the Application is deployed, the corresponding instance based will be deployed. For CreateOrUpdate behavior, set allow_missing to true. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListInstances |
Lists Instances in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetInstance |
Gets details of a single Instance. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateApplicationInstances |
Adds target stream input to the Application. If the Application is deployed, the corresponding new Application instance will be created. If the stream has already been in the Application, the RPC will fail. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteApplicationInstances |
Remove target stream input to the Application, if the Application is deployed, the corresponding instance based will be deleted. If the stream is not in the Application, the RPC will fail. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateApplicationInstances |
Adds target stream input to the Application. If the Application is deployed, the corresponding new Application instance will be created. If the stream has already been in the Application, the RPC will fail. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListDrafts |
Lists Drafts in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetDraft |
Gets details of a single Draft. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateDraft |
Creates a new Draft in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateDraft |
Updates the parameters of a single Draft. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteDraft |
Deletes a single Draft. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListProcessors |
Lists Processors in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListPrebuiltProcessors |
ListPrebuiltProcessors is a custom pass-through verb that Lists Prebuilt Processors. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetProcessor |
Gets details of a single Processor. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateProcessor |
Creates a new Processor in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateProcessor |
Updates the parameters of a single Processor. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteProcessor |
Deletes a single Processor. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of AppPlatformSettings to create(). For example:
To customize credentials:
// 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
AppPlatformSettings appPlatformSettings =
AppPlatformSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
AppPlatformClient appPlatformClient = AppPlatformClient.create(appPlatformSettings);
To customize the endpoint:
// 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
AppPlatformSettings appPlatformSettings =
AppPlatformSettings.newBuilder().setEndpoint(myEndpoint).build();
AppPlatformClient appPlatformClient = AppPlatformClient.create(appPlatformSettings);
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:
// 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
AppPlatformSettings appPlatformSettings = AppPlatformSettings.newHttpJsonBuilder().build();
AppPlatformClient appPlatformClient = AppPlatformClient.create(appPlatformSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
| Modifier and Type | Class and Description |
|---|---|
static class |
AppPlatformClient.ListApplicationsFixedSizeCollection |
static class |
AppPlatformClient.ListApplicationsPage |
static class |
AppPlatformClient.ListApplicationsPagedResponse |
static class |
AppPlatformClient.ListDraftsFixedSizeCollection |
static class |
AppPlatformClient.ListDraftsPage |
static class |
AppPlatformClient.ListDraftsPagedResponse |
static class |
AppPlatformClient.ListInstancesFixedSizeCollection |
static class |
AppPlatformClient.ListInstancesPage |
static class |
AppPlatformClient.ListInstancesPagedResponse |
static class |
AppPlatformClient.ListProcessorsFixedSizeCollection |
static class |
AppPlatformClient.ListProcessorsPage |
static class |
AppPlatformClient.ListProcessorsPagedResponse |
| Modifier | Constructor and Description |
|---|---|
protected |
AppPlatformClient(AppPlatformSettings settings)
Constructs an instance of AppPlatformClient, using the given settings.
|
protected |
AppPlatformClient(AppPlatformStub stub) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.gax.longrunning.OperationFuture<AddApplicationStreamInputResponse,OperationMetadata> |
addApplicationStreamInputAsync(AddApplicationStreamInputRequest request)
Adds target stream input to the Application.
|
com.google.api.gax.longrunning.OperationFuture<AddApplicationStreamInputResponse,OperationMetadata> |
addApplicationStreamInputAsync(ApplicationName name)
Adds target stream input to the Application.
|
com.google.api.gax.longrunning.OperationFuture<AddApplicationStreamInputResponse,OperationMetadata> |
addApplicationStreamInputAsync(String name)
Adds target stream input to the Application.
|
com.google.api.gax.rpc.UnaryCallable<AddApplicationStreamInputRequest,com.google.longrunning.Operation> |
addApplicationStreamInputCallable()
Adds target stream input to the Application.
|
com.google.api.gax.rpc.OperationCallable<AddApplicationStreamInputRequest,AddApplicationStreamInputResponse,OperationMetadata> |
addApplicationStreamInputOperationCallable()
Adds target stream input to the Application.
|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static AppPlatformClient |
create()
Constructs an instance of AppPlatformClient with default settings.
|
static AppPlatformClient |
create(AppPlatformSettings settings)
Constructs an instance of AppPlatformClient, using the given settings.
|
static AppPlatformClient |
create(AppPlatformStub stub)
Constructs an instance of AppPlatformClient, using the given stub for making calls.
|
com.google.api.gax.longrunning.OperationFuture<Application,OperationMetadata> |
createApplicationAsync(CreateApplicationRequest request)
Creates a new Application in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Application,OperationMetadata> |
createApplicationAsync(LocationName parent,
Application application)
Creates a new Application in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Application,OperationMetadata> |
createApplicationAsync(String parent,
Application application)
Creates a new Application in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<CreateApplicationRequest,com.google.longrunning.Operation> |
createApplicationCallable()
Creates a new Application in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<CreateApplicationInstancesResponse,OperationMetadata> |
createApplicationInstancesAsync(ApplicationName name)
Adds target stream input to the Application.
|
com.google.api.gax.longrunning.OperationFuture<CreateApplicationInstancesResponse,OperationMetadata> |
createApplicationInstancesAsync(CreateApplicationInstancesRequest request)
Adds target stream input to the Application.
|
com.google.api.gax.longrunning.OperationFuture<CreateApplicationInstancesResponse,OperationMetadata> |
createApplicationInstancesAsync(String name)
Adds target stream input to the Application.
|
com.google.api.gax.rpc.UnaryCallable<CreateApplicationInstancesRequest,com.google.longrunning.Operation> |
createApplicationInstancesCallable()
Adds target stream input to the Application.
|
com.google.api.gax.rpc.OperationCallable<CreateApplicationInstancesRequest,CreateApplicationInstancesResponse,OperationMetadata> |
createApplicationInstancesOperationCallable()
Adds target stream input to the Application.
|
com.google.api.gax.rpc.OperationCallable<CreateApplicationRequest,Application,OperationMetadata> |
createApplicationOperationCallable()
Creates a new Application in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Draft,OperationMetadata> |
createDraftAsync(ApplicationName parent,
Draft draft,
String draftId)
Creates a new Draft in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Draft,OperationMetadata> |
createDraftAsync(CreateDraftRequest request)
Creates a new Draft in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Draft,OperationMetadata> |
createDraftAsync(String parent,
Draft draft,
String draftId)
Creates a new Draft in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<CreateDraftRequest,com.google.longrunning.Operation> |
createDraftCallable()
Creates a new Draft in a given project and location.
|
com.google.api.gax.rpc.OperationCallable<CreateDraftRequest,Draft,OperationMetadata> |
createDraftOperationCallable()
Creates a new Draft in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Processor,OperationMetadata> |
createProcessorAsync(CreateProcessorRequest request)
Creates a new Processor in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Processor,OperationMetadata> |
createProcessorAsync(LocationName parent,
Processor processor,
String processorId)
Creates a new Processor in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Processor,OperationMetadata> |
createProcessorAsync(String parent,
Processor processor,
String processorId)
Creates a new Processor in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<CreateProcessorRequest,com.google.longrunning.Operation> |
createProcessorCallable()
Creates a new Processor in a given project and location.
|
com.google.api.gax.rpc.OperationCallable<CreateProcessorRequest,Processor,OperationMetadata> |
createProcessorOperationCallable()
Creates a new Processor in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteApplicationAsync(ApplicationName name)
Deletes a single Application.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteApplicationAsync(DeleteApplicationRequest request)
Deletes a single Application.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteApplicationAsync(String name)
Deletes a single Application.
|
com.google.api.gax.rpc.UnaryCallable<DeleteApplicationRequest,com.google.longrunning.Operation> |
deleteApplicationCallable()
Deletes a single Application.
|
com.google.api.gax.longrunning.OperationFuture<Instance,OperationMetadata> |
deleteApplicationInstancesAsync(ApplicationName name)
Remove target stream input to the Application, if the Application is deployed, the
corresponding instance based will be deleted.
|
com.google.api.gax.longrunning.OperationFuture<Instance,OperationMetadata> |
deleteApplicationInstancesAsync(DeleteApplicationInstancesRequest request)
Remove target stream input to the Application, if the Application is deployed, the
corresponding instance based will be deleted.
|
com.google.api.gax.longrunning.OperationFuture<Instance,OperationMetadata> |
deleteApplicationInstancesAsync(String name)
Remove target stream input to the Application, if the Application is deployed, the
corresponding instance based will be deleted.
|
com.google.api.gax.rpc.UnaryCallable<DeleteApplicationInstancesRequest,com.google.longrunning.Operation> |
deleteApplicationInstancesCallable()
Remove target stream input to the Application, if the Application is deployed, the
corresponding instance based will be deleted.
|
com.google.api.gax.rpc.OperationCallable<DeleteApplicationInstancesRequest,Instance,OperationMetadata> |
deleteApplicationInstancesOperationCallable()
Remove target stream input to the Application, if the Application is deployed, the
corresponding instance based will be deleted.
|
com.google.api.gax.rpc.OperationCallable<DeleteApplicationRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteApplicationOperationCallable()
Deletes a single Application.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteDraftAsync(DeleteDraftRequest request)
Deletes a single Draft.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteDraftAsync(DraftName name)
Deletes a single Draft.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteDraftAsync(String name)
Deletes a single Draft.
|
com.google.api.gax.rpc.UnaryCallable<DeleteDraftRequest,com.google.longrunning.Operation> |
deleteDraftCallable()
Deletes a single Draft.
|
com.google.api.gax.rpc.OperationCallable<DeleteDraftRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteDraftOperationCallable()
Deletes a single Draft.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteProcessorAsync(DeleteProcessorRequest request)
Deletes a single Processor.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteProcessorAsync(ProcessorName name)
Deletes a single Processor.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteProcessorAsync(String name)
Deletes a single Processor.
|
com.google.api.gax.rpc.UnaryCallable<DeleteProcessorRequest,com.google.longrunning.Operation> |
deleteProcessorCallable()
Deletes a single Processor.
|
com.google.api.gax.rpc.OperationCallable<DeleteProcessorRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteProcessorOperationCallable()
Deletes a single Processor.
|
com.google.api.gax.longrunning.OperationFuture<DeployApplicationResponse,OperationMetadata> |
deployApplicationAsync(ApplicationName name)
Deploys a single Application.
|
com.google.api.gax.longrunning.OperationFuture<DeployApplicationResponse,OperationMetadata> |
deployApplicationAsync(DeployApplicationRequest request)
Deploys a single Application.
|
com.google.api.gax.longrunning.OperationFuture<DeployApplicationResponse,OperationMetadata> |
deployApplicationAsync(String name)
Deploys a single Application.
|
com.google.api.gax.rpc.UnaryCallable<DeployApplicationRequest,com.google.longrunning.Operation> |
deployApplicationCallable()
Deploys a single Application.
|
com.google.api.gax.rpc.OperationCallable<DeployApplicationRequest,DeployApplicationResponse,OperationMetadata> |
deployApplicationOperationCallable()
Deploys a single Application.
|
Application |
getApplication(ApplicationName name)
Gets details of a single Application.
|
Application |
getApplication(GetApplicationRequest request)
Gets details of a single Application.
|
Application |
getApplication(String name)
Gets details of a single Application.
|
com.google.api.gax.rpc.UnaryCallable<GetApplicationRequest,Application> |
getApplicationCallable()
Gets details of a single Application.
|
Draft |
getDraft(DraftName name)
Gets details of a single Draft.
|
Draft |
getDraft(GetDraftRequest request)
Gets details of a single Draft.
|
Draft |
getDraft(String name)
Gets details of a single Draft.
|
com.google.api.gax.rpc.UnaryCallable<GetDraftRequest,Draft> |
getDraftCallable()
Gets details of a single Draft.
|
com.google.api.gax.httpjson.longrunning.OperationsClient |
getHttpJsonOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation
returned by another API method call.
|
Instance |
getInstance(GetInstanceRequest request)
Gets details of a single Instance.
|
Instance |
getInstance(InstanceName name)
Gets details of a single Instance.
|
Instance |
getInstance(String name)
Gets details of a single Instance.
|
com.google.api.gax.rpc.UnaryCallable<GetInstanceRequest,Instance> |
getInstanceCallable()
Gets details of a single Instance.
|
com.google.longrunning.OperationsClient |
getOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation
returned by another API method call.
|
Processor |
getProcessor(GetProcessorRequest request)
Gets details of a single Processor.
|
Processor |
getProcessor(ProcessorName name)
Gets details of a single Processor.
|
Processor |
getProcessor(String name)
Gets details of a single Processor.
|
com.google.api.gax.rpc.UnaryCallable<GetProcessorRequest,Processor> |
getProcessorCallable()
Gets details of a single Processor.
|
AppPlatformSettings |
getSettings() |
AppPlatformStub |
getStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
AppPlatformClient.ListApplicationsPagedResponse |
listApplications(ListApplicationsRequest request)
Lists Applications in a given project and location.
|
AppPlatformClient.ListApplicationsPagedResponse |
listApplications(LocationName parent)
Lists Applications in a given project and location.
|
AppPlatformClient.ListApplicationsPagedResponse |
listApplications(String parent)
Lists Applications in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListApplicationsRequest,ListApplicationsResponse> |
listApplicationsCallable()
Lists Applications in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListApplicationsRequest,AppPlatformClient.ListApplicationsPagedResponse> |
listApplicationsPagedCallable()
Lists Applications in a given project and location.
|
AppPlatformClient.ListDraftsPagedResponse |
listDrafts(ApplicationName parent)
Lists Drafts in a given project and location.
|
AppPlatformClient.ListDraftsPagedResponse |
listDrafts(ListDraftsRequest request)
Lists Drafts in a given project and location.
|
AppPlatformClient.ListDraftsPagedResponse |
listDrafts(String parent)
Lists Drafts in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListDraftsRequest,ListDraftsResponse> |
listDraftsCallable()
Lists Drafts in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListDraftsRequest,AppPlatformClient.ListDraftsPagedResponse> |
listDraftsPagedCallable()
Lists Drafts in a given project and location.
|
AppPlatformClient.ListInstancesPagedResponse |
listInstances(ApplicationName parent)
Lists Instances in a given project and location.
|
AppPlatformClient.ListInstancesPagedResponse |
listInstances(ListInstancesRequest request)
Lists Instances in a given project and location.
|
AppPlatformClient.ListInstancesPagedResponse |
listInstances(String parent)
Lists Instances in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,ListInstancesResponse> |
listInstancesCallable()
Lists Instances in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,AppPlatformClient.ListInstancesPagedResponse> |
listInstancesPagedCallable()
Lists Instances in a given project and location.
|
ListPrebuiltProcessorsResponse |
listPrebuiltProcessors(ListPrebuiltProcessorsRequest request)
ListPrebuiltProcessors is a custom pass-through verb that Lists Prebuilt Processors.
|
ListPrebuiltProcessorsResponse |
listPrebuiltProcessors(LocationName parent)
ListPrebuiltProcessors is a custom pass-through verb that Lists Prebuilt Processors.
|
ListPrebuiltProcessorsResponse |
listPrebuiltProcessors(String parent)
ListPrebuiltProcessors is a custom pass-through verb that Lists Prebuilt Processors.
|
com.google.api.gax.rpc.UnaryCallable<ListPrebuiltProcessorsRequest,ListPrebuiltProcessorsResponse> |
listPrebuiltProcessorsCallable()
ListPrebuiltProcessors is a custom pass-through verb that Lists Prebuilt Processors.
|
AppPlatformClient.ListProcessorsPagedResponse |
listProcessors(ListProcessorsRequest request)
Lists Processors in a given project and location.
|
AppPlatformClient.ListProcessorsPagedResponse |
listProcessors(LocationName parent)
Lists Processors in a given project and location.
|
AppPlatformClient.ListProcessorsPagedResponse |
listProcessors(String parent)
Lists Processors in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListProcessorsRequest,ListProcessorsResponse> |
listProcessorsCallable()
Lists Processors in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListProcessorsRequest,AppPlatformClient.ListProcessorsPagedResponse> |
listProcessorsPagedCallable()
Lists Processors in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<RemoveApplicationStreamInputResponse,OperationMetadata> |
removeApplicationStreamInputAsync(ApplicationName name)
Remove target stream input to the Application, if the Application is deployed, the
corresponding instance based will be deleted.
|
com.google.api.gax.longrunning.OperationFuture<RemoveApplicationStreamInputResponse,OperationMetadata> |
removeApplicationStreamInputAsync(RemoveApplicationStreamInputRequest request)
Remove target stream input to the Application, if the Application is deployed, the
corresponding instance based will be deleted.
|
com.google.api.gax.longrunning.OperationFuture<RemoveApplicationStreamInputResponse,OperationMetadata> |
removeApplicationStreamInputAsync(String name)
Remove target stream input to the Application, if the Application is deployed, the
corresponding instance based will be deleted.
|
com.google.api.gax.rpc.UnaryCallable<RemoveApplicationStreamInputRequest,com.google.longrunning.Operation> |
removeApplicationStreamInputCallable()
Remove target stream input to the Application, if the Application is deployed, the
corresponding instance based will be deleted.
|
com.google.api.gax.rpc.OperationCallable<RemoveApplicationStreamInputRequest,RemoveApplicationStreamInputResponse,OperationMetadata> |
removeApplicationStreamInputOperationCallable()
Remove target stream input to the Application, if the Application is deployed, the
corresponding instance based will be deleted.
|
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.longrunning.OperationFuture<UndeployApplicationResponse,OperationMetadata> |
undeployApplicationAsync(ApplicationName name)
Undeploys a single Application.
|
com.google.api.gax.longrunning.OperationFuture<UndeployApplicationResponse,OperationMetadata> |
undeployApplicationAsync(String name)
Undeploys a single Application.
|
com.google.api.gax.longrunning.OperationFuture<UndeployApplicationResponse,OperationMetadata> |
undeployApplicationAsync(UndeployApplicationRequest request)
Undeploys a single Application.
|
com.google.api.gax.rpc.UnaryCallable<UndeployApplicationRequest,com.google.longrunning.Operation> |
undeployApplicationCallable()
Undeploys a single Application.
|
com.google.api.gax.rpc.OperationCallable<UndeployApplicationRequest,UndeployApplicationResponse,OperationMetadata> |
undeployApplicationOperationCallable()
Undeploys a single Application.
|
com.google.api.gax.longrunning.OperationFuture<Application,OperationMetadata> |
updateApplicationAsync(Application application,
com.google.protobuf.FieldMask updateMask)
Updates the parameters of a single Application.
|
com.google.api.gax.longrunning.OperationFuture<Application,OperationMetadata> |
updateApplicationAsync(UpdateApplicationRequest request)
Updates the parameters of a single Application.
|
com.google.api.gax.rpc.UnaryCallable<UpdateApplicationRequest,com.google.longrunning.Operation> |
updateApplicationCallable()
Updates the parameters of a single Application.
|
com.google.api.gax.longrunning.OperationFuture<UpdateApplicationInstancesResponse,OperationMetadata> |
updateApplicationInstancesAsync(ApplicationName name,
List<UpdateApplicationInstancesRequest.UpdateApplicationInstance> applicationInstances)
Adds target stream input to the Application.
|
com.google.api.gax.longrunning.OperationFuture<UpdateApplicationInstancesResponse,OperationMetadata> |
updateApplicationInstancesAsync(String name,
List<UpdateApplicationInstancesRequest.UpdateApplicationInstance> applicationInstances)
Adds target stream input to the Application.
|
com.google.api.gax.longrunning.OperationFuture<UpdateApplicationInstancesResponse,OperationMetadata> |
updateApplicationInstancesAsync(UpdateApplicationInstancesRequest request)
Adds target stream input to the Application.
|
com.google.api.gax.rpc.UnaryCallable<UpdateApplicationInstancesRequest,com.google.longrunning.Operation> |
updateApplicationInstancesCallable()
Adds target stream input to the Application.
|
com.google.api.gax.rpc.OperationCallable<UpdateApplicationInstancesRequest,UpdateApplicationInstancesResponse,OperationMetadata> |
updateApplicationInstancesOperationCallable()
Adds target stream input to the Application.
|
com.google.api.gax.rpc.OperationCallable<UpdateApplicationRequest,Application,OperationMetadata> |
updateApplicationOperationCallable()
Updates the parameters of a single Application.
|
com.google.api.gax.longrunning.OperationFuture<UpdateApplicationStreamInputResponse,OperationMetadata> |
updateApplicationStreamInputAsync(ApplicationName name)
Update target stream input to the Application, if the Application is deployed, the
corresponding instance based will be deployed.
|
com.google.api.gax.longrunning.OperationFuture<UpdateApplicationStreamInputResponse,OperationMetadata> |
updateApplicationStreamInputAsync(String name)
Update target stream input to the Application, if the Application is deployed, the
corresponding instance based will be deployed.
|
com.google.api.gax.longrunning.OperationFuture<UpdateApplicationStreamInputResponse,OperationMetadata> |
updateApplicationStreamInputAsync(UpdateApplicationStreamInputRequest request)
Update target stream input to the Application, if the Application is deployed, the
corresponding instance based will be deployed.
|
com.google.api.gax.rpc.UnaryCallable<UpdateApplicationStreamInputRequest,com.google.longrunning.Operation> |
updateApplicationStreamInputCallable()
Update target stream input to the Application, if the Application is deployed, the
corresponding instance based will be deployed.
|
com.google.api.gax.rpc.OperationCallable<UpdateApplicationStreamInputRequest,UpdateApplicationStreamInputResponse,OperationMetadata> |
updateApplicationStreamInputOperationCallable()
Update target stream input to the Application, if the Application is deployed, the
corresponding instance based will be deployed.
|
com.google.api.gax.longrunning.OperationFuture<Draft,OperationMetadata> |
updateDraftAsync(Draft draft,
com.google.protobuf.FieldMask updateMask)
Updates the parameters of a single Draft.
|
com.google.api.gax.longrunning.OperationFuture<Draft,OperationMetadata> |
updateDraftAsync(UpdateDraftRequest request)
Updates the parameters of a single Draft.
|
com.google.api.gax.rpc.UnaryCallable<UpdateDraftRequest,com.google.longrunning.Operation> |
updateDraftCallable()
Updates the parameters of a single Draft.
|
com.google.api.gax.rpc.OperationCallable<UpdateDraftRequest,Draft,OperationMetadata> |
updateDraftOperationCallable()
Updates the parameters of a single Draft.
|
com.google.api.gax.longrunning.OperationFuture<Processor,OperationMetadata> |
updateProcessorAsync(Processor processor,
com.google.protobuf.FieldMask updateMask)
Updates the parameters of a single Processor.
|
com.google.api.gax.longrunning.OperationFuture<Processor,OperationMetadata> |
updateProcessorAsync(UpdateProcessorRequest request)
Updates the parameters of a single Processor.
|
com.google.api.gax.rpc.UnaryCallable<UpdateProcessorRequest,com.google.longrunning.Operation> |
updateProcessorCallable()
Updates the parameters of a single Processor.
|
com.google.api.gax.rpc.OperationCallable<UpdateProcessorRequest,Processor,OperationMetadata> |
updateProcessorOperationCallable()
Updates the parameters of a single Processor.
|
protected AppPlatformClient(AppPlatformSettings settings) throws IOException
IOExceptionprotected AppPlatformClient(AppPlatformStub stub)
public static final AppPlatformClient create() throws IOException
IOExceptionpublic static final AppPlatformClient create(AppPlatformSettings settings) throws IOException
IOExceptionpublic static final AppPlatformClient create(AppPlatformStub stub)
public final AppPlatformSettings getSettings()
public AppPlatformStub getStub()
public final com.google.longrunning.OperationsClient getOperationsClient()
@BetaApi public final com.google.api.gax.httpjson.longrunning.OperationsClient getHttpJsonOperationsClient()
public final AppPlatformClient.ListApplicationsPagedResponse listApplications(LocationName parent)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Application element : appPlatformClient.listApplications(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListApplicationsRequest.com.google.api.gax.rpc.ApiException - if the remote call failspublic final AppPlatformClient.ListApplicationsPagedResponse listApplications(String parent)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Application element : appPlatformClient.listApplications(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListApplicationsRequest.com.google.api.gax.rpc.ApiException - if the remote call failspublic final AppPlatformClient.ListApplicationsPagedResponse listApplications(ListApplicationsRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ListApplicationsRequest request =
ListApplicationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Application element : appPlatformClient.listApplications(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListApplicationsRequest,AppPlatformClient.ListApplicationsPagedResponse> listApplicationsPagedCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ListApplicationsRequest request =
ListApplicationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Application> future =
appPlatformClient.listApplicationsPagedCallable().futureCall(request);
// Do something.
for (Application element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListApplicationsRequest,ListApplicationsResponse> listApplicationsCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ListApplicationsRequest request =
ListApplicationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListApplicationsResponse response =
appPlatformClient.listApplicationsCallable().call(request);
for (Application element : response.getApplicationsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final Application getApplication(ApplicationName name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ApplicationName name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]");
Application response = appPlatformClient.getApplication(name);
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Application getApplication(String name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString();
Application response = appPlatformClient.getApplication(name);
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Application getApplication(GetApplicationRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
GetApplicationRequest request =
GetApplicationRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.build();
Application response = appPlatformClient.getApplication(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetApplicationRequest,Application> getApplicationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
GetApplicationRequest request =
GetApplicationRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.build();
ApiFuture<Application> future =
appPlatformClient.getApplicationCallable().futureCall(request);
// Do something.
Application response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Application,OperationMetadata> createApplicationAsync(LocationName parent, Application application)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Application application = Application.newBuilder().build();
Application response = appPlatformClient.createApplicationAsync(parent, application).get();
}
parent - Required. Value for parent.application - Required. The resource being created.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Application,OperationMetadata> createApplicationAsync(String parent, Application application)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Application application = Application.newBuilder().build();
Application response = appPlatformClient.createApplicationAsync(parent, application).get();
}
parent - Required. Value for parent.application - Required. The resource being created.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Application,OperationMetadata> createApplicationAsync(CreateApplicationRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
CreateApplicationRequest request =
CreateApplicationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setApplicationId("applicationId-1011352949")
.setApplication(Application.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Application response = appPlatformClient.createApplicationAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateApplicationRequest,Application,OperationMetadata> createApplicationOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
CreateApplicationRequest request =
CreateApplicationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setApplicationId("applicationId-1011352949")
.setApplication(Application.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Application, OperationMetadata> future =
appPlatformClient.createApplicationOperationCallable().futureCall(request);
// Do something.
Application response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateApplicationRequest,com.google.longrunning.Operation> createApplicationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
CreateApplicationRequest request =
CreateApplicationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setApplicationId("applicationId-1011352949")
.setApplication(Application.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
appPlatformClient.createApplicationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Application,OperationMetadata> updateApplicationAsync(Application application, com.google.protobuf.FieldMask updateMask)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
Application application = Application.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Application response =
appPlatformClient.updateApplicationAsync(application, updateMask).get();
}
application - Required. The resource being updated.updateMask - Optional. Field mask is used to specify the fields to be overwritten in the
Application resource by the update. The fields specified in the update_mask are relative to
the resource, not the full request. A field will be overwritten if it is in the mask. If
the user does not provide a mask then all fields will be overwritten.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Application,OperationMetadata> updateApplicationAsync(UpdateApplicationRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UpdateApplicationRequest request =
UpdateApplicationRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setApplication(Application.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Application response = appPlatformClient.updateApplicationAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UpdateApplicationRequest,Application,OperationMetadata> updateApplicationOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UpdateApplicationRequest request =
UpdateApplicationRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setApplication(Application.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Application, OperationMetadata> future =
appPlatformClient.updateApplicationOperationCallable().futureCall(request);
// Do something.
Application response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateApplicationRequest,com.google.longrunning.Operation> updateApplicationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UpdateApplicationRequest request =
UpdateApplicationRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setApplication(Application.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
appPlatformClient.updateApplicationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteApplicationAsync(ApplicationName name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ApplicationName name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]");
appPlatformClient.deleteApplicationAsync(name).get();
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteApplicationAsync(String name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString();
appPlatformClient.deleteApplicationAsync(name).get();
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteApplicationAsync(DeleteApplicationRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DeleteApplicationRequest request =
DeleteApplicationRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setRequestId("requestId693933066")
.setForce(true)
.build();
appPlatformClient.deleteApplicationAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteApplicationRequest,com.google.protobuf.Empty,OperationMetadata> deleteApplicationOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DeleteApplicationRequest request =
DeleteApplicationRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setRequestId("requestId693933066")
.setForce(true)
.build();
OperationFuture<Empty, OperationMetadata> future =
appPlatformClient.deleteApplicationOperationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteApplicationRequest,com.google.longrunning.Operation> deleteApplicationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DeleteApplicationRequest request =
DeleteApplicationRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setRequestId("requestId693933066")
.setForce(true)
.build();
ApiFuture<Operation> future =
appPlatformClient.deleteApplicationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<DeployApplicationResponse,OperationMetadata> deployApplicationAsync(ApplicationName name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ApplicationName name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]");
DeployApplicationResponse response = appPlatformClient.deployApplicationAsync(name).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<DeployApplicationResponse,OperationMetadata> deployApplicationAsync(String name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString();
DeployApplicationResponse response = appPlatformClient.deployApplicationAsync(name).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<DeployApplicationResponse,OperationMetadata> deployApplicationAsync(DeployApplicationRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DeployApplicationRequest request =
DeployApplicationRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.setEnableMonitoring(true)
.build();
DeployApplicationResponse response = appPlatformClient.deployApplicationAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeployApplicationRequest,DeployApplicationResponse,OperationMetadata> deployApplicationOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DeployApplicationRequest request =
DeployApplicationRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.setEnableMonitoring(true)
.build();
OperationFuture<DeployApplicationResponse, OperationMetadata> future =
appPlatformClient.deployApplicationOperationCallable().futureCall(request);
// Do something.
DeployApplicationResponse response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeployApplicationRequest,com.google.longrunning.Operation> deployApplicationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DeployApplicationRequest request =
DeployApplicationRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.setEnableMonitoring(true)
.build();
ApiFuture<Operation> future =
appPlatformClient.deployApplicationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<UndeployApplicationResponse,OperationMetadata> undeployApplicationAsync(ApplicationName name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ApplicationName name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]");
UndeployApplicationResponse response = appPlatformClient.undeployApplicationAsync(name).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<UndeployApplicationResponse,OperationMetadata> undeployApplicationAsync(String name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString();
UndeployApplicationResponse response = appPlatformClient.undeployApplicationAsync(name).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<UndeployApplicationResponse,OperationMetadata> undeployApplicationAsync(UndeployApplicationRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UndeployApplicationRequest request =
UndeployApplicationRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setRequestId("requestId693933066")
.build();
UndeployApplicationResponse response =
appPlatformClient.undeployApplicationAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UndeployApplicationRequest,UndeployApplicationResponse,OperationMetadata> undeployApplicationOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UndeployApplicationRequest request =
UndeployApplicationRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<UndeployApplicationResponse, OperationMetadata> future =
appPlatformClient.undeployApplicationOperationCallable().futureCall(request);
// Do something.
UndeployApplicationResponse response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UndeployApplicationRequest,com.google.longrunning.Operation> undeployApplicationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UndeployApplicationRequest request =
UndeployApplicationRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
appPlatformClient.undeployApplicationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<AddApplicationStreamInputResponse,OperationMetadata> addApplicationStreamInputAsync(ApplicationName name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ApplicationName name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]");
AddApplicationStreamInputResponse response =
appPlatformClient.addApplicationStreamInputAsync(name).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<AddApplicationStreamInputResponse,OperationMetadata> addApplicationStreamInputAsync(String name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString();
AddApplicationStreamInputResponse response =
appPlatformClient.addApplicationStreamInputAsync(name).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<AddApplicationStreamInputResponse,OperationMetadata> addApplicationStreamInputAsync(AddApplicationStreamInputRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
AddApplicationStreamInputRequest request =
AddApplicationStreamInputRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllApplicationStreamInputs(new ArrayList<ApplicationStreamInput>())
.setRequestId("requestId693933066")
.build();
AddApplicationStreamInputResponse response =
appPlatformClient.addApplicationStreamInputAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<AddApplicationStreamInputRequest,AddApplicationStreamInputResponse,OperationMetadata> addApplicationStreamInputOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
AddApplicationStreamInputRequest request =
AddApplicationStreamInputRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllApplicationStreamInputs(new ArrayList<ApplicationStreamInput>())
.setRequestId("requestId693933066")
.build();
OperationFuture<AddApplicationStreamInputResponse, OperationMetadata> future =
appPlatformClient.addApplicationStreamInputOperationCallable().futureCall(request);
// Do something.
AddApplicationStreamInputResponse response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<AddApplicationStreamInputRequest,com.google.longrunning.Operation> addApplicationStreamInputCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
AddApplicationStreamInputRequest request =
AddApplicationStreamInputRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllApplicationStreamInputs(new ArrayList<ApplicationStreamInput>())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
appPlatformClient.addApplicationStreamInputCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<RemoveApplicationStreamInputResponse,OperationMetadata> removeApplicationStreamInputAsync(ApplicationName name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ApplicationName name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]");
RemoveApplicationStreamInputResponse response =
appPlatformClient.removeApplicationStreamInputAsync(name).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<RemoveApplicationStreamInputResponse,OperationMetadata> removeApplicationStreamInputAsync(String name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString();
RemoveApplicationStreamInputResponse response =
appPlatformClient.removeApplicationStreamInputAsync(name).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<RemoveApplicationStreamInputResponse,OperationMetadata> removeApplicationStreamInputAsync(RemoveApplicationStreamInputRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
RemoveApplicationStreamInputRequest request =
RemoveApplicationStreamInputRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllTargetStreamInputs(
new ArrayList<RemoveApplicationStreamInputRequest.TargetStreamInput>())
.setRequestId("requestId693933066")
.build();
RemoveApplicationStreamInputResponse response =
appPlatformClient.removeApplicationStreamInputAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<RemoveApplicationStreamInputRequest,RemoveApplicationStreamInputResponse,OperationMetadata> removeApplicationStreamInputOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
RemoveApplicationStreamInputRequest request =
RemoveApplicationStreamInputRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllTargetStreamInputs(
new ArrayList<RemoveApplicationStreamInputRequest.TargetStreamInput>())
.setRequestId("requestId693933066")
.build();
OperationFuture<RemoveApplicationStreamInputResponse, OperationMetadata> future =
appPlatformClient.removeApplicationStreamInputOperationCallable().futureCall(request);
// Do something.
RemoveApplicationStreamInputResponse response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<RemoveApplicationStreamInputRequest,com.google.longrunning.Operation> removeApplicationStreamInputCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
RemoveApplicationStreamInputRequest request =
RemoveApplicationStreamInputRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllTargetStreamInputs(
new ArrayList<RemoveApplicationStreamInputRequest.TargetStreamInput>())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
appPlatformClient.removeApplicationStreamInputCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<UpdateApplicationStreamInputResponse,OperationMetadata> updateApplicationStreamInputAsync(ApplicationName name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ApplicationName name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]");
UpdateApplicationStreamInputResponse response =
appPlatformClient.updateApplicationStreamInputAsync(name).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<UpdateApplicationStreamInputResponse,OperationMetadata> updateApplicationStreamInputAsync(String name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString();
UpdateApplicationStreamInputResponse response =
appPlatformClient.updateApplicationStreamInputAsync(name).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<UpdateApplicationStreamInputResponse,OperationMetadata> updateApplicationStreamInputAsync(UpdateApplicationStreamInputRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UpdateApplicationStreamInputRequest request =
UpdateApplicationStreamInputRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllApplicationStreamInputs(new ArrayList<ApplicationStreamInput>())
.setRequestId("requestId693933066")
.setAllowMissing(true)
.build();
UpdateApplicationStreamInputResponse response =
appPlatformClient.updateApplicationStreamInputAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UpdateApplicationStreamInputRequest,UpdateApplicationStreamInputResponse,OperationMetadata> updateApplicationStreamInputOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UpdateApplicationStreamInputRequest request =
UpdateApplicationStreamInputRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllApplicationStreamInputs(new ArrayList<ApplicationStreamInput>())
.setRequestId("requestId693933066")
.setAllowMissing(true)
.build();
OperationFuture<UpdateApplicationStreamInputResponse, OperationMetadata> future =
appPlatformClient.updateApplicationStreamInputOperationCallable().futureCall(request);
// Do something.
UpdateApplicationStreamInputResponse response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateApplicationStreamInputRequest,com.google.longrunning.Operation> updateApplicationStreamInputCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UpdateApplicationStreamInputRequest request =
UpdateApplicationStreamInputRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllApplicationStreamInputs(new ArrayList<ApplicationStreamInput>())
.setRequestId("requestId693933066")
.setAllowMissing(true)
.build();
ApiFuture<Operation> future =
appPlatformClient.updateApplicationStreamInputCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final AppPlatformClient.ListInstancesPagedResponse listInstances(ApplicationName parent)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ApplicationName parent = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]");
for (Instance element : appPlatformClient.listInstances(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListInstancesRequest.com.google.api.gax.rpc.ApiException - if the remote call failspublic final AppPlatformClient.ListInstancesPagedResponse listInstances(String parent)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String parent = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString();
for (Instance element : appPlatformClient.listInstances(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListInstancesRequest.com.google.api.gax.rpc.ApiException - if the remote call failspublic final AppPlatformClient.ListInstancesPagedResponse listInstances(ListInstancesRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ListInstancesRequest request =
ListInstancesRequest.newBuilder()
.setParent(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Instance element : appPlatformClient.listInstances(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,AppPlatformClient.ListInstancesPagedResponse> listInstancesPagedCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ListInstancesRequest request =
ListInstancesRequest.newBuilder()
.setParent(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Instance> future =
appPlatformClient.listInstancesPagedCallable().futureCall(request);
// Do something.
for (Instance element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListInstancesRequest,ListInstancesResponse> listInstancesCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ListInstancesRequest request =
ListInstancesRequest.newBuilder()
.setParent(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListInstancesResponse response = appPlatformClient.listInstancesCallable().call(request);
for (Instance element : response.getInstancesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final Instance getInstance(InstanceName name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]", "[INSTANCE]");
Instance response = appPlatformClient.getInstance(name);
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Instance getInstance(String name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String name =
InstanceName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]", "[INSTANCE]").toString();
Instance response = appPlatformClient.getInstance(name);
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Instance getInstance(GetInstanceRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
GetInstanceRequest request =
GetInstanceRequest.newBuilder()
.setName(
InstanceName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]", "[INSTANCE]")
.toString())
.build();
Instance response = appPlatformClient.getInstance(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetInstanceRequest,Instance> getInstanceCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
GetInstanceRequest request =
GetInstanceRequest.newBuilder()
.setName(
InstanceName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]", "[INSTANCE]")
.toString())
.build();
ApiFuture<Instance> future = appPlatformClient.getInstanceCallable().futureCall(request);
// Do something.
Instance response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<CreateApplicationInstancesResponse,OperationMetadata> createApplicationInstancesAsync(ApplicationName name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ApplicationName name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]");
CreateApplicationInstancesResponse response =
appPlatformClient.createApplicationInstancesAsync(name).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<CreateApplicationInstancesResponse,OperationMetadata> createApplicationInstancesAsync(String name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString();
CreateApplicationInstancesResponse response =
appPlatformClient.createApplicationInstancesAsync(name).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<CreateApplicationInstancesResponse,OperationMetadata> createApplicationInstancesAsync(CreateApplicationInstancesRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
CreateApplicationInstancesRequest request =
CreateApplicationInstancesRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllApplicationInstances(new ArrayList<ApplicationInstance>())
.setRequestId("requestId693933066")
.build();
CreateApplicationInstancesResponse response =
appPlatformClient.createApplicationInstancesAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateApplicationInstancesRequest,CreateApplicationInstancesResponse,OperationMetadata> createApplicationInstancesOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
CreateApplicationInstancesRequest request =
CreateApplicationInstancesRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllApplicationInstances(new ArrayList<ApplicationInstance>())
.setRequestId("requestId693933066")
.build();
OperationFuture<CreateApplicationInstancesResponse, OperationMetadata> future =
appPlatformClient.createApplicationInstancesOperationCallable().futureCall(request);
// Do something.
CreateApplicationInstancesResponse response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateApplicationInstancesRequest,com.google.longrunning.Operation> createApplicationInstancesCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
CreateApplicationInstancesRequest request =
CreateApplicationInstancesRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllApplicationInstances(new ArrayList<ApplicationInstance>())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
appPlatformClient.createApplicationInstancesCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Instance,OperationMetadata> deleteApplicationInstancesAsync(ApplicationName name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ApplicationName name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]");
Instance response = appPlatformClient.deleteApplicationInstancesAsync(name).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Instance,OperationMetadata> deleteApplicationInstancesAsync(String name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString();
Instance response = appPlatformClient.deleteApplicationInstancesAsync(name).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Instance,OperationMetadata> deleteApplicationInstancesAsync(DeleteApplicationInstancesRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DeleteApplicationInstancesRequest request =
DeleteApplicationInstancesRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllInstanceIds(new ArrayList<String>())
.setRequestId("requestId693933066")
.build();
Instance response = appPlatformClient.deleteApplicationInstancesAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteApplicationInstancesRequest,Instance,OperationMetadata> deleteApplicationInstancesOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DeleteApplicationInstancesRequest request =
DeleteApplicationInstancesRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllInstanceIds(new ArrayList<String>())
.setRequestId("requestId693933066")
.build();
OperationFuture<Instance, OperationMetadata> future =
appPlatformClient.deleteApplicationInstancesOperationCallable().futureCall(request);
// Do something.
Instance response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteApplicationInstancesRequest,com.google.longrunning.Operation> deleteApplicationInstancesCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DeleteApplicationInstancesRequest request =
DeleteApplicationInstancesRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllInstanceIds(new ArrayList<String>())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
appPlatformClient.deleteApplicationInstancesCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<UpdateApplicationInstancesResponse,OperationMetadata> updateApplicationInstancesAsync(ApplicationName name, List<UpdateApplicationInstancesRequest.UpdateApplicationInstance> applicationInstances)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ApplicationName name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]");
List<UpdateApplicationInstancesRequest.UpdateApplicationInstance> applicationInstances =
new ArrayList<>();
UpdateApplicationInstancesResponse response =
appPlatformClient.updateApplicationInstancesAsync(name, applicationInstances).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"applicationInstances - com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<UpdateApplicationInstancesResponse,OperationMetadata> updateApplicationInstancesAsync(String name, List<UpdateApplicationInstancesRequest.UpdateApplicationInstance> applicationInstances)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String name = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString();
List<UpdateApplicationInstancesRequest.UpdateApplicationInstance> applicationInstances =
new ArrayList<>();
UpdateApplicationInstancesResponse response =
appPlatformClient.updateApplicationInstancesAsync(name, applicationInstances).get();
}
name - Required. the name of the application to retrieve. Format:
"projects/{project}/locations/{location}/applications/{application}"applicationInstances - com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<UpdateApplicationInstancesResponse,OperationMetadata> updateApplicationInstancesAsync(UpdateApplicationInstancesRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UpdateApplicationInstancesRequest request =
UpdateApplicationInstancesRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllApplicationInstances(
new ArrayList<UpdateApplicationInstancesRequest.UpdateApplicationInstance>())
.setRequestId("requestId693933066")
.setAllowMissing(true)
.build();
UpdateApplicationInstancesResponse response =
appPlatformClient.updateApplicationInstancesAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UpdateApplicationInstancesRequest,UpdateApplicationInstancesResponse,OperationMetadata> updateApplicationInstancesOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UpdateApplicationInstancesRequest request =
UpdateApplicationInstancesRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllApplicationInstances(
new ArrayList<UpdateApplicationInstancesRequest.UpdateApplicationInstance>())
.setRequestId("requestId693933066")
.setAllowMissing(true)
.build();
OperationFuture<UpdateApplicationInstancesResponse, OperationMetadata> future =
appPlatformClient.updateApplicationInstancesOperationCallable().futureCall(request);
// Do something.
UpdateApplicationInstancesResponse response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateApplicationInstancesRequest,com.google.longrunning.Operation> updateApplicationInstancesCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UpdateApplicationInstancesRequest request =
UpdateApplicationInstancesRequest.newBuilder()
.setName(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.addAllApplicationInstances(
new ArrayList<UpdateApplicationInstancesRequest.UpdateApplicationInstance>())
.setRequestId("requestId693933066")
.setAllowMissing(true)
.build();
ApiFuture<Operation> future =
appPlatformClient.updateApplicationInstancesCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final AppPlatformClient.ListDraftsPagedResponse listDrafts(ApplicationName parent)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ApplicationName parent = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]");
for (Draft element : appPlatformClient.listDrafts(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListDraftsRequest.com.google.api.gax.rpc.ApiException - if the remote call failspublic final AppPlatformClient.ListDraftsPagedResponse listDrafts(String parent)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String parent = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString();
for (Draft element : appPlatformClient.listDrafts(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListDraftsRequest.com.google.api.gax.rpc.ApiException - if the remote call failspublic final AppPlatformClient.ListDraftsPagedResponse listDrafts(ListDraftsRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ListDraftsRequest request =
ListDraftsRequest.newBuilder()
.setParent(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Draft element : appPlatformClient.listDrafts(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListDraftsRequest,AppPlatformClient.ListDraftsPagedResponse> listDraftsPagedCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ListDraftsRequest request =
ListDraftsRequest.newBuilder()
.setParent(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Draft> future = appPlatformClient.listDraftsPagedCallable().futureCall(request);
// Do something.
for (Draft element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListDraftsRequest,ListDraftsResponse> listDraftsCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ListDraftsRequest request =
ListDraftsRequest.newBuilder()
.setParent(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListDraftsResponse response = appPlatformClient.listDraftsCallable().call(request);
for (Draft element : response.getDraftsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final Draft getDraft(DraftName name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DraftName name = DraftName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]", "[DRAFT]");
Draft response = appPlatformClient.getDraft(name);
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Draft getDraft(String name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String name = DraftName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]", "[DRAFT]").toString();
Draft response = appPlatformClient.getDraft(name);
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Draft getDraft(GetDraftRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
GetDraftRequest request =
GetDraftRequest.newBuilder()
.setName(
DraftName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]", "[DRAFT]").toString())
.build();
Draft response = appPlatformClient.getDraft(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetDraftRequest,Draft> getDraftCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
GetDraftRequest request =
GetDraftRequest.newBuilder()
.setName(
DraftName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]", "[DRAFT]").toString())
.build();
ApiFuture<Draft> future = appPlatformClient.getDraftCallable().futureCall(request);
// Do something.
Draft response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Draft,OperationMetadata> createDraftAsync(ApplicationName parent, Draft draft, String draftId)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ApplicationName parent = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]");
Draft draft = Draft.newBuilder().build();
String draftId = "draftId1912512156";
Draft response = appPlatformClient.createDraftAsync(parent, draft, draftId).get();
}
parent - Required. Value for parent.draft - Required. The resource being created.draftId - Required. Id of the requesting object.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Draft,OperationMetadata> createDraftAsync(String parent, Draft draft, String draftId)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String parent = ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString();
Draft draft = Draft.newBuilder().build();
String draftId = "draftId1912512156";
Draft response = appPlatformClient.createDraftAsync(parent, draft, draftId).get();
}
parent - Required. Value for parent.draft - Required. The resource being created.draftId - Required. Id of the requesting object.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Draft,OperationMetadata> createDraftAsync(CreateDraftRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
CreateDraftRequest request =
CreateDraftRequest.newBuilder()
.setParent(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setDraftId("draftId1912512156")
.setDraft(Draft.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Draft response = appPlatformClient.createDraftAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateDraftRequest,Draft,OperationMetadata> createDraftOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
CreateDraftRequest request =
CreateDraftRequest.newBuilder()
.setParent(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setDraftId("draftId1912512156")
.setDraft(Draft.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Draft, OperationMetadata> future =
appPlatformClient.createDraftOperationCallable().futureCall(request);
// Do something.
Draft response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateDraftRequest,com.google.longrunning.Operation> createDraftCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
CreateDraftRequest request =
CreateDraftRequest.newBuilder()
.setParent(ApplicationName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]").toString())
.setDraftId("draftId1912512156")
.setDraft(Draft.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = appPlatformClient.createDraftCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Draft,OperationMetadata> updateDraftAsync(Draft draft, com.google.protobuf.FieldMask updateMask)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
Draft draft = Draft.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Draft response = appPlatformClient.updateDraftAsync(draft, updateMask).get();
}
draft - Required. The resource being updated.updateMask - Optional. Field mask is used to specify the fields to be overwritten in the
Draft resource by the update. The fields specified in the update_mask are relative to the
resource, not the full request. A field will be overwritten if it is in the mask. If the
user does not provide a mask then all fields will be overwritten.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Draft,OperationMetadata> updateDraftAsync(UpdateDraftRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UpdateDraftRequest request =
UpdateDraftRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setDraft(Draft.newBuilder().build())
.setRequestId("requestId693933066")
.setAllowMissing(true)
.build();
Draft response = appPlatformClient.updateDraftAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UpdateDraftRequest,Draft,OperationMetadata> updateDraftOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UpdateDraftRequest request =
UpdateDraftRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setDraft(Draft.newBuilder().build())
.setRequestId("requestId693933066")
.setAllowMissing(true)
.build();
OperationFuture<Draft, OperationMetadata> future =
appPlatformClient.updateDraftOperationCallable().futureCall(request);
// Do something.
Draft response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateDraftRequest,com.google.longrunning.Operation> updateDraftCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UpdateDraftRequest request =
UpdateDraftRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setDraft(Draft.newBuilder().build())
.setRequestId("requestId693933066")
.setAllowMissing(true)
.build();
ApiFuture<Operation> future = appPlatformClient.updateDraftCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDraftAsync(DraftName name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DraftName name = DraftName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]", "[DRAFT]");
appPlatformClient.deleteDraftAsync(name).get();
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDraftAsync(String name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String name = DraftName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]", "[DRAFT]").toString();
appPlatformClient.deleteDraftAsync(name).get();
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDraftAsync(DeleteDraftRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DeleteDraftRequest request =
DeleteDraftRequest.newBuilder()
.setName(
DraftName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]", "[DRAFT]").toString())
.setRequestId("requestId693933066")
.build();
appPlatformClient.deleteDraftAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteDraftRequest,com.google.protobuf.Empty,OperationMetadata> deleteDraftOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DeleteDraftRequest request =
DeleteDraftRequest.newBuilder()
.setName(
DraftName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]", "[DRAFT]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
appPlatformClient.deleteDraftOperationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteDraftRequest,com.google.longrunning.Operation> deleteDraftCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DeleteDraftRequest request =
DeleteDraftRequest.newBuilder()
.setName(
DraftName.of("[PROJECT]", "[LOCATION]", "[APPLICATION]", "[DRAFT]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = appPlatformClient.deleteDraftCallable().futureCall(request);
// Do something.
future.get();
}
public final AppPlatformClient.ListProcessorsPagedResponse listProcessors(LocationName parent)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Processor element : appPlatformClient.listProcessors(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListProcessorsRequest.com.google.api.gax.rpc.ApiException - if the remote call failspublic final AppPlatformClient.ListProcessorsPagedResponse listProcessors(String parent)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Processor element : appPlatformClient.listProcessors(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListProcessorsRequest.com.google.api.gax.rpc.ApiException - if the remote call failspublic final AppPlatformClient.ListProcessorsPagedResponse listProcessors(ListProcessorsRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ListProcessorsRequest request =
ListProcessorsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Processor element : appPlatformClient.listProcessors(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListProcessorsRequest,AppPlatformClient.ListProcessorsPagedResponse> listProcessorsPagedCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ListProcessorsRequest request =
ListProcessorsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Processor> future =
appPlatformClient.listProcessorsPagedCallable().futureCall(request);
// Do something.
for (Processor element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListProcessorsRequest,ListProcessorsResponse> listProcessorsCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ListProcessorsRequest request =
ListProcessorsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListProcessorsResponse response = appPlatformClient.listProcessorsCallable().call(request);
for (Processor element : response.getProcessorsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final ListPrebuiltProcessorsResponse listPrebuiltProcessors(LocationName parent)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
ListPrebuiltProcessorsResponse response = appPlatformClient.listPrebuiltProcessors(parent);
}
parent - Required. Parent path.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ListPrebuiltProcessorsResponse listPrebuiltProcessors(String parent)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
ListPrebuiltProcessorsResponse response = appPlatformClient.listPrebuiltProcessors(parent);
}
parent - Required. Parent path.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ListPrebuiltProcessorsResponse listPrebuiltProcessors(ListPrebuiltProcessorsRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ListPrebuiltProcessorsRequest request =
ListPrebuiltProcessorsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.build();
ListPrebuiltProcessorsResponse response = appPlatformClient.listPrebuiltProcessors(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListPrebuiltProcessorsRequest,ListPrebuiltProcessorsResponse> listPrebuiltProcessorsCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ListPrebuiltProcessorsRequest request =
ListPrebuiltProcessorsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.build();
ApiFuture<ListPrebuiltProcessorsResponse> future =
appPlatformClient.listPrebuiltProcessorsCallable().futureCall(request);
// Do something.
ListPrebuiltProcessorsResponse response = future.get();
}
public final Processor getProcessor(ProcessorName name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
Processor response = appPlatformClient.getProcessor(name);
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Processor getProcessor(String name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
Processor response = appPlatformClient.getProcessor(name);
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Processor getProcessor(GetProcessorRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
GetProcessorRequest request =
GetProcessorRequest.newBuilder()
.setName(ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
.build();
Processor response = appPlatformClient.getProcessor(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetProcessorRequest,Processor> getProcessorCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
GetProcessorRequest request =
GetProcessorRequest.newBuilder()
.setName(ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
.build();
ApiFuture<Processor> future = appPlatformClient.getProcessorCallable().futureCall(request);
// Do something.
Processor response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Processor,OperationMetadata> createProcessorAsync(LocationName parent, Processor processor, String processorId)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Processor processor = Processor.newBuilder().build();
String processorId = "processorId203323725";
Processor response =
appPlatformClient.createProcessorAsync(parent, processor, processorId).get();
}
parent - Required. Value for parent.processor - Required. The resource being created.processorId - Required. Id of the requesting object.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Processor,OperationMetadata> createProcessorAsync(String parent, Processor processor, String processorId)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Processor processor = Processor.newBuilder().build();
String processorId = "processorId203323725";
Processor response =
appPlatformClient.createProcessorAsync(parent, processor, processorId).get();
}
parent - Required. Value for parent.processor - Required. The resource being created.processorId - Required. Id of the requesting object.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Processor,OperationMetadata> createProcessorAsync(CreateProcessorRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
CreateProcessorRequest request =
CreateProcessorRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setProcessorId("processorId203323725")
.setProcessor(Processor.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Processor response = appPlatformClient.createProcessorAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateProcessorRequest,Processor,OperationMetadata> createProcessorOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
CreateProcessorRequest request =
CreateProcessorRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setProcessorId("processorId203323725")
.setProcessor(Processor.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Processor, OperationMetadata> future =
appPlatformClient.createProcessorOperationCallable().futureCall(request);
// Do something.
Processor response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateProcessorRequest,com.google.longrunning.Operation> createProcessorCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
CreateProcessorRequest request =
CreateProcessorRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setProcessorId("processorId203323725")
.setProcessor(Processor.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = appPlatformClient.createProcessorCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Processor,OperationMetadata> updateProcessorAsync(Processor processor, com.google.protobuf.FieldMask updateMask)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
Processor processor = Processor.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Processor response = appPlatformClient.updateProcessorAsync(processor, updateMask).get();
}
processor - Required. The resource being updated.updateMask - Optional. Field mask is used to specify the fields to be overwritten in the
Processor resource by the update. The fields specified in the update_mask are relative to
the resource, not the full request. A field will be overwritten if it is in the mask. If
the user does not provide a mask then all fields will be overwritten.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Processor,OperationMetadata> updateProcessorAsync(UpdateProcessorRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UpdateProcessorRequest request =
UpdateProcessorRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setProcessor(Processor.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Processor response = appPlatformClient.updateProcessorAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UpdateProcessorRequest,Processor,OperationMetadata> updateProcessorOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UpdateProcessorRequest request =
UpdateProcessorRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setProcessor(Processor.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Processor, OperationMetadata> future =
appPlatformClient.updateProcessorOperationCallable().futureCall(request);
// Do something.
Processor response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateProcessorRequest,com.google.longrunning.Operation> updateProcessorCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
UpdateProcessorRequest request =
UpdateProcessorRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setProcessor(Processor.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = appPlatformClient.updateProcessorCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteProcessorAsync(ProcessorName name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
appPlatformClient.deleteProcessorAsync(name).get();
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteProcessorAsync(String name)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
String name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
appPlatformClient.deleteProcessorAsync(name).get();
}
name - Required. Name of the resourcecom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteProcessorAsync(DeleteProcessorRequest request)
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DeleteProcessorRequest request =
DeleteProcessorRequest.newBuilder()
.setName(ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
.setRequestId("requestId693933066")
.build();
appPlatformClient.deleteProcessorAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteProcessorRequest,com.google.protobuf.Empty,OperationMetadata> deleteProcessorOperationCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DeleteProcessorRequest request =
DeleteProcessorRequest.newBuilder()
.setName(ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
appPlatformClient.deleteProcessorOperationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteProcessorRequest,com.google.longrunning.Operation> deleteProcessorCallable()
Sample 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 (AppPlatformClient appPlatformClient = AppPlatformClient.create()) {
DeleteProcessorRequest request =
DeleteProcessorRequest.newBuilder()
.setName(ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = appPlatformClient.deleteProcessorCallable().futureCall(request);
// Do something.
future.get();
}
public final void close()
close in interface AutoCloseablepublic void shutdown()
shutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isShutdown()
isShutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isTerminated()
isTerminated in interface com.google.api.gax.core.BackgroundResourcepublic void shutdownNow()
shutdownNow in interface com.google.api.gax.core.BackgroundResourcepublic boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface com.google.api.gax.core.BackgroundResourceInterruptedExceptionCopyright © 2025 Google LLC. All rights reserved.