Class LiveVideoAnalyticsClient (0.4.0)

GitHub RepositoryProduct ReferenceRPC Documentation

Service Description: Service describing handlers for resources. The service enables clients to run Live Video Analytics (LVA) on the streaming inputs.

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().

Methods
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.

  • listPublicOperators(ListPublicOperatorsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listPublicOperators(LocationName parent)

  • listPublicOperators(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listPublicOperatorsPagedCallable()

  • listPublicOperatorsCallable()

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.

  • resolveOperatorInfo(ResolveOperatorInfoRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • resolveOperatorInfo(LocationName parent, List<OperatorQuery> queries)

  • resolveOperatorInfo(String parent, List<OperatorQuery> queries)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • resolveOperatorInfoCallable()

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.

  • listOperators(ListOperatorsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listOperators(LocationName parent)

  • listOperators(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listOperatorsPagedCallable()

  • listOperatorsCallable()

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.

  • getOperator(GetOperatorRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getOperator(OperatorName name)

  • getOperator(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getOperatorCallable()

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.

  • createOperatorAsync(CreateOperatorRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createOperatorAsync(LocationName parent, Operator operator, String operatorId)

  • createOperatorAsync(String parent, Operator operator, String operatorId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createOperatorOperationCallable()

  • createOperatorCallable()

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.

  • updateOperatorAsync(UpdateOperatorRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateOperatorAsync(Operator operator, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateOperatorOperationCallable()

  • updateOperatorCallable()

DeleteOperator

Deletes a single Operator.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteOperatorAsync(DeleteOperatorRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteOperatorAsync(OperatorName name)

  • deleteOperatorAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteOperatorOperationCallable()

  • deleteOperatorCallable()

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.

  • listAnalyses(ListAnalysesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listAnalyses(ClusterName parent)

  • listAnalyses(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listAnalysesPagedCallable()

  • listAnalysesCallable()

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.

  • getAnalysis(GetAnalysisRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getAnalysis(AnalysisName name)

  • getAnalysis(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getAnalysisCallable()

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.

  • createAnalysisAsync(CreateAnalysisRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createAnalysisAsync(ClusterName parent, Analysis analysis, String analysisId)

  • createAnalysisAsync(String parent, Analysis analysis, String analysisId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createAnalysisOperationCallable()

  • createAnalysisCallable()

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.

  • updateAnalysisAsync(UpdateAnalysisRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateAnalysisAsync(Analysis analysis, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateAnalysisOperationCallable()

  • updateAnalysisCallable()

DeleteAnalysis

Deletes a single Analysis.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteAnalysisAsync(DeleteAnalysisRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteAnalysisAsync(AnalysisName name)

  • deleteAnalysisAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteAnalysisOperationCallable()

  • deleteAnalysisCallable()

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.

  • listProcesses(ListProcessesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listProcesses(ClusterName parent)

  • listProcesses(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listProcessesPagedCallable()

  • listProcessesCallable()

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.

  • getProcess(GetProcessRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getProcess(ProcessName name)

  • getProcess(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getProcessCallable()

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.

  • createProcessAsync(CreateProcessRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createProcessAsync(ClusterName parent, Process process, String processId)

  • createProcessAsync(String parent, Process process, String processId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createProcessOperationCallable()

  • createProcessCallable()

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.

  • updateProcessAsync(UpdateProcessRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateProcessAsync(Process process, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateProcessOperationCallable()

  • updateProcessCallable()

DeleteProcess

Deletes a single Process.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteProcessAsync(DeleteProcessRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteProcessAsync(ProcessName name)

  • deleteProcessAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteProcessOperationCallable()

  • deleteProcessCallable()

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.

  • batchRunProcessAsync(ClusterName parent, List<CreateProcessRequest> requests)

  • batchRunProcessAsync(String parent, List<CreateProcessRequest> requests)

  • batchRunProcessAsync(BatchRunProcessRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • batchRunProcessOperationCallable()

  • batchRunProcessCallable()

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.

Inheritance

java.lang.Object > LiveVideoAnalyticsClient

Static Methods

create()

public static final LiveVideoAnalyticsClient create()

Constructs an instance of LiveVideoAnalyticsClient with default settings.

Returns
Type Description
LiveVideoAnalyticsClient
Exceptions
Type Description
IOException

create(LiveVideoAnalyticsSettings settings)

public static final LiveVideoAnalyticsClient create(LiveVideoAnalyticsSettings settings)

Constructs an instance of LiveVideoAnalyticsClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.

Parameter
Name Description
settings LiveVideoAnalyticsSettings
Returns
Type Description
LiveVideoAnalyticsClient
Exceptions
Type Description
IOException

create(LiveVideoAnalyticsStub stub)

public static final LiveVideoAnalyticsClient create(LiveVideoAnalyticsStub stub)

Constructs an instance of LiveVideoAnalyticsClient, using the given stub for making calls. This is for advanced usage - prefer using create(LiveVideoAnalyticsSettings).

Parameter
Name Description
stub LiveVideoAnalyticsStub
Returns
Type Description
LiveVideoAnalyticsClient

Constructors

LiveVideoAnalyticsClient(LiveVideoAnalyticsSettings settings)

protected LiveVideoAnalyticsClient(LiveVideoAnalyticsSettings settings)

Constructs an instance of LiveVideoAnalyticsClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameter
Name Description
settings LiveVideoAnalyticsSettings

LiveVideoAnalyticsClient(LiveVideoAnalyticsStub stub)

protected LiveVideoAnalyticsClient(LiveVideoAnalyticsStub stub)
Parameter
Name Description
stub LiveVideoAnalyticsStub

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

batchRunProcessAsync(BatchRunProcessRequest request)

public final OperationFuture<BatchRunProcessResponse,OperationMetadata> batchRunProcessAsync(BatchRunProcessRequest request)

Run all of the processes to "completion". Max time for each process is the LRO time limit.

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();
 }
 
Parameter
Name Description
request BatchRunProcessRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<BatchRunProcessResponse,OperationMetadata>

batchRunProcessAsync(ClusterName parent, List<CreateProcessRequest> requests)

public final OperationFuture<BatchRunProcessResponse,OperationMetadata> batchRunProcessAsync(ClusterName parent, List<CreateProcessRequest> requests)

Run all of the processes to "completion". Max time for each process is the LRO time limit.

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();
 }
 
Parameters
Name Description
parent ClusterName

Required. The parent resource shared by all processes being created.

requests List<CreateProcessRequest>

Required. The create process requests.

Returns
Type Description
OperationFuture<BatchRunProcessResponse,OperationMetadata>

batchRunProcessAsync(String parent, List<CreateProcessRequest> requests)

public final OperationFuture<BatchRunProcessResponse,OperationMetadata> batchRunProcessAsync(String parent, List<CreateProcessRequest> requests)

Run all of the processes to "completion". Max time for each process is the LRO time limit.

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();
 }
 
Parameters
Name Description
parent String

Required. The parent resource shared by all processes being created.

requests List<CreateProcessRequest>

Required. The create process requests.

Returns
Type Description
OperationFuture<BatchRunProcessResponse,OperationMetadata>

batchRunProcessCallable()

public final UnaryCallable<BatchRunProcessRequest,Operation> batchRunProcessCallable()

Run all of the processes to "completion". Max time for each process is the LRO time limit.

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();
 }
 
Returns
Type Description
UnaryCallable<BatchRunProcessRequest,Operation>

batchRunProcessOperationCallable()

public final OperationCallable<BatchRunProcessRequest,BatchRunProcessResponse,OperationMetadata> batchRunProcessOperationCallable()

Run all of the processes to "completion". Max time for each process is the LRO time limit.

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();
 }
 
Returns
Type Description
OperationCallable<BatchRunProcessRequest,BatchRunProcessResponse,OperationMetadata>

close()

public final void close()

createAnalysisAsync(ClusterName parent, Analysis analysis, String analysisId)

public final OperationFuture<Analysis,OperationMetadata> createAnalysisAsync(ClusterName parent, Analysis analysis, String analysisId)

Creates a new Analysis in a given project and location.

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();
 }
 
Parameters
Name Description
parent ClusterName

Required. Value for parent.

analysis Analysis

Required. The resource being created.

analysisId String

Required. Id of the requesting object.

Returns
Type Description
OperationFuture<Analysis,OperationMetadata>

createAnalysisAsync(CreateAnalysisRequest request)

public final OperationFuture<Analysis,OperationMetadata> createAnalysisAsync(CreateAnalysisRequest request)

Creates a new Analysis in a given project and location.

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();
 }
 
Parameter
Name Description
request CreateAnalysisRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Analysis,OperationMetadata>

createAnalysisAsync(String parent, Analysis analysis, String analysisId)

public final OperationFuture<Analysis,OperationMetadata> createAnalysisAsync(String parent, Analysis analysis, String analysisId)

Creates a new Analysis in a given project and location.

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();
 }
 
Parameters
Name Description
parent String

Required. Value for parent.

analysis Analysis

Required. The resource being created.

analysisId String

Required. Id of the requesting object.

Returns
Type Description
OperationFuture<Analysis,OperationMetadata>

createAnalysisCallable()

public final UnaryCallable<CreateAnalysisRequest,Operation> createAnalysisCallable()

Creates a new Analysis in a given project and location.

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();
 }
 
Returns
Type Description
UnaryCallable<CreateAnalysisRequest,Operation>

createAnalysisOperationCallable()

public final OperationCallable<CreateAnalysisRequest,Analysis,OperationMetadata> createAnalysisOperationCallable()

Creates a new Analysis in a given project and location.

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();
 }
 
Returns
Type Description
OperationCallable<CreateAnalysisRequest,Analysis,OperationMetadata>

createOperatorAsync(CreateOperatorRequest request)

public final OperationFuture<Operator,OperationMetadata> createOperatorAsync(CreateOperatorRequest request)

Creates a new Operator in a given project and location.

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();
 }
 
Parameter
Name Description
request CreateOperatorRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Operator,OperationMetadata>

createOperatorAsync(LocationName parent, Operator operator, String operatorId)

public final OperationFuture<Operator,OperationMetadata> createOperatorAsync(LocationName parent, Operator operator, String operatorId)

Creates a new Operator in a given project and location.

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();
 }
 
Parameters
Name Description
parent LocationName

Required. Value for parent.

operator Operator

Required. The resource being created.

operatorId String

Required. Id of the requesting object.

Returns
Type Description
OperationFuture<Operator,OperationMetadata>

createOperatorAsync(String parent, Operator operator, String operatorId)

public final OperationFuture<Operator,OperationMetadata> createOperatorAsync(String parent, Operator operator, String operatorId)

Creates a new Operator in a given project and location.

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();
 }
 
Parameters
Name Description
parent String

Required. Value for parent.

operator Operator

Required. The resource being created.

operatorId String

Required. Id of the requesting object.

Returns
Type Description
OperationFuture<Operator,OperationMetadata>

createOperatorCallable()

public final UnaryCallable<CreateOperatorRequest,Operation> createOperatorCallable()

Creates a new Operator in a given project and location.

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();
 }
 
Returns
Type Description
UnaryCallable<CreateOperatorRequest,Operation>

createOperatorOperationCallable()

public final OperationCallable<CreateOperatorRequest,Operator,OperationMetadata> createOperatorOperationCallable()

Creates a new Operator in a given project and location.

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();
 }
 
Returns
Type Description
OperationCallable<CreateOperatorRequest,Operator,OperationMetadata>

createProcessAsync(ClusterName parent, Process process, String processId)

public final OperationFuture<Process,OperationMetadata> createProcessAsync(ClusterName parent, Process process, String processId)

Creates a new Process in a given project and location.

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();
 }
 
Parameters
Name Description
parent ClusterName

Required. Value for parent.

process Process

Required. The resource being created.

processId String

Required. Id of the requesting object.

Returns
Type Description
OperationFuture<Process,OperationMetadata>

createProcessAsync(CreateProcessRequest request)

public final OperationFuture<Process,OperationMetadata> createProcessAsync(CreateProcessRequest request)

Creates a new Process in a given project and location.

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();
 }
 
Parameter
Name Description
request CreateProcessRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Process,OperationMetadata>

createProcessAsync(String parent, Process process, String processId)

public final OperationFuture<Process,OperationMetadata> createProcessAsync(String parent, Process process, String processId)

Creates a new Process in a given project and location.

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();
 }
 
Parameters
Name Description
parent String

Required. Value for parent.

process Process

Required. The resource being created.

processId String

Required. Id of the requesting object.

Returns
Type Description
OperationFuture<Process,OperationMetadata>

createProcessCallable()

public final UnaryCallable<CreateProcessRequest,Operation> createProcessCallable()

Creates a new Process in a given project and location.

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();
 }
 
Returns
Type Description
UnaryCallable<CreateProcessRequest,Operation>

createProcessOperationCallable()

public final OperationCallable<CreateProcessRequest,Process,OperationMetadata> createProcessOperationCallable()

Creates a new Process in a given project and location.

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();
 }
 
Returns
Type Description
OperationCallable<CreateProcessRequest,Process,OperationMetadata>

deleteAnalysisAsync(AnalysisName name)

public final OperationFuture<Empty,OperationMetadata> deleteAnalysisAsync(AnalysisName name)

Deletes a single Analysis.

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();
 }
 
Parameter
Name Description
name AnalysisName

Required. Name of the resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteAnalysisAsync(DeleteAnalysisRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteAnalysisAsync(DeleteAnalysisRequest request)

Deletes a single Analysis.

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();
 }
 
Parameter
Name Description
request DeleteAnalysisRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteAnalysisAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteAnalysisAsync(String name)

Deletes a single Analysis.

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();
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteAnalysisCallable()

public final UnaryCallable<DeleteAnalysisRequest,Operation> deleteAnalysisCallable()

Deletes a single Analysis.

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();
 }
 
Returns
Type Description
UnaryCallable<DeleteAnalysisRequest,Operation>

deleteAnalysisOperationCallable()

public final OperationCallable<DeleteAnalysisRequest,Empty,OperationMetadata> deleteAnalysisOperationCallable()

Deletes a single Analysis.

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();
 }
 
Returns
Type Description
OperationCallable<DeleteAnalysisRequest,Empty,OperationMetadata>

deleteOperatorAsync(DeleteOperatorRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteOperatorAsync(DeleteOperatorRequest request)

Deletes a single Operator.

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();
 }
 
Parameter
Name Description
request DeleteOperatorRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteOperatorAsync(OperatorName name)

public final OperationFuture<Empty,OperationMetadata> deleteOperatorAsync(OperatorName name)

Deletes a single Operator.

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();
 }
 
Parameter
Name Description
name OperatorName

Required. Name of the resource

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteOperatorAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteOperatorAsync(String name)

Deletes a single Operator.

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();
 }
 
Parameter
Name Description
name String

Required. Name of the resource

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteOperatorCallable()

public final UnaryCallable<DeleteOperatorRequest,Operation> deleteOperatorCallable()

Deletes a single Operator.

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();
 }
 
Returns
Type Description
UnaryCallable<DeleteOperatorRequest,Operation>

deleteOperatorOperationCallable()

public final OperationCallable<DeleteOperatorRequest,Empty,OperationMetadata> deleteOperatorOperationCallable()

Deletes a single Operator.

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();
 }
 
Returns
Type Description
OperationCallable<DeleteOperatorRequest,Empty,OperationMetadata>

deleteProcessAsync(DeleteProcessRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteProcessAsync(DeleteProcessRequest request)

Deletes a single Process.

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();
 }
 
Parameter
Name Description
request DeleteProcessRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteProcessAsync(ProcessName name)

public final OperationFuture<Empty,OperationMetadata> deleteProcessAsync(ProcessName name)

Deletes a single Process.

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();
 }
 
Parameter
Name Description
name ProcessName

Required. Name of the resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteProcessAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteProcessAsync(String name)

Deletes a single Process.

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();
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteProcessCallable()

public final UnaryCallable<DeleteProcessRequest,Operation> deleteProcessCallable()

Deletes a single Process.

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();
 }
 
Returns
Type Description
UnaryCallable<DeleteProcessRequest,Operation>

deleteProcessOperationCallable()

public final OperationCallable<DeleteProcessRequest,Empty,OperationMetadata> deleteProcessOperationCallable()

Deletes a single Process.

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();
 }
 
Returns
Type Description
OperationCallable<DeleteProcessRequest,Empty,OperationMetadata>

getAnalysis(AnalysisName name)

public final Analysis getAnalysis(AnalysisName name)

Gets details of a single Analysis.

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);
 }
 
Parameter
Name Description
name AnalysisName

Required. Name of the resource.

Returns
Type Description
Analysis

getAnalysis(GetAnalysisRequest request)

public final Analysis getAnalysis(GetAnalysisRequest request)

Gets details of a single Analysis.

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);
 }
 
Parameter
Name Description
request GetAnalysisRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Analysis

getAnalysis(String name)

public final Analysis getAnalysis(String name)

Gets details of a single Analysis.

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);
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
Analysis

getAnalysisCallable()

public final UnaryCallable<GetAnalysisRequest,Analysis> getAnalysisCallable()

Gets details of a single Analysis.

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();
 }
 
Returns
Type Description
UnaryCallable<GetAnalysisRequest,Analysis>

getHttpJsonOperationsClient()

public final OperationsClient getHttpJsonOperationsClient()

Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.

Returns
Type Description
OperationsClient

getOperationsClient()

public final OperationsClient getOperationsClient()

Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.

Returns
Type Description
OperationsClient

getOperator(GetOperatorRequest request)

public final Operator getOperator(GetOperatorRequest request)

Gets details of a single Operator.

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);
 }
 
Parameter
Name Description
request GetOperatorRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Operator

getOperator(OperatorName name)

public final Operator getOperator(OperatorName name)

Gets details of a single Operator.

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);
 }
 
