- 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
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:
- 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.
Implements
BackgroundResourceStatic 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 tensorboardServiceClient = TensorboardServiceClient.create()) {
CreateTensorboardRequest request =
CreateTensorboardRequest.newBuilder()
.setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
.setTensorboard(Tensorboard.newBuilder().build())
.build();
ApiFuture<Operation> future =
tensorboardServiceClient.createTensorboardCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateTensorboardRequest,Operation> |
createTensorboardExperiment(CreateTensorboardExperimentRequest request)
public final TensorboardExperiment createTensorboardExperiment(CreateTensorboardExperimentRequest request)
Creates a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
CreateTensorboardExperimentRequest request =
CreateTensorboardExperimentRequest.newBuilder()
.setParent(
TensorboardExperimentName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString())
.setTensorboardExperiment(TensorboardExperiment.newBuilder().build())
.setTensorboardExperimentId("tensorboardExperimentId1267328197")
.build();
TensorboardExperiment response =
tensorboardServiceClient.createTensorboardExperiment(request);
}
Parameter | |
---|---|
Name | Description |
request | CreateTensorboardExperimentRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
TensorboardExperiment |
createTensorboardExperiment(TensorboardExperimentName parent, TensorboardExperiment tensorboardExperiment, String tensorboardExperimentId)
public final TensorboardExperiment createTensorboardExperiment(TensorboardExperimentName parent, TensorboardExperiment tensorboardExperiment, String tensorboardExperimentId)
Creates a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
TensorboardExperimentName parent =
TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build();
String tensorboardExperimentId = "tensorboardExperimentId1267328197";
TensorboardExperiment response =
tensorboardServiceClient.createTensorboardExperiment(
parent, tensorboardExperiment, tensorboardExperimentId);
}
Parameters | |
---|---|
Name | Description |
parent | TensorboardExperimentName Required. The resource name of the Tensorboard to create the
TensorboardExperiment in. Format:
|
tensorboardExperiment | TensorboardExperiment The TensorboardExperiment to create. |
tensorboardExperimentId | String Required. The ID to use for the Tensorboard experiment, which becomes the final component of the Tensorboard experiment's resource name. This value should be 1-128 characters, and valid characters are /a-z-/. |
Returns | |
---|---|
Type | Description |
TensorboardExperiment |
createTensorboardExperiment(String parent, TensorboardExperiment tensorboardExperiment, String tensorboardExperimentId)
public final TensorboardExperiment createTensorboardExperiment(String parent, TensorboardExperiment tensorboardExperiment, String tensorboardExperimentId)
Creates a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
String parent =
TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString();
TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build();
String tensorboardExperimentId = "tensorboardExperimentId1267328197";
TensorboardExperiment response =
tensorboardServiceClient.createTensorboardExperiment(
parent, tensorboardExperiment, tensorboardExperimentId);
}
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the Tensorboard to create the
TensorboardExperiment in. Format:
|
tensorboardExperiment | TensorboardExperiment The TensorboardExperiment to create. |
tensorboardExperimentId | String Required. The ID to use for the Tensorboard experiment, which becomes the final component of the Tensorboard experiment's resource name. This value should be 1-128 characters, and valid characters are /a-z-/. |
Returns | |
---|---|
Type | Description |
TensorboardExperiment |
createTensorboardExperimentCallable()
public final UnaryCallable<CreateTensorboardExperimentRequest,TensorboardExperiment> createTensorboardExperimentCallable()
Creates a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
CreateTensorboardExperimentRequest request =
CreateTensorboardExperimentRequest.newBuilder()
.setParent(
TensorboardExperimentName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString())
.setTensorboardExperiment(TensorboardExperiment.newBuilder().build())
.setTensorboardExperimentId("tensorboardExperimentId1267328197")
.build();
ApiFuture<TensorboardExperiment> future =
tensorboardServiceClient.createTensorboardExperimentCallable().futureCall(request);
// Do something.
TensorboardExperiment response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateTensorboardExperimentRequest,TensorboardExperiment> |
createTensorboardOperationCallable()
public final OperationCallable<CreateTensorboardRequest,Tensorboard,CreateTensorboardOperationMetadata> createTensorboardOperationCallable()
Creates a Tensorboard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
CreateTensorboardRequest request =
CreateTensorboardRequest.newBuilder()
.setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
.setTensorboard(Tensorboard.newBuilder().build())
.build();
OperationFuture<Tensorboard, CreateTensorboardOperationMetadata> future =
tensorboardServiceClient.createTensorboardOperationCallable().futureCall(request);
// Do something.
Tensorboard response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<CreateTensorboardRequest,Tensorboard,CreateTensorboardOperationMetadata> |
createTensorboardRun(CreateTensorboardRunRequest request)
public final TensorboardRun createTensorboardRun(CreateTensorboardRunRequest request)
Creates a TensorboardRun.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
CreateTensorboardRunRequest request =
CreateTensorboardRunRequest.newBuilder()
.setParent(
TensorboardRunName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
.toString())
.setTensorboardRun(TensorboardRun.newBuilder().build())
.setTensorboardRunId("tensorboardRunId-407822631")
.build();
TensorboardRun response = tensorboardServiceClient.createTensorboardRun(request);
}
Parameter | |
---|---|
Name | Description |
request | CreateTensorboardRunRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
TensorboardRun |
createTensorboardRun(TensorboardRunName parent, TensorboardRun tensorboardRun, String tensorboardRunId)
public final TensorboardRun createTensorboardRun(TensorboardRunName parent, TensorboardRun tensorboardRun, String tensorboardRunId)
Creates a TensorboardRun.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
TensorboardRunName parent =
TensorboardRunName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build();
String tensorboardRunId = "tensorboardRunId-407822631";
TensorboardRun response =
tensorboardServiceClient.createTensorboardRun(parent, tensorboardRun, tensorboardRunId);
}
Parameters | |
---|---|
Name | Description |
parent | TensorboardRunName Required. The resource name of the TensorboardExperiment to create the
TensorboardRun in. Format:
|
tensorboardRun | TensorboardRun Required. The TensorboardRun to create. |
tensorboardRunId | String Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name. This value should be 1-128 characters, and valid characters are /a-z-/. |
Returns | |
---|---|
Type | Description |
TensorboardRun |
createTensorboardRun(String parent, TensorboardRun tensorboardRun, String tensorboardRunId)
public final TensorboardRun createTensorboardRun(String parent, TensorboardRun tensorboardRun, String tensorboardRunId)
Creates a TensorboardRun.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
String parent =
TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
.toString();
TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build();
String tensorboardRunId = "tensorboardRunId-407822631";
TensorboardRun response =
tensorboardServiceClient.createTensorboardRun(parent, tensorboardRun, tensorboardRunId);
}
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the TensorboardExperiment to create the
TensorboardRun in. Format:
|
tensorboardRun | TensorboardRun Required. The TensorboardRun to create. |
tensorboardRunId | String Required. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run's resource name. This value should be 1-128 characters, and valid characters are /a-z-/. |
Returns | |
---|---|
Type | Description |
TensorboardRun |
createTensorboardRunCallable()
public final UnaryCallable<CreateTensorboardRunRequest,TensorboardRun> createTensorboardRunCallable()
Creates a TensorboardRun.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
CreateTensorboardRunRequest request =
CreateTensorboardRunRequest.newBuilder()
.setParent(
TensorboardRunName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
.toString())
.setTensorboardRun(TensorboardRun.newBuilder().build())
.setTensorboardRunId("tensorboardRunId-407822631")
.build();
ApiFuture<TensorboardRun> future =
tensorboardServiceClient.createTensorboardRunCallable().futureCall(request);
// Do something.
TensorboardRun response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateTensorboardRunRequest,TensorboardRun> |
createTensorboardTimeSeries(CreateTensorboardTimeSeriesRequest request)
public final TensorboardTimeSeries createTensorboardTimeSeries(CreateTensorboardTimeSeriesRequest request)
Creates a TensorboardTimeSeries.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
CreateTensorboardTimeSeriesRequest request =
CreateTensorboardTimeSeriesRequest.newBuilder()
.setParent(
TensorboardTimeSeriesName.of(
"[PROJECT]",
"[LOCATION]",
"[TENSORBOARD]",
"[EXPERIMENT]",
"[RUN]",
"[TIME_SERIES]")
.toString())
.setTensorboardTimeSeriesId("tensorboardTimeSeriesId-913380692")
.setTensorboardTimeSeries(TensorboardTimeSeries.newBuilder().build())
.build();
TensorboardTimeSeries response =
tensorboardServiceClient.createTensorboardTimeSeries(request);
}
Parameter | |
---|---|
Name | Description |
request | CreateTensorboardTimeSeriesRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
TensorboardTimeSeries |
createTensorboardTimeSeries(TensorboardTimeSeriesName parent, TensorboardTimeSeries tensorboardTimeSeries)
public final TensorboardTimeSeries createTensorboardTimeSeries(TensorboardTimeSeriesName parent, TensorboardTimeSeries tensorboardTimeSeries)
Creates a TensorboardTimeSeries.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
TensorboardTimeSeriesName parent =
TensorboardTimeSeriesName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build();
TensorboardTimeSeries response =
tensorboardServiceClient.createTensorboardTimeSeries(parent, tensorboardTimeSeries);
}
Parameters | |
---|---|
Name | Description |
parent | TensorboardTimeSeriesName Required. The resource name of the TensorboardRun to create the
TensorboardTimeSeries in. Format:
|
tensorboardTimeSeries | TensorboardTimeSeries Required. The TensorboardTimeSeries to create. |
Returns | |
---|---|
Type | Description |
TensorboardTimeSeries |
createTensorboardTimeSeries(String parent, TensorboardTimeSeries tensorboardTimeSeries)
public final TensorboardTimeSeries createTensorboardTimeSeries(String parent, TensorboardTimeSeries tensorboardTimeSeries)
Creates a TensorboardTimeSeries.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
String parent =
TensorboardTimeSeriesName.of(
"[PROJECT]",
"[LOCATION]",
"[TENSORBOARD]",
"[EXPERIMENT]",
"[RUN]",
"[TIME_SERIES]")
.toString();
TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build();
TensorboardTimeSeries response =
tensorboardServiceClient.createTensorboardTimeSeries(parent, tensorboardTimeSeries);
}
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the TensorboardRun to create the
TensorboardTimeSeries in. Format:
|
tensorboardTimeSeries | TensorboardTimeSeries Required. The TensorboardTimeSeries to create. |
Returns | |
---|---|
Type | Description |
TensorboardTimeSeries |
createTensorboardTimeSeriesCallable()
public final UnaryCallable<CreateTensorboardTimeSeriesRequest,TensorboardTimeSeries> createTensorboardTimeSeriesCallable()
Creates a TensorboardTimeSeries.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
CreateTensorboardTimeSeriesRequest request =
CreateTensorboardTimeSeriesRequest.newBuilder()
.setParent(
TensorboardTimeSeriesName.of(
"[PROJECT]",
"[LOCATION]",
"[TENSORBOARD]",
"[EXPERIMENT]",
"[RUN]",
"[TIME_SERIES]")
.toString())
.setTensorboardTimeSeriesId("tensorboardTimeSeriesId-913380692")
.setTensorboardTimeSeries(TensorboardTimeSeries.newBuilder().build())
.build();
ApiFuture<TensorboardTimeSeries> future =
tensorboardServiceClient.createTensorboardTimeSeriesCallable().futureCall(request);
// Do something.
TensorboardTimeSeries response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateTensorboardTimeSeriesRequest,TensorboardTimeSeries> |
deleteTensorboardAsync(DeleteTensorboardRequest request)
public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardAsync(DeleteTensorboardRequest request)
Deletes a Tensorboard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
DeleteTensorboardRequest request =
DeleteTensorboardRequest.newBuilder()
.setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
.build();
tensorboardServiceClient.deleteTensorboardAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request | DeleteTensorboardRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,DeleteOperationMetadata> |
deleteTensorboardAsync(TensorboardName name)
public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardAsync(TensorboardName name)
Deletes a Tensorboard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
tensorboardServiceClient.deleteTensorboardAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name | TensorboardName Required. The name of the Tensorboard to be deleted. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,DeleteOperationMetadata> |
deleteTensorboardAsync(String name)
public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardAsync(String name)
Deletes a Tensorboard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
String name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
tensorboardServiceClient.deleteTensorboardAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the Tensorboard to be deleted. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,DeleteOperationMetadata> |
deleteTensorboardCallable()
public final UnaryCallable<DeleteTensorboardRequest,Operation> deleteTensorboardCallable()
Deletes a Tensorboard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
DeleteTensorboardRequest request =
DeleteTensorboardRequest.newBuilder()
.setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
.build();
ApiFuture<Operation> future =
tensorboardServiceClient.deleteTensorboardCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteTensorboardRequest,Operation> |
deleteTensorboardExperimentAsync(DeleteTensorboardExperimentRequest request)
public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardExperimentAsync(DeleteTensorboardExperimentRequest request)
Deletes a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
DeleteTensorboardExperimentRequest request =
DeleteTensorboardExperimentRequest.newBuilder()
.setName(
TensorboardExperimentName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString())
.build();
tensorboardServiceClient.deleteTensorboardExperimentAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request | DeleteTensorboardExperimentRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,DeleteOperationMetadata> |
deleteTensorboardExperimentAsync(TensorboardExperimentName name)
public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardExperimentAsync(TensorboardExperimentName name)
Deletes a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
TensorboardExperimentName name =
TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
tensorboardServiceClient.deleteTensorboardExperimentAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name | TensorboardExperimentName Required. The name of the TensorboardExperiment to be deleted. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,DeleteOperationMetadata> |
deleteTensorboardExperimentAsync(String name)
public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardExperimentAsync(String name)
Deletes a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
String name =
TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString();
tensorboardServiceClient.deleteTensorboardExperimentAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the TensorboardExperiment to be deleted. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,DeleteOperationMetadata> |
deleteTensorboardExperimentCallable()
public final UnaryCallable<DeleteTensorboardExperimentRequest,Operation> deleteTensorboardExperimentCallable()
Deletes a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
DeleteTensorboardExperimentRequest request =
DeleteTensorboardExperimentRequest.newBuilder()
.setName(
TensorboardExperimentName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString())
.build();
ApiFuture<Operation> future =
tensorboardServiceClient.deleteTensorboardExperimentCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteTensorboardExperimentRequest,Operation> |
deleteTensorboardExperimentOperationCallable()
public final OperationCallable<DeleteTensorboardExperimentRequest,Empty,DeleteOperationMetadata> deleteTensorboardExperimentOperationCallable()
Deletes a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
DeleteTensorboardExperimentRequest request =
DeleteTensorboardExperimentRequest.newBuilder()
.setName(
TensorboardExperimentName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString())
.build();
OperationFuture<Empty, DeleteOperationMetadata> future =
tensorboardServiceClient
.deleteTensorboardExperimentOperationCallable()
.futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteTensorboardExperimentRequest,Empty,DeleteOperationMetadata> |
deleteTensorboardOperationCallable()
public final OperationCallable<DeleteTensorboardRequest,Empty,DeleteOperationMetadata> deleteTensorboardOperationCallable()
Deletes a Tensorboard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
DeleteTensorboardRequest request =
DeleteTensorboardRequest.newBuilder()
.setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
.build();
OperationFuture<Empty, DeleteOperationMetadata> future =
tensorboardServiceClient.deleteTensorboardOperationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteTensorboardRequest,Empty,DeleteOperationMetadata> |
deleteTensorboardRunAsync(DeleteTensorboardRunRequest request)
public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardRunAsync(DeleteTensorboardRunRequest request)
Deletes a TensorboardRun.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
DeleteTensorboardRunRequest request =
DeleteTensorboardRunRequest.newBuilder()
.setName(
TensorboardRunName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
.toString())
.build();
tensorboardServiceClient.deleteTensorboardRunAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request | DeleteTensorboardRunRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,DeleteOperationMetadata> |
deleteTensorboardRunAsync(TensorboardRunName name)
public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardRunAsync(TensorboardRunName name)
Deletes a TensorboardRun.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
TensorboardRunName name =
TensorboardRunName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
tensorboardServiceClient.deleteTensorboardRunAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name | TensorboardRunName Required. The name of the TensorboardRun to be deleted. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,DeleteOperationMetadata> |
deleteTensorboardRunAsync(String name)
public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardRunAsync(String name)
Deletes a TensorboardRun.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
String name =
TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
.toString();
tensorboardServiceClient.deleteTensorboardRunAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the TensorboardRun to be deleted. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,DeleteOperationMetadata> |
deleteTensorboardRunCallable()
public final UnaryCallable<DeleteTensorboardRunRequest,Operation> deleteTensorboardRunCallable()
Deletes a TensorboardRun.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
DeleteTensorboardRunRequest request =
DeleteTensorboardRunRequest.newBuilder()
.setName(
TensorboardRunName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
.toString())
.build();
ApiFuture<Operation> future =
tensorboardServiceClient.deleteTensorboardRunCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteTensorboardRunRequest,Operation> |
deleteTensorboardRunOperationCallable()
public final OperationCallable<DeleteTensorboardRunRequest,Empty,DeleteOperationMetadata> deleteTensorboardRunOperationCallable()
Deletes a TensorboardRun.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
DeleteTensorboardRunRequest request =
DeleteTensorboardRunRequest.newBuilder()
.setName(
TensorboardRunName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
.toString())
.build();
OperationFuture<Empty, DeleteOperationMetadata> future =
tensorboardServiceClient.deleteTensorboardRunOperationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteTensorboardRunRequest,Empty,DeleteOperationMetadata> |
deleteTensorboardTimeSeriesAsync(DeleteTensorboardTimeSeriesRequest request)
public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardTimeSeriesAsync(DeleteTensorboardTimeSeriesRequest request)
Deletes a TensorboardTimeSeries.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
DeleteTensorboardTimeSeriesRequest request =
DeleteTensorboardTimeSeriesRequest.newBuilder()
.setName(
TensorboardTimeSeriesName.of(
"[PROJECT]",
"[LOCATION]",
"[TENSORBOARD]",
"[EXPERIMENT]",
"[RUN]",
"[TIME_SERIES]")
.toString())
.build();
tensorboardServiceClient.deleteTensorboardTimeSeriesAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request | DeleteTensorboardTimeSeriesRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,DeleteOperationMetadata> |
deleteTensorboardTimeSeriesAsync(TensorboardTimeSeriesName name)
public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardTimeSeriesAsync(TensorboardTimeSeriesName name)
Deletes a TensorboardTimeSeries.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
TensorboardTimeSeriesName name =
TensorboardTimeSeriesName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
tensorboardServiceClient.deleteTensorboardTimeSeriesAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name | TensorboardTimeSeriesName Required. The name of the TensorboardTimeSeries to be deleted. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,DeleteOperationMetadata> |
deleteTensorboardTimeSeriesAsync(String name)
public final OperationFuture<Empty,DeleteOperationMetadata> deleteTensorboardTimeSeriesAsync(String name)
Deletes a TensorboardTimeSeries.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
String name =
TensorboardTimeSeriesName.of(
"[PROJECT]",
"[LOCATION]",
"[TENSORBOARD]",
"[EXPERIMENT]",
"[RUN]",
"[TIME_SERIES]")
.toString();
tensorboardServiceClient.deleteTensorboardTimeSeriesAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the TensorboardTimeSeries to be deleted. Format:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,DeleteOperationMetadata> |
deleteTensorboardTimeSeriesCallable()
public final UnaryCallable<DeleteTensorboardTimeSeriesRequest,Operation> deleteTensorboardTimeSeriesCallable()
Deletes a TensorboardTimeSeries.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
DeleteTensorboardTimeSeriesRequest request =
DeleteTensorboardTimeSeriesRequest.newBuilder()
.setName(
TensorboardTimeSeriesName.of(
"[PROJECT]",
"[LOCATION]",
"[TENSORBOARD]",
"[EXPERIMENT]",
"[RUN]",
"[TIME_SERIES]")
.toString())
.build();
ApiFuture<Operation> future =
tensorboardServiceClient.deleteTensorboardTimeSeriesCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteTensorboardTimeSeriesRequest,Operation> |
deleteTensorboardTimeSeriesOperationCallable()
public final OperationCallable<DeleteTensorboardTimeSeriesRequest,Empty,DeleteOperationMetadata> deleteTensorboardTimeSeriesOperationCallable()
Deletes a TensorboardTimeSeries.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
DeleteTensorboardTimeSeriesRequest request =
DeleteTensorboardTimeSeriesRequest.newBuilder()
.setName(
TensorboardTimeSeriesName.of(
"[PROJECT]",
"[LOCATION]",
"[TENSORBOARD]",
"[EXPERIMENT]",
"[RUN]",
"[TIME_SERIES]")
.toString())
.build();
OperationFuture<Empty, DeleteOperationMetadata> future =
tensorboardServiceClient
.deleteTensorboardTimeSeriesOperationCallable()
.futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteTensorboardTimeSeriesRequest,Empty,DeleteOperationMetadata> |
exportTensorboardTimeSeriesData(ExportTensorboardTimeSeriesDataRequest request)
public final TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeSeriesData(ExportTensorboardTimeSeriesDataRequest request)
Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
ExportTensorboardTimeSeriesDataRequest request =
ExportTensorboardTimeSeriesDataRequest.newBuilder()
.setTensorboardTimeSeries(
TensorboardTimeSeriesName.of(
"[PROJECT]",
"[LOCATION]",
"[TENSORBOARD]",
"[EXPERIMENT]",
"[RUN]",
"[TIME_SERIES]")
.toString())
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setOrderBy("orderBy-1207110587")
.build();
for (TimeSeriesDataPoint element :
tensorboardServiceClient.exportTensorboardTimeSeriesData(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request | ExportTensorboardTimeSeriesDataRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse |
exportTensorboardTimeSeriesData(TensorboardTimeSeriesName tensorboardTimeSeries)
public final TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeSeriesData(TensorboardTimeSeriesName tensorboardTimeSeries)
Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
TensorboardTimeSeriesName tensorboardTimeSeries =
TensorboardTimeSeriesName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
for (TimeSeriesDataPoint element :
tensorboardServiceClient
.exportTensorboardTimeSeriesData(tensorboardTimeSeries)
.iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
tensorboardTimeSeries | TensorboardTimeSeriesName Required. The resource name of the TensorboardTimeSeries to export
data from. Format:
|
Returns | |
---|---|
Type | Description |
TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse |
exportTensorboardTimeSeriesData(String tensorboardTimeSeries)
public final TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeSeriesData(String tensorboardTimeSeries)
Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
String tensorboardTimeSeries =
TensorboardTimeSeriesName.of(
"[PROJECT]",
"[LOCATION]",
"[TENSORBOARD]",
"[EXPERIMENT]",
"[RUN]",
"[TIME_SERIES]")
.toString();
for (TimeSeriesDataPoint element :
tensorboardServiceClient
.exportTensorboardTimeSeriesData(tensorboardTimeSeries)
.iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
tensorboardTimeSeries | String Required. The resource name of the TensorboardTimeSeries to export
data from. Format:
|
Returns | |
---|---|
Type | Description |
TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse |
exportTensorboardTimeSeriesDataCallable()
public final UnaryCallable<ExportTensorboardTimeSeriesDataRequest,ExportTensorboardTimeSeriesDataResponse> exportTensorboardTimeSeriesDataCallable()
Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
ExportTensorboardTimeSeriesDataRequest request =
ExportTensorboardTimeSeriesDataRequest.newBuilder()
.setTensorboardTimeSeries(
TensorboardTimeSeriesName.of(
"[PROJECT]",
"[LOCATION]",
"[TENSORBOARD]",
"[EXPERIMENT]",
"[RUN]",
"[TIME_SERIES]")
.toString())
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ExportTensorboardTimeSeriesDataResponse response =
tensorboardServiceClient.exportTensorboardTimeSeriesDataCallable().call(request);
for (TimeSeriesDataPoint element : response.getTimeSeriesDataPointsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ExportTensorboardTimeSeriesDataRequest,ExportTensorboardTimeSeriesDataResponse> |
exportTensorboardTimeSeriesDataPagedCallable()
public final UnaryCallable<ExportTensorboardTimeSeriesDataRequest,TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse> exportTensorboardTimeSeriesDataPagedCallable()
Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
ExportTensorboardTimeSeriesDataRequest request =
ExportTensorboardTimeSeriesDataRequest.newBuilder()
.setTensorboardTimeSeries(
TensorboardTimeSeriesName.of(
"[PROJECT]",
"[LOCATION]",
"[TENSORBOARD]",
"[EXPERIMENT]",
"[RUN]",
"[TIME_SERIES]")
.toString())
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<TimeSeriesDataPoint> future =
tensorboardServiceClient
.exportTensorboardTimeSeriesDataPagedCallable()
.futureCall(request);
// Do something.
for (TimeSeriesDataPoint element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ExportTensorboardTimeSeriesDataRequest,ExportTensorboardTimeSeriesDataPagedResponse> |
getIamPolicy(GetIamPolicyRequest request)
public final Policy getIamPolicy(GetIamPolicyRequest request)
Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(
EndpointName.ofProjectLocationEndpointName(
"[PROJECT]", "[LOCATION]", "[ENDPOINT]")
.toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
Policy response = tensorboardServiceClient.getIamPolicy(request);
}
Parameter | |
---|---|
Name | Description |
request | com.google.iam.v1.GetIamPolicyRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
com.google.iam.v1.Policy |
getIamPolicyCallable()
public final UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(
EndpointName.ofProjectLocationEndpointName(
"[PROJECT]", "[LOCATION]", "[ENDPOINT]")
.toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
ApiFuture<Policy> future =
tensorboardServiceClient.getIamPolicyCallable().futureCall(request);
// Do something.
Policy response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getLocation(GetLocationRequest request)
public final Location getLocation(GetLocationRequest request)
Gets information about a location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
Location response = tensorboardServiceClient.getLocation(request);
}
Parameter | |
---|---|
Name | Description |
request | com.google.cloud.location.GetLocationRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
com.google.cloud.location.Location |
getLocationCallable()
public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Gets information about a location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
ApiFuture<Location> future =
tensorboardServiceClient.getLocationCallable().futureCall(request);
// Do something.
Location response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getOperationsClient()
public final OperationsClient getOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.
Returns | |
---|---|
Type | Description |
OperationsClient |
getSettings()
public final TensorboardServiceSettings getSettings()
Returns | |
---|---|
Type | Description |
TensorboardServiceSettings |
getStub()
public TensorboardServiceStub getStub()
Returns | |
---|---|
Type | Description |
TensorboardServiceStub |
getTensorboard(GetTensorboardRequest request)
public final Tensorboard getTensorboard(GetTensorboardRequest request)
Gets a Tensorboard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
GetTensorboardRequest request =
GetTensorboardRequest.newBuilder()
.setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
.build();
Tensorboard response = tensorboardServiceClient.getTensorboard(request);
}
Parameter | |
---|---|
Name | Description |
request | GetTensorboardRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Tensorboard |
getTensorboard(TensorboardName name)
public final Tensorboard getTensorboard(TensorboardName name)
Gets a Tensorboard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
Tensorboard response = tensorboardServiceClient.getTensorboard(name);
}
Parameter | |
---|---|
Name | Description |
name | TensorboardName Required. The name of the Tensorboard resource. Format:
|
Returns | |
---|---|
Type | Description |
Tensorboard |
getTensorboard(String name)
public final Tensorboard getTensorboard(String name)
Gets a Tensorboard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
String name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
Tensorboard response = tensorboardServiceClient.getTensorboard(name);
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the Tensorboard resource. Format:
|
Returns | |
---|---|
Type | Description |
Tensorboard |
getTensorboardCallable()
public final UnaryCallable<GetTensorboardRequest,Tensorboard> getTensorboardCallable()
Gets a Tensorboard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
GetTensorboardRequest request =
GetTensorboardRequest.newBuilder()
.setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
.build();
ApiFuture<Tensorboard> future =
tensorboardServiceClient.getTensorboardCallable().futureCall(request);
// Do something.
Tensorboard response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetTensorboardRequest,Tensorboard> |
getTensorboardExperiment(GetTensorboardExperimentRequest request)
public final TensorboardExperiment getTensorboardExperiment(GetTensorboardExperimentRequest request)
Gets a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
GetTensorboardExperimentRequest request =
GetTensorboardExperimentRequest.newBuilder()
.setName(
TensorboardExperimentName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString())
.build();
TensorboardExperiment response = tensorboardServiceClient.getTensorboardExperiment(request);
}
Parameter | |
---|---|
Name | Description |
request | GetTensorboardExperimentRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
TensorboardExperiment |
getTensorboardExperiment(TensorboardExperimentName name)
public final TensorboardExperiment getTensorboardExperiment(TensorboardExperimentName name)
Gets a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
TensorboardExperimentName name =
TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
TensorboardExperiment response = tensorboardServiceClient.getTensorboardExperiment(name);
}
Parameter | |
---|---|
Name | Description |
name | TensorboardExperimentName Required. The name of the TensorboardExperiment resource. Format:
|
Returns | |
---|---|
Type | Description |
TensorboardExperiment |
getTensorboardExperiment(String name)
public final TensorboardExperiment getTensorboardExperiment(String name)
Gets a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
String name =
TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString();
TensorboardExperiment response = tensorboardServiceClient.getTensorboardExperiment(name);
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the TensorboardExperiment resource. Format:
|
Returns | |
---|---|
Type | Description |
TensorboardExperiment |
getTensorboardExperimentCallable()
public final UnaryCallable<GetTensorboardExperimentRequest,TensorboardExperiment> getTensorboardExperimentCallable()
Gets a TensorboardExperiment.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
GetTensorboardExperimentRequest request =
GetTensorboardExperimentRequest.newBuilder()
.setName(
TensorboardExperimentName.of(
"[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
.toString())
.build();
ApiFuture<TensorboardExperiment> future =
tensorboardServiceClient.getTensorboardExperimentCallable().futureCall(request);
// Do something.
TensorboardExperiment response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetTensorboardExperimentRequest,TensorboardExperiment> |
getTensorboardRun(GetTensorboardRunRequest request)
public final TensorboardRun getTensorboardRun(GetTensorboardRunRequest request)
Gets a TensorboardRun.
Sample code: