@Generated(value="by gapic-generator-java") public class LiveVideoAnalyticsClient 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
List<OperatorQuery> queries = new ArrayList<>();
ResolveOperatorInfoResponse response =
liveVideoAnalyticsClient.resolveOperatorInfo(parent, queries);
}
Note: close() needs to be called on the LiveVideoAnalyticsClient 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 |
|---|---|---|
ListPublicOperators |
ListPublicOperators returns all the operators in public registry. |
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.
|
ResolveOperatorInfo |
ResolveOperatorInfo returns the operator information based on the request. |
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.
|
ListOperators |
Lists Operators 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.
|
GetOperator |
Gets details of a single Operator. |
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.
|
CreateOperator |
Creates a new Operator 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.
|
UpdateOperator |
Updates the parameters of a single Operator. |
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.
|
DeleteOperator |
Deletes a single Operator. |
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.
|
ListAnalyses |
Lists Analyses 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.
|
GetAnalysis |
Gets details of a single Analysis. |
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.
|
CreateAnalysis |
Creates a new Analysis 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.
|
UpdateAnalysis |
Updates the parameters of a single Analysis. |
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.
|
DeleteAnalysis |
Deletes a single Analysis. |
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.
|
ListProcesses |
Lists Processes 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.
|
GetProcess |
Gets details of a single Process. |
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.
|
CreateProcess |
Creates a new Process 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.
|
UpdateProcess |
Updates the parameters of a single Process. |
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.
|
DeleteProcess |
Deletes a single Process. |
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.
|
BatchRunProcess |
Run all of the processes to "completion". Max time for each process is the LRO time limit. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
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 LiveVideoAnalyticsSettings 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
LiveVideoAnalyticsSettings liveVideoAnalyticsSettings =
LiveVideoAnalyticsSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
LiveVideoAnalyticsClient liveVideoAnalyticsClient =
LiveVideoAnalyticsClient.create(liveVideoAnalyticsSettings);
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
LiveVideoAnalyticsSettings liveVideoAnalyticsSettings =
LiveVideoAnalyticsSettings.newBuilder().setEndpoint(myEndpoint).build();
LiveVideoAnalyticsClient liveVideoAnalyticsClient =
LiveVideoAnalyticsClient.create(liveVideoAnalyticsSettings);
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
LiveVideoAnalyticsSettings liveVideoAnalyticsSettings =
LiveVideoAnalyticsSettings.newHttpJsonBuilder().build();
LiveVideoAnalyticsClient liveVideoAnalyticsClient =
LiveVideoAnalyticsClient.create(liveVideoAnalyticsSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
| Modifier and Type | Class and Description |
|---|---|
static class |
LiveVideoAnalyticsClient.ListAnalysesFixedSizeCollection |
static class |
LiveVideoAnalyticsClient.ListAnalysesPage |
static class |
LiveVideoAnalyticsClient.ListAnalysesPagedResponse |
static class |
LiveVideoAnalyticsClient.ListOperatorsFixedSizeCollection |
static class |
LiveVideoAnalyticsClient.ListOperatorsPage |
static class |
LiveVideoAnalyticsClient.ListOperatorsPagedResponse |
static class |
LiveVideoAnalyticsClient.ListProcessesFixedSizeCollection |
static class |
LiveVideoAnalyticsClient.ListProcessesPage |
static class |
LiveVideoAnalyticsClient.ListProcessesPagedResponse |
static class |
LiveVideoAnalyticsClient.ListPublicOperatorsFixedSizeCollection |
static class |
LiveVideoAnalyticsClient.ListPublicOperatorsPage |
static class |
LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse |
| Modifier | Constructor and Description |
|---|---|
protected |
LiveVideoAnalyticsClient(LiveVideoAnalyticsSettings settings)
Constructs an instance of LiveVideoAnalyticsClient, using the given settings.
|
protected |
LiveVideoAnalyticsClient(LiveVideoAnalyticsStub stub) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
com.google.api.gax.longrunning.OperationFuture<BatchRunProcessResponse,OperationMetadata> |
batchRunProcessAsync(BatchRunProcessRequest request)
Run all of the processes to "completion".
|
com.google.api.gax.longrunning.OperationFuture<BatchRunProcessResponse,OperationMetadata> |
batchRunProcessAsync(ClusterName parent,
List<CreateProcessRequest> requests)
Run all of the processes to "completion".
|
com.google.api.gax.longrunning.OperationFuture<BatchRunProcessResponse,OperationMetadata> |
batchRunProcessAsync(String parent,
List<CreateProcessRequest> requests)
Run all of the processes to "completion".
|
com.google.api.gax.rpc.UnaryCallable<BatchRunProcessRequest,com.google.longrunning.Operation> |
batchRunProcessCallable()
Run all of the processes to "completion".
|
com.google.api.gax.rpc.OperationCallable<BatchRunProcessRequest,BatchRunProcessResponse,OperationMetadata> |
batchRunProcessOperationCallable()
Run all of the processes to "completion".
|
void |
close() |
static LiveVideoAnalyticsClient |
create()
Constructs an instance of LiveVideoAnalyticsClient with default settings.
|
static LiveVideoAnalyticsClient |
create(LiveVideoAnalyticsSettings settings)
Constructs an instance of LiveVideoAnalyticsClient, using the given settings.
|
static LiveVideoAnalyticsClient |
create(LiveVideoAnalyticsStub stub)
Constructs an instance of LiveVideoAnalyticsClient, using the given stub for making calls.
|
com.google.api.gax.longrunning.OperationFuture<Analysis,OperationMetadata> |
createAnalysisAsync(ClusterName parent,
Analysis analysis,
String analysisId)
Creates a new Analysis in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Analysis,OperationMetadata> |
createAnalysisAsync(CreateAnalysisRequest request)
Creates a new Analysis in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Analysis,OperationMetadata> |
createAnalysisAsync(String parent,
Analysis analysis,
String analysisId)
Creates a new Analysis in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<CreateAnalysisRequest,com.google.longrunning.Operation> |
createAnalysisCallable()
Creates a new Analysis in a given project and location.
|
com.google.api.gax.rpc.OperationCallable<CreateAnalysisRequest,Analysis,OperationMetadata> |
createAnalysisOperationCallable()
Creates a new Analysis in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Operator,OperationMetadata> |
createOperatorAsync(CreateOperatorRequest request)
Creates a new Operator in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Operator,OperationMetadata> |
createOperatorAsync(LocationName parent,
Operator operator,
String operatorId)
Creates a new Operator in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Operator,OperationMetadata> |
createOperatorAsync(String parent,
Operator operator,
String operatorId)
Creates a new Operator in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<CreateOperatorRequest,com.google.longrunning.Operation> |
createOperatorCallable()
Creates a new Operator in a given project and location.
|
com.google.api.gax.rpc.OperationCallable<CreateOperatorRequest,Operator,OperationMetadata> |
createOperatorOperationCallable()
Creates a new Operator in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Process,OperationMetadata> |
createProcessAsync(ClusterName parent,
Process process,
String processId)
Creates a new Process in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Process,OperationMetadata> |
createProcessAsync(CreateProcessRequest request)
Creates a new Process in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Process,OperationMetadata> |
createProcessAsync(String parent,
Process process,
String processId)
Creates a new Process in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<CreateProcessRequest,com.google.longrunning.Operation> |
createProcessCallable()
Creates a new Process in a given project and location.
|
com.google.api.gax.rpc.OperationCallable<CreateProcessRequest,Process,OperationMetadata> |
createProcessOperationCallable()
Creates a new Process in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteAnalysisAsync(AnalysisName name)
Deletes a single Analysis.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteAnalysisAsync(DeleteAnalysisRequest request)
Deletes a single Analysis.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteAnalysisAsync(String name)
Deletes a single Analysis.
|
com.google.api.gax.rpc.UnaryCallable<DeleteAnalysisRequest,com.google.longrunning.Operation> |
deleteAnalysisCallable()
Deletes a single Analysis.
|
com.google.api.gax.rpc.OperationCallable<DeleteAnalysisRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteAnalysisOperationCallable()
Deletes a single Analysis.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteOperatorAsync(DeleteOperatorRequest request)
Deletes a single Operator.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteOperatorAsync(OperatorName name)
Deletes a single Operator.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteOperatorAsync(String name)
Deletes a single Operator.
|
com.google.api.gax.rpc.UnaryCallable<DeleteOperatorRequest,com.google.longrunning.Operation> |
deleteOperatorCallable()
Deletes a single Operator.
|
com.google.api.gax.rpc.OperationCallable<DeleteOperatorRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteOperatorOperationCallable()
Deletes a single Operator.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteProcessAsync(DeleteProcessRequest request)
Deletes a single Process.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteProcessAsync(ProcessName name)
Deletes a single Process.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteProcessAsync(String name)
Deletes a single Process.
|
com.google.api.gax.rpc.UnaryCallable<DeleteProcessRequest,com.google.longrunning.Operation> |
deleteProcessCallable()
Deletes a single Process.
|
com.google.api.gax.rpc.OperationCallable<DeleteProcessRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteProcessOperationCallable()
Deletes a single Process.
|
Analysis |
getAnalysis(AnalysisName name)
Gets details of a single Analysis.
|
Analysis |
getAnalysis(GetAnalysisRequest request)
Gets details of a single Analysis.
|
Analysis |
getAnalysis(String name)
Gets details of a single Analysis.
|
com.google.api.gax.rpc.UnaryCallable<GetAnalysisRequest,Analysis> |
getAnalysisCallable()
Gets details of a single Analysis.
|
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.
|
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.
|
Operator |
getOperator(GetOperatorRequest request)
Gets details of a single Operator.
|
Operator |
getOperator(OperatorName name)
Gets details of a single Operator.
|
Operator |
getOperator(String name)
Gets details of a single Operator.
|
com.google.api.gax.rpc.UnaryCallable<GetOperatorRequest,Operator> |
getOperatorCallable()
Gets details of a single Operator.
|
Process |
getProcess(GetProcessRequest request)
Gets details of a single Process.
|
Process |
getProcess(ProcessName name)
Gets details of a single Process.
|
Process |
getProcess(String name)
Gets details of a single Process.
|
com.google.api.gax.rpc.UnaryCallable<GetProcessRequest,Process> |
getProcessCallable()
Gets details of a single Process.
|
LiveVideoAnalyticsSettings |
getSettings() |
LiveVideoAnalyticsStub |
getStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
LiveVideoAnalyticsClient.ListAnalysesPagedResponse |
listAnalyses(ClusterName parent)
Lists Analyses in a given project and location.
|
LiveVideoAnalyticsClient.ListAnalysesPagedResponse |
listAnalyses(ListAnalysesRequest request)
Lists Analyses in a given project and location.
|
LiveVideoAnalyticsClient.ListAnalysesPagedResponse |
listAnalyses(String parent)
Lists Analyses in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListAnalysesRequest,ListAnalysesResponse> |
listAnalysesCallable()
Lists Analyses in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListAnalysesRequest,LiveVideoAnalyticsClient.ListAnalysesPagedResponse> |
listAnalysesPagedCallable()
Lists Analyses in a given project and location.
|
LiveVideoAnalyticsClient.ListOperatorsPagedResponse |
listOperators(ListOperatorsRequest request)
Lists Operators in a given project and location.
|
LiveVideoAnalyticsClient.ListOperatorsPagedResponse |
listOperators(LocationName parent)
Lists Operators in a given project and location.
|
LiveVideoAnalyticsClient.ListOperatorsPagedResponse |
listOperators(String parent)
Lists Operators in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListOperatorsRequest,ListOperatorsResponse> |
listOperatorsCallable()
Lists Operators in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListOperatorsRequest,LiveVideoAnalyticsClient.ListOperatorsPagedResponse> |
listOperatorsPagedCallable()
Lists Operators in a given project and location.
|
LiveVideoAnalyticsClient.ListProcessesPagedResponse |
listProcesses(ClusterName parent)
Lists Processes in a given project and location.
|
LiveVideoAnalyticsClient.ListProcessesPagedResponse |
listProcesses(ListProcessesRequest request)
Lists Processes in a given project and location.
|
LiveVideoAnalyticsClient.ListProcessesPagedResponse |
listProcesses(String parent)
Lists Processes in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListProcessesRequest,ListProcessesResponse> |
listProcessesCallable()
Lists Processes in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListProcessesRequest,LiveVideoAnalyticsClient.ListProcessesPagedResponse> |
listProcessesPagedCallable()
Lists Processes in a given project and location.
|
LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse |
listPublicOperators(ListPublicOperatorsRequest request)
ListPublicOperators returns all the operators in public registry.
|
LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse |
listPublicOperators(LocationName parent)
ListPublicOperators returns all the operators in public registry.
|
LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse |
listPublicOperators(String parent)
ListPublicOperators returns all the operators in public registry.
|
com.google.api.gax.rpc.UnaryCallable<ListPublicOperatorsRequest,ListPublicOperatorsResponse> |
listPublicOperatorsCallable()
ListPublicOperators returns all the operators in public registry.
|
com.google.api.gax.rpc.UnaryCallable<ListPublicOperatorsRequest,LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse> |
listPublicOperatorsPagedCallable()
ListPublicOperators returns all the operators in public registry.
|
ResolveOperatorInfoResponse |
resolveOperatorInfo(LocationName parent,
List<OperatorQuery> queries)
ResolveOperatorInfo returns the operator information based on the request.
|
ResolveOperatorInfoResponse |
resolveOperatorInfo(ResolveOperatorInfoRequest request)
ResolveOperatorInfo returns the operator information based on the request.
|
ResolveOperatorInfoResponse |
resolveOperatorInfo(String parent,
List<OperatorQuery> queries)
ResolveOperatorInfo returns the operator information based on the request.
|
com.google.api.gax.rpc.UnaryCallable<ResolveOperatorInfoRequest,ResolveOperatorInfoResponse> |
resolveOperatorInfoCallable()
ResolveOperatorInfo returns the operator information based on the request.
|
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.longrunning.OperationFuture<Analysis,OperationMetadata> |
updateAnalysisAsync(Analysis analysis,
com.google.protobuf.FieldMask updateMask)
Updates the parameters of a single Analysis.
|
com.google.api.gax.longrunning.OperationFuture<Analysis,OperationMetadata> |
updateAnalysisAsync(UpdateAnalysisRequest request)
Updates the parameters of a single Analysis.
|
com.google.api.gax.rpc.UnaryCallable<UpdateAnalysisRequest,com.google.longrunning.Operation> |
updateAnalysisCallable()
Updates the parameters of a single Analysis.
|
com.google.api.gax.rpc.OperationCallable<UpdateAnalysisRequest,Analysis,OperationMetadata> |
updateAnalysisOperationCallable()
Updates the parameters of a single Analysis.
|
com.google.api.gax.longrunning.OperationFuture<Operator,OperationMetadata> |
updateOperatorAsync(Operator operator,
com.google.protobuf.FieldMask updateMask)
Updates the parameters of a single Operator.
|
com.google.api.gax.longrunning.OperationFuture<Operator,OperationMetadata> |
updateOperatorAsync(UpdateOperatorRequest request)
Updates the parameters of a single Operator.
|
com.google.api.gax.rpc.UnaryCallable<UpdateOperatorRequest,com.google.longrunning.Operation> |
updateOperatorCallable()
Updates the parameters of a single Operator.
|
com.google.api.gax.rpc.OperationCallable<UpdateOperatorRequest,Operator,OperationMetadata> |
updateOperatorOperationCallable()
Updates the parameters of a single Operator.
|
com.google.api.gax.longrunning.OperationFuture<Process,OperationMetadata> |
updateProcessAsync(Process process,
com.google.protobuf.FieldMask updateMask)
Updates the parameters of a single Process.
|
com.google.api.gax.longrunning.OperationFuture<Process,OperationMetadata> |
updateProcessAsync(UpdateProcessRequest request)
Updates the parameters of a single Process.
|
com.google.api.gax.rpc.UnaryCallable<UpdateProcessRequest,com.google.longrunning.Operation> |
updateProcessCallable()
Updates the parameters of a single Process.
|
com.google.api.gax.rpc.OperationCallable<UpdateProcessRequest,Process,OperationMetadata> |
updateProcessOperationCallable()
Updates the parameters of a single Process.
|
protected LiveVideoAnalyticsClient(LiveVideoAnalyticsSettings settings) throws IOException
IOExceptionprotected LiveVideoAnalyticsClient(LiveVideoAnalyticsStub stub)
public static final LiveVideoAnalyticsClient create() throws IOException
IOExceptionpublic static final LiveVideoAnalyticsClient create(LiveVideoAnalyticsSettings settings) throws IOException
IOExceptionpublic static final LiveVideoAnalyticsClient create(LiveVideoAnalyticsStub stub)
public final LiveVideoAnalyticsSettings getSettings()
public LiveVideoAnalyticsStub getStub()
public final com.google.longrunning.OperationsClient getOperationsClient()
@BetaApi public final com.google.api.gax.httpjson.longrunning.OperationsClient getHttpJsonOperationsClient()
public final LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse listPublicOperators(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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Operator element : liveVideoAnalyticsClient.listPublicOperators(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListPublicOperatorsRequest.com.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse listPublicOperators(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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Operator element : liveVideoAnalyticsClient.listPublicOperators(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListPublicOperatorsRequest.com.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse listPublicOperators(ListPublicOperatorsRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ListPublicOperatorsRequest request =
ListPublicOperatorsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Operator element : liveVideoAnalyticsClient.listPublicOperators(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<ListPublicOperatorsRequest,LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse> listPublicOperatorsPagedCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ListPublicOperatorsRequest request =
ListPublicOperatorsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Operator> future =
liveVideoAnalyticsClient.listPublicOperatorsPagedCallable().futureCall(request);
// Do something.
for (Operator element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListPublicOperatorsRequest,ListPublicOperatorsResponse> listPublicOperatorsCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ListPublicOperatorsRequest request =
ListPublicOperatorsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListPublicOperatorsResponse response =
liveVideoAnalyticsClient.listPublicOperatorsCallable().call(request);
for (Operator element : response.getOperatorsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final ResolveOperatorInfoResponse resolveOperatorInfo(LocationName parent, List<OperatorQuery> queries)
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
List<OperatorQuery> queries = new ArrayList<>();
ResolveOperatorInfoResponse response =
liveVideoAnalyticsClient.resolveOperatorInfo(parent, queries);
}
parent - Required. Parent value for ResolveOperatorInfoRequest.queries - Required. The operator queries.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ResolveOperatorInfoResponse resolveOperatorInfo(String parent, List<OperatorQuery> queries)
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
List<OperatorQuery> queries = new ArrayList<>();
ResolveOperatorInfoResponse response =
liveVideoAnalyticsClient.resolveOperatorInfo(parent, queries);
}
parent - Required. Parent value for ResolveOperatorInfoRequest.queries - Required. The operator queries.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ResolveOperatorInfoResponse resolveOperatorInfo(ResolveOperatorInfoRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ResolveOperatorInfoRequest request =
ResolveOperatorInfoRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.addAllQueries(new ArrayList<OperatorQuery>())
.build();
ResolveOperatorInfoResponse response = liveVideoAnalyticsClient.resolveOperatorInfo(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<ResolveOperatorInfoRequest,ResolveOperatorInfoResponse> resolveOperatorInfoCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ResolveOperatorInfoRequest request =
ResolveOperatorInfoRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.addAllQueries(new ArrayList<OperatorQuery>())
.build();
ApiFuture<ResolveOperatorInfoResponse> future =
liveVideoAnalyticsClient.resolveOperatorInfoCallable().futureCall(request);
// Do something.
ResolveOperatorInfoResponse response = future.get();
}
public final LiveVideoAnalyticsClient.ListOperatorsPagedResponse listOperators(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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Operator element : liveVideoAnalyticsClient.listOperators(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListOperatorsRequest.com.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveVideoAnalyticsClient.ListOperatorsPagedResponse listOperators(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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Operator element : liveVideoAnalyticsClient.listOperators(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListOperatorsRequest.com.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveVideoAnalyticsClient.ListOperatorsPagedResponse listOperators(ListOperatorsRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ListOperatorsRequest request =
ListOperatorsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Operator element : liveVideoAnalyticsClient.listOperators(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<ListOperatorsRequest,LiveVideoAnalyticsClient.ListOperatorsPagedResponse> listOperatorsPagedCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ListOperatorsRequest request =
ListOperatorsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Operator> future =
liveVideoAnalyticsClient.listOperatorsPagedCallable().futureCall(request);
// Do something.
for (Operator element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListOperatorsRequest,ListOperatorsResponse> listOperatorsCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ListOperatorsRequest request =
ListOperatorsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListOperatorsResponse response =
liveVideoAnalyticsClient.listOperatorsCallable().call(request);
for (Operator element : response.getOperatorsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final Operator getOperator(OperatorName 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
OperatorName name = OperatorName.of("[PROJECT]", "[LOCATION]", "[OPERATOR]");
Operator response = liveVideoAnalyticsClient.getOperator(name);
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Operator getOperator(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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
String name = OperatorName.of("[PROJECT]", "[LOCATION]", "[OPERATOR]").toString();
Operator response = liveVideoAnalyticsClient.getOperator(name);
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Operator getOperator(GetOperatorRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
GetOperatorRequest request =
GetOperatorRequest.newBuilder()
.setName(OperatorName.of("[PROJECT]", "[LOCATION]", "[OPERATOR]").toString())
.build();
Operator response = liveVideoAnalyticsClient.getOperator(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<GetOperatorRequest,Operator> getOperatorCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
GetOperatorRequest request =
GetOperatorRequest.newBuilder()
.setName(OperatorName.of("[PROJECT]", "[LOCATION]", "[OPERATOR]").toString())
.build();
ApiFuture<Operator> future =
liveVideoAnalyticsClient.getOperatorCallable().futureCall(request);
// Do something.
Operator response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Operator,OperationMetadata> createOperatorAsync(LocationName parent, Operator operator, String operatorId)
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Operator operator = Operator.newBuilder().build();
String operatorId = "operatorId4364511";
Operator response =
liveVideoAnalyticsClient.createOperatorAsync(parent, operator, operatorId).get();
}
parent - Required. Value for parent.operator - Required. The resource being created.operatorId - Required. Id of the requesting object.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Operator,OperationMetadata> createOperatorAsync(String parent, Operator operator, String operatorId)
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Operator operator = Operator.newBuilder().build();
String operatorId = "operatorId4364511";
Operator response =
liveVideoAnalyticsClient.createOperatorAsync(parent, operator, operatorId).get();
}
parent - Required. Value for parent.operator - Required. The resource being created.operatorId - Required. Id of the requesting object.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Operator,OperationMetadata> createOperatorAsync(CreateOperatorRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
CreateOperatorRequest request =
CreateOperatorRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setOperatorId("operatorId4364511")
.setOperator(Operator.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Operator response = liveVideoAnalyticsClient.createOperatorAsync(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<CreateOperatorRequest,Operator,OperationMetadata> createOperatorOperationCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
CreateOperatorRequest request =
CreateOperatorRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setOperatorId("operatorId4364511")
.setOperator(Operator.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Operator, OperationMetadata> future =
liveVideoAnalyticsClient.createOperatorOperationCallable().futureCall(request);
// Do something.
Operator response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateOperatorRequest,com.google.longrunning.Operation> createOperatorCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
CreateOperatorRequest request =
CreateOperatorRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setOperatorId("operatorId4364511")
.setOperator(Operator.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
liveVideoAnalyticsClient.createOperatorCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Operator,OperationMetadata> updateOperatorAsync(Operator operator, 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
Operator operator = Operator.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Operator response = liveVideoAnalyticsClient.updateOperatorAsync(operator, updateMask).get();
}
operator - Required. The resource being updatedupdateMask - Required. Field mask is used to specify the fields to be overwritten in the
Operator 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<Operator,OperationMetadata> updateOperatorAsync(UpdateOperatorRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
UpdateOperatorRequest request =
UpdateOperatorRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setOperator(Operator.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Operator response = liveVideoAnalyticsClient.updateOperatorAsync(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<UpdateOperatorRequest,Operator,OperationMetadata> updateOperatorOperationCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
UpdateOperatorRequest request =
UpdateOperatorRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setOperator(Operator.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Operator, OperationMetadata> future =
liveVideoAnalyticsClient.updateOperatorOperationCallable().futureCall(request);
// Do something.
Operator response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateOperatorRequest,com.google.longrunning.Operation> updateOperatorCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
UpdateOperatorRequest request =
UpdateOperatorRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setOperator(Operator.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
liveVideoAnalyticsClient.updateOperatorCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteOperatorAsync(OperatorName 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
OperatorName name = OperatorName.of("[PROJECT]", "[LOCATION]", "[OPERATOR]");
liveVideoAnalyticsClient.deleteOperatorAsync(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> deleteOperatorAsync(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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
String name = OperatorName.of("[PROJECT]", "[LOCATION]", "[OPERATOR]").toString();
liveVideoAnalyticsClient.deleteOperatorAsync(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> deleteOperatorAsync(DeleteOperatorRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
DeleteOperatorRequest request =
DeleteOperatorRequest.newBuilder()
.setName(OperatorName.of("[PROJECT]", "[LOCATION]", "[OPERATOR]").toString())
.setRequestId("requestId693933066")
.build();
liveVideoAnalyticsClient.deleteOperatorAsync(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<DeleteOperatorRequest,com.google.protobuf.Empty,OperationMetadata> deleteOperatorOperationCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
DeleteOperatorRequest request =
DeleteOperatorRequest.newBuilder()
.setName(OperatorName.of("[PROJECT]", "[LOCATION]", "[OPERATOR]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
liveVideoAnalyticsClient.deleteOperatorOperationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteOperatorRequest,com.google.longrunning.Operation> deleteOperatorCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
DeleteOperatorRequest request =
DeleteOperatorRequest.newBuilder()
.setName(OperatorName.of("[PROJECT]", "[LOCATION]", "[OPERATOR]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
liveVideoAnalyticsClient.deleteOperatorCallable().futureCall(request);
// Do something.
future.get();
}
public final LiveVideoAnalyticsClient.ListAnalysesPagedResponse listAnalyses(ClusterName 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
for (Analysis element : liveVideoAnalyticsClient.listAnalyses(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListAnalysesRequestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveVideoAnalyticsClient.ListAnalysesPagedResponse listAnalyses(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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
String parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
for (Analysis element : liveVideoAnalyticsClient.listAnalyses(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListAnalysesRequestcom.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveVideoAnalyticsClient.ListAnalysesPagedResponse listAnalyses(ListAnalysesRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ListAnalysesRequest request =
ListAnalysesRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Analysis element : liveVideoAnalyticsClient.listAnalyses(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<ListAnalysesRequest,LiveVideoAnalyticsClient.ListAnalysesPagedResponse> listAnalysesPagedCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ListAnalysesRequest request =
ListAnalysesRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Analysis> future =
liveVideoAnalyticsClient.listAnalysesPagedCallable().futureCall(request);
// Do something.
for (Analysis element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListAnalysesRequest,ListAnalysesResponse> listAnalysesCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ListAnalysesRequest request =
ListAnalysesRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListAnalysesResponse response =
liveVideoAnalyticsClient.listAnalysesCallable().call(request);
for (Analysis element : response.getAnalysesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final Analysis getAnalysis(AnalysisName 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
AnalysisName name = AnalysisName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[ANALYSIS]");
Analysis response = liveVideoAnalyticsClient.getAnalysis(name);
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Analysis getAnalysis(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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
String name =
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[ANALYSIS]").toString();
Analysis response = liveVideoAnalyticsClient.getAnalysis(name);
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Analysis getAnalysis(GetAnalysisRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
GetAnalysisRequest request =
GetAnalysisRequest.newBuilder()
.setName(
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[ANALYSIS]").toString())
.build();
Analysis response = liveVideoAnalyticsClient.getAnalysis(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<GetAnalysisRequest,Analysis> getAnalysisCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
GetAnalysisRequest request =
GetAnalysisRequest.newBuilder()
.setName(
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[ANALYSIS]").toString())
.build();
ApiFuture<Analysis> future =
liveVideoAnalyticsClient.getAnalysisCallable().futureCall(request);
// Do something.
Analysis response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Analysis,OperationMetadata> createAnalysisAsync(ClusterName parent, Analysis analysis, String analysisId)
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
Analysis analysis = Analysis.newBuilder().build();
String analysisId = "analysisId-944835305";
Analysis response =
liveVideoAnalyticsClient.createAnalysisAsync(parent, analysis, analysisId).get();
}
parent - Required. Value for parent.analysis - Required. The resource being created.analysisId - Required. Id of the requesting object.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Analysis,OperationMetadata> createAnalysisAsync(String parent, Analysis analysis, String analysisId)
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
String parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
Analysis analysis = Analysis.newBuilder().build();
String analysisId = "analysisId-944835305";
Analysis response =
liveVideoAnalyticsClient.createAnalysisAsync(parent, analysis, analysisId).get();
}
parent - Required. Value for parent.analysis - Required. The resource being created.analysisId - Required. Id of the requesting object.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Analysis,OperationMetadata> createAnalysisAsync(CreateAnalysisRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
CreateAnalysisRequest request =
CreateAnalysisRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
.setAnalysisId("analysisId-944835305")
.setAnalysis(Analysis.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Analysis response = liveVideoAnalyticsClient.createAnalysisAsync(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<CreateAnalysisRequest,Analysis,OperationMetadata> createAnalysisOperationCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
CreateAnalysisRequest request =
CreateAnalysisRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
.setAnalysisId("analysisId-944835305")
.setAnalysis(Analysis.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Analysis, OperationMetadata> future =
liveVideoAnalyticsClient.createAnalysisOperationCallable().futureCall(request);
// Do something.
Analysis response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateAnalysisRequest,com.google.longrunning.Operation> createAnalysisCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
CreateAnalysisRequest request =
CreateAnalysisRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
.setAnalysisId("analysisId-944835305")
.setAnalysis(Analysis.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
liveVideoAnalyticsClient.createAnalysisCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Analysis,OperationMetadata> updateAnalysisAsync(Analysis analysis, 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
Analysis analysis = Analysis.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Analysis response = liveVideoAnalyticsClient.updateAnalysisAsync(analysis, updateMask).get();
}
analysis - Required. The resource being updated.updateMask - Required. Field mask is used to specify the fields to be overwritten in the
Analysis 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<Analysis,OperationMetadata> updateAnalysisAsync(UpdateAnalysisRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
UpdateAnalysisRequest request =
UpdateAnalysisRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setAnalysis(Analysis.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Analysis response = liveVideoAnalyticsClient.updateAnalysisAsync(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<UpdateAnalysisRequest,Analysis,OperationMetadata> updateAnalysisOperationCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
UpdateAnalysisRequest request =
UpdateAnalysisRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setAnalysis(Analysis.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Analysis, OperationMetadata> future =
liveVideoAnalyticsClient.updateAnalysisOperationCallable().futureCall(request);
// Do something.
Analysis response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateAnalysisRequest,com.google.longrunning.Operation> updateAnalysisCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
UpdateAnalysisRequest request =
UpdateAnalysisRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setAnalysis(Analysis.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
liveVideoAnalyticsClient.updateAnalysisCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAnalysisAsync(AnalysisName 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
AnalysisName name = AnalysisName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[ANALYSIS]");
liveVideoAnalyticsClient.deleteAnalysisAsync(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> deleteAnalysisAsync(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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
String name =
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[ANALYSIS]").toString();
liveVideoAnalyticsClient.deleteAnalysisAsync(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> deleteAnalysisAsync(DeleteAnalysisRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
DeleteAnalysisRequest request =
DeleteAnalysisRequest.newBuilder()
.setName(
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[ANALYSIS]").toString())
.setRequestId("requestId693933066")
.build();
liveVideoAnalyticsClient.deleteAnalysisAsync(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<DeleteAnalysisRequest,com.google.protobuf.Empty,OperationMetadata> deleteAnalysisOperationCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
DeleteAnalysisRequest request =
DeleteAnalysisRequest.newBuilder()
.setName(
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[ANALYSIS]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
liveVideoAnalyticsClient.deleteAnalysisOperationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteAnalysisRequest,com.google.longrunning.Operation> deleteAnalysisCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
DeleteAnalysisRequest request =
DeleteAnalysisRequest.newBuilder()
.setName(
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[ANALYSIS]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
liveVideoAnalyticsClient.deleteAnalysisCallable().futureCall(request);
// Do something.
future.get();
}
public final LiveVideoAnalyticsClient.ListProcessesPagedResponse listProcesses(ClusterName 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
for (Process element : liveVideoAnalyticsClient.listProcesses(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListProcessesRequest.com.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveVideoAnalyticsClient.ListProcessesPagedResponse listProcesses(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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
String parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
for (Process element : liveVideoAnalyticsClient.listProcesses(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. Parent value for ListProcessesRequest.com.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveVideoAnalyticsClient.ListProcessesPagedResponse listProcesses(ListProcessesRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ListProcessesRequest request =
ListProcessesRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Process element : liveVideoAnalyticsClient.listProcesses(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<ListProcessesRequest,LiveVideoAnalyticsClient.ListProcessesPagedResponse> listProcessesPagedCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ListProcessesRequest request =
ListProcessesRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Process> future =
liveVideoAnalyticsClient.listProcessesPagedCallable().futureCall(request);
// Do something.
for (Process element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListProcessesRequest,ListProcessesResponse> listProcessesCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ListProcessesRequest request =
ListProcessesRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListProcessesResponse response =
liveVideoAnalyticsClient.listProcessesCallable().call(request);
for (Process element : response.getProcessesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final Process getProcess(ProcessName 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ProcessName name = ProcessName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[PROCESS]");
Process response = liveVideoAnalyticsClient.getProcess(name);
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Process getProcess(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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
String name = ProcessName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[PROCESS]").toString();
Process response = liveVideoAnalyticsClient.getProcess(name);
}
name - Required. Name of the resource.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Process getProcess(GetProcessRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
GetProcessRequest request =
GetProcessRequest.newBuilder()
.setName(
ProcessName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[PROCESS]").toString())
.build();
Process response = liveVideoAnalyticsClient.getProcess(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<GetProcessRequest,Process> getProcessCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
GetProcessRequest request =
GetProcessRequest.newBuilder()
.setName(
ProcessName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[PROCESS]").toString())
.build();
ApiFuture<Process> future = liveVideoAnalyticsClient.getProcessCallable().futureCall(request);
// Do something.
Process response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Process,OperationMetadata> createProcessAsync(ClusterName parent, Process process, String processId)
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
Process process = Process.newBuilder().build();
String processId = "processId-1094760470";
Process response =
liveVideoAnalyticsClient.createProcessAsync(parent, process, processId).get();
}
parent - Required. Value for parent.process - Required. The resource being created.processId - Required. Id of the requesting object.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Process,OperationMetadata> createProcessAsync(String parent, Process process, String processId)
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
String parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
Process process = Process.newBuilder().build();
String processId = "processId-1094760470";
Process response =
liveVideoAnalyticsClient.createProcessAsync(parent, process, processId).get();
}
parent - Required. Value for parent.process - Required. The resource being created.processId - Required. Id of the requesting object.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Process,OperationMetadata> createProcessAsync(CreateProcessRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
CreateProcessRequest request =
CreateProcessRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
.setProcessId("processId-1094760470")
.setProcess(Process.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Process response = liveVideoAnalyticsClient.createProcessAsync(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<CreateProcessRequest,Process,OperationMetadata> createProcessOperationCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
CreateProcessRequest request =
CreateProcessRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
.setProcessId("processId-1094760470")
.setProcess(Process.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Process, OperationMetadata> future =
liveVideoAnalyticsClient.createProcessOperationCallable().futureCall(request);
// Do something.
Process response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateProcessRequest,com.google.longrunning.Operation> createProcessCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
CreateProcessRequest request =
CreateProcessRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
.setProcessId("processId-1094760470")
.setProcess(Process.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
liveVideoAnalyticsClient.createProcessCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Process,OperationMetadata> updateProcessAsync(Process process, 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
Process process = Process.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Process response = liveVideoAnalyticsClient.updateProcessAsync(process, updateMask).get();
}
process - Required. The resource being updated.updateMask - Required. Field mask is used to specify the fields to be overwritten in the
Process 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<Process,OperationMetadata> updateProcessAsync(UpdateProcessRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
UpdateProcessRequest request =
UpdateProcessRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setProcess(Process.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Process response = liveVideoAnalyticsClient.updateProcessAsync(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<UpdateProcessRequest,Process,OperationMetadata> updateProcessOperationCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
UpdateProcessRequest request =
UpdateProcessRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setProcess(Process.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Process, OperationMetadata> future =
liveVideoAnalyticsClient.updateProcessOperationCallable().futureCall(request);
// Do something.
Process response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateProcessRequest,com.google.longrunning.Operation> updateProcessCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
UpdateProcessRequest request =
UpdateProcessRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setProcess(Process.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
liveVideoAnalyticsClient.updateProcessCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteProcessAsync(ProcessName 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ProcessName name = ProcessName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[PROCESS]");
liveVideoAnalyticsClient.deleteProcessAsync(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> deleteProcessAsync(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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
String name = ProcessName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[PROCESS]").toString();
liveVideoAnalyticsClient.deleteProcessAsync(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> deleteProcessAsync(DeleteProcessRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
DeleteProcessRequest request =
DeleteProcessRequest.newBuilder()
.setName(
ProcessName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[PROCESS]").toString())
.setRequestId("requestId693933066")
.build();
liveVideoAnalyticsClient.deleteProcessAsync(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<DeleteProcessRequest,com.google.protobuf.Empty,OperationMetadata> deleteProcessOperationCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
DeleteProcessRequest request =
DeleteProcessRequest.newBuilder()
.setName(
ProcessName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[PROCESS]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
liveVideoAnalyticsClient.deleteProcessOperationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteProcessRequest,com.google.longrunning.Operation> deleteProcessCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
DeleteProcessRequest request =
DeleteProcessRequest.newBuilder()
.setName(
ProcessName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]", "[PROCESS]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
liveVideoAnalyticsClient.deleteProcessCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<BatchRunProcessResponse,OperationMetadata> batchRunProcessAsync(ClusterName parent, List<CreateProcessRequest> requests)
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
List<CreateProcessRequest> requests = new ArrayList<>();
BatchRunProcessResponse response =
liveVideoAnalyticsClient.batchRunProcessAsync(parent, requests).get();
}
parent - Required. The parent resource shared by all processes being created.requests - Required. The create process requests.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<BatchRunProcessResponse,OperationMetadata> batchRunProcessAsync(String parent, List<CreateProcessRequest> requests)
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
String parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
List<CreateProcessRequest> requests = new ArrayList<>();
BatchRunProcessResponse response =
liveVideoAnalyticsClient.batchRunProcessAsync(parent, requests).get();
}
parent - Required. The parent resource shared by all processes being created.requests - Required. The create process requests.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<BatchRunProcessResponse,OperationMetadata> batchRunProcessAsync(BatchRunProcessRequest 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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
BatchRunProcessRequest request =
BatchRunProcessRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
.addAllRequests(new ArrayList<CreateProcessRequest>())
.setOptions(BatchRunProcessRequest.BatchRunProcessOptions.newBuilder().build())
.setBatchId("batchId-331744779")
.build();
BatchRunProcessResponse response =
liveVideoAnalyticsClient.batchRunProcessAsync(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<BatchRunProcessRequest,BatchRunProcessResponse,OperationMetadata> batchRunProcessOperationCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
BatchRunProcessRequest request =
BatchRunProcessRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
.addAllRequests(new ArrayList<CreateProcessRequest>())
.setOptions(BatchRunProcessRequest.BatchRunProcessOptions.newBuilder().build())
.setBatchId("batchId-331744779")
.build();
OperationFuture<BatchRunProcessResponse, OperationMetadata> future =
liveVideoAnalyticsClient.batchRunProcessOperationCallable().futureCall(request);
// Do something.
BatchRunProcessResponse response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<BatchRunProcessRequest,com.google.longrunning.Operation> batchRunProcessCallable()
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 (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
BatchRunProcessRequest request =
BatchRunProcessRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
.addAllRequests(new ArrayList<CreateProcessRequest>())
.setOptions(BatchRunProcessRequest.BatchRunProcessOptions.newBuilder().build())
.setBatchId("batchId-331744779")
.build();
ApiFuture<Operation> future =
liveVideoAnalyticsClient.batchRunProcessCallable().futureCall(request);
// Do something.
Operation response = 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.