Parameter
Name Description
name OperatorName

Required. Name of the resource.

Returns
Type Description
Operator

getOperator(String name)

public final Operator getOperator(String name)

Gets details of a single Operator.

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);
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
Operator

getOperatorCallable()

public final UnaryCallable<GetOperatorRequest,Operator> getOperatorCallable()

Gets details of a single Operator.

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();
 }
 
Returns
Type Description
UnaryCallable<GetOperatorRequest,Operator>

getProcess(GetProcessRequest request)

public final Process getProcess(GetProcessRequest request)

Gets details of a single Process.

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);
 }
 
Parameter
Name Description
request GetProcessRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Process

getProcess(ProcessName name)

public final Process getProcess(ProcessName name)

Gets details of a single Process.

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);
 }
 
Parameter
Name Description
name ProcessName

Required. Name of the resource.

Returns
Type Description
Process

getProcess(String name)

public final Process getProcess(String name)

Gets details of a single Process.

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);
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
Process

getProcessCallable()

public final UnaryCallable<GetProcessRequest,Process> getProcessCallable()

Gets details of a single Process.

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();
 }
 
Returns
Type Description
UnaryCallable<GetProcessRequest,Process>

getSettings()

public final LiveVideoAnalyticsSettings getSettings()
Returns
Type Description
LiveVideoAnalyticsSettings

