- 3.60.0 (latest)
- 3.59.0
- 3.58.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.54.0
- 3.53.0
- 3.52.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.2
- 3.3.0
- 3.2.0
- 3.0.0
- 2.9.8
- 2.8.9
- 2.7.4
- 2.5.3
- 2.4.0
GitHub Repository | Product Reference | REST Documentation | RPC Documentation |
Service Description: TensorboardService
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
Tensorboard response = tensorboardServiceClient.getTensorboard(name);
}
Note: close() needs to be called on the TensorboardServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
The surface of this class includes several types of Java methods for each of the API's methods:
- 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.
- 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.
- 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.
Static Methods
create()
public static final TensorboardServiceClient create()
Constructs an instance of TensorboardServiceClient with default settings.
Returns | |
---|---|
Type | Description |
TensorboardServiceClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(TensorboardServiceSettings settings)
public static final TensorboardServiceClient create(TensorboardServiceSettings settings)
Constructs an instance of TensorboardServiceClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
Parameter | |
---|---|
Name | Description |
settings | TensorboardServiceSettings |
Returns | |
---|---|
Type | Description |
TensorboardServiceClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(TensorboardServiceStub stub)
public static final TensorboardServiceClient create(TensorboardServiceStub stub)
Constructs an instance of TensorboardServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(TensorboardServiceSettings).
Parameter | |
---|---|
Name | Description |
stub | TensorboardServiceStub |
Returns | |
---|---|
Type | Description |
TensorboardServiceClient |
Constructors
TensorboardServiceClient(TensorboardServiceSettings settings)
protected TensorboardServiceClient(TensorboardServiceSettings settings)
Constructs an instance of TensorboardServiceClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
Parameter | |
---|---|
Name | Description |
settings | TensorboardServiceSettings |
TensorboardServiceClient(TensorboardServiceStub stub)
protected TensorboardServiceClient(TensorboardServiceStub stub)
Parameter | |
---|---|
Name | Description |
stub | TensorboardServiceStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters | |
---|---|
Name | Description |
duration | long |
unit | TimeUnit |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
batchCreateTensorboardRuns(BatchCreateTensorboardRunsRequest request)
public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(BatchCreateTensorboardRunsRequest request)
Batch create TensorboardRuns.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
BatchCreateTensorboardRunsRequest request =
BatchCreateTensorboardRunsRequest.newBuilder()
.setParent(
TensorboardExperimentName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString())
.addAllRequests(new ArrayList<CreateTensorboardRunRequest>())
.build();
BatchCreateTensorboardRunsResponse response =
tensorboardServiceClient.batchCreateTensorboardRuns(request);
}
Parameter | |
---|---|
Name | Description |
request | BatchCreateTensorboardRunsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
BatchCreateTensorboardRunsResponse |
batchCreateTensorboardRuns(TensorboardExperimentName parent, List<CreateTensorboardRunRequest> requests)
public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(TensorboardExperimentName parent, List<CreateTensorboardRunRequest> requests)
Batch create TensorboardRuns.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
TensorboardExperimentName parent =
TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
List<CreateTensorboardRunRequest> requests = new ArrayList<>();
BatchCreateTensorboardRunsResponse response =
tensorboardServiceClient.batchCreateTensorboardRuns(parent, requests);
}
Parameters | |
---|---|
Name | Description |
parent | TensorboardExperimentName Required. The resource name of the TensorboardExperiment to create the
TensorboardRuns in. Format:
|
requests | List<CreateTensorboardRunRequest> Required. The request message specifying the TensorboardRuns to create. A maximum of 1000 TensorboardRuns can be created in a batch. |
Returns | |
---|---|
Type | Description |
BatchCreateTensorboardRunsResponse |
batchCreateTensorboardRuns(String parent, List<CreateTensorboardRunRequest> requests)
public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(String parent, List<CreateTensorboardRunRequest> requests)
Batch create TensorboardRuns.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
String parent =
TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString();
List<CreateTensorboardRunRequest> requests = new ArrayList<>();
BatchCreateTensorboardRunsResponse response =
tensorboardServiceClient.batchCreateTensorboardRuns(parent, requests);
}
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the TensorboardExperiment to create the
TensorboardRuns in. Format:
|
requests | List<CreateTensorboardRunRequest> Required. The request message specifying the TensorboardRuns to create. A maximum of 1000 TensorboardRuns can be created in a batch. |
Returns | |
---|---|
Type | Description |
BatchCreateTensorboardRunsResponse |
batchCreateTensorboardRunsCallable()
public final UnaryCallable<BatchCreateTensorboardRunsRequest,BatchCreateTensorboardRunsResponse> batchCreateTensorboardRunsCallable()
Batch create TensorboardRuns.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
BatchCreateTensorboardRunsRequest request =
BatchCreateTensorboardRunsRequest.newBuilder()
.setParent(
TensorboardExperimentName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString())
.addAllRequests(new ArrayList<CreateTensorboardRunRequest>())
.build();
ApiFuture<BatchCreateTensorboardRunsResponse> future =
tensorboardServiceClient.batchCreateTensorboardRunsCallable().futureCall(request);
// Do something.
BatchCreateTensorboardRunsResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<BatchCreateTensorboardRunsRequest,BatchCreateTensorboardRunsResponse> |
batchCreateTensorboardTimeSeries(BatchCreateTensorboardTimeSeriesRequest request)
public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTimeSeries(BatchCreateTensorboardTimeSeriesRequest request)
Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
BatchCreateTensorboardTimeSeriesRequest request =
BatchCreateTensorboardTimeSeriesRequest.newBuilder()
.setParent(
TensorboardExperimentName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString())
.addAllRequests(new ArrayList<CreateTensorboardTimeSeriesRequest>())
.build();
BatchCreateTensorboardTimeSeriesResponse response =
tensorboardServiceClient.batchCreateTensorboardTimeSeries(request);
}
Parameter | |
---|---|
Name | Description |
request | BatchCreateTensorboardTimeSeriesRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
BatchCreateTensorboardTimeSeriesResponse |
batchCreateTensorboardTimeSeries(TensorboardExperimentName parent, List<CreateTensorboardTimeSeriesRequest> requests)
public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTimeSeries(TensorboardExperimentName parent, List<CreateTensorboardTimeSeriesRequest> requests)
Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
TensorboardExperimentName parent =
TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
List<CreateTensorboardTimeSeriesRequest> requests = new ArrayList<>();
BatchCreateTensorboardTimeSeriesResponse response =
tensorboardServiceClient.batchCreateTensorboardTimeSeries(parent, requests);
}
Parameters | |
---|---|
Name | Description |
parent | TensorboardExperimentName Required. The resource name of the TensorboardExperiment to create the
TensorboardTimeSeries in. Format:
|
requests | List<CreateTensorboardTimeSeriesRequest> Required. The request message specifying the TensorboardTimeSeries to create. A maximum of 1000 TensorboardTimeSeries can be created in a batch. |
Returns | |
---|---|
Type | Description |
BatchCreateTensorboardTimeSeriesResponse |
batchCreateTensorboardTimeSeries(String parent, List<CreateTensorboardTimeSeriesRequest> requests)
public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTimeSeries(String parent, List<CreateTensorboardTimeSeriesRequest> requests)
Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
String parent =
TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString();
List<CreateTensorboardTimeSeriesRequest> requests = new ArrayList<>();
BatchCreateTensorboardTimeSeriesResponse response =
tensorboardServiceClient.batchCreateTensorboardTimeSeries(parent, requests);
}
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the TensorboardExperiment to create the
TensorboardTimeSeries in. Format:
|
requests | List<CreateTensorboardTimeSeriesRequest> Required. The request message specifying the TensorboardTimeSeries to create. A maximum of 1000 TensorboardTimeSeries can be created in a batch. |
Returns | |
---|---|
Type | Description |
BatchCreateTensorboardTimeSeriesResponse |
batchCreateTensorboardTimeSeriesCallable()
public final UnaryCallable<BatchCreateTensorboardTimeSeriesRequest,BatchCreateTensorboardTimeSeriesResponse> batchCreateTensorboardTimeSeriesCallable()
Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
BatchCreateTensorboardTimeSeriesRequest request =
BatchCreateTensorboardTimeSeriesRequest.newBuilder()
.setParent(
TensorboardExperimentName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString())
.addAllRequests(new ArrayList<CreateTensorboardTimeSeriesRequest>())
.build();
ApiFuture<BatchCreateTensorboardTimeSeriesResponse> future =
tensorboardServiceClient.batchCreateTensorboardTimeSeriesCallable().futureCall(request);
// Do something.
BatchCreateTensorboardTimeSeriesResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<BatchCreateTensorboardTimeSeriesRequest,BatchCreateTensorboardTimeSeriesResponse> |
batchReadTensorboardTimeSeriesData(BatchReadTensorboardTimeSeriesDataRequest request)
public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTimeSeriesData(BatchReadTensorboardTimeSeriesDataRequest request)
Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
BatchReadTensorboardTimeSeriesDataRequest request =
BatchReadTensorboardTimeSeriesDataRequest.newBuilder()
.setTensorboard(
TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
.addAllTimeSeries(new ArrayList<String>())
.build();
BatchReadTensorboardTimeSeriesDataResponse response =
tensorboardServiceClient.batchReadTensorboardTimeSeriesData(request);
}
Parameter | |
---|---|
Name | Description |
request | BatchReadTensorboardTimeSeriesDataRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
BatchReadTensorboardTimeSeriesDataResponse |
batchReadTensorboardTimeSeriesData(TensorboardName tensorboard)
public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTimeSeriesData(TensorboardName tensorboard)
Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
TensorboardName tensorboard = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
BatchReadTensorboardTimeSeriesDataResponse response =
tensorboardServiceClient.batchReadTensorboardTimeSeriesData(tensorboard);
}
Parameter | |
---|---|
Name | Description |
tensorboard | TensorboardName Required. The resource name of the Tensorboard containing
TensorboardTimeSeries to read data from. Format:
|
Returns | |
---|---|
Type | Description |
BatchReadTensorboardTimeSeriesDataResponse |
batchReadTensorboardTimeSeriesData(String tensorboard)
public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTimeSeriesData(String tensorboard)
Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
String tensorboard =
TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
BatchReadTensorboardTimeSeriesDataResponse response =
tensorboardServiceClient.batchReadTensorboardTimeSeriesData(tensorboard);
}
Parameter | |
---|---|
Name | Description |
tensorboard | String Required. The resource name of the Tensorboard containing
TensorboardTimeSeries to read data from. Format:
|
Returns | |
---|---|
Type | Description |
BatchReadTensorboardTimeSeriesDataResponse |
batchReadTensorboardTimeSeriesDataCallable()
public final UnaryCallable<BatchReadTensorboardTimeSeriesDataRequest,BatchReadTensorboardTimeSeriesDataResponse> batchReadTensorboardTimeSeriesDataCallable()
Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
BatchReadTensorboardTimeSeriesDataRequest request =
BatchReadTensorboardTimeSeriesDataRequest.newBuilder()
.setTensorboard(
TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
.addAllTimeSeries(new ArrayList<String>())
.build();
ApiFuture<BatchReadTensorboardTimeSeriesDataResponse> future =
tensorboardServiceClient.batchReadTensorboardTimeSeriesDataCallable().futureCall(request);
// Do something.
BatchReadTensorboardTimeSeriesDataResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<BatchReadTensorboardTimeSeriesDataRequest,BatchReadTensorboardTimeSeriesDataResponse> |
close()
public final void close()
createTensorboardAsync(CreateTensorboardRequest request)
public final OperationFuture<Tensorboard,CreateTensorboardOperationMetadata> createTensorboardAsync(CreateTensorboardRequest request)
Creates a Tensorboard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
CreateTensorboardRequest request =
CreateTensorboardRequest.newBuilder()
.setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
.setTensorboard(Tensorboard.newBuilder().build())
.build();
Tensorboard response = tensorboardServiceClient.createTensorboardAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request | CreateTensorboardRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Tensorboard,CreateTensorboardOperationMetadata> |
createTensorboardAsync(TensorboardName parent, Tensorboard tensorboard)
public final OperationFuture<Tensorboard,CreateTensorboardOperationMetadata> createTensorboardAsync(TensorboardName parent, Tensorboard tensorboard)
Creates a Tensorboard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
TensorboardName parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
Tensorboard tensorboard = Tensorboard.newBuilder().build();
Tensorboard response =
tensorboardServiceClient.createTensorboardAsync(parent, tensorboard).get();
}
Parameters | |
---|---|
Name | Description |
parent | TensorboardName Required. The resource name of the Location to create the Tensorboard in. Format:
|
tensorboard | Tensorboard Required. The Tensorboard to create. |
Returns | |
---|---|
Type | Description |
OperationFuture<Tensorboard,CreateTensorboardOperationMetadata> |
createTensorboardAsync(String parent, Tensorboard tensorboard)
public final OperationFuture<Tensorboard,CreateTensorboardOperationMetadata> createTensorboardAsync(String parent, Tensorboard tensorboard)
Creates a Tensorboard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
String parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
Tensorboard tensorboard = Tensorboard.newBuilder().build();
Tensorboard response =
tensorboardServiceClient.createTensorboardAsync(parent, tensorboard).get();
}
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the Location to create the Tensorboard in. Format:
|
tensorboard | Tensorboard Required. The Tensorboard to create. |
Returns | |
---|---|
Type | Description |
OperationFuture<Tensorboard,CreateTensorboardOperationMetadata> |
createTensorboardCallable()
public final UnaryCallable<CreateTensorboardRequest,Operation> createTensorboardCallable()
Creates a Tensorboard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient