Class TensorboardServiceClient (3.28.0)

public class TensorboardServiceClient implements BackgroundResource

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

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of 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

Implements

BackgroundResource

Static Methods

create()

public static final TensorboardServiceClient create()

Constructs an instance of TensorboardServiceClient with default settings.

Returns
TypeDescription
TensorboardServiceClient
Exceptions
TypeDescription
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
NameDescription
settingsTensorboardServiceSettings
Returns
TypeDescription
TensorboardServiceClient
Exceptions
TypeDescription
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
NameDescription
stubTensorboardServiceStub
Returns
TypeDescription
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
NameDescription
settingsTensorboardServiceSettings

TensorboardServiceClient(TensorboardServiceStub stub)

protected TensorboardServiceClient(TensorboardServiceStub stub)
Parameter
NameDescription
stubTensorboardServiceStub

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
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
NameDescription
requestBatchCreateTensorboardRunsRequest

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

Returns
TypeDescription
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
NameDescription
parentTensorboardExperimentName

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.

requestsList<CreateTensorboardRunRequest>

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

Returns
TypeDescription
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
NameDescription
parentString

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.

requestsList<CreateTensorboardRunRequest>

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
requestBatchCreateTensorboardTimeSeriesRequest

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

Returns
TypeDescription
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
NameDescription
parentTensorboardExperimentName

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.

requestsList<CreateTensorboardTimeSeriesRequest>

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

Returns
TypeDescription
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
NameDescription
parentString

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.

requestsList<CreateTensorboardTimeSeriesRequest>

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
requestBatchReadTensorboardTimeSeriesDataRequest

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

Returns
TypeDescription
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
NameDescription
tensorboardTensorboardName

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
TypeDescription
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
NameDescription
tensorboardString

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
TypeDescription
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
TypeDescription
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
NameDescription
requestCreateTensorboardRequest

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

Returns
TypeDescription
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
NameDescription
parentTensorboardName

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

tensorboardTensorboard

Required. The Tensorboard to create.

Returns
TypeDescription
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
NameDescription
parentString

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

tensorboardTensorboard

Required. The Tensorboard to create.

Returns
TypeDescription
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
TypeDescription
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
NameDescription
requestCreateTensorboardExperimentRequest

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

Returns
TypeDescription
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
NameDescription
parentTensorboardExperimentName

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

tensorboardExperimentTensorboardExperiment

The TensorboardExperiment to create.

tensorboardExperimentIdString

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
TypeDescription
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
NameDescription
parentString

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

tensorboardExperimentTensorboardExperiment

The TensorboardExperiment to create.

tensorboardExperimentIdString

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
requestCreateTensorboardRunRequest

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

Returns
TypeDescription
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
NameDescription
parentTensorboardRunName

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

tensorboardRunTensorboardRun

Required. The TensorboardRun to create.

tensorboardRunIdString

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
TypeDescription
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
NameDescription
parentString

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

tensorboardRunTensorboardRun

Required. The TensorboardRun to create.

tensorboardRunIdString

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
TypeDescription
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
TypeDescription
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
NameDescription
requestCreateTensorboardTimeSeriesRequest

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

Returns
TypeDescription
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
NameDescription
parentTensorboardTimeSeriesName

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

tensorboardTimeSeriesTensorboardTimeSeries

Required. The TensorboardTimeSeries to create.

Returns
TypeDescription
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
NameDescription
parentString

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

tensorboardTimeSeriesTensorboardTimeSeries

Required. The TensorboardTimeSeries to create.

Returns
TypeDescription
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
TypeDescription
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
NameDescription
requestDeleteTensorboardRequest

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

Returns
TypeDescription
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
NameDescription
nameTensorboardName

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

Returns
TypeDescription
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
NameDescription
nameString

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
requestDeleteTensorboardExperimentRequest

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

Returns
TypeDescription
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
NameDescription
nameTensorboardExperimentName

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

Returns
TypeDescription
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
NameDescription
nameString

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
requestDeleteTensorboardRunRequest

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

Returns
TypeDescription
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
NameDescription
nameTensorboardRunName

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

Returns
TypeDescription
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
NameDescription
nameString

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
requestDeleteTensorboardTimeSeriesRequest

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

Returns
TypeDescription
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
NameDescription
nameTensorboardTimeSeriesName

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

Returns
TypeDescription
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
NameDescription
nameString

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
requestExportTensorboardTimeSeriesDataRequest

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

Returns
TypeDescription
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
NameDescription
tensorboardTimeSeriesTensorboardTimeSeriesName

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
TypeDescription
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
NameDescription
tensorboardTimeSeriesString

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
requestcom.google.iam.v1.GetIamPolicyRequest

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
requestcom.google.cloud.location.GetLocationRequest

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
OperationsClient

getSettings()

public final TensorboardServiceSettings getSettings()
Returns
TypeDescription
TensorboardServiceSettings

getStub()

public TensorboardServiceStub getStub()
Returns
TypeDescription
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
NameDescription
requestGetTensorboardRequest

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

Returns
TypeDescription
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
NameDescription
nameTensorboardName

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

Returns
TypeDescription
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
NameDescription
nameString

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
requestGetTensorboardExperimentRequest

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

Returns
TypeDescription
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
NameDescription
nameTensorboardExperimentName

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

Returns
TypeDescription
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
NameDescription
nameString

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

Returns
TypeDescription
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
TypeDescription
UnaryCallable<GetTensorboardExperimentRequest,TensorboardExperiment>

getTensorboardRun(GetTensorboardRunRequest request)

public final TensorboardRun getTensorboardRun(GetTensorboardRunRequest request)

Gets a TensorboardRun.

Sample code: