Class TensorboardServiceClient (3.43.0)

GitHub RepositoryProduct ReferenceREST DocumentationRPC Documentation

Service Description: TensorboardService

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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
   Tensorboard response = tensorboardServiceClient.getTensorboard(name);
 }
 

Note: close() needs to be called on the TensorboardServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

Methods
Method Description Method Variants

CreateTensorboard

Creates a Tensorboard.

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

  • createTensorboardAsync(CreateTensorboardRequest request)

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

  • createTensorboardAsync(TensorboardName parent, Tensorboard tensorboard)

  • createTensorboardAsync(String parent, Tensorboard tensorboard)

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

  • createTensorboardOperationCallable()

  • createTensorboardCallable()

GetTensorboard

Gets a Tensorboard.

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

  • getTensorboard(GetTensorboardRequest request)

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

  • getTensorboard(TensorboardName name)

  • getTensorboard(String name)

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

  • getTensorboardCallable()

UpdateTensorboard

Updates a Tensorboard.

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

  • updateTensorboardAsync(UpdateTensorboardRequest request)

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

  • updateTensorboardAsync(Tensorboard tensorboard, FieldMask updateMask)

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

  • updateTensorboardOperationCallable()

  • updateTensorboardCallable()

ListTensorboards

Lists Tensorboards in a Location.

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

  • listTensorboards(ListTensorboardsRequest request)

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

  • listTensorboards(LocationName parent)

  • listTensorboards(String parent)

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

  • listTensorboardsPagedCallable()

  • listTensorboardsCallable()

DeleteTensorboard

Deletes a Tensorboard.

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

  • deleteTensorboardAsync(DeleteTensorboardRequest request)

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

  • deleteTensorboardAsync(TensorboardName name)

  • deleteTensorboardAsync(String name)

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

  • deleteTensorboardOperationCallable()

  • deleteTensorboardCallable()

ReadTensorboardUsage

Returns a list of monthly active users for a given TensorBoard instance.

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

  • readTensorboardUsage(ReadTensorboardUsageRequest request)

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

  • readTensorboardUsage(TensorboardName tensorboard)

  • readTensorboardUsage(String tensorboard)

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

  • readTensorboardUsageCallable()

ReadTensorboardSize

Returns the storage size for a given TensorBoard instance.

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

  • readTensorboardSize(ReadTensorboardSizeRequest request)

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

  • readTensorboardSize(TensorboardName tensorboard)

  • readTensorboardSize(String tensorboard)

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

  • readTensorboardSizeCallable()

CreateTensorboardExperiment

Creates a TensorboardExperiment.

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

  • createTensorboardExperiment(CreateTensorboardExperimentRequest request)

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

  • createTensorboardExperiment(TensorboardExperimentName parent, TensorboardExperiment tensorboardExperiment, String tensorboardExperimentId)

  • createTensorboardExperiment(String parent, TensorboardExperiment tensorboardExperiment, String tensorboardExperimentId)

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

  • createTensorboardExperimentCallable()

GetTensorboardExperiment

Gets a TensorboardExperiment.

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

  • getTensorboardExperiment(GetTensorboardExperimentRequest request)

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

  • getTensorboardExperiment(TensorboardExperimentName name)

  • getTensorboardExperiment(String name)

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

  • getTensorboardExperimentCallable()

UpdateTensorboardExperiment

Updates a TensorboardExperiment.

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

  • updateTensorboardExperiment(UpdateTensorboardExperimentRequest request)

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

  • updateTensorboardExperiment(TensorboardExperiment tensorboardExperiment, FieldMask updateMask)

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

  • updateTensorboardExperimentCallable()

ListTensorboardExperiments

Lists TensorboardExperiments in a Location.

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

  • listTensorboardExperiments(ListTensorboardExperimentsRequest request)

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

  • listTensorboardExperiments(TensorboardName parent)

  • listTensorboardExperiments(String parent)

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

  • listTensorboardExperimentsPagedCallable()

  • listTensorboardExperimentsCallable()

DeleteTensorboardExperiment

Deletes a TensorboardExperiment.

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

  • deleteTensorboardExperimentAsync(DeleteTensorboardExperimentRequest request)

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

  • deleteTensorboardExperimentAsync(TensorboardExperimentName name)

  • deleteTensorboardExperimentAsync(String name)

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

  • deleteTensorboardExperimentOperationCallable()

  • deleteTensorboardExperimentCallable()

CreateTensorboardRun

Creates a TensorboardRun.

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

  • createTensorboardRun(CreateTensorboardRunRequest request)

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

  • createTensorboardRun(TensorboardRunName parent, TensorboardRun tensorboardRun, String tensorboardRunId)

  • createTensorboardRun(String parent, TensorboardRun tensorboardRun, String tensorboardRunId)

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

  • createTensorboardRunCallable()

BatchCreateTensorboardRuns

Batch create TensorboardRuns.

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

  • batchCreateTensorboardRuns(TensorboardExperimentName parent, List<CreateTensorboardRunRequest> requests)

  • batchCreateTensorboardRuns(String parent, List<CreateTensorboardRunRequest> requests)

  • batchCreateTensorboardRuns(BatchCreateTensorboardRunsRequest request)

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

  • batchCreateTensorboardRunsCallable()

GetTensorboardRun

Gets a TensorboardRun.

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

  • getTensorboardRun(GetTensorboardRunRequest request)

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

  • getTensorboardRun(TensorboardRunName name)

  • getTensorboardRun(String name)

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

  • getTensorboardRunCallable()

UpdateTensorboardRun

Updates a TensorboardRun.

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

  • updateTensorboardRun(UpdateTensorboardRunRequest request)

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

  • updateTensorboardRun(TensorboardRun tensorboardRun, FieldMask updateMask)

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

  • updateTensorboardRunCallable()

ListTensorboardRuns

Lists TensorboardRuns in a Location.

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

  • listTensorboardRuns(ListTensorboardRunsRequest request)

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

  • listTensorboardRuns(TensorboardExperimentName parent)

  • listTensorboardRuns(String parent)

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

  • listTensorboardRunsPagedCallable()

  • listTensorboardRunsCallable()

DeleteTensorboardRun

Deletes a TensorboardRun.

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

  • deleteTensorboardRunAsync(DeleteTensorboardRunRequest request)

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

  • deleteTensorboardRunAsync(TensorboardRunName name)

  • deleteTensorboardRunAsync(String name)

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

  • deleteTensorboardRunOperationCallable()

  • deleteTensorboardRunCallable()

BatchCreateTensorboardTimeSeries

Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.

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

  • batchCreateTensorboardTimeSeries(TensorboardExperimentName parent, List<CreateTensorboardTimeSeriesRequest> requests)

  • batchCreateTensorboardTimeSeries(String parent, List<CreateTensorboardTimeSeriesRequest> requests)

  • batchCreateTensorboardTimeSeries(BatchCreateTensorboardTimeSeriesRequest request)

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

  • batchCreateTensorboardTimeSeriesCallable()

CreateTensorboardTimeSeries

Creates a TensorboardTimeSeries.

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

  • createTensorboardTimeSeries(CreateTensorboardTimeSeriesRequest request)

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

  • createTensorboardTimeSeries(TensorboardTimeSeriesName parent, TensorboardTimeSeries tensorboardTimeSeries)

  • createTensorboardTimeSeries(String parent, TensorboardTimeSeries tensorboardTimeSeries)

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

  • createTensorboardTimeSeriesCallable()

GetTensorboardTimeSeries

Gets a TensorboardTimeSeries.

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

  • getTensorboardTimeSeries(GetTensorboardTimeSeriesRequest request)

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

  • getTensorboardTimeSeries(TensorboardTimeSeriesName name)

  • getTensorboardTimeSeries(String name)

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

  • getTensorboardTimeSeriesCallable()

UpdateTensorboardTimeSeries

Updates a TensorboardTimeSeries.

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

  • updateTensorboardTimeSeries(UpdateTensorboardTimeSeriesRequest request)

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

  • updateTensorboardTimeSeries(TensorboardTimeSeries tensorboardTimeSeries, FieldMask updateMask)

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

  • updateTensorboardTimeSeriesCallable()

ListTensorboardTimeSeries

Lists TensorboardTimeSeries in a Location.

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

  • listTensorboardTimeSeries(ListTensorboardTimeSeriesRequest request)

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

  • listTensorboardTimeSeries(TensorboardRunName parent)

  • listTensorboardTimeSeries(String parent)

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

  • listTensorboardTimeSeriesPagedCallable()

  • listTensorboardTimeSeriesCallable()

DeleteTensorboardTimeSeries

Deletes a TensorboardTimeSeries.

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

  • deleteTensorboardTimeSeriesAsync(DeleteTensorboardTimeSeriesRequest request)

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

  • deleteTensorboardTimeSeriesAsync(TensorboardTimeSeriesName name)

  • deleteTensorboardTimeSeriesAsync(String name)

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

  • deleteTensorboardTimeSeriesOperationCallable()

  • deleteTensorboardTimeSeriesCallable()

BatchReadTensorboardTimeSeriesData

Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.

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

  • batchReadTensorboardTimeSeriesData(BatchReadTensorboardTimeSeriesDataRequest request)

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

  • batchReadTensorboardTimeSeriesData(TensorboardName tensorboard)

  • batchReadTensorboardTimeSeriesData(String tensorboard)

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

  • batchReadTensorboardTimeSeriesDataCallable()

ReadTensorboardTimeSeriesData

Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is less than 1000, all data is returned. Otherwise, 1000 data points is randomly selected from this time series and returned. This value can be changed by changing max_data_points, which can't be greater than 10k.

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

  • readTensorboardTimeSeriesData(ReadTensorboardTimeSeriesDataRequest request)

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

  • readTensorboardTimeSeriesData(TensorboardTimeSeriesName tensorboardTimeSeries)

  • readTensorboardTimeSeriesData(String tensorboardTimeSeries)

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

  • readTensorboardTimeSeriesDataCallable()

ReadTensorboardBlobData

Gets bytes of TensorboardBlobs. This is to allow reading blob data stored in consumer project's Cloud Storage bucket without users having to obtain Cloud Storage access permission.

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

  • readTensorboardBlobDataCallable()

WriteTensorboardExperimentData

Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun's. If any data fail to be ingested, an error is returned.

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

  • writeTensorboardExperimentData(WriteTensorboardExperimentDataRequest request)

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

  • writeTensorboardExperimentData(TensorboardExperimentName tensorboardExperiment, List<WriteTensorboardRunDataRequest> writeRunDataRequests)

  • writeTensorboardExperimentData(String tensorboardExperiment, List<WriteTensorboardRunDataRequest> writeRunDataRequests)

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

  • writeTensorboardExperimentDataCallable()

WriteTensorboardRunData

Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If any data fail to be ingested, an error is returned.

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

  • writeTensorboardRunData(WriteTensorboardRunDataRequest request)

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

  • writeTensorboardRunData(TensorboardRunName tensorboardRun, List<TimeSeriesData> timeSeriesData)

  • writeTensorboardRunData(String tensorboardRun, List<TimeSeriesData> timeSeriesData)

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

  • writeTensorboardRunDataCallable()

ExportTensorboardTimeSeriesData

Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.

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

  • exportTensorboardTimeSeriesData(ExportTensorboardTimeSeriesDataRequest request)

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

  • exportTensorboardTimeSeriesData(TensorboardTimeSeriesName tensorboardTimeSeries)

  • exportTensorboardTimeSeriesData(String tensorboardTimeSeries)

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

  • exportTensorboardTimeSeriesDataPagedCallable()

  • exportTensorboardTimeSeriesDataCallable()

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.

  • listLocations(ListLocationsRequest request)

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

  • listLocationsPagedCallable()

  • listLocationsCallable()

GetLocation

Gets information about a location.

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

  • getLocation(GetLocationRequest request)

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

  • getLocationCallable()

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIEDerrors.

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

  • setIamPolicy(SetIamPolicyRequest request)

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

  • setIamPolicyCallable()

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

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

  • getIamPolicy(GetIamPolicyRequest request)

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

  • getIamPolicyCallable()

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a NOT_FOUND error.

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

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

  • testIamPermissions(TestIamPermissionsRequest request)

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

  • testIamPermissionsCallable()

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 TensorboardServiceSettings 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
 TensorboardServiceSettings tensorboardServiceSettings =
     TensorboardServiceSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 TensorboardServiceClient tensorboardServiceClient =
     TensorboardServiceClient.create(tensorboardServiceSettings);
 

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
 TensorboardServiceSettings tensorboardServiceSettings =
     TensorboardServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
 TensorboardServiceClient tensorboardServiceClient =
     TensorboardServiceClient.create(tensorboardServiceSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

Inheritance

java.lang.Object > TensorboardServiceClient

Static Methods

create()

public static final TensorboardServiceClient create()

Constructs an instance of TensorboardServiceClient with default settings.

Returns
Type Description
TensorboardServiceClient
Exceptions
Type Description
IOException

create(TensorboardServiceSettings settings)

public static final TensorboardServiceClient create(TensorboardServiceSettings settings)

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

Parameter
Name Description
settings TensorboardServiceSettings
Returns
Type Description
TensorboardServiceClient
Exceptions
Type Description
IOException

create(TensorboardServiceStub stub)

public static final TensorboardServiceClient create(TensorboardServiceStub stub)

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

Parameter
Name Description
stub TensorboardServiceStub
Returns
Type Description
TensorboardServiceClient

Constructors

TensorboardServiceClient(TensorboardServiceSettings settings)

protected TensorboardServiceClient(TensorboardServiceSettings settings)

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

Parameter
Name Description
settings TensorboardServiceSettings

TensorboardServiceClient(TensorboardServiceStub stub)

protected TensorboardServiceClient(TensorboardServiceStub stub)
Parameter
Name Description
stub TensorboardServiceStub

Methods

awaitTermination(long duration, TimeUnit unit)

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

batchCreateTensorboardRuns(BatchCreateTensorboardRunsRequest request)

public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(BatchCreateTensorboardRunsRequest request)

Batch create TensorboardRuns.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   BatchCreateTensorboardRunsRequest request =
       BatchCreateTensorboardRunsRequest.newBuilder()
           .setParent(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .addAllRequests(new ArrayList<CreateTensorboardRunRequest>())
           .build();
   BatchCreateTensorboardRunsResponse response =
       tensorboardServiceClient.batchCreateTensorboardRuns(request);
 }
 
Parameter
Name Description
request BatchCreateTensorboardRunsRequest

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

Returns
Type Description
BatchCreateTensorboardRunsResponse

batchCreateTensorboardRuns(TensorboardExperimentName parent, List<CreateTensorboardRunRequest> requests)

public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(TensorboardExperimentName parent, List<CreateTensorboardRunRequest> requests)

Batch create TensorboardRuns.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardExperimentName parent =
       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
   List<CreateTensorboardRunRequest> requests = new ArrayList<>();
   BatchCreateTensorboardRunsResponse response =
       tensorboardServiceClient.batchCreateTensorboardRuns(parent, requests);
 }
 
Parameters
Name Description
parent TensorboardExperimentName

Required. The resource name of the TensorboardExperiment to create the TensorboardRuns in. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment} The parent field in the CreateTensorboardRunRequest messages must match this field.

requests List<CreateTensorboardRunRequest>

Required. The request message specifying the TensorboardRuns to create. A maximum of 1000 TensorboardRuns can be created in a batch.

Returns
Type Description
BatchCreateTensorboardRunsResponse

batchCreateTensorboardRuns(String parent, List<CreateTensorboardRunRequest> requests)

public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(String parent, List<CreateTensorboardRunRequest> requests)

Batch create TensorboardRuns.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String parent =
       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
           .toString();
   List<CreateTensorboardRunRequest> requests = new ArrayList<>();
   BatchCreateTensorboardRunsResponse response =
       tensorboardServiceClient.batchCreateTensorboardRuns(parent, requests);
 }
 
Parameters
Name Description
parent String

Required. The resource name of the TensorboardExperiment to create the TensorboardRuns in. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment} The parent field in the CreateTensorboardRunRequest messages must match this field.

requests List<CreateTensorboardRunRequest>

Required. The request message specifying the TensorboardRuns to create. A maximum of 1000 TensorboardRuns can be created in a batch.

Returns
Type Description
BatchCreateTensorboardRunsResponse

batchCreateTensorboardRunsCallable()

public final UnaryCallable<BatchCreateTensorboardRunsRequest,BatchCreateTensorboardRunsResponse> batchCreateTensorboardRunsCallable()

Batch create TensorboardRuns.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   BatchCreateTensorboardRunsRequest request =
       BatchCreateTensorboardRunsRequest.newBuilder()
           .setParent(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .addAllRequests(new ArrayList<CreateTensorboardRunRequest>())
           .build();
   ApiFuture<BatchCreateTensorboardRunsResponse> future =
       tensorboardServiceClient.batchCreateTensorboardRunsCallable().futureCall(request);
   // Do something.
   BatchCreateTensorboardRunsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchCreateTensorboardRunsRequest,BatchCreateTensorboardRunsResponse>

batchCreateTensorboardTimeSeries(BatchCreateTensorboardTimeSeriesRequest request)

public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTimeSeries(BatchCreateTensorboardTimeSeriesRequest request)

Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   BatchCreateTensorboardTimeSeriesRequest request =
       BatchCreateTensorboardTimeSeriesRequest.newBuilder()
           .setParent(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .addAllRequests(new ArrayList<CreateTensorboardTimeSeriesRequest>())
           .build();
   BatchCreateTensorboardTimeSeriesResponse response =
       tensorboardServiceClient.batchCreateTensorboardTimeSeries(request);
 }
 
Parameter
Name Description
request BatchCreateTensorboardTimeSeriesRequest

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

Returns
Type Description
BatchCreateTensorboardTimeSeriesResponse

batchCreateTensorboardTimeSeries(TensorboardExperimentName parent, List<CreateTensorboardTimeSeriesRequest> requests)

public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTimeSeries(TensorboardExperimentName parent, List<CreateTensorboardTimeSeriesRequest> requests)

Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardExperimentName parent =
       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
   List<CreateTensorboardTimeSeriesRequest> requests = new ArrayList<>();
   BatchCreateTensorboardTimeSeriesResponse response =
       tensorboardServiceClient.batchCreateTensorboardTimeSeries(parent, requests);
 }
 
Parameters
Name Description
parent TensorboardExperimentName

Required. The resource name of the TensorboardExperiment to create the TensorboardTimeSeries in. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment} The TensorboardRuns referenced by the parent fields in the CreateTensorboardTimeSeriesRequest messages must be sub resources of this TensorboardExperiment.

requests List<CreateTensorboardTimeSeriesRequest>

Required. The request message specifying the TensorboardTimeSeries to create. A maximum of 1000 TensorboardTimeSeries can be created in a batch.

Returns
Type Description
BatchCreateTensorboardTimeSeriesResponse

batchCreateTensorboardTimeSeries(String parent, List<CreateTensorboardTimeSeriesRequest> requests)

public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTimeSeries(String parent, List<CreateTensorboardTimeSeriesRequest> requests)

Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String parent =
       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
           .toString();
   List<CreateTensorboardTimeSeriesRequest> requests = new ArrayList<>();
   BatchCreateTensorboardTimeSeriesResponse response =
       tensorboardServiceClient.batchCreateTensorboardTimeSeries(parent, requests);
 }
 
Parameters
Name Description
parent String

Required. The resource name of the TensorboardExperiment to create the TensorboardTimeSeries in. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment} The TensorboardRuns referenced by the parent fields in the CreateTensorboardTimeSeriesRequest messages must be sub resources of this TensorboardExperiment.

requests List<CreateTensorboardTimeSeriesRequest>

Required. The request message specifying the TensorboardTimeSeries to create. A maximum of 1000 TensorboardTimeSeries can be created in a batch.

Returns
Type Description
BatchCreateTensorboardTimeSeriesResponse

batchCreateTensorboardTimeSeriesCallable()

public final UnaryCallable<BatchCreateTensorboardTimeSeriesRequest,BatchCreateTensorboardTimeSeriesResponse> batchCreateTensorboardTimeSeriesCallable()

Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   BatchCreateTensorboardTimeSeriesRequest request =
       BatchCreateTensorboardTimeSeriesRequest.newBuilder()
           .setParent(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .addAllRequests(new ArrayList<CreateTensorboardTimeSeriesRequest>())
           .build();
   ApiFuture<BatchCreateTensorboardTimeSeriesResponse> future =
       tensorboardServiceClient.batchCreateTensorboardTimeSeriesCallable().futureCall(request);
   // Do something.
   BatchCreateTensorboardTimeSeriesResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchCreateTensorboardTimeSeriesRequest,BatchCreateTensorboardTimeSeriesResponse>

batchReadTensorboardTimeSeriesData(BatchReadTensorboardTimeSeriesDataRequest request)

public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTimeSeriesData(BatchReadTensorboardTimeSeriesDataRequest request)

Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   BatchReadTensorboardTimeSeriesDataRequest request =
       BatchReadTensorboardTimeSeriesDataRequest.newBuilder()
           .setTensorboard(
               TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .addAllTimeSeries(new ArrayList<String>())
           .build();
   BatchReadTensorboardTimeSeriesDataResponse response =
       tensorboardServiceClient.batchReadTensorboardTimeSeriesData(request);
 }
 
Parameter
Name Description
request BatchReadTensorboardTimeSeriesDataRequest

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

Returns
Type Description
BatchReadTensorboardTimeSeriesDataResponse

batchReadTensorboardTimeSeriesData(TensorboardName tensorboard)

public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTimeSeriesData(TensorboardName tensorboard)

Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardName tensorboard = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
   BatchReadTensorboardTimeSeriesDataResponse response =
       tensorboardServiceClient.batchReadTensorboardTimeSeriesData(tensorboard);
 }
 
Parameter
Name Description
tensorboard TensorboardName

Required. The resource name of the Tensorboard containing TensorboardTimeSeries to read data from. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}. The TensorboardTimeSeries referenced by time_series must be sub resources of this Tensorboard.

Returns
Type Description
BatchReadTensorboardTimeSeriesDataResponse

batchReadTensorboardTimeSeriesData(String tensorboard)

public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTimeSeriesData(String tensorboard)

Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String tensorboard =
       TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
   BatchReadTensorboardTimeSeriesDataResponse response =
       tensorboardServiceClient.batchReadTensorboardTimeSeriesData(tensorboard);
 }
 
Parameter
Name Description
tensorboard String

Required. The resource name of the Tensorboard containing TensorboardTimeSeries to read data from. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}. The TensorboardTimeSeries referenced by time_series must be sub resources of this Tensorboard.

Returns
Type Description
BatchReadTensorboardTimeSeriesDataResponse

batchReadTensorboardTimeSeriesDataCallable()

public final UnaryCallable<BatchReadTensorboardTimeSeriesDataRequest,BatchReadTensorboardTimeSeriesDataResponse> batchReadTensorboardTimeSeriesDataCallable()

Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   BatchReadTensorboardTimeSeriesDataRequest request =
       BatchReadTensorboardTimeSeriesDataRequest.newBuilder()
           .setTensorboard(
               TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .addAllTimeSeries(new ArrayList<String>())
           .build();
   ApiFuture<BatchReadTensorboardTimeSeriesDataResponse> future =
       tensorboardServiceClient.batchReadTensorboardTimeSeriesDataCallable().futureCall(request);
   // Do something.
   BatchReadTensorboardTimeSeriesDataResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<BatchReadTensorboardTimeSeriesDataRequest,BatchReadTensorboardTimeSeriesDataResponse>

close()

public final void close()

createTensorboardAsync(CreateTensorboardRequest request)

public final OperationFuture<Tensorboard,CreateTensorboardOperationMetadata> createTensorboardAsync(CreateTensorboardRequest request)

Creates a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   CreateTensorboardRequest request =
       CreateTensorboardRequest.newBuilder()
           .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .setTensorboard(Tensorboard.newBuilder().build())
           .build();
   Tensorboard response = tensorboardServiceClient.createTensorboardAsync(request).get();
 }
 
Parameter
Name Description
request CreateTensorboardRequest

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

Returns
Type Description
OperationFuture<Tensorboard,CreateTensorboardOperationMetadata>

createTensorboardAsync(TensorboardName parent, Tensorboard tensorboard)

public final OperationFuture<Tensorboard,CreateTensorboardOperationMetadata> createTensorboardAsync(TensorboardName parent, Tensorboard tensorboard)

Creates a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardName parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
   Tensorboard tensorboard = Tensorboard.newBuilder().build();
   Tensorboard response =
       tensorboardServiceClient.createTensorboardAsync(parent, tensorboard).get();
 }
 
Parameters
Name Description
parent TensorboardName

Required. The resource name of the Location to create the Tensorboard in. Format: projects/{project}/locations/{location}

tensorboard Tensorboard

Required. The Tensorboard to create.

Returns
Type Description
OperationFuture<Tensorboard,CreateTensorboardOperationMetadata>

createTensorboardAsync(String parent, Tensorboard tensorboard)

public final OperationFuture<Tensorboard,CreateTensorboardOperationMetadata> createTensorboardAsync(String parent, Tensorboard tensorboard)

Creates a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
   Tensorboard tensorboard = Tensorboard.newBuilder().build();
   Tensorboard response =
       tensorboardServiceClient.createTensorboardAsync(parent, tensorboard).get();
 }
 
Parameters
Name Description
parent String

Required. The resource name of the Location to create the Tensorboard in. Format: projects/{project}/locations/{location}

tensorboard Tensorboard

Required. The Tensorboard to create.

Returns
Type Description
OperationFuture<Tensorboard,CreateTensorboardOperationMetadata>

createTensorboardCallable()

public final UnaryCallable<CreateTensorboardRequest,Operation> createTensorboardCallable()

Creates a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   CreateTensorboardRequest request =
       CreateTensorboardRequest.newBuilder()
           .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .setTensorboard(Tensorboard.newBuilder().build())
           .build();
   ApiFuture<Operation> future =
       tensorboardServiceClient.createTensorboardCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateTensorboardRequest,Operation>

createTensorboardExperiment(CreateTensorboardExperimentRequest request)

public final TensorboardExperiment createTensorboardExperiment(CreateTensorboardExperimentRequest request)

Creates a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   CreateTensorboardExperimentRequest request =
       CreateTensorboardExperimentRequest.newBuilder()
           .setParent(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .setTensorboardExperiment(TensorboardExperiment.newBuilder().build())
           .setTensorboardExperimentId("tensorboardExperimentId1267328197")
           .build();
   TensorboardExperiment response =
       tensorboardServiceClient.createTensorboardExperiment(request);
 }
 
Parameter
Name Description
request CreateTensorboardExperimentRequest

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

Returns
Type Description
TensorboardExperiment

createTensorboardExperiment(TensorboardExperimentName parent, TensorboardExperiment tensorboardExperiment, String tensorboardExperimentId)

public final TensorboardExperiment createTensorboardExperiment(TensorboardExperimentName parent, TensorboardExperiment tensorboardExperiment, String tensorboardExperimentId)

Creates a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardExperimentName parent =
       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
   TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build();
   String tensorboardExperimentId = "tensorboardExperimentId1267328197";
   TensorboardExperiment response =
       tensorboardServiceClient.createTensorboardExperiment(
           parent, tensorboardExperiment, tensorboardExperimentId);
 }
 
Parameters
Name Description
parent TensorboardExperimentName

Required. The resource name of the Tensorboard to create the TensorboardExperiment in. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}

tensorboardExperiment TensorboardExperiment

The TensorboardExperiment to create.

tensorboardExperimentId String

Required. The ID to use for the Tensorboard experiment, which becomes the final component of the Tensorboard experiment's resource name.

This value should be 1-128 characters, and valid characters are /a-z-/.

Returns
Type Description
TensorboardExperiment

createTensorboardExperiment(String parent, TensorboardExperiment tensorboardExperiment, String tensorboardExperimentId)

public final TensorboardExperiment createTensorboardExperiment(String parent, TensorboardExperiment tensorboardExperiment, String tensorboardExperimentId)

Creates a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String parent =
       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
           .toString();
   TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build();
   String tensorboardExperimentId = "tensorboardExperimentId1267328197";
   TensorboardExperiment response =
       tensorboardServiceClient.createTensorboardExperiment(
           parent, tensorboardExperiment, tensorboardExperimentId);
 }
 
Parameters
Name Description
parent String

Required. The resource name of the Tensorboard to create the TensorboardExperiment in. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}

tensorboardExperiment TensorboardExperiment

The TensorboardExperiment to create.

tensorboardExperimentId String

Required. The ID to use for the Tensorboard experiment, which becomes the final component of the Tensorboard experiment's resource name.

This value should be 1-128 characters, and valid characters are /a-z-/.

Returns
Type Description
TensorboardExperiment

createTensorboardExperimentCallable()

public final UnaryCallable<CreateTensorboardExperimentRequest,TensorboardExperiment> createTensorboardExperimentCallable()

Creates a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   CreateTensorboardExperimentRequest request =
       CreateTensorboardExperimentRequest.newBuilder()
           .setParent(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .setTensorboardExperiment(TensorboardExperiment.newBuilder().build())
           .setTensorboardExperimentId("tensorboardExperimentId1267328197")
           .build();
   ApiFuture<TensorboardExperiment> future =
       tensorboardServiceClient.createTensorboardExperimentCallable().futureCall(request);
   // Do something.
   TensorboardExperiment response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateTensorboardExperimentRequest,TensorboardExperiment>

createTensorboardOperationCallable()

public final OperationCallable<CreateTensorboardRequest,Tensorboard,CreateTensorboardOperationMetadata> createTensorboardOperationCallable()

Creates a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   CreateTensorboardRequest request =
       CreateTensorboardRequest.newBuilder()
           .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .setTensorboard(Tensorboard.newBuilder().build())
           .build();
   OperationFuture<Tensorboard, CreateTensorboardOperationMetadata> future =
       tensorboardServiceClient.createTensorboardOperationCallable().futureCall(request);
   // Do something.
   Tensorboard response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateTensorboardRequest,Tensorboard,CreateTensorboardOperationMetadata>

createTensorboardRun(CreateTensorboardRunRequest request)

public final TensorboardRun createTensorboardRun(CreateTensorboardRunRequest request)

Creates a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   CreateTensorboardRunRequest request =
       CreateTensorboardRunRequest.newBuilder()
           .setParent(
               TensorboardRunName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
                   .toString())
           .setTensorboardRun(TensorboardRun.newBuilder().build())
           .setTensorboardRunId("tensorboardRunId-407822631")
           .build();
   TensorboardRun response = tensorboardServiceClient.createTensorboardRun(request);
 }
 
Parameter
Name Description
request CreateTensorboardRunRequest

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

Returns
Type Description
TensorboardRun

createTensorboardRun(TensorboardRunName parent, TensorboardRun tensorboardRun, String tensorboardRunId)

public final TensorboardRun createTensorboardRun(TensorboardRunName parent, TensorboardRun tensorboardRun, String tensorboardRunId)

Creates a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardRunName parent =
       TensorboardRunName.of(
           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
   TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build();
   String tensorboardRunId = "tensorboardRunId-407822631";
   TensorboardRun response =
       tensorboardServiceClient.createTensorboardRun(parent, tensorboardRun, tensorboardRunId);
 }
 
Parameters
Name Description
parent TensorboardRunName

Required. The resource name of the TensorboardExperiment to create the TensorboardRun in. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}

tensorboardRun TensorboardRun

Required. The TensorboardRun to create.

tensorboardRunId String

Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name.

This value should be 1-128 characters, and valid characters are /a-z-/.

Returns
Type Description
TensorboardRun

createTensorboardRun(String parent, TensorboardRun tensorboardRun, String tensorboardRunId)

public final TensorboardRun createTensorboardRun(String parent, TensorboardRun tensorboardRun, String tensorboardRunId)

Creates a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String parent =
       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
           .toString();
   TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build();
   String tensorboardRunId = "tensorboardRunId-407822631";
   TensorboardRun response =
       tensorboardServiceClient.createTensorboardRun(parent, tensorboardRun, tensorboardRunId);
 }
 
Parameters
Name Description
parent String

Required. The resource name of the TensorboardExperiment to create the TensorboardRun in. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}

tensorboardRun TensorboardRun

Required. The TensorboardRun to create.

tensorboardRunId String

Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name.

This value should be 1-128 characters, and valid characters are /a-z-/.

Returns
Type Description
TensorboardRun

createTensorboardRunCallable()

public final UnaryCallable<CreateTensorboardRunRequest,TensorboardRun> createTensorboardRunCallable()

Creates a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   CreateTensorboardRunRequest request =
       CreateTensorboardRunRequest.newBuilder()
           .setParent(
               TensorboardRunName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
                   .toString())
           .setTensorboardRun(TensorboardRun.newBuilder().build())
           .setTensorboardRunId("tensorboardRunId-407822631")
           .build();
   ApiFuture<TensorboardRun> future =
       tensorboardServiceClient.createTensorboardRunCallable().futureCall(request);
   // Do something.
   TensorboardRun response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateTensorboardRunRequest,TensorboardRun>

createTensorboardTimeSeries(CreateTensorboardTimeSeriesRequest request)

public final TensorboardTimeSeries createTensorboardTimeSeries(CreateTensorboardTimeSeriesRequest request)

Creates a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   CreateTensorboardTimeSeriesRequest request =
       CreateTensorboardTimeSeriesRequest.newBuilder()
           .setParent(
               TensorboardTimeSeriesName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[TENSORBOARD]",
                       "[EXPERIMENT]",
                       "[RUN]",
                       "[TIME_SERIES]")
                   .toString())
           .setTensorboardTimeSeriesId("tensorboardTimeSeriesId-913380692")
           .setTensorboardTimeSeries(TensorboardTimeSeries.newBuilder().build())
           .build();
   TensorboardTimeSeries response =
       tensorboardServiceClient.createTensorboardTimeSeries(request);
 }
 
Parameter
Name Description
request CreateTensorboardTimeSeriesRequest

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

Returns
Type Description
TensorboardTimeSeries

createTensorboardTimeSeries(TensorboardTimeSeriesName parent, TensorboardTimeSeries tensorboardTimeSeries)

public final TensorboardTimeSeries createTensorboardTimeSeries(TensorboardTimeSeriesName parent, TensorboardTimeSeries tensorboardTimeSeries)

Creates a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardTimeSeriesName parent =
       TensorboardTimeSeriesName.of(
           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
   TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build();
   TensorboardTimeSeries response =
       tensorboardServiceClient.createTensorboardTimeSeries(parent, tensorboardTimeSeries);
 }
 
Parameters
Name Description
parent TensorboardTimeSeriesName

Required. The resource name of the TensorboardRun to create the TensorboardTimeSeries in. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}

tensorboardTimeSeries TensorboardTimeSeries

Required. The TensorboardTimeSeries to create.

Returns
Type Description
TensorboardTimeSeries

createTensorboardTimeSeries(String parent, TensorboardTimeSeries tensorboardTimeSeries)

public final TensorboardTimeSeries createTensorboardTimeSeries(String parent, TensorboardTimeSeries tensorboardTimeSeries)

Creates a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String parent =
       TensorboardTimeSeriesName.of(
               "[PROJECT]",
               "[LOCATION]",
               "[TENSORBOARD]",
               "[EXPERIMENT]",
               "[RUN]",
               "[TIME_SERIES]")
           .toString();
   TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build();
   TensorboardTimeSeries response =
       tensorboardServiceClient.createTensorboardTimeSeries(parent, tensorboardTimeSeries);
 }
 
Parameters
Name Description
parent String

Required. The resource name of the TensorboardRun to create the TensorboardTimeSeries in. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}

tensorboardTimeSeries TensorboardTimeSeries

Required. The TensorboardTimeSeries to create.

Returns
Type Description
TensorboardTimeSeries

createTensorboardTimeSeriesCallable()

public final UnaryCallable<CreateTensorboardTimeSeriesRequest,TensorboardTimeSeries> createTensorboardTimeSeriesCallable()

Creates a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   CreateTensorboardTimeSeriesRequest request =
       CreateTensorboardTimeSeriesRequest.newBuilder()
           .setParent(
               TensorboardTimeSeriesName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[TENSORBOARD]",
                       "[EXPERIMENT]",
                       "[RUN]",
                       "[TIME_SERIES]")
                   .toString())
           .setTensorboardTimeSeriesId("tensorboardTimeSeriesId-913380692")
           .setTensorboardTimeSeries(TensorboardTimeSeries.newBuilder().build())
           .build();
   ApiFuture<TensorboardTimeSeries> future =
       tensorboardServiceClient.createTensorboardTimeSeriesCallable().futureCall(request);
   // Do something.
   TensorboardTimeSeries response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateTensorboardTimeSeriesRequest,TensorboardTimeSeries>

deleteTensorboardAsync(DeleteTensorboardRequest request)

public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardAsync(DeleteTensorboardRequest request)

Deletes a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   DeleteTensorboardRequest request =
       DeleteTensorboardRequest.newBuilder()
           .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .build();
   tensorboardServiceClient.deleteTensorboardAsync(request).get();
 }
 
Parameter
Name Description
request DeleteTensorboardRequest

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

Returns
Type Description
OperationFuture<Empty,DeleteOperationMetadata>

deleteTensorboardAsync(TensorboardName name)

public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardAsync(TensorboardName name)

Deletes a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
   tensorboardServiceClient.deleteTensorboardAsync(name).get();
 }
 
Parameter
Name Description
name TensorboardName

Required. The name of the Tensorboard to be deleted. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}

Returns
Type Description
OperationFuture<Empty,DeleteOperationMetadata>

deleteTensorboardAsync(String name)

public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardAsync(String name)

Deletes a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
   tensorboardServiceClient.deleteTensorboardAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the Tensorboard to be deleted. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}

Returns
Type Description
OperationFuture<Empty,DeleteOperationMetadata>

deleteTensorboardCallable()

public final UnaryCallable<DeleteTensorboardRequest,Operation> deleteTensorboardCallable()

Deletes a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   DeleteTensorboardRequest request =
       DeleteTensorboardRequest.newBuilder()
           .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .build();
   ApiFuture<Operation> future =
       tensorboardServiceClient.deleteTensorboardCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteTensorboardRequest,Operation>

deleteTensorboardExperimentAsync(DeleteTensorboardExperimentRequest request)

public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardExperimentAsync(DeleteTensorboardExperimentRequest request)

Deletes a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   DeleteTensorboardExperimentRequest request =
       DeleteTensorboardExperimentRequest.newBuilder()
           .setName(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .build();
   tensorboardServiceClient.deleteTensorboardExperimentAsync(request).get();
 }
 
Parameter
Name Description
request DeleteTensorboardExperimentRequest

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

Returns
Type Description
OperationFuture<Empty,DeleteOperationMetadata>

deleteTensorboardExperimentAsync(TensorboardExperimentName name)

public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardExperimentAsync(TensorboardExperimentName name)

Deletes a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardExperimentName name =
       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
   tensorboardServiceClient.deleteTensorboardExperimentAsync(name).get();
 }
 
Parameter
Name Description
name TensorboardExperimentName

Required. The name of the TensorboardExperiment to be deleted. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}

Returns
Type Description
OperationFuture<Empty,DeleteOperationMetadata>

deleteTensorboardExperimentAsync(String name)

public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardExperimentAsync(String name)

Deletes a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String name =
       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
           .toString();
   tensorboardServiceClient.deleteTensorboardExperimentAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the TensorboardExperiment to be deleted. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}

Returns
Type Description
OperationFuture<Empty,DeleteOperationMetadata>

deleteTensorboardExperimentCallable()

public final UnaryCallable<DeleteTensorboardExperimentRequest,Operation> deleteTensorboardExperimentCallable()

Deletes a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   DeleteTensorboardExperimentRequest request =
       DeleteTensorboardExperimentRequest.newBuilder()
           .setName(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .build();
   ApiFuture<Operation> future =
       tensorboardServiceClient.deleteTensorboardExperimentCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteTensorboardExperimentRequest,Operation>

deleteTensorboardExperimentOperationCallable()

public final OperationCallable<DeleteTensorboardExperimentRequest,Empty,DeleteOperationMetadata> deleteTensorboardExperimentOperationCallable()

Deletes a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   DeleteTensorboardExperimentRequest request =
       DeleteTensorboardExperimentRequest.newBuilder()
           .setName(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .build();
   OperationFuture<Empty, DeleteOperationMetadata> future =
       tensorboardServiceClient
           .deleteTensorboardExperimentOperationCallable()
           .futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteTensorboardExperimentRequest,Empty,DeleteOperationMetadata>

deleteTensorboardOperationCallable()

public final OperationCallable<DeleteTensorboardRequest,Empty,DeleteOperationMetadata> deleteTensorboardOperationCallable()

Deletes a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   DeleteTensorboardRequest request =
       DeleteTensorboardRequest.newBuilder()
           .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .build();
   OperationFuture<Empty, DeleteOperationMetadata> future =
       tensorboardServiceClient.deleteTensorboardOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteTensorboardRequest,Empty,DeleteOperationMetadata>

deleteTensorboardRunAsync(DeleteTensorboardRunRequest request)

public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardRunAsync(DeleteTensorboardRunRequest request)

Deletes a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   DeleteTensorboardRunRequest request =
       DeleteTensorboardRunRequest.newBuilder()
           .setName(
               TensorboardRunName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
                   .toString())
           .build();
   tensorboardServiceClient.deleteTensorboardRunAsync(request).get();
 }
 
Parameter
Name Description
request DeleteTensorboardRunRequest

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

Returns
Type Description
OperationFuture<Empty,DeleteOperationMetadata>

deleteTensorboardRunAsync(TensorboardRunName name)

public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardRunAsync(TensorboardRunName name)

Deletes a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardRunName name =
       TensorboardRunName.of(
           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
   tensorboardServiceClient.deleteTensorboardRunAsync(name).get();
 }
 
Parameter
Name Description
name TensorboardRunName

Required. The name of the TensorboardRun to be deleted. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}

Returns
Type Description
OperationFuture<Empty,DeleteOperationMetadata>

deleteTensorboardRunAsync(String name)

public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardRunAsync(String name)

Deletes a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String name =
       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
           .toString();
   tensorboardServiceClient.deleteTensorboardRunAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the TensorboardRun to be deleted. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}

Returns
Type Description
OperationFuture<Empty,DeleteOperationMetadata>

deleteTensorboardRunCallable()

public final UnaryCallable<DeleteTensorboardRunRequest,Operation> deleteTensorboardRunCallable()

Deletes a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   DeleteTensorboardRunRequest request =
       DeleteTensorboardRunRequest.newBuilder()
           .setName(
               TensorboardRunName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
                   .toString())
           .build();
   ApiFuture<Operation> future =
       tensorboardServiceClient.deleteTensorboardRunCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteTensorboardRunRequest,Operation>

deleteTensorboardRunOperationCallable()

public final OperationCallable<DeleteTensorboardRunRequest,Empty,DeleteOperationMetadata> deleteTensorboardRunOperationCallable()

Deletes a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   DeleteTensorboardRunRequest request =
       DeleteTensorboardRunRequest.newBuilder()
           .setName(
               TensorboardRunName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
                   .toString())
           .build();
   OperationFuture<Empty, DeleteOperationMetadata> future =
       tensorboardServiceClient.deleteTensorboardRunOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteTensorboardRunRequest,Empty,DeleteOperationMetadata>

deleteTensorboardTimeSeriesAsync(DeleteTensorboardTimeSeriesRequest request)

public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardTimeSeriesAsync(DeleteTensorboardTimeSeriesRequest request)

Deletes a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   DeleteTensorboardTimeSeriesRequest request =
       DeleteTensorboardTimeSeriesRequest.newBuilder()
           .setName(
               TensorboardTimeSeriesName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[TENSORBOARD]",
                       "[EXPERIMENT]",
                       "[RUN]",
                       "[TIME_SERIES]")
                   .toString())
           .build();
   tensorboardServiceClient.deleteTensorboardTimeSeriesAsync(request).get();
 }
 
Parameter
Name Description
request DeleteTensorboardTimeSeriesRequest

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

Returns
Type Description
OperationFuture<Empty,DeleteOperationMetadata>

deleteTensorboardTimeSeriesAsync(TensorboardTimeSeriesName name)

public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardTimeSeriesAsync(TensorboardTimeSeriesName name)

Deletes a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardTimeSeriesName name =
       TensorboardTimeSeriesName.of(
           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
   tensorboardServiceClient.deleteTensorboardTimeSeriesAsync(name).get();
 }
 
Parameter
Name Description
name TensorboardTimeSeriesName

Required. The name of the TensorboardTimeSeries to be deleted. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}

Returns
Type Description
OperationFuture<Empty,DeleteOperationMetadata>

deleteTensorboardTimeSeriesAsync(String name)

public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardTimeSeriesAsync(String name)

Deletes a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String name =
       TensorboardTimeSeriesName.of(
               "[PROJECT]",
               "[LOCATION]",
               "[TENSORBOARD]",
               "[EXPERIMENT]",
               "[RUN]",
               "[TIME_SERIES]")
           .toString();
   tensorboardServiceClient.deleteTensorboardTimeSeriesAsync(name).get();
 }
 
Parameter
Name Description
name String

Required. The name of the TensorboardTimeSeries to be deleted. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}

Returns
Type Description
OperationFuture<Empty,DeleteOperationMetadata>

deleteTensorboardTimeSeriesCallable()

public final UnaryCallable<DeleteTensorboardTimeSeriesRequest,Operation> deleteTensorboardTimeSeriesCallable()

Deletes a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   DeleteTensorboardTimeSeriesRequest request =
       DeleteTensorboardTimeSeriesRequest.newBuilder()
           .setName(
               TensorboardTimeSeriesName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[TENSORBOARD]",
                       "[EXPERIMENT]",
                       "[RUN]",
                       "[TIME_SERIES]")
                   .toString())
           .build();
   ApiFuture<Operation> future =
       tensorboardServiceClient.deleteTensorboardTimeSeriesCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteTensorboardTimeSeriesRequest,Operation>

deleteTensorboardTimeSeriesOperationCallable()

public final OperationCallable<DeleteTensorboardTimeSeriesRequest,Empty,DeleteOperationMetadata> deleteTensorboardTimeSeriesOperationCallable()

Deletes a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   DeleteTensorboardTimeSeriesRequest request =
       DeleteTensorboardTimeSeriesRequest.newBuilder()
           .setName(
               TensorboardTimeSeriesName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[TENSORBOARD]",
                       "[EXPERIMENT]",
                       "[RUN]",
                       "[TIME_SERIES]")
                   .toString())
           .build();
   OperationFuture<Empty, DeleteOperationMetadata> future =
       tensorboardServiceClient
           .deleteTensorboardTimeSeriesOperationCallable()
           .futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteTensorboardTimeSeriesRequest,Empty,DeleteOperationMetadata>

exportTensorboardTimeSeriesData(ExportTensorboardTimeSeriesDataRequest request)