getStub()

public LiveVideoAnalyticsStub getStub()
Returns
Type Description
LiveVideoAnalyticsStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listAnalyses(ClusterName parent)

public final LiveVideoAnalyticsClient.ListAnalysesPagedResponse listAnalyses(ClusterName parent)

Lists Analyses in a given project and location.

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);
   }
 }
 
Parameter
Name Description
parent ClusterName

Required. Parent value for ListAnalysesRequest

Returns
Type Description
LiveVideoAnalyticsClient.ListAnalysesPagedResponse

listAnalyses(ListAnalysesRequest request)

public final LiveVideoAnalyticsClient.ListAnalysesPagedResponse listAnalyses(ListAnalysesRequest request)

Lists Analyses in a given project and location.

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);
   }
 }
 
Parameter
Name Description
request ListAnalysesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
LiveVideoAnalyticsClient.ListAnalysesPagedResponse

listAnalyses(String parent)

public final LiveVideoAnalyticsClient.ListAnalysesPagedResponse listAnalyses(String parent)

Lists Analyses in a given project and location.

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);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListAnalysesRequest

Returns
Type Description
LiveVideoAnalyticsClient.ListAnalysesPagedResponse

listAnalysesCallable()

public final UnaryCallable<ListAnalysesRequest,ListAnalysesResponse> listAnalysesCallable()

Lists Analyses in a given project and location.

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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListAnalysesRequest,ListAnalysesResponse>

listAnalysesPagedCallable()

public final UnaryCallable<ListAnalysesRequest,LiveVideoAnalyticsClient.ListAnalysesPagedResponse> listAnalysesPagedCallable()

Lists Analyses in a given project and location.

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);
   }
 }
 
Returns
Type Description
UnaryCallable<ListAnalysesRequest,ListAnalysesPagedResponse>

listOperators(ListOperatorsRequest request)

public final LiveVideoAnalyticsClient.ListOperatorsPagedResponse listOperators(ListOperatorsRequest request)

Lists Operators in a given project and location.

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);
   }
 }
 
Parameter
Name Description
request ListOperatorsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
LiveVideoAnalyticsClient.ListOperatorsPagedResponse

listOperators(LocationName parent)

public final LiveVideoAnalyticsClient.ListOperatorsPagedResponse listOperators(LocationName parent)

Lists Operators in a given project and location.

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);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. Parent value for ListOperatorsRequest.

Returns
Type Description
LiveVideoAnalyticsClient.ListOperatorsPagedResponse

listOperators(String parent)

public final LiveVideoAnalyticsClient.ListOperatorsPagedResponse listOperators(String parent)

Lists Operators in a given project and location.

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);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListOperatorsRequest.

Returns
Type Description
LiveVideoAnalyticsClient.ListOperatorsPagedResponse

listOperatorsCallable()

public final UnaryCallable<ListOperatorsRequest,ListOperatorsResponse> listOperatorsCallable()

Lists Operators in a given project and location.

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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListOperatorsRequest,ListOperatorsResponse>

listOperatorsPagedCallable()

public final UnaryCallable<ListOperatorsRequest,LiveVideoAnalyticsClient.ListOperatorsPagedResponse> listOperatorsPagedCallable()

Lists Operators in a given project and location.

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);
   }
 }
 
Returns
Type Description
UnaryCallable<ListOperatorsRequest,ListOperatorsPagedResponse>

listProcesses(ClusterName parent)

public final LiveVideoAnalyticsClient.ListProcessesPagedResponse listProcesses(ClusterName parent)

Lists Processes in a given project and location.

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);
   }
 }
 
Parameter
Name Description
parent ClusterName

Required. Parent value for ListProcessesRequest.

Returns
Type Description
LiveVideoAnalyticsClient.ListProcessesPagedResponse

listProcesses(ListProcessesRequest request)

public final LiveVideoAnalyticsClient.ListProcessesPagedResponse listProcesses(ListProcessesRequest request)

Lists Processes in a given project and location.

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);
   }
 }
 
Parameter
Name Description
request ListProcessesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
LiveVideoAnalyticsClient.ListProcessesPagedResponse

listProcesses(String parent)

public final LiveVideoAnalyticsClient.ListProcessesPagedResponse listProcesses(String parent)

Lists Processes in a given project and location.

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);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListProcessesRequest.

Returns
Type Description
LiveVideoAnalyticsClient.ListProcessesPagedResponse

listProcessesCallable()

public final UnaryCallable<ListProcessesRequest,ListProcessesResponse> listProcessesCallable()

Lists Processes in a given project and location.

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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListProcessesRequest,ListProcessesResponse>

listProcessesPagedCallable()

public final UnaryCallable<ListProcessesRequest,LiveVideoAnalyticsClient.ListProcessesPagedResponse> listProcessesPagedCallable()

Lists Processes in a given project and location.

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);
   }
 }
 
Returns
Type Description
UnaryCallable<ListProcessesRequest,ListProcessesPagedResponse>

listPublicOperators(ListPublicOperatorsRequest request)

public final LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse listPublicOperators(ListPublicOperatorsRequest request)

ListPublicOperators returns all the operators in public registry.

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);
   }
 }
 
Parameter
Name Description
request ListPublicOperatorsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse

listPublicOperators(LocationName parent)

public final LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse listPublicOperators(LocationName parent)

ListPublicOperators returns all the operators in public registry.

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);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. Parent value for ListPublicOperatorsRequest.

Returns
Type Description
LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse

listPublicOperators(String parent)

public final LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse listPublicOperators(String parent)

ListPublicOperators returns all the operators in public registry.

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);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListPublicOperatorsRequest.

Returns
Type Description
LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse

listPublicOperatorsCallable()

public final UnaryCallable<ListPublicOperatorsRequest,ListPublicOperatorsResponse> listPublicOperatorsCallable()

ListPublicOperators returns all the operators in public registry.

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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListPublicOperatorsRequest,ListPublicOperatorsResponse>

listPublicOperatorsPagedCallable()

public final UnaryCallable<ListPublicOperatorsRequest,LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse> listPublicOperatorsPagedCallable()

ListPublicOperators returns all the operators in public registry.

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);
   }
 }
 
Returns
Type Description
UnaryCallable<ListPublicOperatorsRequest,ListPublicOperatorsPagedResponse>

resolveOperatorInfo(LocationName parent, List<OperatorQuery> queries)

public final ResolveOperatorInfoResponse resolveOperatorInfo(LocationName parent, List<OperatorQuery> queries)

ResolveOperatorInfo returns the operator information based on the 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()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   List<OperatorQuery> queries = new ArrayList<>();
   ResolveOperatorInfoResponse response =
       liveVideoAnalyticsClient.resolveOperatorInfo(parent, queries);
 }
 
Parameters
Name Description
parent LocationName

Required. Parent value for ResolveOperatorInfoRequest.

queries List<OperatorQuery>

Required. The operator queries.

Returns
Type Description
ResolveOperatorInfoResponse

resolveOperatorInfo(ResolveOperatorInfoRequest request)

public final ResolveOperatorInfoResponse resolveOperatorInfo(ResolveOperatorInfoRequest request)

ResolveOperatorInfo returns the operator information based on the 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);
 }
 
Parameter
Name Description
request ResolveOperatorInfoRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
ResolveOperatorInfoResponse

resolveOperatorInfo(String parent, List<OperatorQuery> queries)

public final ResolveOperatorInfoResponse resolveOperatorInfo(String parent, List<OperatorQuery> queries)

ResolveOperatorInfo returns the operator information based on the 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()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   List<OperatorQuery> queries = new ArrayList<>();
   ResolveOperatorInfoResponse response =
       liveVideoAnalyticsClient.resolveOperatorInfo(parent, queries);
 }
 
Parameters
Name Description
parent String

Required. Parent value for ResolveOperatorInfoRequest.

queries List<OperatorQuery>

Required. The operator queries.

Returns
Type Description
ResolveOperatorInfoResponse

resolveOperatorInfoCallable()

public final UnaryCallable<ResolveOperatorInfoRequest,ResolveOperatorInfoResponse> resolveOperatorInfoCallable()

ResolveOperatorInfo returns the operator information based on the 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();
   ApiFuture<ResolveOperatorInfoResponse> future =
       liveVideoAnalyticsClient.resolveOperatorInfoCallable().futureCall(request);
   // Do something.
   ResolveOperatorInfoResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<ResolveOperatorInfoRequest,ResolveOperatorInfoResponse>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAnalysisAsync(Analysis analysis, FieldMask updateMask)

