Class LiveVideoAnalyticsClient
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LiveVideoAnalyticsClient liveVideoAnalyticsClient = LiveVideoAnalyticsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
List<OperatorQuery> queries = new ArrayList<>();
ResolveOperatorInfoResponse response =
liveVideoAnalyticsClient.resolveOperatorInfo(parent, queries);
}
Note: close() needs to be called on the LiveVideoAnalyticsClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
| Method | Description | Method Variants |
|---|---|---|
ListPublicOperators |
ListPublicOperators returns all the operators in public registry. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ResolveOperatorInfo |
ResolveOperatorInfo returns the operator information based on the request. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListOperators |
Lists Operators in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetOperator |
Gets details of a single Operator. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateOperator |
Creates a new Operator in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateOperator |
Updates the parameters of a single Operator. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteOperator |
Deletes a single Operator. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListAnalyses |
Lists Analyses in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetAnalysis |
Gets details of a single Analysis. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateAnalysis |
Creates a new Analysis in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateAnalysis |
Updates the parameters of a single Analysis. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteAnalysis |
Deletes a single Analysis. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListProcesses |
Lists Processes in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetProcess |
Gets details of a single Process. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateProcess |
Creates a new Process in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateProcess |
Updates the parameters of a single Process. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteProcess |
Deletes a single Process. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchRunProcess |
Run all of the processes to "completion". Max time for each process is the LRO time limit. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListLocations |
Lists information about the supported locations for this service. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetLocation |
Gets information about a location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of LiveVideoAnalyticsSettings to create(). For example:
To customize credentials:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
LiveVideoAnalyticsSettings liveVideoAnalyticsSettings =
LiveVideoAnalyticsSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
LiveVideoAnalyticsClient liveVideoAnalyticsClient =
LiveVideoAnalyticsClient.create(liveVideoAnalyticsSettings);
To customize the endpoint:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
LiveVideoAnalyticsSettings liveVideoAnalyticsSettings =
LiveVideoAnalyticsSettings.newBuilder().setEndpoint(myEndpoint).build();
LiveVideoAnalyticsClient liveVideoAnalyticsClient =
LiveVideoAnalyticsClient.create(liveVideoAnalyticsSettings);
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
LiveVideoAnalyticsSettings liveVideoAnalyticsSettings =
LiveVideoAnalyticsSettings.newHttpJsonBuilder().build();
LiveVideoAnalyticsClient liveVideoAnalyticsClient =
LiveVideoAnalyticsClient.create(liveVideoAnalyticsSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs an instance of LiveVideoAnalyticsClient, using the given settings.protected -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) Run all of the processes to "completion".batchRunProcessAsync(ClusterName parent, List<CreateProcessRequest> requests) Run all of the processes to "completion".batchRunProcessAsync(String parent, List<CreateProcessRequest> requests) Run all of the processes to "completion".Run all of the processes to "completion".Run all of the processes to "completion".final voidclose()static final LiveVideoAnalyticsClientcreate()Constructs an instance of LiveVideoAnalyticsClient with default settings.static final LiveVideoAnalyticsClientcreate(LiveVideoAnalyticsSettings settings) Constructs an instance of LiveVideoAnalyticsClient, using the given settings.static final LiveVideoAnalyticsClientcreate(LiveVideoAnalyticsStub stub) Constructs an instance of LiveVideoAnalyticsClient, using the given stub for making calls.createAnalysisAsync(ClusterName parent, Analysis analysis, String analysisId) Creates a new Analysis in a given project and location.createAnalysisAsync(CreateAnalysisRequest request) Creates a new Analysis in a given project and location.createAnalysisAsync(String parent, Analysis analysis, String analysisId) Creates a new Analysis in a given project and location.Creates a new Analysis in a given project and location.Creates a new Analysis in a given project and location.createOperatorAsync(CreateOperatorRequest request) Creates a new Operator in a given project and location.createOperatorAsync(LocationName parent, Operator operator, String operatorId) Creates a new Operator in a given project and location.createOperatorAsync(String parent, Operator operator, String operatorId) Creates a new Operator in a given project and location.Creates a new Operator in a given project and location.Creates a new Operator in a given project and location.createProcessAsync(ClusterName parent, Process process, String processId) Creates a new Process in a given project and location.createProcessAsync(CreateProcessRequest request) Creates a new Process in a given project and location.createProcessAsync(String parent, Process process, String processId) Creates a new Process in a given project and location.Creates a new Process in a given project and location.Creates a new Process in a given project and location.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single Analysis.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAnalysisAsync(DeleteAnalysisRequest request) Deletes a single Analysis.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAnalysisAsync(String name) Deletes a single Analysis.Deletes a single Analysis.final OperationCallable<DeleteAnalysisRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single Analysis.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteOperatorAsync(DeleteOperatorRequest request) Deletes a single Operator.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single Operator.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteOperatorAsync(String name) Deletes a single Operator.Deletes a single Operator.final OperationCallable<DeleteOperatorRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single Operator.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteProcessAsync(DeleteProcessRequest request) Deletes a single Process.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single Process.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteProcessAsync(String name) Deletes a single Process.Deletes a single Process.final OperationCallable<DeleteProcessRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single Process.final AnalysisgetAnalysis(AnalysisName name) Gets details of a single Analysis.final AnalysisgetAnalysis(GetAnalysisRequest request) Gets details of a single Analysis.final AnalysisgetAnalysis(String name) Gets details of a single Analysis.Gets details of a single Analysis.final OperationsClientReturns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.final LocationgetLocation(GetLocationRequest request) Gets information about a location.Gets information about a location.final OperationsClientReturns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.final OperatorgetOperator(GetOperatorRequest request) Gets details of a single Operator.final OperatorgetOperator(OperatorName name) Gets details of a single Operator.final OperatorgetOperator(String name) Gets details of a single Operator.Gets details of a single Operator.final ProcessgetProcess(GetProcessRequest request) Gets details of a single Process.final ProcessgetProcess(ProcessName name) Gets details of a single Process.final ProcessgetProcess(String name) Gets details of a single Process.Gets details of a single Process.getStub()booleanbooleanlistAnalyses(ClusterName parent) Lists Analyses in a given project and location.listAnalyses(ListAnalysesRequest request) Lists Analyses in a given project and location.listAnalyses(String parent) Lists Analyses in a given project and location.Lists Analyses in a given project and location.Lists Analyses in a given project and location.listLocations(ListLocationsRequest request) Lists information about the supported locations for this service.Lists information about the supported locations for this service.Lists information about the supported locations for this service.listOperators(ListOperatorsRequest request) Lists Operators in a given project and location.listOperators(LocationName parent) Lists Operators in a given project and location.listOperators(String parent) Lists Operators in a given project and location.Lists Operators in a given project and location.Lists Operators in a given project and location.listProcesses(ClusterName parent) Lists Processes in a given project and location.listProcesses(ListProcessesRequest request) Lists Processes in a given project and location.listProcesses(String parent) Lists Processes in a given project and location.Lists Processes in a given project and location.Lists Processes in a given project and location.ListPublicOperators returns all the operators in public registry.listPublicOperators(LocationName parent) ListPublicOperators returns all the operators in public registry.listPublicOperators(String parent) ListPublicOperators returns all the operators in public registry.ListPublicOperators returns all the operators in public registry.final UnaryCallable<ListPublicOperatorsRequest,LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse> ListPublicOperators returns all the operators in public registry.resolveOperatorInfo(LocationName parent, List<OperatorQuery> queries) ResolveOperatorInfo returns the operator information based on the request.ResolveOperatorInfo returns the operator information based on the request.resolveOperatorInfo(String parent, List<OperatorQuery> queries) ResolveOperatorInfo returns the operator information based on the request.ResolveOperatorInfo returns the operator information based on the request.voidshutdown()voidupdateAnalysisAsync(Analysis analysis, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single Analysis.updateAnalysisAsync(UpdateAnalysisRequest request) Updates the parameters of a single Analysis.Updates the parameters of a single Analysis.Updates the parameters of a single Analysis.updateOperatorAsync(Operator operator, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single Operator.updateOperatorAsync(UpdateOperatorRequest request) Updates the parameters of a single Operator.Updates the parameters of a single Operator.Updates the parameters of a single Operator.updateProcessAsync(Process process, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single Process.updateProcessAsync(UpdateProcessRequest request) Updates the parameters of a single Process.Updates the parameters of a single Process.Updates the parameters of a single Process.
-
Constructor Details
-
LiveVideoAnalyticsClient
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.- Throws:
IOException
-
LiveVideoAnalyticsClient
-
-
Method Details
-
create
Constructs an instance of LiveVideoAnalyticsClient with default settings.- Throws:
IOException
-
create
public static final LiveVideoAnalyticsClient create(LiveVideoAnalyticsSettings settings) throws IOException 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.- Throws:
IOException
-
create
Constructs an instance of LiveVideoAnalyticsClient, using the given stub for making calls. This is for advanced usage - prefer using create(LiveVideoAnalyticsSettings). -
getSettings
-
getStub
-
getOperationsClient
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call. -
getHttpJsonOperationsClient
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call. -
listPublicOperators
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); } }- Parameters:
parent- Required. Parent value for ListPublicOperatorsRequest.- Throws:
ApiException- if the remote call fails
-
listPublicOperators
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); } }- Parameters:
parent- Required. Parent value for ListPublicOperatorsRequest.- Throws:
ApiException- if the remote call fails
-
listPublicOperators
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); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
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); } } -
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; } } } -
resolveOperatorInfo
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:
parent- Required. Parent value for ResolveOperatorInfoRequest.queries- Required. The operator queries.- Throws:
ApiException- if the remote call fails
-
resolveOperatorInfo
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:
parent- Required. Parent value for ResolveOperatorInfoRequest.queries- Required. The operator queries.- Throws:
ApiException- if the remote call fails
-
resolveOperatorInfo
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); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
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(); } -
listOperators
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); } }- Parameters:
parent- Required. Parent value for ListOperatorsRequest.- Throws:
ApiException- if the remote call fails
-
listOperators
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); } }- Parameters:
parent- Required. Parent value for ListOperatorsRequest.- Throws:
ApiException- if the remote call fails
-
listOperators
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); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
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); } } -
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; } } } -
getOperator
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); }- Parameters:
name- Required. Name of the resource.- Throws:
ApiException- if the remote call fails
-
getOperator
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); }- Parameters:
name- Required. Name of the resource.- Throws:
ApiException- if the remote call fails
-
getOperator
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); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
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(); } -
createOperatorAsync
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:
parent- Required. Value for parent.operator- Required. The resource being created.operatorId- Required. Id of the requesting object.- Throws:
ApiException- if the remote call fails
-
createOperatorAsync
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:
parent- Required. Value for parent.operator- Required. The resource being created.operatorId- Required. Id of the requesting object.- Throws:
ApiException- if the remote call fails
-
createOperatorAsync
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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createOperatorOperationCallable
public final OperationCallable<CreateOperatorRequest,Operator, createOperatorOperationCallable()OperationMetadata> 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(); } -
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(); } -
updateOperatorAsync
public final OperationFuture<Operator,OperationMetadata> updateOperatorAsync(Operator operator, com.google.protobuf.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:
operator- Required. The resource being updatedupdateMask- Required. Field mask is used to specify the fields to be overwritten in the Operator resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.- Throws:
ApiException- if the remote call fails
-
updateOperatorAsync
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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateOperatorOperationCallable
public final OperationCallable<UpdateOperatorRequest,Operator, updateOperatorOperationCallable()OperationMetadata> 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(); } -
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(); } -
deleteOperatorAsync
public final OperationFuture<com.google.protobuf.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(); }- Parameters:
name- Required. Name of the resource- Throws:
ApiException- if the remote call fails
-
deleteOperatorAsync
public final OperationFuture<com.google.protobuf.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(); }- Parameters:
name- Required. Name of the resource- Throws:
ApiException- if the remote call fails
-
deleteOperatorAsync
public final OperationFuture<com.google.protobuf.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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteOperatorOperationCallable
public final OperationCallable<DeleteOperatorRequest,com.google.protobuf.Empty, deleteOperatorOperationCallable()OperationMetadata> 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(); } -
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(); } -
listAnalyses
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); } }- Parameters:
parent- Required. Parent value for ListAnalysesRequest- Throws:
ApiException- if the remote call fails
-
listAnalyses
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); } }- Parameters:
parent- Required. Parent value for ListAnalysesRequest- Throws:
ApiException- if the remote call fails
-
listAnalyses
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); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
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); } } -
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; } } } -
getAnalysis
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); }- Parameters:
name- Required. Name of the resource.- Throws:
ApiException- if the remote call fails
-
getAnalysis
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); }- Parameters:
name- Required. Name of the resource.- Throws:
ApiException- if the remote call fails
-
getAnalysis
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); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
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(); } -
createAnalysisAsync
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:
parent- Required. Value for parent.analysis- Required. The resource being created.analysisId- Required. Id of the requesting object.- Throws:
ApiException- if the remote call fails
-
createAnalysisAsync
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:
parent- Required. Value for parent.analysis- Required. The resource being created.analysisId- Required. Id of the requesting object.- Throws:
ApiException- if the remote call fails
-
createAnalysisAsync
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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createAnalysisOperationCallable
public final OperationCallable<CreateAnalysisRequest,Analysis, createAnalysisOperationCallable()OperationMetadata> 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(); } -
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(); } -
updateAnalysisAsync
public final OperationFuture<Analysis,OperationMetadata> updateAnalysisAsync(Analysis analysis, com.google.protobuf.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:
analysis- Required. The resource being updated.updateMask- Required. Field mask is used to specify the fields to be overwritten in the Analysis resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.- Throws:
ApiException- if the remote call fails
-
updateAnalysisAsync
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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateAnalysisOperationCallable
public final OperationCallable<UpdateAnalysisRequest,Analysis, updateAnalysisOperationCallable()OperationMetadata> 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(); } -
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(); } -
deleteAnalysisAsync
public final OperationFuture<com.google.protobuf.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(); }- Parameters:
name- Required. Name of the resource.- Throws:
ApiException- if the remote call fails
-
deleteAnalysisAsync
public final OperationFuture<com.google.protobuf.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(); }- Parameters:
name- Required. Name of the resource.- Throws:
ApiException- if the remote call fails
-
deleteAnalysisAsync
public final OperationFuture<com.google.protobuf.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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteAnalysisOperationCallable
public final OperationCallable<DeleteAnalysisRequest,com.google.protobuf.Empty, deleteAnalysisOperationCallable()OperationMetadata> 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(); } -
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(); } -
listProcesses
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); } }- Parameters:
parent- Required. Parent value for ListProcessesRequest.- Throws:
ApiException- if the remote call fails
-
listProcesses
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); } }- Parameters:
parent- Required. Parent value for ListProcessesRequest.- Throws:
ApiException- if the remote call fails
-
listProcesses
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); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
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); } } -
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; } } } -
getProcess
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); }- Parameters:
name- Required. Name of the resource.- Throws:
ApiException- if the remote call fails
-
getProcess
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); }- Parameters:
name- Required. Name of the resource.- Throws:
ApiException- if the remote call fails
-
getProcess
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); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
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(); } -
createProcessAsync
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:
parent- Required. Value for parent.process- Required. The resource being created.processId- Required. Id of the requesting object.- Throws:
ApiException- if the remote call fails
-
createProcessAsync
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:
parent- Required. Value for parent.process- Required. The resource being created.processId- Required. Id of the requesting object.- Throws:
ApiException- if the remote call fails
-
createProcessAsync
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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createProcessOperationCallable
public final OperationCallable<CreateProcessRequest,Process, createProcessOperationCallable()OperationMetadata> 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(); } -
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(); } -
updateProcessAsync
public final OperationFuture<Process,OperationMetadata> updateProcessAsync(Process process, com.google.protobuf.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:
process- Required. The resource being updated.updateMask- Required. Field mask is used to specify the fields to be overwritten in the Process resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.- Throws:
ApiException- if the remote call fails
-
updateProcessAsync
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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateProcessOperationCallable
public final OperationCallable<UpdateProcessRequest,Process, updateProcessOperationCallable()OperationMetadata> 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(); } -
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(); } -
deleteProcessAsync
public final OperationFuture<com.google.protobuf.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(); }- Parameters:
name- Required. Name of the resource.- Throws:
ApiException- if the remote call fails
-
deleteProcessAsync
public final OperationFuture<com.google.protobuf.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(); }- Parameters:
name- Required. Name of the resource.- Throws:
ApiException- if the remote call fails
-
deleteProcessAsync
public final OperationFuture<com.google.protobuf.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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteProcessOperationCallable
public final OperationCallable<DeleteProcessRequest,com.google.protobuf.Empty, deleteProcessOperationCallable()OperationMetadata> 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(); } -
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(); } -
batchRunProcessAsync
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:
parent- Required. The parent resource shared by all processes being created.requests- Required. The create process requests.- Throws:
ApiException- if the remote call fails
-
batchRunProcessAsync
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:
parent- Required. The parent resource shared by all processes being created.requests- Required. The create process requests.- Throws:
ApiException- if the remote call fails
-
batchRunProcessAsync
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(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
batchRunProcessOperationCallable
public final OperationCallable<BatchRunProcessRequest,BatchRunProcessResponse, batchRunProcessOperationCallable()OperationMetadata> 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(); } -
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(); } -
listLocations
public final LiveVideoAnalyticsClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request) Lists information about the supported locations for this service.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() .setName("name3373707") .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (Location element : liveVideoAnalyticsClient.listLocations(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listLocationsPagedCallable
public final UnaryCallable<ListLocationsRequest,LiveVideoAnalyticsClient.ListLocationsPagedResponse> listLocationsPagedCallable()Lists information about the supported locations for this service.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() .setName("name3373707") .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<Location> future = liveVideoAnalyticsClient.listLocationsPagedCallable().futureCall(request); // Do something. for (Location element : future.get().iterateAll()) { // doThingsWith(element); } } -
listLocationsCallable
Lists information about the supported locations for this service.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying 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()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() .setName("name3373707") .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); while (true) { ListLocationsResponse response = liveVideoAnalyticsClient.listLocationsCallable().call(request); for (Location element : response.getLocationsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getLocation
Gets information about a 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()) { GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); Location response = liveVideoAnalyticsClient.getLocation(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getLocationCallable
Gets information about a 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()) { GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); ApiFuture<Location> future = liveVideoAnalyticsClient.getLocationCallable().futureCall(request); // Do something. Location response = future.get(); } -
close
public final void close()- Specified by:
closein interfaceAutoCloseable
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceBackgroundResource
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceBackgroundResource
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceBackgroundResource
-
shutdownNow
public void shutdownNow()- Specified by:
shutdownNowin interfaceBackgroundResource
-
awaitTermination
- Specified by:
awaitTerminationin interfaceBackgroundResource- Throws:
InterruptedException
-