public final TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeSeriesData(ExportTensorboardTimeSeriesDataRequest request)

Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ExportTensorboardTimeSeriesDataRequest request =
       ExportTensorboardTimeSeriesDataRequest.newBuilder()
           .setTensorboardTimeSeries(
               TensorboardTimeSeriesName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[TENSORBOARD]",
                       "[EXPERIMENT]",
                       "[RUN]",
                       "[TIME_SERIES]")
                   .toString())
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (TimeSeriesDataPoint element :
       tensorboardServiceClient.exportTensorboardTimeSeriesData(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ExportTensorboardTimeSeriesDataRequest

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

Returns
Type Description
TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse

exportTensorboardTimeSeriesData(TensorboardTimeSeriesName tensorboardTimeSeries)

public final TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeSeriesData(TensorboardTimeSeriesName tensorboardTimeSeries)

Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardTimeSeriesName tensorboardTimeSeries =
       TensorboardTimeSeriesName.of(
           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
   for (TimeSeriesDataPoint element :
       tensorboardServiceClient
           .exportTensorboardTimeSeriesData(tensorboardTimeSeries)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
tensorboardTimeSeries TensorboardTimeSeriesName

Required. The resource name of the TensorboardTimeSeries to export data from. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}

Returns
Type Description
TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse

exportTensorboardTimeSeriesData(String tensorboardTimeSeries)

public final TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeSeriesData(String tensorboardTimeSeries)

Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String tensorboardTimeSeries =
       TensorboardTimeSeriesName.of(
               "[PROJECT]",
               "[LOCATION]",
               "[TENSORBOARD]",
               "[EXPERIMENT]",
               "[RUN]",
               "[TIME_SERIES]")
           .toString();
   for (TimeSeriesDataPoint element :
       tensorboardServiceClient
           .exportTensorboardTimeSeriesData(tensorboardTimeSeries)
           .iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
tensorboardTimeSeries String

Required. The resource name of the TensorboardTimeSeries to export data from. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}

Returns
Type Description
TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse

exportTensorboardTimeSeriesDataCallable()

public final UnaryCallable<ExportTensorboardTimeSeriesDataRequest,ExportTensorboardTimeSeriesDataResponse> exportTensorboardTimeSeriesDataCallable()

Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ExportTensorboardTimeSeriesDataRequest request =
       ExportTensorboardTimeSeriesDataRequest.newBuilder()
           .setTensorboardTimeSeries(
               TensorboardTimeSeriesName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[TENSORBOARD]",
                       "[EXPERIMENT]",
                       "[RUN]",
                       "[TIME_SERIES]")
                   .toString())
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ExportTensorboardTimeSeriesDataResponse response =
         tensorboardServiceClient.exportTensorboardTimeSeriesDataCallable().call(request);
     for (TimeSeriesDataPoint element : response.getTimeSeriesDataPointsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ExportTensorboardTimeSeriesDataRequest,ExportTensorboardTimeSeriesDataResponse>

exportTensorboardTimeSeriesDataPagedCallable()

public final UnaryCallable<ExportTensorboardTimeSeriesDataRequest,TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse> exportTensorboardTimeSeriesDataPagedCallable()

Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ExportTensorboardTimeSeriesDataRequest request =
       ExportTensorboardTimeSeriesDataRequest.newBuilder()
           .setTensorboardTimeSeries(
               TensorboardTimeSeriesName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[TENSORBOARD]",
                       "[EXPERIMENT]",
                       "[RUN]",
                       "[TIME_SERIES]")
                   .toString())
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<TimeSeriesDataPoint> future =
       tensorboardServiceClient
           .exportTensorboardTimeSeriesDataPagedCallable()
           .futureCall(request);
   // Do something.
   for (TimeSeriesDataPoint element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ExportTensorboardTimeSeriesDataRequest,ExportTensorboardTimeSeriesDataPagedResponse>

getIamPolicy(GetIamPolicyRequest request)

public final Policy getIamPolicy(GetIamPolicyRequest request)

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   GetIamPolicyRequest request =
       GetIamPolicyRequest.newBuilder()
           .setResource(
               EndpointName.ofProjectLocationEndpointName(
                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
                   .toString())
           .setOptions(GetPolicyOptions.newBuilder().build())
           .build();
   Policy response = tensorboardServiceClient.getIamPolicy(request);
 }
 
Parameter
Name Description
request com.google.iam.v1.GetIamPolicyRequest

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

Returns
Type Description
com.google.iam.v1.Policy

getIamPolicyCallable()

public final UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   GetIamPolicyRequest request =
       GetIamPolicyRequest.newBuilder()
           .setResource(
               EndpointName.ofProjectLocationEndpointName(
                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
                   .toString())
           .setOptions(GetPolicyOptions.newBuilder().build())
           .build();
   ApiFuture<Policy> future =
       tensorboardServiceClient.getIamPolicyCallable().futureCall(request);
   // Do something.
   Policy response = future.get();
 }
 
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>

getLocation(GetLocationRequest request)

public final Location getLocation(GetLocationRequest request)

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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
   Location response = tensorboardServiceClient.getLocation(request);
 }
 
Parameter
Name Description
request com.google.cloud.location.GetLocationRequest

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

Returns
Type Description
com.google.cloud.location.Location

getLocationCallable()

public final UnaryCallable<GetLocationRequest,Location> 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
   ApiFuture<Location> future =
       tensorboardServiceClient.getLocationCallable().futureCall(request);
   // Do something.
   Location response = future.get();
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getOperationsClient()

public final OperationsClient getOperationsClient()

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

Returns
Type Description
OperationsClient

getSettings()

public final TensorboardServiceSettings getSettings()
Returns
Type Description
TensorboardServiceSettings

getStub()

public TensorboardServiceStub getStub()
Returns
Type Description
TensorboardServiceStub

getTensorboard(GetTensorboardRequest request)

public final Tensorboard getTensorboard(GetTensorboardRequest request)

Gets a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   GetTensorboardRequest request =
       GetTensorboardRequest.newBuilder()
           .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .build();
   Tensorboard response = tensorboardServiceClient.getTensorboard(request);
 }
 
Parameter
Name Description
request GetTensorboardRequest

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

Returns
Type Description
Tensorboard

getTensorboard(TensorboardName name)

public final Tensorboard getTensorboard(TensorboardName name)

Gets a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
   Tensorboard response = tensorboardServiceClient.getTensorboard(name);
 }
 
Parameter
Name Description
name TensorboardName

Required. The name of the Tensorboard resource. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}

Returns
Type Description
Tensorboard

getTensorboard(String name)

public final Tensorboard getTensorboard(String name)

Gets a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
   Tensorboard response = tensorboardServiceClient.getTensorboard(name);
 }
 
Parameter
Name Description
name String

Required. The name of the Tensorboard resource. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}

Returns
Type Description
Tensorboard

getTensorboardCallable()

public final UnaryCallable<GetTensorboardRequest,Tensorboard> getTensorboardCallable()

Gets a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   GetTensorboardRequest request =
       GetTensorboardRequest.newBuilder()
           .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .build();
   ApiFuture<Tensorboard> future =
       tensorboardServiceClient.getTensorboardCallable().futureCall(request);
   // Do something.
   Tensorboard response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetTensorboardRequest,Tensorboard>

getTensorboardExperiment(GetTensorboardExperimentRequest request)

public final TensorboardExperiment getTensorboardExperiment(GetTensorboardExperimentRequest request)

Gets a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   GetTensorboardExperimentRequest request =
       GetTensorboardExperimentRequest.newBuilder()
           .setName(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .build();
   TensorboardExperiment response = tensorboardServiceClient.getTensorboardExperiment(request);
 }
 
Parameter
Name Description
request GetTensorboardExperimentRequest

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

Returns
Type Description
TensorboardExperiment

getTensorboardExperiment(TensorboardExperimentName name)

public final TensorboardExperiment getTensorboardExperiment(TensorboardExperimentName name)

Gets a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardExperimentName name =
       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
   TensorboardExperiment response = tensorboardServiceClient.getTensorboardExperiment(name);
 }
 
Parameter
Name Description
name TensorboardExperimentName

Required. The name of the TensorboardExperiment resource. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}

Returns
Type Description
TensorboardExperiment

getTensorboardExperiment(String name)

public final TensorboardExperiment getTensorboardExperiment(String name)

Gets a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String name =
       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
           .toString();
   TensorboardExperiment response = tensorboardServiceClient.getTensorboardExperiment(name);
 }
 
Parameter
Name Description
name String

Required. The name of the TensorboardExperiment resource. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}

Returns
Type Description
TensorboardExperiment

getTensorboardExperimentCallable()

public final UnaryCallable<GetTensorboardExperimentRequest,TensorboardExperiment> getTensorboardExperimentCallable()

Gets a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   GetTensorboardExperimentRequest request =
       GetTensorboardExperimentRequest.newBuilder()
           .setName(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .build();
   ApiFuture<TensorboardExperiment> future =
       tensorboardServiceClient.getTensorboardExperimentCallable().futureCall(request);
   // Do something.
   TensorboardExperiment response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetTensorboardExperimentRequest,TensorboardExperiment>

getTensorboardRun(GetTensorboardRunRequest request)

public final TensorboardRun getTensorboardRun(GetTensorboardRunRequest request)

Gets a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   GetTensorboardRunRequest request =
       GetTensorboardRunRequest.newBuilder()
           .setName(
               TensorboardRunName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
                   .toString())
           .build();
   TensorboardRun response = tensorboardServiceClient.getTensorboardRun(request);
 }
 
Parameter
Name Description
request GetTensorboardRunRequest

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

Returns
Type Description
TensorboardRun

getTensorboardRun(TensorboardRunName name)

public final TensorboardRun getTensorboardRun(TensorboardRunName name)

Gets a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardRunName name =
       TensorboardRunName.of(
           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
   TensorboardRun response = tensorboardServiceClient.getTensorboardRun(name);
 }
 
Parameter
Name Description
name TensorboardRunName

Required. The name of the TensorboardRun resource. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}

Returns
Type Description
TensorboardRun

getTensorboardRun(String name)

public final TensorboardRun getTensorboardRun(String name)

Gets a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String name =
       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
           .toString();
   TensorboardRun response = tensorboardServiceClient.getTensorboardRun(name);
 }
 
Parameter
Name Description
name String

Required. The name of the TensorboardRun resource. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}

Returns
Type Description
TensorboardRun

getTensorboardRunCallable()

public final UnaryCallable<GetTensorboardRunRequest,TensorboardRun> getTensorboardRunCallable()

Gets a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   GetTensorboardRunRequest request =
       GetTensorboardRunRequest.newBuilder()
           .setName(
               TensorboardRunName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
                   .toString())
           .build();
   ApiFuture<TensorboardRun> future =
       tensorboardServiceClient.getTensorboardRunCallable().futureCall(request);
   // Do something.
   TensorboardRun response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetTensorboardRunRequest,TensorboardRun>

getTensorboardTimeSeries(GetTensorboardTimeSeriesRequest request)

public final TensorboardTimeSeries getTensorboardTimeSeries(GetTensorboardTimeSeriesRequest request)

Gets a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   GetTensorboardTimeSeriesRequest request =
       GetTensorboardTimeSeriesRequest.newBuilder()
           .setName(
               TensorboardTimeSeriesName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[TENSORBOARD]",
                       "[EXPERIMENT]",
                       "[RUN]",
                       "[TIME_SERIES]")
                   .toString())
           .build();
   TensorboardTimeSeries response = tensorboardServiceClient.getTensorboardTimeSeries(request);
 }
 
Parameter
Name Description
request GetTensorboardTimeSeriesRequest

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

Returns
Type Description
TensorboardTimeSeries

getTensorboardTimeSeries(TensorboardTimeSeriesName name)

public final TensorboardTimeSeries getTensorboardTimeSeries(TensorboardTimeSeriesName name)

Gets a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardTimeSeriesName name =
       TensorboardTimeSeriesName.of(
           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
   TensorboardTimeSeries response = tensorboardServiceClient.getTensorboardTimeSeries(name);
 }
 
Parameter
Name Description
name TensorboardTimeSeriesName

Required. The name of the TensorboardTimeSeries resource. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}

Returns
Type Description
TensorboardTimeSeries

getTensorboardTimeSeries(String name)

public final TensorboardTimeSeries getTensorboardTimeSeries(String name)

Gets a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String name =
       TensorboardTimeSeriesName.of(
               "[PROJECT]",
               "[LOCATION]",
               "[TENSORBOARD]",
               "[EXPERIMENT]",
               "[RUN]",
               "[TIME_SERIES]")
           .toString();
   TensorboardTimeSeries response = tensorboardServiceClient.getTensorboardTimeSeries(name);
 }
 
Parameter
Name Description
name String

Required. The name of the TensorboardTimeSeries resource. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}

Returns
Type Description
TensorboardTimeSeries

getTensorboardTimeSeriesCallable()

public final UnaryCallable<GetTensorboardTimeSeriesRequest,TensorboardTimeSeries> getTensorboardTimeSeriesCallable()

Gets a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   GetTensorboardTimeSeriesRequest request =
       GetTensorboardTimeSeriesRequest.newBuilder()
           .setName(
               TensorboardTimeSeriesName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[TENSORBOARD]",
                       "[EXPERIMENT]",
                       "[RUN]",
                       "[TIME_SERIES]")
                   .toString())
           .build();
   ApiFuture<TensorboardTimeSeries> future =
       tensorboardServiceClient.getTensorboardTimeSeriesCallable().futureCall(request);
   // Do something.
   TensorboardTimeSeries response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetTensorboardTimeSeriesRequest,TensorboardTimeSeries>

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listLocations(ListLocationsRequest request)