public final OperationFuture<Analysis,OperationMetadata> updateAnalysisAsync(Analysis analysis, FieldMask updateMask)

Updates the parameters of a single Analysis.

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();
 }
 
Parameters
Name Description
analysis Analysis

Required. The resource being updated.

updateMask FieldMask

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.

Returns
Type Description
OperationFuture<Analysis,OperationMetadata>

updateAnalysisAsync(UpdateAnalysisRequest request)

public final OperationFuture<Analysis,OperationMetadata> updateAnalysisAsync(UpdateAnalysisRequest request)

Updates the parameters of a single Analysis.

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();
 }
 
Parameter
Name Description
request UpdateAnalysisRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Analysis,OperationMetadata>

updateAnalysisCallable()

public final UnaryCallable<UpdateAnalysisRequest,Operation> updateAnalysisCallable()

Updates the parameters of a single Analysis.

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();
 }
 
Returns
Type Description
UnaryCallable<UpdateAnalysisRequest,Operation>

updateAnalysisOperationCallable()

public final OperationCallable<UpdateAnalysisRequest,Analysis,OperationMetadata> updateAnalysisOperationCallable()

Updates the parameters of a single Analysis.

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();
 }
 
Returns
Type Description
OperationCallable<UpdateAnalysisRequest,Analysis,OperationMetadata>

updateOperatorAsync(Operator operator, FieldMask updateMask)

public final OperationFuture<Operator,OperationMetadata> updateOperatorAsync(Operator operator, FieldMask updateMask)

Updates the parameters of a single Operator.

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();
 }
 
Parameters
Name Description
operator Operator

Required. The resource being updated

updateMask FieldMask

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.

Returns
Type Description
OperationFuture<Operator,OperationMetadata>

updateOperatorAsync(UpdateOperatorRequest request)

public final OperationFuture<Operator,OperationMetadata> updateOperatorAsync(UpdateOperatorRequest request)

Updates the parameters of a single Operator.

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();
 }
 
Parameter
Name Description
request UpdateOperatorRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Operator,OperationMetadata>

updateOperatorCallable()

public final UnaryCallable<UpdateOperatorRequest,Operation> updateOperatorCallable()

Updates the parameters of a single Operator.

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();
 }
 
Returns
Type Description
UnaryCallable<UpdateOperatorRequest,Operation>

updateOperatorOperationCallable()

public final OperationCallable<UpdateOperatorRequest,Operator,OperationMetadata> updateOperatorOperationCallable()

Updates the parameters of a single Operator.

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();
 }
 
Returns
Type Description
OperationCallable<UpdateOperatorRequest,Operator,OperationMetadata>

updateProcessAsync(Process process, FieldMask updateMask)

public final OperationFuture<Process,OperationMetadata> updateProcessAsync(Process process, FieldMask updateMask)

Updates the parameters of a single Process.

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();
 }
 
Parameters
Name Description
process Process

Required. The resource being updated.

updateMask FieldMask

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.

Returns
Type Description
OperationFuture<Process,OperationMetadata>

updateProcessAsync(UpdateProcessRequest request)

public final OperationFuture<Process,OperationMetadata> updateProcessAsync(UpdateProcessRequest request)

Updates the parameters of a single Process.

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();
 }
 
Parameter
Name Description
request UpdateProcessRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Process,OperationMetadata>

updateProcessCallable()

public final UnaryCallable<UpdateProcessRequest,Operation> updateProcessCallable()

Updates the parameters of a single Process.

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();
 }
 
Returns
Type Description
UnaryCallable<UpdateProcessRequest,Operation>

updateProcessOperationCallable()

public final OperationCallable<UpdateProcessRequest,Process,OperationMetadata> updateProcessOperationCallable()

Updates the parameters of a single Process.

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();
 }
 
Returns
Type Description
OperationCallable<UpdateProcessRequest,Process,OperationMetadata>