public final TensorboardServiceClient.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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (Location element : tensorboardServiceClient.listLocations(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request com.google.cloud.location.ListLocationsRequest

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

Returns
Type Description
TensorboardServiceClient.ListLocationsPagedResponse

listLocationsCallable()

public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListLocationsResponse response =
         tensorboardServiceClient.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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>

listLocationsPagedCallable()

public final UnaryCallable<ListLocationsRequest,TensorboardServiceClient.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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<Location> future =
       tensorboardServiceClient.listLocationsPagedCallable().futureCall(request);
   // Do something.
   for (Location element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>

listTensorboardExperiments(ListTensorboardExperimentsRequest request)

public final TensorboardServiceClient.ListTensorboardExperimentsPagedResponse listTensorboardExperiments(ListTensorboardExperimentsRequest request)

Lists TensorboardExperiments in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ListTensorboardExperimentsRequest request =
       ListTensorboardExperimentsRequest.newBuilder()
           .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .setReadMask(FieldMask.newBuilder().build())
           .build();
   for (TensorboardExperiment element :
       tensorboardServiceClient.listTensorboardExperiments(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListTensorboardExperimentsRequest

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

Returns
Type Description
TensorboardServiceClient.ListTensorboardExperimentsPagedResponse

listTensorboardExperiments(TensorboardName parent)

public final TensorboardServiceClient.ListTensorboardExperimentsPagedResponse listTensorboardExperiments(TensorboardName parent)

Lists TensorboardExperiments in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardName parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
   for (TensorboardExperiment element :
       tensorboardServiceClient.listTensorboardExperiments(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent TensorboardName

Required. The resource name of the Tensorboard to list TensorboardExperiments. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}

Returns
Type Description
TensorboardServiceClient.ListTensorboardExperimentsPagedResponse

listTensorboardExperiments(String parent)

public final TensorboardServiceClient.ListTensorboardExperimentsPagedResponse listTensorboardExperiments(String parent)

Lists TensorboardExperiments in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
   for (TensorboardExperiment element :
       tensorboardServiceClient.listTensorboardExperiments(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The resource name of the Tensorboard to list TensorboardExperiments. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}

Returns
Type Description
TensorboardServiceClient.ListTensorboardExperimentsPagedResponse

listTensorboardExperimentsCallable()

public final UnaryCallable<ListTensorboardExperimentsRequest,ListTensorboardExperimentsResponse> listTensorboardExperimentsCallable()

Lists TensorboardExperiments in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ListTensorboardExperimentsRequest request =
       ListTensorboardExperimentsRequest.newBuilder()
           .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .setReadMask(FieldMask.newBuilder().build())
           .build();
   while (true) {
     ListTensorboardExperimentsResponse response =
         tensorboardServiceClient.listTensorboardExperimentsCallable().call(request);
     for (TensorboardExperiment element : response.getTensorboardExperimentsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListTensorboardExperimentsRequest,ListTensorboardExperimentsResponse>

listTensorboardExperimentsPagedCallable()

public final UnaryCallable<ListTensorboardExperimentsRequest,TensorboardServiceClient.ListTensorboardExperimentsPagedResponse> listTensorboardExperimentsPagedCallable()

Lists TensorboardExperiments in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ListTensorboardExperimentsRequest request =
       ListTensorboardExperimentsRequest.newBuilder()
           .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .setReadMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<TensorboardExperiment> future =
       tensorboardServiceClient.listTensorboardExperimentsPagedCallable().futureCall(request);
   // Do something.
   for (TensorboardExperiment element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListTensorboardExperimentsRequest,ListTensorboardExperimentsPagedResponse>

listTensorboardRuns(ListTensorboardRunsRequest request)

public final TensorboardServiceClient.ListTensorboardRunsPagedResponse listTensorboardRuns(ListTensorboardRunsRequest request)

Lists TensorboardRuns in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ListTensorboardRunsRequest request =
       ListTensorboardRunsRequest.newBuilder()
           .setParent(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .setReadMask(FieldMask.newBuilder().build())
           .build();
   for (TensorboardRun element :
       tensorboardServiceClient.listTensorboardRuns(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListTensorboardRunsRequest

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

Returns
Type Description
TensorboardServiceClient.ListTensorboardRunsPagedResponse

listTensorboardRuns(TensorboardExperimentName parent)

public final TensorboardServiceClient.ListTensorboardRunsPagedResponse listTensorboardRuns(TensorboardExperimentName parent)

Lists TensorboardRuns in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardExperimentName parent =
       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
   for (TensorboardRun element :
       tensorboardServiceClient.listTensorboardRuns(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent TensorboardExperimentName

Required. The resource name of the TensorboardExperiment to list TensorboardRuns. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}

Returns
Type Description
TensorboardServiceClient.ListTensorboardRunsPagedResponse

listTensorboardRuns(String parent)

public final TensorboardServiceClient.ListTensorboardRunsPagedResponse listTensorboardRuns(String parent)

Lists TensorboardRuns in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String parent =
       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
           .toString();
   for (TensorboardRun element :
       tensorboardServiceClient.listTensorboardRuns(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The resource name of the TensorboardExperiment to list TensorboardRuns. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}

Returns
Type Description
TensorboardServiceClient.ListTensorboardRunsPagedResponse

listTensorboardRunsCallable()

public final UnaryCallable<ListTensorboardRunsRequest,ListTensorboardRunsResponse> listTensorboardRunsCallable()

Lists TensorboardRuns in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ListTensorboardRunsRequest request =
       ListTensorboardRunsRequest.newBuilder()
           .setParent(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .setReadMask(FieldMask.newBuilder().build())
           .build();
   while (true) {
     ListTensorboardRunsResponse response =
         tensorboardServiceClient.listTensorboardRunsCallable().call(request);
     for (TensorboardRun element : response.getTensorboardRunsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListTensorboardRunsRequest,ListTensorboardRunsResponse>

listTensorboardRunsPagedCallable()

public final UnaryCallable<ListTensorboardRunsRequest,TensorboardServiceClient.ListTensorboardRunsPagedResponse> listTensorboardRunsPagedCallable()

Lists TensorboardRuns in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ListTensorboardRunsRequest request =
       ListTensorboardRunsRequest.newBuilder()
           .setParent(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .setReadMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<TensorboardRun> future =
       tensorboardServiceClient.listTensorboardRunsPagedCallable().futureCall(request);
   // Do something.
   for (TensorboardRun element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListTensorboardRunsRequest,ListTensorboardRunsPagedResponse>

listTensorboardTimeSeries(ListTensorboardTimeSeriesRequest request)

public final TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(ListTensorboardTimeSeriesRequest request)

Lists TensorboardTimeSeries in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ListTensorboardTimeSeriesRequest request =
       ListTensorboardTimeSeriesRequest.newBuilder()
           .setParent(
               TensorboardRunName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
                   .toString())
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .setReadMask(FieldMask.newBuilder().build())
           .build();
   for (TensorboardTimeSeries element :
       tensorboardServiceClient.listTensorboardTimeSeries(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListTensorboardTimeSeriesRequest

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

Returns
Type Description
TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse

listTensorboardTimeSeries(TensorboardRunName parent)

public final TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(TensorboardRunName parent)

Lists TensorboardTimeSeries in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardRunName parent =
       TensorboardRunName.of(
           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
   for (TensorboardTimeSeries element :
       tensorboardServiceClient.listTensorboardTimeSeries(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent TensorboardRunName

Required. The resource name of the TensorboardRun to list TensorboardTimeSeries. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}

Returns
Type Description
TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse

listTensorboardTimeSeries(String parent)

public final TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(String parent)

Lists TensorboardTimeSeries in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String parent =
       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
           .toString();
   for (TensorboardTimeSeries element :
       tensorboardServiceClient.listTensorboardTimeSeries(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The resource name of the TensorboardRun to list TensorboardTimeSeries. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}

Returns
Type Description
TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse

listTensorboardTimeSeriesCallable()

public final UnaryCallable<ListTensorboardTimeSeriesRequest,ListTensorboardTimeSeriesResponse> listTensorboardTimeSeriesCallable()

Lists TensorboardTimeSeries in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ListTensorboardTimeSeriesRequest request =
       ListTensorboardTimeSeriesRequest.newBuilder()
           .setParent(
               TensorboardRunName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
                   .toString())
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .setReadMask(FieldMask.newBuilder().build())
           .build();
   while (true) {
     ListTensorboardTimeSeriesResponse response =
         tensorboardServiceClient.listTensorboardTimeSeriesCallable().call(request);
     for (TensorboardTimeSeries element : response.getTensorboardTimeSeriesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListTensorboardTimeSeriesRequest,ListTensorboardTimeSeriesResponse>

listTensorboardTimeSeriesPagedCallable()

public final UnaryCallable<ListTensorboardTimeSeriesRequest,TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse> listTensorboardTimeSeriesPagedCallable()

Lists TensorboardTimeSeries in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ListTensorboardTimeSeriesRequest request =
       ListTensorboardTimeSeriesRequest.newBuilder()
           .setParent(
               TensorboardRunName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
                   .toString())
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .setReadMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<TensorboardTimeSeries> future =
       tensorboardServiceClient.listTensorboardTimeSeriesPagedCallable().futureCall(request);
   // Do something.
   for (TensorboardTimeSeries element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListTensorboardTimeSeriesRequest,ListTensorboardTimeSeriesPagedResponse>

listTensorboards(ListTensorboardsRequest request)

public final TensorboardServiceClient.ListTensorboardsPagedResponse listTensorboards(ListTensorboardsRequest request)

Lists Tensorboards in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ListTensorboardsRequest request =
       ListTensorboardsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .setReadMask(FieldMask.newBuilder().build())
           .build();
   for (Tensorboard element : tensorboardServiceClient.listTensorboards(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
request ListTensorboardsRequest

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

Returns
Type Description
TensorboardServiceClient.ListTensorboardsPagedResponse

listTensorboards(LocationName parent)

public final TensorboardServiceClient.ListTensorboardsPagedResponse listTensorboards(LocationName parent)

Lists Tensorboards in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (Tensorboard element : tensorboardServiceClient.listTensorboards(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. The resource name of the Location to list Tensorboards. Format: projects/{project}/locations/{location}

Returns
Type Description
TensorboardServiceClient.ListTensorboardsPagedResponse

listTensorboards(String parent)

public final TensorboardServiceClient.ListTensorboardsPagedResponse listTensorboards(String parent)

Lists Tensorboards in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (Tensorboard element : tensorboardServiceClient.listTensorboards(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
Name Description
parent String

Required. The resource name of the Location to list Tensorboards. Format: projects/{project}/locations/{location}

Returns
Type Description
TensorboardServiceClient.ListTensorboardsPagedResponse

listTensorboardsCallable()

public final UnaryCallable<ListTensorboardsRequest,ListTensorboardsResponse> listTensorboardsCallable()

Lists Tensorboards in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ListTensorboardsRequest request =
       ListTensorboardsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .setReadMask(FieldMask.newBuilder().build())
           .build();
   while (true) {
     ListTensorboardsResponse response =
         tensorboardServiceClient.listTensorboardsCallable().call(request);
     for (Tensorboard element : response.getTensorboardsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListTensorboardsRequest,ListTensorboardsResponse>

listTensorboardsPagedCallable()

public final UnaryCallable<ListTensorboardsRequest,TensorboardServiceClient.ListTensorboardsPagedResponse> listTensorboardsPagedCallable()

Lists Tensorboards in 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 (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ListTensorboardsRequest request =
       ListTensorboardsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setOrderBy("orderBy-1207110587")
           .setReadMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<Tensorboard> future =
       tensorboardServiceClient.listTensorboardsPagedCallable().futureCall(request);
   // Do something.
   for (Tensorboard element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListTensorboardsRequest,ListTensorboardsPagedResponse>

readTensorboardBlobDataCallable()

public final ServerStreamingCallable<ReadTensorboardBlobDataRequest,ReadTensorboardBlobDataResponse> readTensorboardBlobDataCallable()

Gets bytes of TensorboardBlobs. This is to allow reading blob data stored in consumer project's Cloud Storage bucket without users having to obtain Cloud Storage access permission.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ReadTensorboardBlobDataRequest request =
       ReadTensorboardBlobDataRequest.newBuilder()
           .setTimeSeries(
               TensorboardTimeSeriesName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[TENSORBOARD]",
                       "[EXPERIMENT]",
                       "[RUN]",
                       "[TIME_SERIES]")
                   .toString())
           .addAllBlobIds(new ArrayList<String>())
           .build();
   ServerStream<ReadTensorboardBlobDataResponse> stream =
       tensorboardServiceClient.readTensorboardBlobDataCallable().call(request);
   for (ReadTensorboardBlobDataResponse response : stream) {
     // Do something when a response is received.
   }
 }
 
Returns
Type Description
ServerStreamingCallable<ReadTensorboardBlobDataRequest,ReadTensorboardBlobDataResponse>

readTensorboardSize(ReadTensorboardSizeRequest request)

public final ReadTensorboardSizeResponse readTensorboardSize(ReadTensorboardSizeRequest request)

Returns the storage size for a given TensorBoard instance.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ReadTensorboardSizeRequest request =
       ReadTensorboardSizeRequest.newBuilder()
           .setTensorboard(
               TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .build();
   ReadTensorboardSizeResponse response = tensorboardServiceClient.readTensorboardSize(request);
 }
 
Parameter
Name Description
request ReadTensorboardSizeRequest

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

Returns
Type Description
ReadTensorboardSizeResponse

readTensorboardSize(TensorboardName tensorboard)

public final ReadTensorboardSizeResponse readTensorboardSize(TensorboardName tensorboard)

Returns the storage size for a given TensorBoard instance.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardName tensorboard = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
   ReadTensorboardSizeResponse response =
       tensorboardServiceClient.readTensorboardSize(tensorboard);
 }
 
Parameter
Name Description
tensorboard TensorboardName

Required. The name of the Tensorboard resource. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}

Returns
Type Description
ReadTensorboardSizeResponse

readTensorboardSize(String tensorboard)

public final ReadTensorboardSizeResponse readTensorboardSize(String tensorboard)

Returns the storage size for a given TensorBoard instance.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String tensorboard =
       TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
   ReadTensorboardSizeResponse response =
       tensorboardServiceClient.readTensorboardSize(tensorboard);
 }
 
Parameter
Name Description
tensorboard String

Required. The name of the Tensorboard resource. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}

Returns
Type Description
ReadTensorboardSizeResponse

readTensorboardSizeCallable()

public final UnaryCallable<ReadTensorboardSizeRequest,ReadTensorboardSizeResponse> readTensorboardSizeCallable()

Returns the storage size for a given TensorBoard instance.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ReadTensorboardSizeRequest request =
       ReadTensorboardSizeRequest.newBuilder()
           .setTensorboard(
               TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .build();
   ApiFuture<ReadTensorboardSizeResponse> future =
       tensorboardServiceClient.readTensorboardSizeCallable().futureCall(request);
   // Do something.
   ReadTensorboardSizeResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<ReadTensorboardSizeRequest,ReadTensorboardSizeResponse>

readTensorboardTimeSeriesData(ReadTensorboardTimeSeriesDataRequest request)

public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData(ReadTensorboardTimeSeriesDataRequest request)

Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is less than 1000, all data is returned. Otherwise, 1000 data points is randomly selected from this time series and returned. This value can be changed by changing max_data_points, which can't be greater than 10k.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ReadTensorboardTimeSeriesDataRequest request =
       ReadTensorboardTimeSeriesDataRequest.newBuilder()
           .setTensorboardTimeSeries(
               TensorboardTimeSeriesName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[TENSORBOARD]",
                       "[EXPERIMENT]",
                       "[RUN]",
                       "[TIME_SERIES]")
                   .toString())
           .setMaxDataPoints(724001981)
           .setFilter("filter-1274492040")
           .build();
   ReadTensorboardTimeSeriesDataResponse response =
       tensorboardServiceClient.readTensorboardTimeSeriesData(request);
 }
 
Parameter
Name Description
request ReadTensorboardTimeSeriesDataRequest

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

Returns
Type Description
ReadTensorboardTimeSeriesDataResponse

readTensorboardTimeSeriesData(TensorboardTimeSeriesName tensorboardTimeSeries)

public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData(TensorboardTimeSeriesName tensorboardTimeSeries)

Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is less than 1000, all data is returned. Otherwise, 1000 data points is randomly selected from this time series and returned. This value can be changed by changing max_data_points, which can't be greater than 10k.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardTimeSeriesName tensorboardTimeSeries =
       TensorboardTimeSeriesName.of(
           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
   ReadTensorboardTimeSeriesDataResponse response =
       tensorboardServiceClient.readTensorboardTimeSeriesData(tensorboardTimeSeries);
 }
 
Parameter
Name Description
tensorboardTimeSeries TensorboardTimeSeriesName

Required. The resource name of the TensorboardTimeSeries to read data from. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}

Returns
Type Description
ReadTensorboardTimeSeriesDataResponse

readTensorboardTimeSeriesData(String tensorboardTimeSeries)

public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData(String tensorboardTimeSeries)

Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is less than 1000, all data is returned. Otherwise, 1000 data points is randomly selected from this time series and returned. This value can be changed by changing max_data_points, which can't be greater than 10k.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String tensorboardTimeSeries =
       TensorboardTimeSeriesName.of(
               "[PROJECT]",
               "[LOCATION]",
               "[TENSORBOARD]",
               "[EXPERIMENT]",
               "[RUN]",
               "[TIME_SERIES]")
           .toString();
   ReadTensorboardTimeSeriesDataResponse response =
       tensorboardServiceClient.readTensorboardTimeSeriesData(tensorboardTimeSeries);
 }
 
Parameter
Name Description
tensorboardTimeSeries String

Required. The resource name of the TensorboardTimeSeries to read data from. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}

Returns
Type Description
ReadTensorboardTimeSeriesDataResponse

readTensorboardTimeSeriesDataCallable()

public final UnaryCallable<ReadTensorboardTimeSeriesDataRequest,ReadTensorboardTimeSeriesDataResponse> readTensorboardTimeSeriesDataCallable()

Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is less than 1000, all data is returned. Otherwise, 1000 data points is randomly selected from this time series and returned. This value can be changed by changing max_data_points, which can't be greater than 10k.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ReadTensorboardTimeSeriesDataRequest request =
       ReadTensorboardTimeSeriesDataRequest.newBuilder()
           .setTensorboardTimeSeries(
               TensorboardTimeSeriesName.of(
                       "[PROJECT]",
                       "[LOCATION]",
                       "[TENSORBOARD]",
                       "[EXPERIMENT]",
                       "[RUN]",
                       "[TIME_SERIES]")
                   .toString())
           .setMaxDataPoints(724001981)
           .setFilter("filter-1274492040")
           .build();
   ApiFuture<ReadTensorboardTimeSeriesDataResponse> future =
       tensorboardServiceClient.readTensorboardTimeSeriesDataCallable().futureCall(request);
   // Do something.
   ReadTensorboardTimeSeriesDataResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<ReadTensorboardTimeSeriesDataRequest,ReadTensorboardTimeSeriesDataResponse>

readTensorboardUsage(ReadTensorboardUsageRequest request)

public final ReadTensorboardUsageResponse readTensorboardUsage(ReadTensorboardUsageRequest request)

Returns a list of monthly active users for a given TensorBoard instance.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ReadTensorboardUsageRequest request =
       ReadTensorboardUsageRequest.newBuilder()
           .setTensorboard(
               TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .build();
   ReadTensorboardUsageResponse response =
       tensorboardServiceClient.readTensorboardUsage(request);
 }
 
Parameter
Name Description
request ReadTensorboardUsageRequest

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

Returns
Type Description
ReadTensorboardUsageResponse

readTensorboardUsage(TensorboardName tensorboard)

public final ReadTensorboardUsageResponse readTensorboardUsage(TensorboardName tensorboard)

Returns a list of monthly active users for a given TensorBoard instance.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardName tensorboard = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
   ReadTensorboardUsageResponse response =
       tensorboardServiceClient.readTensorboardUsage(tensorboard);
 }
 
Parameter
Name Description
tensorboard TensorboardName

Required. The name of the Tensorboard resource. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}

Returns
Type Description
ReadTensorboardUsageResponse

readTensorboardUsage(String tensorboard)

public final ReadTensorboardUsageResponse readTensorboardUsage(String tensorboard)

Returns a list of monthly active users for a given TensorBoard instance.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String tensorboard =
       TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
   ReadTensorboardUsageResponse response =
       tensorboardServiceClient.readTensorboardUsage(tensorboard);
 }
 
Parameter
Name Description
tensorboard String

Required. The name of the Tensorboard resource. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}

Returns
Type Description
ReadTensorboardUsageResponse

readTensorboardUsageCallable()

public final UnaryCallable<ReadTensorboardUsageRequest,ReadTensorboardUsageResponse> readTensorboardUsageCallable()

Returns a list of monthly active users for a given TensorBoard instance.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   ReadTensorboardUsageRequest request =
       ReadTensorboardUsageRequest.newBuilder()
           .setTensorboard(
               TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
           .build();
   ApiFuture<ReadTensorboardUsageResponse> future =
       tensorboardServiceClient.readTensorboardUsageCallable().futureCall(request);
   // Do something.
   ReadTensorboardUsageResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<ReadTensorboardUsageRequest,ReadTensorboardUsageResponse>

setIamPolicy(SetIamPolicyRequest request)

public final Policy setIamPolicy(SetIamPolicyRequest request)

Sets the access control policy on the specified resource. Replacesany existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIEDerrors.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   SetIamPolicyRequest request =
       SetIamPolicyRequest.newBuilder()
           .setResource(
               EndpointName.ofProjectLocationEndpointName(
                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
                   .toString())
           .setPolicy(Policy.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   Policy response = tensorboardServiceClient.setIamPolicy(request);
 }
 
Parameter
Name Description
request com.google.iam.v1.SetIamPolicyRequest

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

Returns
Type Description
com.google.iam.v1.Policy

setIamPolicyCallable()

public final UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()

Sets the access control policy on the specified resource. Replacesany existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIEDerrors.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   SetIamPolicyRequest request =
       SetIamPolicyRequest.newBuilder()
           .setResource(
               EndpointName.ofProjectLocationEndpointName(
                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
                   .toString())
           .setPolicy(Policy.newBuilder().build())
           .setUpdateMask(FieldMask.newBuilder().build())
           .build();
   ApiFuture<Policy> future =
       tensorboardServiceClient.setIamPolicyCallable().futureCall(request);
   // Do something.
   Policy response = future.get();
 }
 
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissions(TestIamPermissionsRequest request)

public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request)

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a NOT_FOUND error.

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TestIamPermissionsRequest request =
       TestIamPermissionsRequest.newBuilder()
           .setResource(
               EndpointName.ofProjectLocationEndpointName(
                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
                   .toString())
           .addAllPermissions(new ArrayList<String>())
           .build();
   TestIamPermissionsResponse response = tensorboardServiceClient.testIamPermissions(request);
 }
 
Parameter
Name Description
request com.google.iam.v1.TestIamPermissionsRequest

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

Returns
Type Description
com.google.iam.v1.TestIamPermissionsResponse

testIamPermissionsCallable()

public final UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a NOT_FOUND error.

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TestIamPermissionsRequest request =
       TestIamPermissionsRequest.newBuilder()
           .setResource(
               EndpointName.ofProjectLocationEndpointName(
                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
                   .toString())
           .addAllPermissions(new ArrayList<String>())
           .build();
   ApiFuture<TestIamPermissionsResponse> future =
       tensorboardServiceClient.testIamPermissionsCallable().futureCall(request);
   // Do something.
   TestIamPermissionsResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>

updateTensorboardAsync(Tensorboard tensorboard, FieldMask updateMask)

public final OperationFuture<Tensorboard,UpdateTensorboardOperationMetadata> updateTensorboardAsync(Tensorboard tensorboard, FieldMask updateMask)

Updates a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   Tensorboard tensorboard = Tensorboard.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Tensorboard response =
       tensorboardServiceClient.updateTensorboardAsync(tensorboard, updateMask).get();
 }
 
Parameters
Name Description
tensorboard Tensorboard

Required. The Tensorboard's name field is used to identify the Tensorboard to be updated. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Tensorboard resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it's in the mask. If the user does not provide a mask then all fields are overwritten if new values are specified.

Returns
Type Description
OperationFuture<Tensorboard,UpdateTensorboardOperationMetadata>

updateTensorboardAsync(UpdateTensorboardRequest request)

public final OperationFuture<Tensorboard,UpdateTensorboardOperationMetadata> updateTensorboardAsync(UpdateTensorboardRequest request)

Updates a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   UpdateTensorboardRequest request =
       UpdateTensorboardRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setTensorboard(Tensorboard.newBuilder().build())
           .build();
   Tensorboard response = tensorboardServiceClient.updateTensorboardAsync(request).get();
 }
 
Parameter
Name Description
request UpdateTensorboardRequest

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

Returns
Type Description
OperationFuture<Tensorboard,UpdateTensorboardOperationMetadata>

updateTensorboardCallable()

public final UnaryCallable<UpdateTensorboardRequest,Operation> updateTensorboardCallable()

Updates a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   UpdateTensorboardRequest request =
       UpdateTensorboardRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setTensorboard(Tensorboard.newBuilder().build())
           .build();
   ApiFuture<Operation> future =
       tensorboardServiceClient.updateTensorboardCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateTensorboardRequest,Operation>

updateTensorboardExperiment(TensorboardExperiment tensorboardExperiment, FieldMask updateMask)

public final TensorboardExperiment updateTensorboardExperiment(TensorboardExperiment tensorboardExperiment, FieldMask updateMask)

Updates a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   TensorboardExperiment response =
       tensorboardServiceClient.updateTensorboardExperiment(tensorboardExperiment, updateMask);
 }
 
Parameters
Name Description
tensorboardExperiment TensorboardExperiment

Required. The TensorboardExperiment's name field is used to identify the TensorboardExperiment to be updated. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the TensorboardExperiment resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it's in the mask. If the user does not provide a mask then all fields are overwritten if new values are specified.

Returns
Type Description
TensorboardExperiment

updateTensorboardExperiment(UpdateTensorboardExperimentRequest request)

public final TensorboardExperiment updateTensorboardExperiment(UpdateTensorboardExperimentRequest request)

Updates a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   UpdateTensorboardExperimentRequest request =
       UpdateTensorboardExperimentRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setTensorboardExperiment(TensorboardExperiment.newBuilder().build())
           .build();
   TensorboardExperiment response =
       tensorboardServiceClient.updateTensorboardExperiment(request);
 }
 
Parameter
Name Description
request UpdateTensorboardExperimentRequest

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

Returns
Type Description
TensorboardExperiment

updateTensorboardExperimentCallable()

public final UnaryCallable<UpdateTensorboardExperimentRequest,TensorboardExperiment> updateTensorboardExperimentCallable()

Updates a TensorboardExperiment.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   UpdateTensorboardExperimentRequest request =
       UpdateTensorboardExperimentRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setTensorboardExperiment(TensorboardExperiment.newBuilder().build())
           .build();
   ApiFuture<TensorboardExperiment> future =
       tensorboardServiceClient.updateTensorboardExperimentCallable().futureCall(request);
   // Do something.
   TensorboardExperiment response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateTensorboardExperimentRequest,TensorboardExperiment>

updateTensorboardOperationCallable()

public final OperationCallable<UpdateTensorboardRequest,Tensorboard,UpdateTensorboardOperationMetadata> updateTensorboardOperationCallable()

Updates a Tensorboard.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   UpdateTensorboardRequest request =
       UpdateTensorboardRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setTensorboard(Tensorboard.newBuilder().build())
           .build();
   OperationFuture<Tensorboard, UpdateTensorboardOperationMetadata> future =
       tensorboardServiceClient.updateTensorboardOperationCallable().futureCall(request);
   // Do something.
   Tensorboard response = future.get();
 }
 
Returns
Type Description
OperationCallable<UpdateTensorboardRequest,Tensorboard,UpdateTensorboardOperationMetadata>

updateTensorboardRun(TensorboardRun tensorboardRun, FieldMask updateMask)

public final TensorboardRun updateTensorboardRun(TensorboardRun tensorboardRun, FieldMask updateMask)

Updates a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   TensorboardRun response =
       tensorboardServiceClient.updateTensorboardRun(tensorboardRun, updateMask);
 }
 
Parameters
Name Description
tensorboardRun TensorboardRun

Required. The TensorboardRun's name field is used to identify the TensorboardRun to be updated. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the TensorboardRun resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it's in the mask. If the user does not provide a mask then all fields are overwritten if new values are specified.

Returns
Type Description
TensorboardRun

updateTensorboardRun(UpdateTensorboardRunRequest request)

public final TensorboardRun updateTensorboardRun(UpdateTensorboardRunRequest request)

Updates a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   UpdateTensorboardRunRequest request =
       UpdateTensorboardRunRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setTensorboardRun(TensorboardRun.newBuilder().build())
           .build();
   TensorboardRun response = tensorboardServiceClient.updateTensorboardRun(request);
 }
 
Parameter
Name Description
request UpdateTensorboardRunRequest

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

Returns
Type Description
TensorboardRun

updateTensorboardRunCallable()

public final UnaryCallable<UpdateTensorboardRunRequest,TensorboardRun> updateTensorboardRunCallable()

Updates a TensorboardRun.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   UpdateTensorboardRunRequest request =
       UpdateTensorboardRunRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setTensorboardRun(TensorboardRun.newBuilder().build())
           .build();
   ApiFuture<TensorboardRun> future =
       tensorboardServiceClient.updateTensorboardRunCallable().futureCall(request);
   // Do something.
   TensorboardRun response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateTensorboardRunRequest,TensorboardRun>

updateTensorboardTimeSeries(TensorboardTimeSeries tensorboardTimeSeries, FieldMask updateMask)

public final TensorboardTimeSeries updateTensorboardTimeSeries(TensorboardTimeSeries tensorboardTimeSeries, FieldMask updateMask)

Updates a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   TensorboardTimeSeries response =
       tensorboardServiceClient.updateTensorboardTimeSeries(tensorboardTimeSeries, updateMask);
 }
 
Parameters
Name Description
tensorboardTimeSeries TensorboardTimeSeries

Required. The TensorboardTimeSeries' name field is used to identify the TensorboardTimeSeries to be updated. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the TensorboardTimeSeries resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it's in the mask. If the user does not provide a mask then all fields are overwritten if new values are specified.

Returns
Type Description
TensorboardTimeSeries

updateTensorboardTimeSeries(UpdateTensorboardTimeSeriesRequest request)

public final TensorboardTimeSeries updateTensorboardTimeSeries(UpdateTensorboardTimeSeriesRequest request)

Updates a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   UpdateTensorboardTimeSeriesRequest request =
       UpdateTensorboardTimeSeriesRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setTensorboardTimeSeries(TensorboardTimeSeries.newBuilder().build())
           .build();
   TensorboardTimeSeries response =
       tensorboardServiceClient.updateTensorboardTimeSeries(request);
 }
 
Parameter
Name Description
request UpdateTensorboardTimeSeriesRequest

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

Returns
Type Description
TensorboardTimeSeries

updateTensorboardTimeSeriesCallable()

public final UnaryCallable<UpdateTensorboardTimeSeriesRequest,TensorboardTimeSeries> updateTensorboardTimeSeriesCallable()

Updates a TensorboardTimeSeries.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   UpdateTensorboardTimeSeriesRequest request =
       UpdateTensorboardTimeSeriesRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setTensorboardTimeSeries(TensorboardTimeSeries.newBuilder().build())
           .build();
   ApiFuture<TensorboardTimeSeries> future =
       tensorboardServiceClient.updateTensorboardTimeSeriesCallable().futureCall(request);
   // Do something.
   TensorboardTimeSeries response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateTensorboardTimeSeriesRequest,TensorboardTimeSeries>

writeTensorboardExperimentData(TensorboardExperimentName tensorboardExperiment, List<WriteTensorboardRunDataRequest> writeRunDataRequests)

public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentData(TensorboardExperimentName tensorboardExperiment, List<WriteTensorboardRunDataRequest> writeRunDataRequests)

Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun's. If any data fail to be ingested, an error is returned.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardExperimentName tensorboardExperiment =
       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
   List<WriteTensorboardRunDataRequest> writeRunDataRequests = new ArrayList<>();
   WriteTensorboardExperimentDataResponse response =
       tensorboardServiceClient.writeTensorboardExperimentData(
           tensorboardExperiment, writeRunDataRequests);
 }
 
Parameters
Name Description
tensorboardExperiment TensorboardExperimentName

Required. The resource name of the TensorboardExperiment to write data to. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}

writeRunDataRequests List<WriteTensorboardRunDataRequest>

Required. Requests containing per-run TensorboardTimeSeries data to write.

Returns
Type Description
WriteTensorboardExperimentDataResponse

writeTensorboardExperimentData(WriteTensorboardExperimentDataRequest request)

public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentData(WriteTensorboardExperimentDataRequest request)

Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun's. If any data fail to be ingested, an error is returned.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   WriteTensorboardExperimentDataRequest request =
       WriteTensorboardExperimentDataRequest.newBuilder()
           .setTensorboardExperiment(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .addAllWriteRunDataRequests(new ArrayList<WriteTensorboardRunDataRequest>())
           .build();
   WriteTensorboardExperimentDataResponse response =
       tensorboardServiceClient.writeTensorboardExperimentData(request);
 }
 
Parameter
Name Description
request WriteTensorboardExperimentDataRequest

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

Returns
Type Description
WriteTensorboardExperimentDataResponse

writeTensorboardExperimentData(String tensorboardExperiment, List<WriteTensorboardRunDataRequest> writeRunDataRequests)

public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentData(String tensorboardExperiment, List<WriteTensorboardRunDataRequest> writeRunDataRequests)

Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun's. If any data fail to be ingested, an error is returned.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String tensorboardExperiment =
       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
           .toString();
   List<WriteTensorboardRunDataRequest> writeRunDataRequests = new ArrayList<>();
   WriteTensorboardExperimentDataResponse response =
       tensorboardServiceClient.writeTensorboardExperimentData(
           tensorboardExperiment, writeRunDataRequests);
 }
 
Parameters
Name Description
tensorboardExperiment String

Required. The resource name of the TensorboardExperiment to write data to. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}

writeRunDataRequests List<WriteTensorboardRunDataRequest>

Required. Requests containing per-run TensorboardTimeSeries data to write.

Returns
Type Description
WriteTensorboardExperimentDataResponse

writeTensorboardExperimentDataCallable()

public final UnaryCallable<WriteTensorboardExperimentDataRequest,WriteTensorboardExperimentDataResponse> writeTensorboardExperimentDataCallable()

Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun's. If any data fail to be ingested, an error is returned.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   WriteTensorboardExperimentDataRequest request =
       WriteTensorboardExperimentDataRequest.newBuilder()
           .setTensorboardExperiment(
               TensorboardExperimentName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
                   .toString())
           .addAllWriteRunDataRequests(new ArrayList<WriteTensorboardRunDataRequest>())
           .build();
   ApiFuture<WriteTensorboardExperimentDataResponse> future =
       tensorboardServiceClient.writeTensorboardExperimentDataCallable().futureCall(request);
   // Do something.
   WriteTensorboardExperimentDataResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<WriteTensorboardExperimentDataRequest,WriteTensorboardExperimentDataResponse>

writeTensorboardRunData(TensorboardRunName tensorboardRun, List<TimeSeriesData> timeSeriesData)

public final WriteTensorboardRunDataResponse writeTensorboardRunData(TensorboardRunName tensorboardRun, List<TimeSeriesData> timeSeriesData)

Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If any data fail to be ingested, an error is returned.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   TensorboardRunName tensorboardRun =
       TensorboardRunName.of(
           "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
   List<TimeSeriesData> timeSeriesData = new ArrayList<>();
   WriteTensorboardRunDataResponse response =
       tensorboardServiceClient.writeTensorboardRunData(tensorboardRun, timeSeriesData);
 }
 
Parameters
Name Description
tensorboardRun TensorboardRunName

Required. The resource name of the TensorboardRun to write data to. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}

timeSeriesData List<TimeSeriesData>

Required. The TensorboardTimeSeries data to write. Values with in a time series are indexed by their step value. Repeated writes to the same step will overwrite the existing value for that step. The upper limit of data points per write request is 5000.

Returns
Type Description
WriteTensorboardRunDataResponse

writeTensorboardRunData(WriteTensorboardRunDataRequest request)

public final WriteTensorboardRunDataResponse writeTensorboardRunData(WriteTensorboardRunDataRequest request)

Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If any data fail to be ingested, an error is returned.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   WriteTensorboardRunDataRequest request =
       WriteTensorboardRunDataRequest.newBuilder()
           .setTensorboardRun(
               TensorboardRunName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
                   .toString())
           .addAllTimeSeriesData(new ArrayList<TimeSeriesData>())
           .build();
   WriteTensorboardRunDataResponse response =
       tensorboardServiceClient.writeTensorboardRunData(request);
 }
 
Parameter
Name Description
request WriteTensorboardRunDataRequest

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

Returns
Type Description
WriteTensorboardRunDataResponse

writeTensorboardRunData(String tensorboardRun, List<TimeSeriesData> timeSeriesData)

public final WriteTensorboardRunDataResponse writeTensorboardRunData(String tensorboardRun, List<TimeSeriesData> timeSeriesData)

Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If any data fail to be ingested, an error is returned.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   String tensorboardRun =
       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
           .toString();
   List<TimeSeriesData> timeSeriesData = new ArrayList<>();
   WriteTensorboardRunDataResponse response =
       tensorboardServiceClient.writeTensorboardRunData(tensorboardRun, timeSeriesData);
 }
 
Parameters
Name Description
tensorboardRun String

Required. The resource name of the TensorboardRun to write data to. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}

timeSeriesData List<TimeSeriesData>

Required. The TensorboardTimeSeries data to write. Values with in a time series are indexed by their step value. Repeated writes to the same step will overwrite the existing value for that step. The upper limit of data points per write request is 5000.

Returns
Type Description
WriteTensorboardRunDataResponse

writeTensorboardRunDataCallable()

public final UnaryCallable<WriteTensorboardRunDataRequest,WriteTensorboardRunDataResponse> writeTensorboardRunDataCallable()

Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If any data fail to be ingested, an error is returned.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
   WriteTensorboardRunDataRequest request =
       WriteTensorboardRunDataRequest.newBuilder()
           .setTensorboardRun(
               TensorboardRunName.of(
                       "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
                   .toString())
           .addAllTimeSeriesData(new ArrayList<TimeSeriesData>())
           .build();
   ApiFuture<WriteTensorboardRunDataResponse> future =
       tensorboardServiceClient.writeTensorboardRunDataCallable().futureCall(request);
   // Do something.
   WriteTensorboardRunDataResponse response = future.get();
 }
 
Returns
Type Description
UnaryCallable<WriteTensorboardRunDataRequest,WriteTensorboardRunDataResponse>