{@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
- * String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Featurestore featurestore = Featurestore.newBuilder().build();
* Featurestore response =
* featurestoreServiceClient.createFeaturestoreAsync(parent, featurestore).get();
@@ -236,8 +236,7 @@ public final OperationsClient getOperationsClient() {
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* CreateFeaturestoreRequest request =
* CreateFeaturestoreRequest.newBuilder()
- * .setParent(
- * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setFeaturestore(Featurestore.newBuilder().build())
* .setFeaturestoreId("featurestoreId-1315851738")
* .build();
@@ -263,8 +262,7 @@ public final OperationsClient getOperationsClient() {
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* CreateFeaturestoreRequest request =
* CreateFeaturestoreRequest.newBuilder()
- * .setParent(
- * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setFeaturestore(Featurestore.newBuilder().build())
* .setFeaturestoreId("featurestoreId-1315851738")
* .build();
@@ -291,8 +289,7 @@ public final OperationsClient getOperationsClient() {
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* CreateFeaturestoreRequest request =
* CreateFeaturestoreRequest.newBuilder()
- * .setParent(
- * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setFeaturestore(Featurestore.newBuilder().build())
* .setFeaturestoreId("featurestoreId-1315851738")
* .build();
@@ -432,7 +429,7 @@ public final ListFeaturestoresPagedResponse listFeaturestores(LocationName paren
*
* {@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
- * String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (Featurestore element :
* featurestoreServiceClient.listFeaturestores(parent).iterateAll()) {
* // doThingsWith(element);
@@ -460,8 +457,7 @@ public final ListFeaturestoresPagedResponse listFeaturestores(String parent) {
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* ListFeaturestoresRequest request =
* ListFeaturestoresRequest.newBuilder()
- * .setParent(
- * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setFilter("filter-1274492040")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
@@ -492,8 +488,7 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* ListFeaturestoresRequest request =
* ListFeaturestoresRequest.newBuilder()
- * .setParent(
- * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setFilter("filter-1274492040")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
@@ -524,8 +519,7 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* ListFeaturestoresRequest request =
* ListFeaturestoresRequest.newBuilder()
- * .setParent(
- * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setFilter("filter-1274492040")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
@@ -1124,9 +1118,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(FeaturestoreName paren
*
* {@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
- * String parent =
- * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
- * .toString();
+ * String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
* for (EntityType element : featurestoreServiceClient.listEntityTypes(parent).iterateAll()) {
* // doThingsWith(element);
* }
@@ -1153,8 +1145,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(String parent) {
* ListEntityTypesRequest request =
* ListEntityTypesRequest.newBuilder()
* .setParent(
- * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
- * .toString())
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
* .setFilter("filter-1274492040")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
@@ -1185,8 +1176,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest
* ListEntityTypesRequest request =
* ListEntityTypesRequest.newBuilder()
* .setParent(
- * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
- * .toString())
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
* .setFilter("filter-1274492040")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
@@ -1218,8 +1208,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest
* ListEntityTypesRequest request =
* ListEntityTypesRequest.newBuilder()
* .setParent(
- * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
- * .toString())
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
* .setFilter("filter-1274492040")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
@@ -1957,7 +1946,7 @@ public final ListFeaturesPagedResponse listFeatures(EntityTypeName parent) {
* {@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* String parent =
- * FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
* .toString();
* for (Feature element : featurestoreServiceClient.listFeatures(parent).iterateAll()) {
* // doThingsWith(element);
@@ -1985,8 +1974,7 @@ public final ListFeaturesPagedResponse listFeatures(String parent) {
* ListFeaturesRequest request =
* ListFeaturesRequest.newBuilder()
* .setParent(
- * FeatureName.of(
- * "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
* .toString())
* .setFilter("filter-1274492040")
* .setPageSize(883849137)
@@ -2019,8 +2007,7 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request)
* ListFeaturesRequest request =
* ListFeaturesRequest.newBuilder()
* .setParent(
- * FeatureName.of(
- * "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
* .toString())
* .setFilter("filter-1274492040")
* .setPageSize(883849137)
@@ -2054,8 +2041,7 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request)
* ListFeaturesRequest request =
* ListFeaturesRequest.newBuilder()
* .setParent(
- * FeatureName.of(
- * "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
* .toString())
* .setFilter("filter-1274492040")
* .setPageSize(883849137)
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java
index a3769c0b1..fd9a6cde9 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java
@@ -954,7 +954,7 @@ public final ListArtifactsPagedResponse listArtifacts(MetadataStoreName parent)
* {@code
* try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
* String parent =
- * ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]").toString();
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
* for (Artifact element : metadataServiceClient.listArtifacts(parent).iterateAll()) {
* // doThingsWith(element);
* }
@@ -981,8 +981,7 @@ public final ListArtifactsPagedResponse listArtifacts(String parent) {
* ListArtifactsRequest request =
* ListArtifactsRequest.newBuilder()
* .setParent(
- * ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
@@ -1011,8 +1010,7 @@ public final ListArtifactsPagedResponse listArtifacts(ListArtifactsRequest reque
* ListArtifactsRequest request =
* ListArtifactsRequest.newBuilder()
* .setParent(
- * ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
@@ -1042,8 +1040,7 @@ public final ListArtifactsPagedResponse listArtifacts(ListArtifactsRequest reque
* ListArtifactsRequest request =
* ListArtifactsRequest.newBuilder()
* .setParent(
- * ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
@@ -1310,7 +1307,7 @@ public final OperationFuture pur
* {@code
* try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
* String parent =
- * ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]").toString();
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
* PurgeArtifactsResponse response = metadataServiceClient.purgeArtifactsAsync(parent).get();
* }
* }
@@ -1336,8 +1333,7 @@ public final OperationFuture pur
* PurgeArtifactsRequest request =
* PurgeArtifactsRequest.newBuilder()
* .setParent(
- * ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setFilter("filter-1274492040")
* .setForce(true)
* .build();
@@ -1364,8 +1360,7 @@ public final OperationFuture pur
* PurgeArtifactsRequest request =
* PurgeArtifactsRequest.newBuilder()
* .setParent(
- * ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setFilter("filter-1274492040")
* .setForce(true)
* .build();
@@ -1393,8 +1388,7 @@ public final OperationFuture pur
* PurgeArtifactsRequest request =
* PurgeArtifactsRequest.newBuilder()
* .setParent(
- * ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setFilter("filter-1274492040")
* .setForce(true)
* .build();
@@ -1666,7 +1660,7 @@ public final ListContextsPagedResponse listContexts(MetadataStoreName parent) {
* {@code
* try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
* String parent =
- * ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
* for (Context element : metadataServiceClient.listContexts(parent).iterateAll()) {
* // doThingsWith(element);
* }
@@ -1693,8 +1687,7 @@ public final ListContextsPagedResponse listContexts(String parent) {
* ListContextsRequest request =
* ListContextsRequest.newBuilder()
* .setParent(
- * ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
@@ -1723,8 +1716,7 @@ public final ListContextsPagedResponse listContexts(ListContextsRequest request)
* ListContextsRequest request =
* ListContextsRequest.newBuilder()
* .setParent(
- * ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
@@ -1754,8 +1746,7 @@ public final ListContextsPagedResponse listContexts(ListContextsRequest request)
* ListContextsRequest request =
* ListContextsRequest.newBuilder()
* .setParent(
- * ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
@@ -2022,7 +2013,7 @@ public final OperationFuture purge
* {@code
* try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
* String parent =
- * ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
* PurgeContextsResponse response = metadataServiceClient.purgeContextsAsync(parent).get();
* }
* }
@@ -2048,8 +2039,7 @@ public final OperationFuture purge
* PurgeContextsRequest request =
* PurgeContextsRequest.newBuilder()
* .setParent(
- * ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setFilter("filter-1274492040")
* .setForce(true)
* .build();
@@ -2076,8 +2066,7 @@ public final OperationFuture purge
* PurgeContextsRequest request =
* PurgeContextsRequest.newBuilder()
* .setParent(
- * ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setFilter("filter-1274492040")
* .setForce(true)
* .build();
@@ -2104,8 +2093,7 @@ public final OperationFuture purge
* PurgeContextsRequest request =
* PurgeContextsRequest.newBuilder()
* .setParent(
- * ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setFilter("filter-1274492040")
* .setForce(true)
* .build();
@@ -2762,7 +2750,7 @@ public final ListExecutionsPagedResponse listExecutions(MetadataStoreName parent
* {@code
* try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
* String parent =
- * ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]").toString();
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
* for (Execution element : metadataServiceClient.listExecutions(parent).iterateAll()) {
* // doThingsWith(element);
* }
@@ -2789,8 +2777,7 @@ public final ListExecutionsPagedResponse listExecutions(String parent) {
* ListExecutionsRequest request =
* ListExecutionsRequest.newBuilder()
* .setParent(
- * ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
@@ -2819,8 +2806,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
* ListExecutionsRequest request =
* ListExecutionsRequest.newBuilder()
* .setParent(
- * ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
@@ -2850,8 +2836,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
* ListExecutionsRequest request =
* ListExecutionsRequest.newBuilder()
* .setParent(
- * ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
@@ -3122,7 +3107,7 @@ public final UnaryCallable deleteExecutionCal
* {@code
* try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
* String parent =
- * ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]").toString();
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
* PurgeExecutionsResponse response = metadataServiceClient.purgeExecutionsAsync(parent).get();
* }
* }
@@ -3148,8 +3133,7 @@ public final UnaryCallable deleteExecutionCal
* PurgeExecutionsRequest request =
* PurgeExecutionsRequest.newBuilder()
* .setParent(
- * ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setFilter("filter-1274492040")
* .setForce(true)
* .build();
@@ -3176,8 +3160,7 @@ public final UnaryCallable deleteExecutionCal
* PurgeExecutionsRequest request =
* PurgeExecutionsRequest.newBuilder()
* .setParent(
- * ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setFilter("filter-1274492040")
* .setForce(true)
* .build();
@@ -3205,8 +3188,7 @@ public final UnaryCallable deleteExecutionCal
* PurgeExecutionsRequest request =
* PurgeExecutionsRequest.newBuilder()
* .setParent(
- * ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setFilter("filter-1274492040")
* .setForce(true)
* .build();
@@ -3725,8 +3707,7 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(MetadataStoreN
* {@code
* try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
* String parent =
- * MetadataSchemaName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]")
- * .toString();
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
* for (MetadataSchema element :
* metadataServiceClient.listMetadataSchemas(parent).iterateAll()) {
* // doThingsWith(element);
@@ -3755,9 +3736,7 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(String parent)
* ListMetadataSchemasRequest request =
* ListMetadataSchemasRequest.newBuilder()
* .setParent(
- * MetadataSchemaName.of(
- * "[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
@@ -3788,9 +3767,7 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(
* ListMetadataSchemasRequest request =
* ListMetadataSchemasRequest.newBuilder()
* .setParent(
- * MetadataSchemaName.of(
- * "[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
@@ -3820,9 +3797,7 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(
* ListMetadataSchemasRequest request =
* ListMetadataSchemasRequest.newBuilder()
* .setParent(
- * MetadataSchemaName.of(
- * "[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]")
- * .toString())
+ * MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java
new file mode 100644
index 000000000..aa401c669
--- /dev/null
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java
@@ -0,0 +1,4211 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.aiplatform.v1;
+
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.aiplatform.v1.stub.TensorboardServiceStub;
+import com.google.cloud.aiplatform.v1.stub.TensorboardServiceStubSettings;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.google.longrunning.Operation;
+import com.google.longrunning.OperationsClient;
+import com.google.protobuf.Empty;
+import com.google.protobuf.FieldMask;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * 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:
+ *
+ *
{@code
+ * 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:
+ *
+ *
{@code
+ * TensorboardServiceSettings tensorboardServiceSettings =
+ * TensorboardServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * TensorboardServiceClient tensorboardServiceClient =
+ * TensorboardServiceClient.create(tensorboardServiceSettings);
+ * }
+ *
+ * To customize the endpoint:
+ *
+ *
{@code
+ * 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.
+ */
+@Generated("by gapic-generator-java")
+public class TensorboardServiceClient implements BackgroundResource {
+ private final TensorboardServiceSettings settings;
+ private final TensorboardServiceStub stub;
+ private final OperationsClient operationsClient;
+
+ /** Constructs an instance of TensorboardServiceClient with default settings. */
+ public static final TensorboardServiceClient create() throws IOException {
+ return create(TensorboardServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * 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.
+ */
+ public static final TensorboardServiceClient create(TensorboardServiceSettings settings)
+ throws IOException {
+ return new TensorboardServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of TensorboardServiceClient, using the given stub for making calls. This
+ * is for advanced usage - prefer using create(TensorboardServiceSettings).
+ */
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public static final TensorboardServiceClient create(TensorboardServiceStub stub) {
+ return new TensorboardServiceClient(stub);
+ }
+
+ /**
+ * 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.
+ */
+ protected TensorboardServiceClient(TensorboardServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((TensorboardServiceStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ protected TensorboardServiceClient(TensorboardServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
+ }
+
+ public final TensorboardServiceSettings getSettings() {
+ return settings;
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public TensorboardServiceStub getStub() {
+ return stub;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ public final OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Tensorboard.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardName parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
+ * Tensorboard tensorboard = Tensorboard.newBuilder().build();
+ * Tensorboard response =
+ * tensorboardServiceClient.createTensorboardAsync(parent, tensorboard).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to create the Tensorboard in. Format:
+ * `projects/{project}/locations/{location}`
+ * @param tensorboard Required. The Tensorboard to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ createTensorboardAsync(TensorboardName parent, Tensorboard tensorboard) {
+ CreateTensorboardRequest request =
+ CreateTensorboardRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setTensorboard(tensorboard)
+ .build();
+ return createTensorboardAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to create the Tensorboard in. Format:
+ * `projects/{project}/locations/{location}`
+ * @param tensorboard Required. The Tensorboard to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ createTensorboardAsync(String parent, Tensorboard tensorboard) {
+ CreateTensorboardRequest request =
+ CreateTensorboardRequest.newBuilder().setParent(parent).setTensorboard(tensorboard).build();
+ return createTensorboardAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ createTensorboardAsync(CreateTensorboardRequest request) {
+ return createTensorboardOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * CreateTensorboardRequest request =
+ * CreateTensorboardRequest.newBuilder()
+ * .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+ * .setTensorboard(Tensorboard.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * tensorboardServiceClient.createTensorboardOperationCallable().futureCall(request);
+ * // Do something.
+ * Tensorboard response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata>
+ createTensorboardOperationCallable() {
+ return stub.createTensorboardOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * CreateTensorboardRequest request =
+ * CreateTensorboardRequest.newBuilder()
+ * .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+ * .setTensorboard(Tensorboard.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.createTensorboardCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createTensorboardCallable() {
+ return stub.createTensorboardCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
+ * Tensorboard response = tensorboardServiceClient.getTensorboard(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Tensorboard resource. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Tensorboard getTensorboard(TensorboardName name) {
+ GetTensorboardRequest request =
+ GetTensorboardRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getTensorboard(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
+ * Tensorboard response = tensorboardServiceClient.getTensorboard(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Tensorboard resource. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Tensorboard getTensorboard(String name) {
+ GetTensorboardRequest request = GetTensorboardRequest.newBuilder().setName(name).build();
+ return getTensorboard(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * GetTensorboardRequest request =
+ * GetTensorboardRequest.newBuilder()
+ * .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+ * .build();
+ * Tensorboard response = tensorboardServiceClient.getTensorboard(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Tensorboard getTensorboard(GetTensorboardRequest request) {
+ return getTensorboardCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * GetTensorboardRequest request =
+ * GetTensorboardRequest.newBuilder()
+ * .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.getTensorboardCallable().futureCall(request);
+ * // Do something.
+ * Tensorboard response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getTensorboardCallable() {
+ return stub.getTensorboardCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * Tensorboard tensorboard = Tensorboard.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Tensorboard response =
+ * tensorboardServiceClient.updateTensorboardAsync(tensorboard, updateMask).get();
+ * }
+ * }
+ *
+ * @param tensorboard Required. The Tensorboard's `name` field is used to identify the Tensorboard
+ * to be updated. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+ * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the
+ * Tensorboard resource by the update. The fields specified in the update_mask are relative to
+ * the resource, not the full request. A field will be overwritten if it is in the mask. If
+ * the user does not provide a mask then all fields will be overwritten if new values are
+ * specified.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ updateTensorboardAsync(Tensorboard tensorboard, FieldMask updateMask) {
+ UpdateTensorboardRequest request =
+ UpdateTensorboardRequest.newBuilder()
+ .setTensorboard(tensorboard)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateTensorboardAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * UpdateTensorboardRequest request =
+ * UpdateTensorboardRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setTensorboard(Tensorboard.newBuilder().build())
+ * .build();
+ * Tensorboard response = tensorboardServiceClient.updateTensorboardAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture
+ updateTensorboardAsync(UpdateTensorboardRequest request) {
+ return updateTensorboardOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * UpdateTensorboardRequest request =
+ * UpdateTensorboardRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setTensorboard(Tensorboard.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * tensorboardServiceClient.updateTensorboardOperationCallable().futureCall(request);
+ * // Do something.
+ * Tensorboard response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata>
+ updateTensorboardOperationCallable() {
+ return stub.updateTensorboardOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * UpdateTensorboardRequest request =
+ * UpdateTensorboardRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setTensorboard(Tensorboard.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.updateTensorboardCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateTensorboardCallable() {
+ return stub.updateTensorboardCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Tensorboards in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Tensorboard element : tensorboardServiceClient.listTensorboards(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to list Tensorboards. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTensorboardsPagedResponse listTensorboards(LocationName parent) {
+ ListTensorboardsRequest request =
+ ListTensorboardsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listTensorboards(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Tensorboards in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Tensorboard element : tensorboardServiceClient.listTensorboards(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to list Tensorboards. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTensorboardsPagedResponse listTensorboards(String parent) {
+ ListTensorboardsRequest request =
+ ListTensorboardsRequest.newBuilder().setParent(parent).build();
+ return listTensorboards(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Tensorboards in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * ListTensorboardsRequest request =
+ * ListTensorboardsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * for (Tensorboard element : tensorboardServiceClient.listTensorboards(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTensorboardsPagedResponse listTensorboards(ListTensorboardsRequest request) {
+ return listTensorboardsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Tensorboards in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * ListTensorboardsRequest request =
+ * ListTensorboardsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.listTensorboardsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Tensorboard element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listTensorboardsPagedCallable() {
+ return stub.listTensorboardsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Tensorboards in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * ListTensorboardsRequest request =
+ * ListTensorboardsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * while (true) {
+ * ListTensorboardsResponse response =
+ * tensorboardServiceClient.listTensorboardsCallable().call(request);
+ * for (Tensorboard element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listTensorboardsCallable() {
+ return stub.listTensorboardsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
+ * tensorboardServiceClient.deleteTensorboardAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Tensorboard to be deleted. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteTensorboardAsync(
+ TensorboardName name) {
+ DeleteTensorboardRequest request =
+ DeleteTensorboardRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return deleteTensorboardAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
+ * tensorboardServiceClient.deleteTensorboardAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Tensorboard to be deleted. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteTensorboardAsync(String name) {
+ DeleteTensorboardRequest request = DeleteTensorboardRequest.newBuilder().setName(name).build();
+ return deleteTensorboardAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * DeleteTensorboardRequest request =
+ * DeleteTensorboardRequest.newBuilder()
+ * .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+ * .build();
+ * tensorboardServiceClient.deleteTensorboardAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteTensorboardAsync(
+ DeleteTensorboardRequest request) {
+ return deleteTensorboardOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * DeleteTensorboardRequest request =
+ * DeleteTensorboardRequest.newBuilder()
+ * .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+ * .build();
+ * OperationFuture future =
+ * tensorboardServiceClient.deleteTensorboardOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteTensorboardOperationCallable() {
+ return stub.deleteTensorboardOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Tensorboard.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * DeleteTensorboardRequest request =
+ * DeleteTensorboardRequest.newBuilder()
+ * .setName(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.deleteTensorboardCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteTensorboardCallable() {
+ return stub.deleteTensorboardCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Tensorboard to create the
+ * TensorboardExperiment in. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+ * @param tensorboardExperiment The TensorboardExperiment to create.
+ * @param tensorboardExperimentId Required. The ID to use for the Tensorboard experiment, which
+ * will become the final component of the Tensorboard experiment's resource name.
+ * This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardExperiment createTensorboardExperiment(
+ TensorboardExperimentName parent,
+ TensorboardExperiment tensorboardExperiment,
+ String tensorboardExperimentId) {
+ CreateTensorboardExperimentRequest request =
+ CreateTensorboardExperimentRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setTensorboardExperiment(tensorboardExperiment)
+ .setTensorboardExperimentId(tensorboardExperimentId)
+ .build();
+ return createTensorboardExperiment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a TensorboardExperiment.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * 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);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Tensorboard to create the
+ * TensorboardExperiment in. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+ * @param tensorboardExperiment The TensorboardExperiment to create.
+ * @param tensorboardExperimentId Required. The ID to use for the Tensorboard experiment, which
+ * will become the final component of the Tensorboard experiment's resource name.
+ * This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardExperiment createTensorboardExperiment(
+ String parent, TensorboardExperiment tensorboardExperiment, String tensorboardExperimentId) {
+ CreateTensorboardExperimentRequest request =
+ CreateTensorboardExperimentRequest.newBuilder()
+ .setParent(parent)
+ .setTensorboardExperiment(tensorboardExperiment)
+ .setTensorboardExperimentId(tensorboardExperimentId)
+ .build();
+ return createTensorboardExperiment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a TensorboardExperiment.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * 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);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardExperiment createTensorboardExperiment(
+ CreateTensorboardExperimentRequest request) {
+ return createTensorboardExperimentCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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 future =
+ * tensorboardServiceClient.createTensorboardExperimentCallable().futureCall(request);
+ * // Do something.
+ * TensorboardExperiment response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createTensorboardExperimentCallable() {
+ return stub.createTensorboardExperimentCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardExperimentName name =
+ * TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
+ * TensorboardExperiment response = tensorboardServiceClient.getTensorboardExperiment(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the TensorboardExperiment resource. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardExperiment getTensorboardExperiment(TensorboardExperimentName name) {
+ GetTensorboardExperimentRequest request =
+ GetTensorboardExperimentRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getTensorboardExperiment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String name =
+ * TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString();
+ * TensorboardExperiment response = tensorboardServiceClient.getTensorboardExperiment(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the TensorboardExperiment resource. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardExperiment getTensorboardExperiment(String name) {
+ GetTensorboardExperimentRequest request =
+ GetTensorboardExperimentRequest.newBuilder().setName(name).build();
+ return getTensorboardExperiment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * GetTensorboardExperimentRequest request =
+ * GetTensorboardExperimentRequest.newBuilder()
+ * .setName(
+ * TensorboardExperimentName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString())
+ * .build();
+ * TensorboardExperiment response = tensorboardServiceClient.getTensorboardExperiment(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardExperiment getTensorboardExperiment(
+ GetTensorboardExperimentRequest request) {
+ return getTensorboardExperimentCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * GetTensorboardExperimentRequest request =
+ * GetTensorboardExperimentRequest.newBuilder()
+ * .setName(
+ * TensorboardExperimentName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.getTensorboardExperimentCallable().futureCall(request);
+ * // Do something.
+ * TensorboardExperiment response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getTensorboardExperimentCallable() {
+ return stub.getTensorboardExperimentCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * TensorboardExperiment response =
+ * tensorboardServiceClient.updateTensorboardExperiment(tensorboardExperiment, updateMask);
+ * }
+ * }
+ *
+ * @param tensorboardExperiment Required. The TensorboardExperiment's `name` field is used to
+ * identify the TensorboardExperiment to be updated. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+ * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the
+ * TensorboardExperiment resource by the update. The fields specified in the update_mask are
+ * relative to the resource, not the full request. A field will be overwritten if it is in the
+ * mask. If the user does not provide a mask then all fields will be overwritten if new values
+ * are specified.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardExperiment updateTensorboardExperiment(
+ TensorboardExperiment tensorboardExperiment, FieldMask updateMask) {
+ UpdateTensorboardExperimentRequest request =
+ UpdateTensorboardExperimentRequest.newBuilder()
+ .setTensorboardExperiment(tensorboardExperiment)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateTensorboardExperiment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * UpdateTensorboardExperimentRequest request =
+ * UpdateTensorboardExperimentRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setTensorboardExperiment(TensorboardExperiment.newBuilder().build())
+ * .build();
+ * TensorboardExperiment response =
+ * tensorboardServiceClient.updateTensorboardExperiment(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardExperiment updateTensorboardExperiment(
+ UpdateTensorboardExperimentRequest request) {
+ return updateTensorboardExperimentCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * UpdateTensorboardExperimentRequest request =
+ * UpdateTensorboardExperimentRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setTensorboardExperiment(TensorboardExperiment.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.updateTensorboardExperimentCallable().futureCall(request);
+ * // Do something.
+ * TensorboardExperiment response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateTensorboardExperimentCallable() {
+ return stub.updateTensorboardExperimentCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists TensorboardExperiments in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardName parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
+ * for (TensorboardExperiment element :
+ * tensorboardServiceClient.listTensorboardExperiments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Tensorboard to list TensorboardExperiments.
+ * Format: 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
+ TensorboardName parent) {
+ ListTensorboardExperimentsRequest request =
+ ListTensorboardExperimentsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listTensorboardExperiments(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists TensorboardExperiments in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
+ * for (TensorboardExperiment element :
+ * tensorboardServiceClient.listTensorboardExperiments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Tensorboard to list TensorboardExperiments.
+ * Format: 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(String parent) {
+ ListTensorboardExperimentsRequest request =
+ ListTensorboardExperimentsRequest.newBuilder().setParent(parent).build();
+ return listTensorboardExperiments(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists TensorboardExperiments in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * ListTensorboardExperimentsRequest request =
+ * ListTensorboardExperimentsRequest.newBuilder()
+ * .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * for (TensorboardExperiment element :
+ * tensorboardServiceClient.listTensorboardExperiments(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
+ ListTensorboardExperimentsRequest request) {
+ return listTensorboardExperimentsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists TensorboardExperiments in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * ListTensorboardExperimentsRequest request =
+ * ListTensorboardExperimentsRequest.newBuilder()
+ * .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.listTensorboardExperimentsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (TensorboardExperiment element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListTensorboardExperimentsRequest, ListTensorboardExperimentsPagedResponse>
+ listTensorboardExperimentsPagedCallable() {
+ return stub.listTensorboardExperimentsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists TensorboardExperiments in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * ListTensorboardExperimentsRequest request =
+ * ListTensorboardExperimentsRequest.newBuilder()
+ * .setParent(TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * while (true) {
+ * ListTensorboardExperimentsResponse response =
+ * tensorboardServiceClient.listTensorboardExperimentsCallable().call(request);
+ * for (TensorboardExperiment element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listTensorboardExperimentsCallable() {
+ return stub.listTensorboardExperimentsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardExperimentName name =
+ * TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
+ * tensorboardServiceClient.deleteTensorboardExperimentAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the TensorboardExperiment to be deleted. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteTensorboardExperimentAsync(
+ TensorboardExperimentName name) {
+ DeleteTensorboardExperimentRequest request =
+ DeleteTensorboardExperimentRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return deleteTensorboardExperimentAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String name =
+ * TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString();
+ * tensorboardServiceClient.deleteTensorboardExperimentAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the TensorboardExperiment to be deleted. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteTensorboardExperimentAsync(
+ String name) {
+ DeleteTensorboardExperimentRequest request =
+ DeleteTensorboardExperimentRequest.newBuilder().setName(name).build();
+ return deleteTensorboardExperimentAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * DeleteTensorboardExperimentRequest request =
+ * DeleteTensorboardExperimentRequest.newBuilder()
+ * .setName(
+ * TensorboardExperimentName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString())
+ * .build();
+ * tensorboardServiceClient.deleteTensorboardExperimentAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteTensorboardExperimentAsync(
+ DeleteTensorboardExperimentRequest request) {
+ return deleteTensorboardExperimentOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * DeleteTensorboardExperimentRequest request =
+ * DeleteTensorboardExperimentRequest.newBuilder()
+ * .setName(
+ * TensorboardExperimentName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString())
+ * .build();
+ * OperationFuture future =
+ * tensorboardServiceClient
+ * .deleteTensorboardExperimentOperationCallable()
+ * .futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteTensorboardExperimentOperationCallable() {
+ return stub.deleteTensorboardExperimentOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * DeleteTensorboardExperimentRequest request =
+ * DeleteTensorboardExperimentRequest.newBuilder()
+ * .setName(
+ * TensorboardExperimentName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.deleteTensorboardExperimentCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deleteTensorboardExperimentCallable() {
+ return stub.deleteTensorboardExperimentCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a TensorboardRun.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the TensorboardExperiment to create the
+ * TensorboardRun in. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+ * @param tensorboardRun Required. The TensorboardRun to create.
+ * @param tensorboardRunId Required. The ID to use for the Tensorboard run, which will become the
+ * final component of the Tensorboard run's resource name.
+ * This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardRun createTensorboardRun(
+ TensorboardRunName parent, TensorboardRun tensorboardRun, String tensorboardRunId) {
+ CreateTensorboardRunRequest request =
+ CreateTensorboardRunRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setTensorboardRun(tensorboardRun)
+ .setTensorboardRunId(tensorboardRunId)
+ .build();
+ return createTensorboardRun(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a TensorboardRun.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * 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);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the TensorboardExperiment to create the
+ * TensorboardRun in. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+ * @param tensorboardRun Required. The TensorboardRun to create.
+ * @param tensorboardRunId Required. The ID to use for the Tensorboard run, which will become the
+ * final component of the Tensorboard run's resource name.
+ * This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardRun createTensorboardRun(
+ String parent, TensorboardRun tensorboardRun, String tensorboardRunId) {
+ CreateTensorboardRunRequest request =
+ CreateTensorboardRunRequest.newBuilder()
+ .setParent(parent)
+ .setTensorboardRun(tensorboardRun)
+ .setTensorboardRunId(tensorboardRunId)
+ .build();
+ return createTensorboardRun(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a TensorboardRun.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * 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);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardRun createTensorboardRun(CreateTensorboardRunRequest request) {
+ return createTensorboardRunCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a TensorboardRun.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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 future =
+ * tensorboardServiceClient.createTensorboardRunCallable().futureCall(request);
+ * // Do something.
+ * TensorboardRun response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createTensorboardRunCallable() {
+ return stub.createTensorboardRunCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch create TensorboardRuns.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardExperimentName parent =
+ * TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
+ * List requests = new ArrayList<>();
+ * BatchCreateTensorboardRunsResponse response =
+ * tensorboardServiceClient.batchCreateTensorboardRuns(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the TensorboardExperiment to create the
+ * TensorboardRuns in. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+ * The parent field in the CreateTensorboardRunRequest messages must match this field.
+ * @param requests Required. The request message specifying the TensorboardRuns to create. A
+ * maximum of 1000 TensorboardRuns can be created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(
+ TensorboardExperimentName parent, List requests) {
+ BatchCreateTensorboardRunsRequest request =
+ BatchCreateTensorboardRunsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllRequests(requests)
+ .build();
+ return batchCreateTensorboardRuns(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch create TensorboardRuns.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String parent =
+ * TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString();
+ * List requests = new ArrayList<>();
+ * BatchCreateTensorboardRunsResponse response =
+ * tensorboardServiceClient.batchCreateTensorboardRuns(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the TensorboardExperiment to create the
+ * TensorboardRuns in. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+ * The parent field in the CreateTensorboardRunRequest messages must match this field.
+ * @param requests Required. The request message specifying the TensorboardRuns to create. A
+ * maximum of 1000 TensorboardRuns can be created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(
+ String parent, List requests) {
+ BatchCreateTensorboardRunsRequest request =
+ BatchCreateTensorboardRunsRequest.newBuilder()
+ .setParent(parent)
+ .addAllRequests(requests)
+ .build();
+ return batchCreateTensorboardRuns(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch create TensorboardRuns.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * BatchCreateTensorboardRunsRequest request =
+ * BatchCreateTensorboardRunsRequest.newBuilder()
+ * .setParent(
+ * TensorboardExperimentName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * BatchCreateTensorboardRunsResponse response =
+ * tensorboardServiceClient.batchCreateTensorboardRuns(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(
+ BatchCreateTensorboardRunsRequest request) {
+ return batchCreateTensorboardRunsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch create TensorboardRuns.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * BatchCreateTensorboardRunsRequest request =
+ * BatchCreateTensorboardRunsRequest.newBuilder()
+ * .setParent(
+ * TensorboardExperimentName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.batchCreateTensorboardRunsCallable().futureCall(request);
+ * // Do something.
+ * BatchCreateTensorboardRunsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ batchCreateTensorboardRunsCallable() {
+ return stub.batchCreateTensorboardRunsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a TensorboardRun.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardRunName name =
+ * TensorboardRunName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
+ * TensorboardRun response = tensorboardServiceClient.getTensorboardRun(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the TensorboardRun resource. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardRun getTensorboardRun(TensorboardRunName name) {
+ GetTensorboardRunRequest request =
+ GetTensorboardRunRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getTensorboardRun(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a TensorboardRun.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String name =
+ * TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+ * .toString();
+ * TensorboardRun response = tensorboardServiceClient.getTensorboardRun(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the TensorboardRun resource. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardRun getTensorboardRun(String name) {
+ GetTensorboardRunRequest request = GetTensorboardRunRequest.newBuilder().setName(name).build();
+ return getTensorboardRun(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a TensorboardRun.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * GetTensorboardRunRequest request =
+ * GetTensorboardRunRequest.newBuilder()
+ * .setName(
+ * TensorboardRunName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+ * .toString())
+ * .build();
+ * TensorboardRun response = tensorboardServiceClient.getTensorboardRun(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardRun getTensorboardRun(GetTensorboardRunRequest request) {
+ return getTensorboardRunCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a TensorboardRun.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * GetTensorboardRunRequest request =
+ * GetTensorboardRunRequest.newBuilder()
+ * .setName(
+ * TensorboardRunName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.getTensorboardRunCallable().futureCall(request);
+ * // Do something.
+ * TensorboardRun response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getTensorboardRunCallable() {
+ return stub.getTensorboardRunCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a TensorboardRun.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * TensorboardRun response =
+ * tensorboardServiceClient.updateTensorboardRun(tensorboardRun, updateMask);
+ * }
+ * }
+ *
+ * @param tensorboardRun Required. The TensorboardRun's `name` field is used to identify the
+ * TensorboardRun to be updated. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+ * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the
+ * TensorboardRun resource by the update. The fields specified in the update_mask are relative
+ * to the resource, not the full request. A field will be overwritten if it is in the mask. If
+ * the user does not provide a mask then all fields will be overwritten if new values are
+ * specified.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardRun updateTensorboardRun(
+ TensorboardRun tensorboardRun, FieldMask updateMask) {
+ UpdateTensorboardRunRequest request =
+ UpdateTensorboardRunRequest.newBuilder()
+ .setTensorboardRun(tensorboardRun)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateTensorboardRun(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a TensorboardRun.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * UpdateTensorboardRunRequest request =
+ * UpdateTensorboardRunRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setTensorboardRun(TensorboardRun.newBuilder().build())
+ * .build();
+ * TensorboardRun response = tensorboardServiceClient.updateTensorboardRun(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardRun updateTensorboardRun(UpdateTensorboardRunRequest request) {
+ return updateTensorboardRunCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a TensorboardRun.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * UpdateTensorboardRunRequest request =
+ * UpdateTensorboardRunRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setTensorboardRun(TensorboardRun.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.updateTensorboardRunCallable().futureCall(request);
+ * // Do something.
+ * TensorboardRun response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateTensorboardRunCallable() {
+ return stub.updateTensorboardRunCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists TensorboardRuns in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardExperimentName parent =
+ * TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
+ * for (TensorboardRun element :
+ * tensorboardServiceClient.listTensorboardRuns(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the TensorboardExperiment to list TensorboardRuns.
+ * Format:
+ * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
+ TensorboardExperimentName parent) {
+ ListTensorboardRunsRequest request =
+ ListTensorboardRunsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listTensorboardRuns(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists TensorboardRuns in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String parent =
+ * TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString();
+ * for (TensorboardRun element :
+ * tensorboardServiceClient.listTensorboardRuns(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the TensorboardExperiment to list TensorboardRuns.
+ * Format:
+ * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTensorboardRunsPagedResponse listTensorboardRuns(String parent) {
+ ListTensorboardRunsRequest request =
+ ListTensorboardRunsRequest.newBuilder().setParent(parent).build();
+ return listTensorboardRuns(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists TensorboardRuns in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * ListTensorboardRunsRequest request =
+ * ListTensorboardRunsRequest.newBuilder()
+ * .setParent(
+ * TensorboardExperimentName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * for (TensorboardRun element :
+ * tensorboardServiceClient.listTensorboardRuns(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
+ ListTensorboardRunsRequest request) {
+ return listTensorboardRunsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists TensorboardRuns in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * ListTensorboardRunsRequest request =
+ * ListTensorboardRunsRequest.newBuilder()
+ * .setParent(
+ * TensorboardExperimentName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.listTensorboardRunsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (TensorboardRun element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listTensorboardRunsPagedCallable() {
+ return stub.listTensorboardRunsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists TensorboardRuns in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * ListTensorboardRunsRequest request =
+ * ListTensorboardRunsRequest.newBuilder()
+ * .setParent(
+ * TensorboardExperimentName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * while (true) {
+ * ListTensorboardRunsResponse response =
+ * tensorboardServiceClient.listTensorboardRunsCallable().call(request);
+ * for (TensorboardRun element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listTensorboardRunsCallable() {
+ return stub.listTensorboardRunsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a TensorboardRun.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardRunName name =
+ * TensorboardRunName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
+ * tensorboardServiceClient.deleteTensorboardRunAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the TensorboardRun to be deleted. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteTensorboardRunAsync(
+ TensorboardRunName name) {
+ DeleteTensorboardRunRequest request =
+ DeleteTensorboardRunRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return deleteTensorboardRunAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a TensorboardRun.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String name =
+ * TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+ * .toString();
+ * tensorboardServiceClient.deleteTensorboardRunAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the TensorboardRun to be deleted. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteTensorboardRunAsync(
+ String name) {
+ DeleteTensorboardRunRequest request =
+ DeleteTensorboardRunRequest.newBuilder().setName(name).build();
+ return deleteTensorboardRunAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a TensorboardRun.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * DeleteTensorboardRunRequest request =
+ * DeleteTensorboardRunRequest.newBuilder()
+ * .setName(
+ * TensorboardRunName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+ * .toString())
+ * .build();
+ * tensorboardServiceClient.deleteTensorboardRunAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteTensorboardRunAsync(
+ DeleteTensorboardRunRequest request) {
+ return deleteTensorboardRunOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a TensorboardRun.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * DeleteTensorboardRunRequest request =
+ * DeleteTensorboardRunRequest.newBuilder()
+ * .setName(
+ * TensorboardRunName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+ * .toString())
+ * .build();
+ * OperationFuture future =
+ * tensorboardServiceClient.deleteTensorboardRunOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteTensorboardRunOperationCallable() {
+ return stub.deleteTensorboardRunOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a TensorboardRun.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * DeleteTensorboardRunRequest request =
+ * DeleteTensorboardRunRequest.newBuilder()
+ * .setName(
+ * TensorboardRunName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.deleteTensorboardRunCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deleteTensorboardRunCallable() {
+ return stub.deleteTensorboardRunCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardExperimentName parent =
+ * TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
+ * List requests = new ArrayList<>();
+ * BatchCreateTensorboardTimeSeriesResponse response =
+ * tensorboardServiceClient.batchCreateTensorboardTimeSeries(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the TensorboardExperiment to create the
+ * TensorboardTimeSeries in. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+ * The TensorboardRuns referenced by the parent fields in the
+ * CreateTensorboardTimeSeriesRequest messages must be sub resources of this
+ * TensorboardExperiment.
+ * @param requests Required. The request message specifying the TensorboardTimeSeries to create. A
+ * maximum of 1000 TensorboardTimeSeries can be created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTimeSeries(
+ TensorboardExperimentName parent, List requests) {
+ BatchCreateTensorboardTimeSeriesRequest request =
+ BatchCreateTensorboardTimeSeriesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllRequests(requests)
+ .build();
+ return batchCreateTensorboardTimeSeries(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String parent =
+ * TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString();
+ * List requests = new ArrayList<>();
+ * BatchCreateTensorboardTimeSeriesResponse response =
+ * tensorboardServiceClient.batchCreateTensorboardTimeSeries(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the TensorboardExperiment to create the
+ * TensorboardTimeSeries in. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+ * The TensorboardRuns referenced by the parent fields in the
+ * CreateTensorboardTimeSeriesRequest messages must be sub resources of this
+ * TensorboardExperiment.
+ * @param requests Required. The request message specifying the TensorboardTimeSeries to create. A
+ * maximum of 1000 TensorboardTimeSeries can be created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTimeSeries(
+ String parent, List requests) {
+ BatchCreateTensorboardTimeSeriesRequest request =
+ BatchCreateTensorboardTimeSeriesRequest.newBuilder()
+ .setParent(parent)
+ .addAllRequests(requests)
+ .build();
+ return batchCreateTensorboardTimeSeries(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * BatchCreateTensorboardTimeSeriesRequest request =
+ * BatchCreateTensorboardTimeSeriesRequest.newBuilder()
+ * .setParent(
+ * TensorboardExperimentName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * BatchCreateTensorboardTimeSeriesResponse response =
+ * tensorboardServiceClient.batchCreateTensorboardTimeSeries(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTimeSeries(
+ BatchCreateTensorboardTimeSeriesRequest request) {
+ return batchCreateTensorboardTimeSeriesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * BatchCreateTensorboardTimeSeriesRequest request =
+ * BatchCreateTensorboardTimeSeriesRequest.newBuilder()
+ * .setParent(
+ * TensorboardExperimentName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.batchCreateTensorboardTimeSeriesCallable().futureCall(request);
+ * // Do something.
+ * BatchCreateTensorboardTimeSeriesResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ BatchCreateTensorboardTimeSeriesRequest, BatchCreateTensorboardTimeSeriesResponse>
+ batchCreateTensorboardTimeSeriesCallable() {
+ return stub.batchCreateTensorboardTimeSeriesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the TensorboardRun to create the
+ * TensorboardTimeSeries in. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+ * @param tensorboardTimeSeries Required. The TensorboardTimeSeries to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardTimeSeries createTensorboardTimeSeries(
+ TensorboardTimeSeriesName parent, TensorboardTimeSeries tensorboardTimeSeries) {
+ CreateTensorboardTimeSeriesRequest request =
+ CreateTensorboardTimeSeriesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setTensorboardTimeSeries(tensorboardTimeSeries)
+ .build();
+ return createTensorboardTimeSeries(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the TensorboardRun to create the
+ * TensorboardTimeSeries in. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+ * @param tensorboardTimeSeries Required. The TensorboardTimeSeries to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardTimeSeries createTensorboardTimeSeries(
+ String parent, TensorboardTimeSeries tensorboardTimeSeries) {
+ CreateTensorboardTimeSeriesRequest request =
+ CreateTensorboardTimeSeriesRequest.newBuilder()
+ .setParent(parent)
+ .setTensorboardTimeSeries(tensorboardTimeSeries)
+ .build();
+ return createTensorboardTimeSeries(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardTimeSeries createTensorboardTimeSeries(
+ CreateTensorboardTimeSeriesRequest request) {
+ return createTensorboardTimeSeriesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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 future =
+ * tensorboardServiceClient.createTensorboardTimeSeriesCallable().futureCall(request);
+ * // Do something.
+ * TensorboardTimeSeries response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createTensorboardTimeSeriesCallable() {
+ return stub.createTensorboardTimeSeriesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardTimeSeriesName name =
+ * TensorboardTimeSeriesName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
+ * TensorboardTimeSeries response = tensorboardServiceClient.getTensorboardTimeSeries(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the TensorboardTimeSeries resource. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardTimeSeries getTensorboardTimeSeries(TensorboardTimeSeriesName name) {
+ GetTensorboardTimeSeriesRequest request =
+ GetTensorboardTimeSeriesRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getTensorboardTimeSeries(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String name =
+ * TensorboardTimeSeriesName.of(
+ * "[PROJECT]",
+ * "[LOCATION]",
+ * "[TENSORBOARD]",
+ * "[EXPERIMENT]",
+ * "[RUN]",
+ * "[TIME_SERIES]")
+ * .toString();
+ * TensorboardTimeSeries response = tensorboardServiceClient.getTensorboardTimeSeries(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the TensorboardTimeSeries resource. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardTimeSeries getTensorboardTimeSeries(String name) {
+ GetTensorboardTimeSeriesRequest request =
+ GetTensorboardTimeSeriesRequest.newBuilder().setName(name).build();
+ return getTensorboardTimeSeries(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * GetTensorboardTimeSeriesRequest request =
+ * GetTensorboardTimeSeriesRequest.newBuilder()
+ * .setName(
+ * TensorboardTimeSeriesName.of(
+ * "[PROJECT]",
+ * "[LOCATION]",
+ * "[TENSORBOARD]",
+ * "[EXPERIMENT]",
+ * "[RUN]",
+ * "[TIME_SERIES]")
+ * .toString())
+ * .build();
+ * TensorboardTimeSeries response = tensorboardServiceClient.getTensorboardTimeSeries(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardTimeSeries getTensorboardTimeSeries(
+ GetTensorboardTimeSeriesRequest request) {
+ return getTensorboardTimeSeriesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * GetTensorboardTimeSeriesRequest request =
+ * GetTensorboardTimeSeriesRequest.newBuilder()
+ * .setName(
+ * TensorboardTimeSeriesName.of(
+ * "[PROJECT]",
+ * "[LOCATION]",
+ * "[TENSORBOARD]",
+ * "[EXPERIMENT]",
+ * "[RUN]",
+ * "[TIME_SERIES]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.getTensorboardTimeSeriesCallable().futureCall(request);
+ * // Do something.
+ * TensorboardTimeSeries response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getTensorboardTimeSeriesCallable() {
+ return stub.getTensorboardTimeSeriesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * TensorboardTimeSeries response =
+ * tensorboardServiceClient.updateTensorboardTimeSeries(tensorboardTimeSeries, updateMask);
+ * }
+ * }
+ *
+ * @param tensorboardTimeSeries Required. The TensorboardTimeSeries' `name` field is used to
+ * identify the TensorboardTimeSeries to be updated. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+ * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the
+ * TensorboardTimeSeries resource by the update. The fields specified in the update_mask are
+ * relative to the resource, not the full request. A field will be overwritten if it is in the
+ * mask. If the user does not provide a mask then all fields will be overwritten if new values
+ * are specified.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardTimeSeries updateTensorboardTimeSeries(
+ TensorboardTimeSeries tensorboardTimeSeries, FieldMask updateMask) {
+ UpdateTensorboardTimeSeriesRequest request =
+ UpdateTensorboardTimeSeriesRequest.newBuilder()
+ .setTensorboardTimeSeries(tensorboardTimeSeries)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateTensorboardTimeSeries(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * UpdateTensorboardTimeSeriesRequest request =
+ * UpdateTensorboardTimeSeriesRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setTensorboardTimeSeries(TensorboardTimeSeries.newBuilder().build())
+ * .build();
+ * TensorboardTimeSeries response =
+ * tensorboardServiceClient.updateTensorboardTimeSeries(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TensorboardTimeSeries updateTensorboardTimeSeries(
+ UpdateTensorboardTimeSeriesRequest request) {
+ return updateTensorboardTimeSeriesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * UpdateTensorboardTimeSeriesRequest request =
+ * UpdateTensorboardTimeSeriesRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setTensorboardTimeSeries(TensorboardTimeSeries.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.updateTensorboardTimeSeriesCallable().futureCall(request);
+ * // Do something.
+ * TensorboardTimeSeries response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateTensorboardTimeSeriesCallable() {
+ return stub.updateTensorboardTimeSeriesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists TensorboardTimeSeries in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardRunName parent =
+ * TensorboardRunName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
+ * for (TensorboardTimeSeries element :
+ * tensorboardServiceClient.listTensorboardTimeSeries(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the TensorboardRun to list TensorboardTimeSeries.
+ * Format:
+ * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
+ TensorboardRunName parent) {
+ ListTensorboardTimeSeriesRequest request =
+ ListTensorboardTimeSeriesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listTensorboardTimeSeries(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists TensorboardTimeSeries in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String parent =
+ * TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+ * .toString();
+ * for (TensorboardTimeSeries element :
+ * tensorboardServiceClient.listTensorboardTimeSeries(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the TensorboardRun to list TensorboardTimeSeries.
+ * Format:
+ * 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(String parent) {
+ ListTensorboardTimeSeriesRequest request =
+ ListTensorboardTimeSeriesRequest.newBuilder().setParent(parent).build();
+ return listTensorboardTimeSeries(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists TensorboardTimeSeries in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * ListTensorboardTimeSeriesRequest request =
+ * ListTensorboardTimeSeriesRequest.newBuilder()
+ * .setParent(
+ * TensorboardRunName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * for (TensorboardTimeSeries element :
+ * tensorboardServiceClient.listTensorboardTimeSeries(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
+ ListTensorboardTimeSeriesRequest request) {
+ return listTensorboardTimeSeriesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists TensorboardTimeSeries in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * ListTensorboardTimeSeriesRequest request =
+ * ListTensorboardTimeSeriesRequest.newBuilder()
+ * .setParent(
+ * TensorboardRunName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.listTensorboardTimeSeriesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (TensorboardTimeSeries element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListTensorboardTimeSeriesRequest, ListTensorboardTimeSeriesPagedResponse>
+ listTensorboardTimeSeriesPagedCallable() {
+ return stub.listTensorboardTimeSeriesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists TensorboardTimeSeries in a Location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * ListTensorboardTimeSeriesRequest request =
+ * ListTensorboardTimeSeriesRequest.newBuilder()
+ * .setParent(
+ * TensorboardRunName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * while (true) {
+ * ListTensorboardTimeSeriesResponse response =
+ * tensorboardServiceClient.listTensorboardTimeSeriesCallable().call(request);
+ * for (TensorboardTimeSeries element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listTensorboardTimeSeriesCallable() {
+ return stub.listTensorboardTimeSeriesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardTimeSeriesName name =
+ * TensorboardTimeSeriesName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
+ * tensorboardServiceClient.deleteTensorboardTimeSeriesAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the TensorboardTimeSeries to be deleted. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteTensorboardTimeSeriesAsync(
+ TensorboardTimeSeriesName name) {
+ DeleteTensorboardTimeSeriesRequest request =
+ DeleteTensorboardTimeSeriesRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return deleteTensorboardTimeSeriesAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String name =
+ * TensorboardTimeSeriesName.of(
+ * "[PROJECT]",
+ * "[LOCATION]",
+ * "[TENSORBOARD]",
+ * "[EXPERIMENT]",
+ * "[RUN]",
+ * "[TIME_SERIES]")
+ * .toString();
+ * tensorboardServiceClient.deleteTensorboardTimeSeriesAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the TensorboardTimeSeries to be deleted. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteTensorboardTimeSeriesAsync(
+ String name) {
+ DeleteTensorboardTimeSeriesRequest request =
+ DeleteTensorboardTimeSeriesRequest.newBuilder().setName(name).build();
+ return deleteTensorboardTimeSeriesAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteTensorboardTimeSeriesAsync(
+ DeleteTensorboardTimeSeriesRequest request) {
+ return deleteTensorboardTimeSeriesOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * DeleteTensorboardTimeSeriesRequest request =
+ * DeleteTensorboardTimeSeriesRequest.newBuilder()
+ * .setName(
+ * TensorboardTimeSeriesName.of(
+ * "[PROJECT]",
+ * "[LOCATION]",
+ * "[TENSORBOARD]",
+ * "[EXPERIMENT]",
+ * "[RUN]",
+ * "[TIME_SERIES]")
+ * .toString())
+ * .build();
+ * OperationFuture future =
+ * tensorboardServiceClient
+ * .deleteTensorboardTimeSeriesOperationCallable()
+ * .futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteTensorboardTimeSeriesOperationCallable() {
+ return stub.deleteTensorboardTimeSeriesOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a TensorboardTimeSeries.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * DeleteTensorboardTimeSeriesRequest request =
+ * DeleteTensorboardTimeSeriesRequest.newBuilder()
+ * .setName(
+ * TensorboardTimeSeriesName.of(
+ * "[PROJECT]",
+ * "[LOCATION]",
+ * "[TENSORBOARD]",
+ * "[EXPERIMENT]",
+ * "[RUN]",
+ * "[TIME_SERIES]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.deleteTensorboardTimeSeriesCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deleteTensorboardTimeSeriesCallable() {
+ return stub.deleteTensorboardTimeSeriesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * 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 will be returned. Otherwise, that limit number of data points will be randomly
+ * selected from this time series and returned.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardName tensorboard = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
+ * BatchReadTensorboardTimeSeriesDataResponse response =
+ * tensorboardServiceClient.batchReadTensorboardTimeSeriesData(tensorboard);
+ * }
+ * }
+ *
+ * @param tensorboard Required. The resource name of the Tensorboard containing
+ * TensorboardTimeSeries to read data from. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. The
+ * TensorboardTimeSeries referenced by
+ * [time_series][google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.time_series]
+ * must be sub resources of this Tensorboard.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTimeSeriesData(
+ TensorboardName tensorboard) {
+ BatchReadTensorboardTimeSeriesDataRequest request =
+ BatchReadTensorboardTimeSeriesDataRequest.newBuilder()
+ .setTensorboard(tensorboard == null ? null : tensorboard.toString())
+ .build();
+ return batchReadTensorboardTimeSeriesData(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * 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 will be returned. Otherwise, that limit number of data points will be randomly
+ * selected from this time series and returned.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String tensorboard =
+ * TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
+ * BatchReadTensorboardTimeSeriesDataResponse response =
+ * tensorboardServiceClient.batchReadTensorboardTimeSeriesData(tensorboard);
+ * }
+ * }
+ *
+ * @param tensorboard Required. The resource name of the Tensorboard containing
+ * TensorboardTimeSeries to read data from. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. The
+ * TensorboardTimeSeries referenced by
+ * [time_series][google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.time_series]
+ * must be sub resources of this Tensorboard.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTimeSeriesData(
+ String tensorboard) {
+ BatchReadTensorboardTimeSeriesDataRequest request =
+ BatchReadTensorboardTimeSeriesDataRequest.newBuilder().setTensorboard(tensorboard).build();
+ return batchReadTensorboardTimeSeriesData(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * 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 will be returned. Otherwise, that limit number of data points will be randomly
+ * selected from this time series and returned.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * BatchReadTensorboardTimeSeriesDataRequest request =
+ * BatchReadTensorboardTimeSeriesDataRequest.newBuilder()
+ * .setTensorboard(
+ * TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+ * .addAllTimeSeries(new ArrayList())
+ * .build();
+ * BatchReadTensorboardTimeSeriesDataResponse response =
+ * tensorboardServiceClient.batchReadTensorboardTimeSeriesData(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTimeSeriesData(
+ BatchReadTensorboardTimeSeriesDataRequest request) {
+ return batchReadTensorboardTimeSeriesDataCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * 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 will be returned. Otherwise, that limit number of data points will be randomly
+ * selected from this time series and returned.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * BatchReadTensorboardTimeSeriesDataRequest request =
+ * BatchReadTensorboardTimeSeriesDataRequest.newBuilder()
+ * .setTensorboard(
+ * TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+ * .addAllTimeSeries(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.batchReadTensorboardTimeSeriesDataCallable().futureCall(request);
+ * // Do something.
+ * BatchReadTensorboardTimeSeriesDataResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ BatchReadTensorboardTimeSeriesDataRequest, BatchReadTensorboardTimeSeriesDataResponse>
+ batchReadTensorboardTimeSeriesDataCallable() {
+ return stub.batchReadTensorboardTimeSeriesDataCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is less
+ * than 1000, all data will be returned. Otherwise, 1000 data points will be randomly selected
+ * from this time series and returned. This value can be changed by changing max_data_points,
+ * which can't be greater than 10k.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardTimeSeriesName tensorboardTimeSeries =
+ * TensorboardTimeSeriesName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]", "[TIME_SERIES]");
+ * ReadTensorboardTimeSeriesDataResponse response =
+ * tensorboardServiceClient.readTensorboardTimeSeriesData(tensorboardTimeSeries);
+ * }
+ * }
+ *
+ * @param tensorboardTimeSeries Required. The resource name of the TensorboardTimeSeries to read
+ * data from. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData(
+ TensorboardTimeSeriesName tensorboardTimeSeries) {
+ ReadTensorboardTimeSeriesDataRequest request =
+ ReadTensorboardTimeSeriesDataRequest.newBuilder()
+ .setTensorboardTimeSeries(
+ tensorboardTimeSeries == null ? null : tensorboardTimeSeries.toString())
+ .build();
+ return readTensorboardTimeSeriesData(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is less
+ * than 1000, all data will be returned. Otherwise, 1000 data points will be randomly selected
+ * from this time series and returned. This value can be changed by changing max_data_points,
+ * which can't be greater than 10k.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String tensorboardTimeSeries =
+ * TensorboardTimeSeriesName.of(
+ * "[PROJECT]",
+ * "[LOCATION]",
+ * "[TENSORBOARD]",
+ * "[EXPERIMENT]",
+ * "[RUN]",
+ * "[TIME_SERIES]")
+ * .toString();
+ * ReadTensorboardTimeSeriesDataResponse response =
+ * tensorboardServiceClient.readTensorboardTimeSeriesData(tensorboardTimeSeries);
+ * }
+ * }
+ *
+ * @param tensorboardTimeSeries Required. The resource name of the TensorboardTimeSeries to read
+ * data from. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData(
+ String tensorboardTimeSeries) {
+ ReadTensorboardTimeSeriesDataRequest request =
+ ReadTensorboardTimeSeriesDataRequest.newBuilder()
+ .setTensorboardTimeSeries(tensorboardTimeSeries)
+ .build();
+ return readTensorboardTimeSeriesData(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is less
+ * than 1000, all data will be returned. Otherwise, 1000 data points will be randomly selected
+ * from this time series and returned. This value can be changed by changing max_data_points,
+ * which can't be greater than 10k.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * ReadTensorboardTimeSeriesDataRequest request =
+ * ReadTensorboardTimeSeriesDataRequest.newBuilder()
+ * .setTensorboardTimeSeries(
+ * TensorboardTimeSeriesName.of(
+ * "[PROJECT]",
+ * "[LOCATION]",
+ * "[TENSORBOARD]",
+ * "[EXPERIMENT]",
+ * "[RUN]",
+ * "[TIME_SERIES]")
+ * .toString())
+ * .setMaxDataPoints(724001981)
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ReadTensorboardTimeSeriesDataResponse response =
+ * tensorboardServiceClient.readTensorboardTimeSeriesData(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData(
+ ReadTensorboardTimeSeriesDataRequest request) {
+ return readTensorboardTimeSeriesDataCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is less
+ * than 1000, all data will be returned. Otherwise, 1000 data points will be randomly selected
+ * from this time series and returned. This value can be changed by changing max_data_points,
+ * which can't be greater than 10k.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * ReadTensorboardTimeSeriesDataRequest request =
+ * ReadTensorboardTimeSeriesDataRequest.newBuilder()
+ * .setTensorboardTimeSeries(
+ * TensorboardTimeSeriesName.of(
+ * "[PROJECT]",
+ * "[LOCATION]",
+ * "[TENSORBOARD]",
+ * "[EXPERIMENT]",
+ * "[RUN]",
+ * "[TIME_SERIES]")
+ * .toString())
+ * .setMaxDataPoints(724001981)
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.readTensorboardTimeSeriesDataCallable().futureCall(request);
+ * // Do something.
+ * ReadTensorboardTimeSeriesDataResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ReadTensorboardTimeSeriesDataRequest, ReadTensorboardTimeSeriesDataResponse>
+ readTensorboardTimeSeriesDataCallable() {
+ return stub.readTensorboardTimeSeriesDataCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets bytes of TensorboardBlobs. This is to allow reading blob data stored in consumer project's
+ * Cloud Storage bucket without users having to obtain Cloud Storage access permission.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * ReadTensorboardBlobDataRequest request =
+ * ReadTensorboardBlobDataRequest.newBuilder()
+ * .setTimeSeries(
+ * TensorboardTimeSeriesName.of(
+ * "[PROJECT]",
+ * "[LOCATION]",
+ * "[TENSORBOARD]",
+ * "[EXPERIMENT]",
+ * "[RUN]",
+ * "[TIME_SERIES]")
+ * .toString())
+ * .addAllBlobIds(new ArrayList())
+ * .build();
+ * ServerStream stream =
+ * tensorboardServiceClient.readTensorboardBlobDataCallable().call(request);
+ * for (ReadTensorboardBlobDataResponse response : stream) {
+ * // Do something when a response is received.
+ * }
+ * }
+ * }
+ */
+ public final ServerStreamingCallable<
+ ReadTensorboardBlobDataRequest, ReadTensorboardBlobDataResponse>
+ readTensorboardBlobDataCallable() {
+ return stub.readTensorboardBlobDataCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun's.
+ * If any data fail to be ingested, an error will be returned.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardExperimentName tensorboardExperiment =
+ * TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
+ * List writeRunDataRequests = new ArrayList<>();
+ * WriteTensorboardExperimentDataResponse response =
+ * tensorboardServiceClient.writeTensorboardExperimentData(
+ * tensorboardExperiment, writeRunDataRequests);
+ * }
+ * }
+ *
+ * @param tensorboardExperiment Required. The resource name of the TensorboardExperiment to write
+ * data to. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+ * @param writeRunDataRequests Required. Requests containing per-run TensorboardTimeSeries data to
+ * write.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentData(
+ TensorboardExperimentName tensorboardExperiment,
+ List writeRunDataRequests) {
+ WriteTensorboardExperimentDataRequest request =
+ WriteTensorboardExperimentDataRequest.newBuilder()
+ .setTensorboardExperiment(
+ tensorboardExperiment == null ? null : tensorboardExperiment.toString())
+ .addAllWriteRunDataRequests(writeRunDataRequests)
+ .build();
+ return writeTensorboardExperimentData(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun's.
+ * If any data fail to be ingested, an error will be returned.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String tensorboardExperiment =
+ * TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString();
+ * List writeRunDataRequests = new ArrayList<>();
+ * WriteTensorboardExperimentDataResponse response =
+ * tensorboardServiceClient.writeTensorboardExperimentData(
+ * tensorboardExperiment, writeRunDataRequests);
+ * }
+ * }
+ *
+ * @param tensorboardExperiment Required. The resource name of the TensorboardExperiment to write
+ * data to. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
+ * @param writeRunDataRequests Required. Requests containing per-run TensorboardTimeSeries data to
+ * write.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentData(
+ String tensorboardExperiment, List writeRunDataRequests) {
+ WriteTensorboardExperimentDataRequest request =
+ WriteTensorboardExperimentDataRequest.newBuilder()
+ .setTensorboardExperiment(tensorboardExperiment)
+ .addAllWriteRunDataRequests(writeRunDataRequests)
+ .build();
+ return writeTensorboardExperimentData(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun's.
+ * If any data fail to be ingested, an error will be returned.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * WriteTensorboardExperimentDataRequest request =
+ * WriteTensorboardExperimentDataRequest.newBuilder()
+ * .setTensorboardExperiment(
+ * TensorboardExperimentName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString())
+ * .addAllWriteRunDataRequests(new ArrayList())
+ * .build();
+ * WriteTensorboardExperimentDataResponse response =
+ * tensorboardServiceClient.writeTensorboardExperimentData(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentData(
+ WriteTensorboardExperimentDataRequest request) {
+ return writeTensorboardExperimentDataCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun's.
+ * If any data fail to be ingested, an error will be returned.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * WriteTensorboardExperimentDataRequest request =
+ * WriteTensorboardExperimentDataRequest.newBuilder()
+ * .setTensorboardExperiment(
+ * TensorboardExperimentName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
+ * .toString())
+ * .addAllWriteRunDataRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.writeTensorboardExperimentDataCallable().futureCall(request);
+ * // Do something.
+ * WriteTensorboardExperimentDataResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ WriteTensorboardExperimentDataRequest, WriteTensorboardExperimentDataResponse>
+ writeTensorboardExperimentDataCallable() {
+ return stub.writeTensorboardExperimentDataCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If
+ * any data fail to be ingested, an error will be returned.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardRunName tensorboardRun =
+ * TensorboardRunName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]");
+ * List timeSeriesData = new ArrayList<>();
+ * WriteTensorboardRunDataResponse response =
+ * tensorboardServiceClient.writeTensorboardRunData(tensorboardRun, timeSeriesData);
+ * }
+ * }
+ *
+ * @param tensorboardRun Required. The resource name of the TensorboardRun to write data to.
+ * Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+ * @param timeSeriesData Required. The TensorboardTimeSeries data to write. Values with in a time
+ * series are indexed by their step value. Repeated writes to the same step will overwrite the
+ * existing value for that step. The upper limit of data points per write request is 5000.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final WriteTensorboardRunDataResponse writeTensorboardRunData(
+ TensorboardRunName tensorboardRun, List timeSeriesData) {
+ WriteTensorboardRunDataRequest request =
+ WriteTensorboardRunDataRequest.newBuilder()
+ .setTensorboardRun(tensorboardRun == null ? null : tensorboardRun.toString())
+ .addAllTimeSeriesData(timeSeriesData)
+ .build();
+ return writeTensorboardRunData(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If
+ * any data fail to be ingested, an error will be returned.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * String tensorboardRun =
+ * TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+ * .toString();
+ * List timeSeriesData = new ArrayList<>();
+ * WriteTensorboardRunDataResponse response =
+ * tensorboardServiceClient.writeTensorboardRunData(tensorboardRun, timeSeriesData);
+ * }
+ * }
+ *
+ * @param tensorboardRun Required. The resource name of the TensorboardRun to write data to.
+ * Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
+ * @param timeSeriesData Required. The TensorboardTimeSeries data to write. Values with in a time
+ * series are indexed by their step value. Repeated writes to the same step will overwrite the
+ * existing value for that step. The upper limit of data points per write request is 5000.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final WriteTensorboardRunDataResponse writeTensorboardRunData(
+ String tensorboardRun, List timeSeriesData) {
+ WriteTensorboardRunDataRequest request =
+ WriteTensorboardRunDataRequest.newBuilder()
+ .setTensorboardRun(tensorboardRun)
+ .addAllTimeSeriesData(timeSeriesData)
+ .build();
+ return writeTensorboardRunData(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If
+ * any data fail to be ingested, an error will be returned.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * WriteTensorboardRunDataRequest request =
+ * WriteTensorboardRunDataRequest.newBuilder()
+ * .setTensorboardRun(
+ * TensorboardRunName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+ * .toString())
+ * .addAllTimeSeriesData(new ArrayList())
+ * .build();
+ * WriteTensorboardRunDataResponse response =
+ * tensorboardServiceClient.writeTensorboardRunData(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final WriteTensorboardRunDataResponse writeTensorboardRunData(
+ WriteTensorboardRunDataRequest request) {
+ return writeTensorboardRunDataCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If
+ * any data fail to be ingested, an error will be returned.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * WriteTensorboardRunDataRequest request =
+ * WriteTensorboardRunDataRequest.newBuilder()
+ * .setTensorboardRun(
+ * TensorboardRunName.of(
+ * "[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
+ * .toString())
+ * .addAllTimeSeriesData(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * tensorboardServiceClient.writeTensorboardRunDataCallable().futureCall(request);
+ * // Do something.
+ * WriteTensorboardRunDataResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ writeTensorboardRunDataCallable() {
+ return stub.writeTensorboardRunDataCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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);
+ * }
+ * }
+ * }
+ *
+ * @param tensorboardTimeSeries Required. The resource name of the TensorboardTimeSeries to export
+ * data from. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeSeriesData(
+ TensorboardTimeSeriesName tensorboardTimeSeries) {
+ ExportTensorboardTimeSeriesDataRequest request =
+ ExportTensorboardTimeSeriesDataRequest.newBuilder()
+ .setTensorboardTimeSeries(
+ tensorboardTimeSeries == null ? null : tensorboardTimeSeries.toString())
+ .build();
+ return exportTensorboardTimeSeriesData(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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);
+ * }
+ * }
+ * }
+ *
+ * @param tensorboardTimeSeries Required. The resource name of the TensorboardTimeSeries to export
+ * data from. Format:
+ * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeSeriesData(
+ String tensorboardTimeSeries) {
+ ExportTensorboardTimeSeriesDataRequest request =
+ ExportTensorboardTimeSeriesDataRequest.newBuilder()
+ .setTensorboardTimeSeries(tensorboardTimeSeries)
+ .build();
+ return exportTensorboardTimeSeriesData(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeSeriesData(
+ ExportTensorboardTimeSeriesDataRequest request) {
+ return exportTensorboardTimeSeriesDataPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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 future =
+ * tensorboardServiceClient
+ * .exportTensorboardTimeSeriesDataPagedCallable()
+ * .futureCall(request);
+ * // Do something.
+ * for (TimeSeriesDataPoint element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataPagedResponse>
+ exportTensorboardTimeSeriesDataPagedCallable() {
+ return stub.exportTensorboardTimeSeriesDataPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * 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.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse>
+ exportTensorboardTimeSeriesDataCallable() {
+ return stub.exportTensorboardTimeSeriesDataCallable();
+ }
+
+ @Override
+ public final void close() {
+ stub.close();
+ }
+
+ @Override
+ public void shutdown() {
+ stub.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return stub.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return stub.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ stub.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return stub.awaitTermination(duration, unit);
+ }
+
+ public static class ListTensorboardsPagedResponse
+ extends AbstractPagedListResponse<
+ ListTensorboardsRequest,
+ ListTensorboardsResponse,
+ Tensorboard,
+ ListTensorboardsPage,
+ ListTensorboardsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListTensorboardsPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListTensorboardsPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListTensorboardsPagedResponse(ListTensorboardsPage page) {
+ super(page, ListTensorboardsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListTensorboardsPage
+ extends AbstractPage<
+ ListTensorboardsRequest, ListTensorboardsResponse, Tensorboard, ListTensorboardsPage> {
+
+ private ListTensorboardsPage(
+ PageContext context,
+ ListTensorboardsResponse response) {
+ super(context, response);
+ }
+
+ private static ListTensorboardsPage createEmptyPage() {
+ return new ListTensorboardsPage(null, null);
+ }
+
+ @Override
+ protected ListTensorboardsPage createPage(
+ PageContext context,
+ ListTensorboardsResponse response) {
+ return new ListTensorboardsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListTensorboardsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListTensorboardsRequest,
+ ListTensorboardsResponse,
+ Tensorboard,
+ ListTensorboardsPage,
+ ListTensorboardsFixedSizeCollection> {
+
+ private ListTensorboardsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListTensorboardsFixedSizeCollection createEmptyCollection() {
+ return new ListTensorboardsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListTensorboardsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListTensorboardsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ListTensorboardExperimentsPagedResponse
+ extends AbstractPagedListResponse<
+ ListTensorboardExperimentsRequest,
+ ListTensorboardExperimentsResponse,
+ TensorboardExperiment,
+ ListTensorboardExperimentsPage,
+ ListTensorboardExperimentsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListTensorboardExperimentsRequest,
+ ListTensorboardExperimentsResponse,
+ TensorboardExperiment>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListTensorboardExperimentsPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListTensorboardExperimentsPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListTensorboardExperimentsPagedResponse(ListTensorboardExperimentsPage page) {
+ super(page, ListTensorboardExperimentsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListTensorboardExperimentsPage
+ extends AbstractPage<
+ ListTensorboardExperimentsRequest,
+ ListTensorboardExperimentsResponse,
+ TensorboardExperiment,
+ ListTensorboardExperimentsPage> {
+
+ private ListTensorboardExperimentsPage(
+ PageContext<
+ ListTensorboardExperimentsRequest,
+ ListTensorboardExperimentsResponse,
+ TensorboardExperiment>
+ context,
+ ListTensorboardExperimentsResponse response) {
+ super(context, response);
+ }
+
+ private static ListTensorboardExperimentsPage createEmptyPage() {
+ return new ListTensorboardExperimentsPage(null, null);
+ }
+
+ @Override
+ protected ListTensorboardExperimentsPage createPage(
+ PageContext<
+ ListTensorboardExperimentsRequest,
+ ListTensorboardExperimentsResponse,
+ TensorboardExperiment>
+ context,
+ ListTensorboardExperimentsResponse response) {
+ return new ListTensorboardExperimentsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ListTensorboardExperimentsRequest,
+ ListTensorboardExperimentsResponse,
+ TensorboardExperiment>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListTensorboardExperimentsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListTensorboardExperimentsRequest,
+ ListTensorboardExperimentsResponse,
+ TensorboardExperiment,
+ ListTensorboardExperimentsPage,
+ ListTensorboardExperimentsFixedSizeCollection> {
+
+ private ListTensorboardExperimentsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListTensorboardExperimentsFixedSizeCollection createEmptyCollection() {
+ return new ListTensorboardExperimentsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListTensorboardExperimentsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListTensorboardExperimentsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ListTensorboardRunsPagedResponse
+ extends AbstractPagedListResponse<
+ ListTensorboardRunsRequest,
+ ListTensorboardRunsResponse,
+ TensorboardRun,
+ ListTensorboardRunsPage,
+ ListTensorboardRunsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListTensorboardRunsPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListTensorboardRunsPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListTensorboardRunsPagedResponse(ListTensorboardRunsPage page) {
+ super(page, ListTensorboardRunsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListTensorboardRunsPage
+ extends AbstractPage<
+ ListTensorboardRunsRequest,
+ ListTensorboardRunsResponse,
+ TensorboardRun,
+ ListTensorboardRunsPage> {
+
+ private ListTensorboardRunsPage(
+ PageContext
+ context,
+ ListTensorboardRunsResponse response) {
+ super(context, response);
+ }
+
+ private static ListTensorboardRunsPage createEmptyPage() {
+ return new ListTensorboardRunsPage(null, null);
+ }
+
+ @Override
+ protected ListTensorboardRunsPage createPage(
+ PageContext
+ context,
+ ListTensorboardRunsResponse response) {
+ return new ListTensorboardRunsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListTensorboardRunsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListTensorboardRunsRequest,
+ ListTensorboardRunsResponse,
+ TensorboardRun,
+ ListTensorboardRunsPage,
+ ListTensorboardRunsFixedSizeCollection> {
+
+ private ListTensorboardRunsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListTensorboardRunsFixedSizeCollection createEmptyCollection() {
+ return new ListTensorboardRunsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListTensorboardRunsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListTensorboardRunsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ListTensorboardTimeSeriesPagedResponse
+ extends AbstractPagedListResponse<
+ ListTensorboardTimeSeriesRequest,
+ ListTensorboardTimeSeriesResponse,
+ TensorboardTimeSeries,
+ ListTensorboardTimeSeriesPage,
+ ListTensorboardTimeSeriesFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListTensorboardTimeSeriesRequest,
+ ListTensorboardTimeSeriesResponse,
+ TensorboardTimeSeries>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListTensorboardTimeSeriesPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListTensorboardTimeSeriesPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListTensorboardTimeSeriesPagedResponse(ListTensorboardTimeSeriesPage page) {
+ super(page, ListTensorboardTimeSeriesFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListTensorboardTimeSeriesPage
+ extends AbstractPage<
+ ListTensorboardTimeSeriesRequest,
+ ListTensorboardTimeSeriesResponse,
+ TensorboardTimeSeries,
+ ListTensorboardTimeSeriesPage> {
+
+ private ListTensorboardTimeSeriesPage(
+ PageContext<
+ ListTensorboardTimeSeriesRequest,
+ ListTensorboardTimeSeriesResponse,
+ TensorboardTimeSeries>
+ context,
+ ListTensorboardTimeSeriesResponse response) {
+ super(context, response);
+ }
+
+ private static ListTensorboardTimeSeriesPage createEmptyPage() {
+ return new ListTensorboardTimeSeriesPage(null, null);
+ }
+
+ @Override
+ protected ListTensorboardTimeSeriesPage createPage(
+ PageContext<
+ ListTensorboardTimeSeriesRequest,
+ ListTensorboardTimeSeriesResponse,
+ TensorboardTimeSeries>
+ context,
+ ListTensorboardTimeSeriesResponse response) {
+ return new ListTensorboardTimeSeriesPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ListTensorboardTimeSeriesRequest,
+ ListTensorboardTimeSeriesResponse,
+ TensorboardTimeSeries>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListTensorboardTimeSeriesFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListTensorboardTimeSeriesRequest,
+ ListTensorboardTimeSeriesResponse,
+ TensorboardTimeSeries,
+ ListTensorboardTimeSeriesPage,
+ ListTensorboardTimeSeriesFixedSizeCollection> {
+
+ private ListTensorboardTimeSeriesFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListTensorboardTimeSeriesFixedSizeCollection createEmptyCollection() {
+ return new ListTensorboardTimeSeriesFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListTensorboardTimeSeriesFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListTensorboardTimeSeriesFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ExportTensorboardTimeSeriesDataPagedResponse
+ extends AbstractPagedListResponse<
+ ExportTensorboardTimeSeriesDataRequest,
+ ExportTensorboardTimeSeriesDataResponse,
+ TimeSeriesDataPoint,
+ ExportTensorboardTimeSeriesDataPage,
+ ExportTensorboardTimeSeriesDataFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ExportTensorboardTimeSeriesDataRequest,
+ ExportTensorboardTimeSeriesDataResponse,
+ TimeSeriesDataPoint>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ExportTensorboardTimeSeriesDataPage.createEmptyPage()
+ .createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ExportTensorboardTimeSeriesDataPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ExportTensorboardTimeSeriesDataPagedResponse(ExportTensorboardTimeSeriesDataPage page) {
+ super(page, ExportTensorboardTimeSeriesDataFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ExportTensorboardTimeSeriesDataPage
+ extends AbstractPage<
+ ExportTensorboardTimeSeriesDataRequest,
+ ExportTensorboardTimeSeriesDataResponse,
+ TimeSeriesDataPoint,
+ ExportTensorboardTimeSeriesDataPage> {
+
+ private ExportTensorboardTimeSeriesDataPage(
+ PageContext<
+ ExportTensorboardTimeSeriesDataRequest,
+ ExportTensorboardTimeSeriesDataResponse,
+ TimeSeriesDataPoint>
+ context,
+ ExportTensorboardTimeSeriesDataResponse response) {
+ super(context, response);
+ }
+
+ private static ExportTensorboardTimeSeriesDataPage createEmptyPage() {
+ return new ExportTensorboardTimeSeriesDataPage(null, null);
+ }
+
+ @Override
+ protected ExportTensorboardTimeSeriesDataPage createPage(
+ PageContext<
+ ExportTensorboardTimeSeriesDataRequest,
+ ExportTensorboardTimeSeriesDataResponse,
+ TimeSeriesDataPoint>
+ context,
+ ExportTensorboardTimeSeriesDataResponse response) {
+ return new ExportTensorboardTimeSeriesDataPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ExportTensorboardTimeSeriesDataRequest,
+ ExportTensorboardTimeSeriesDataResponse,
+ TimeSeriesDataPoint>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ExportTensorboardTimeSeriesDataFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ExportTensorboardTimeSeriesDataRequest,
+ ExportTensorboardTimeSeriesDataResponse,
+ TimeSeriesDataPoint,
+ ExportTensorboardTimeSeriesDataPage,
+ ExportTensorboardTimeSeriesDataFixedSizeCollection> {
+
+ private ExportTensorboardTimeSeriesDataFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ExportTensorboardTimeSeriesDataFixedSizeCollection createEmptyCollection() {
+ return new ExportTensorboardTimeSeriesDataFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ExportTensorboardTimeSeriesDataFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ExportTensorboardTimeSeriesDataFixedSizeCollection(pages, collectionSize);
+ }
+ }
+}
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java
new file mode 100644
index 000000000..cdafabd38
--- /dev/null
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java
@@ -0,0 +1,648 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.aiplatform.v1;
+
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardRunsPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardsPagedResponse;
+
+import com.google.api.core.ApiFunction;
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.GoogleCredentialsProvider;
+import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientSettings;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.TransportChannelProvider;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.cloud.aiplatform.v1.stub.TensorboardServiceStubSettings;
+import com.google.longrunning.Operation;
+import com.google.protobuf.Empty;
+import java.io.IOException;
+import java.util.List;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Settings class to configure an instance of {@link TensorboardServiceClient}.
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ *
+ * - The default service address (aiplatform.googleapis.com) and default port (443) are used.
+ *
- Credentials are acquired automatically through Application Default Credentials.
+ *
- Retries are configured for idempotent methods but not for non-idempotent methods.
+ *
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ *
For example, to set the total timeout of getTensorboard to 30 seconds:
+ *
+ *
{@code
+ * TensorboardServiceSettings.Builder tensorboardServiceSettingsBuilder =
+ * TensorboardServiceSettings.newBuilder();
+ * tensorboardServiceSettingsBuilder
+ * .getTensorboardSettings()
+ * .setRetrySettings(
+ * tensorboardServiceSettingsBuilder
+ * .getTensorboardSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * TensorboardServiceSettings tensorboardServiceSettings =
+ * tensorboardServiceSettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class TensorboardServiceSettings extends ClientSettings {
+
+ /** Returns the object with the settings used for calls to createTensorboard. */
+ public UnaryCallSettings createTensorboardSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings()).createTensorboardSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createTensorboard. */
+ public OperationCallSettings<
+ CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata>
+ createTensorboardOperationSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .createTensorboardOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getTensorboard. */
+ public UnaryCallSettings getTensorboardSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings()).getTensorboardSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateTensorboard. */
+ public UnaryCallSettings updateTensorboardSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings()).updateTensorboardSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateTensorboard. */
+ public OperationCallSettings<
+ UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata>
+ updateTensorboardOperationSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .updateTensorboardOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listTensorboards. */
+ public PagedCallSettings<
+ ListTensorboardsRequest, ListTensorboardsResponse, ListTensorboardsPagedResponse>
+ listTensorboardsSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings()).listTensorboardsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteTensorboard. */
+ public UnaryCallSettings deleteTensorboardSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings()).deleteTensorboardSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteTensorboard. */
+ public OperationCallSettings
+ deleteTensorboardOperationSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .deleteTensorboardOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createTensorboardExperiment. */
+ public UnaryCallSettings
+ createTensorboardExperimentSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .createTensorboardExperimentSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getTensorboardExperiment. */
+ public UnaryCallSettings
+ getTensorboardExperimentSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings()).getTensorboardExperimentSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateTensorboardExperiment. */
+ public UnaryCallSettings
+ updateTensorboardExperimentSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .updateTensorboardExperimentSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listTensorboardExperiments. */
+ public PagedCallSettings<
+ ListTensorboardExperimentsRequest,
+ ListTensorboardExperimentsResponse,
+ ListTensorboardExperimentsPagedResponse>
+ listTensorboardExperimentsSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .listTensorboardExperimentsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteTensorboardExperiment. */
+ public UnaryCallSettings
+ deleteTensorboardExperimentSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .deleteTensorboardExperimentSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteTensorboardExperiment. */
+ public OperationCallSettings
+ deleteTensorboardExperimentOperationSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .deleteTensorboardExperimentOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createTensorboardRun. */
+ public UnaryCallSettings
+ createTensorboardRunSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings()).createTensorboardRunSettings();
+ }
+
+ /** Returns the object with the settings used for calls to batchCreateTensorboardRuns. */
+ public UnaryCallSettings
+ batchCreateTensorboardRunsSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .batchCreateTensorboardRunsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getTensorboardRun. */
+ public UnaryCallSettings getTensorboardRunSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings()).getTensorboardRunSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateTensorboardRun. */
+ public UnaryCallSettings
+ updateTensorboardRunSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings()).updateTensorboardRunSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listTensorboardRuns. */
+ public PagedCallSettings<
+ ListTensorboardRunsRequest, ListTensorboardRunsResponse, ListTensorboardRunsPagedResponse>
+ listTensorboardRunsSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings()).listTensorboardRunsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteTensorboardRun. */
+ public UnaryCallSettings deleteTensorboardRunSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings()).deleteTensorboardRunSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteTensorboardRun. */
+ public OperationCallSettings
+ deleteTensorboardRunOperationSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .deleteTensorboardRunOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to batchCreateTensorboardTimeSeries. */
+ public UnaryCallSettings<
+ BatchCreateTensorboardTimeSeriesRequest, BatchCreateTensorboardTimeSeriesResponse>
+ batchCreateTensorboardTimeSeriesSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .batchCreateTensorboardTimeSeriesSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createTensorboardTimeSeries. */
+ public UnaryCallSettings
+ createTensorboardTimeSeriesSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .createTensorboardTimeSeriesSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getTensorboardTimeSeries. */
+ public UnaryCallSettings
+ getTensorboardTimeSeriesSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings()).getTensorboardTimeSeriesSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateTensorboardTimeSeries. */
+ public UnaryCallSettings
+ updateTensorboardTimeSeriesSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .updateTensorboardTimeSeriesSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listTensorboardTimeSeries. */
+ public PagedCallSettings<
+ ListTensorboardTimeSeriesRequest,
+ ListTensorboardTimeSeriesResponse,
+ ListTensorboardTimeSeriesPagedResponse>
+ listTensorboardTimeSeriesSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings()).listTensorboardTimeSeriesSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteTensorboardTimeSeries. */
+ public UnaryCallSettings
+ deleteTensorboardTimeSeriesSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .deleteTensorboardTimeSeriesSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteTensorboardTimeSeries. */
+ public OperationCallSettings
+ deleteTensorboardTimeSeriesOperationSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .deleteTensorboardTimeSeriesOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to batchReadTensorboardTimeSeriesData. */
+ public UnaryCallSettings<
+ BatchReadTensorboardTimeSeriesDataRequest, BatchReadTensorboardTimeSeriesDataResponse>
+ batchReadTensorboardTimeSeriesDataSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .batchReadTensorboardTimeSeriesDataSettings();
+ }
+
+ /** Returns the object with the settings used for calls to readTensorboardTimeSeriesData. */
+ public UnaryCallSettings<
+ ReadTensorboardTimeSeriesDataRequest, ReadTensorboardTimeSeriesDataResponse>
+ readTensorboardTimeSeriesDataSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .readTensorboardTimeSeriesDataSettings();
+ }
+
+ /** Returns the object with the settings used for calls to readTensorboardBlobData. */
+ public ServerStreamingCallSettings<
+ ReadTensorboardBlobDataRequest, ReadTensorboardBlobDataResponse>
+ readTensorboardBlobDataSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings()).readTensorboardBlobDataSettings();
+ }
+
+ /** Returns the object with the settings used for calls to writeTensorboardExperimentData. */
+ public UnaryCallSettings<
+ WriteTensorboardExperimentDataRequest, WriteTensorboardExperimentDataResponse>
+ writeTensorboardExperimentDataSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .writeTensorboardExperimentDataSettings();
+ }
+
+ /** Returns the object with the settings used for calls to writeTensorboardRunData. */
+ public UnaryCallSettings
+ writeTensorboardRunDataSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings()).writeTensorboardRunDataSettings();
+ }
+
+ /** Returns the object with the settings used for calls to exportTensorboardTimeSeriesData. */
+ public PagedCallSettings<
+ ExportTensorboardTimeSeriesDataRequest,
+ ExportTensorboardTimeSeriesDataResponse,
+ ExportTensorboardTimeSeriesDataPagedResponse>
+ exportTensorboardTimeSeriesDataSettings() {
+ return ((TensorboardServiceStubSettings) getStubSettings())
+ .exportTensorboardTimeSeriesDataSettings();
+ }
+
+ public static final TensorboardServiceSettings create(TensorboardServiceStubSettings stub)
+ throws IOException {
+ return new TensorboardServiceSettings.Builder(stub.toBuilder()).build();
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return TensorboardServiceStubSettings.defaultExecutorProviderBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return TensorboardServiceStubSettings.getDefaultEndpoint();
+ }
+
+ /** Returns the default service scopes. */
+ public static List getDefaultServiceScopes() {
+ return TensorboardServiceStubSettings.getDefaultServiceScopes();
+ }
+
+ /** Returns a builder for the default credentials for this service. */
+ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
+ return TensorboardServiceStubSettings.defaultCredentialsProviderBuilder();
+ }
+
+ /** Returns a builder for the default ChannelProvider for this service. */
+ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
+ return TensorboardServiceStubSettings.defaultGrpcTransportProviderBuilder();
+ }
+
+ public static TransportChannelProvider defaultTransportChannelProvider() {
+ return TensorboardServiceStubSettings.defaultTransportChannelProvider();
+ }
+
+ @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return TensorboardServiceStubSettings.defaultApiClientHeaderProviderBuilder();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder() {
+ return Builder.createDefault();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder(ClientContext clientContext) {
+ return new Builder(clientContext);
+ }
+
+ /** Returns a builder containing all the values of this settings class. */
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ protected TensorboardServiceSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+ }
+
+ /** Builder for TensorboardServiceSettings. */
+ public static class Builder extends ClientSettings.Builder {
+
+ protected Builder() throws IOException {
+ this(((ClientContext) null));
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(TensorboardServiceStubSettings.newBuilder(clientContext));
+ }
+
+ protected Builder(TensorboardServiceSettings settings) {
+ super(settings.getStubSettings().toBuilder());
+ }
+
+ protected Builder(TensorboardServiceStubSettings.Builder stubSettings) {
+ super(stubSettings);
+ }
+
+ private static Builder createDefault() {
+ return new Builder(TensorboardServiceStubSettings.newBuilder());
+ }
+
+ public TensorboardServiceStubSettings.Builder getStubSettingsBuilder() {
+ return ((TensorboardServiceStubSettings.Builder) getStubSettings());
+ }
+
+ /**
+ * Applies the given settings updater function to all of the unary API methods in this service.
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction, Void> settingsUpdater) {
+ super.applyToAllUnaryMethods(
+ getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
+ return this;
+ }
+
+ /** Returns the builder for the settings used for calls to createTensorboard. */
+ public UnaryCallSettings.Builder
+ createTensorboardSettings() {
+ return getStubSettingsBuilder().createTensorboardSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createTensorboard. */
+ public OperationCallSettings.Builder<
+ CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata>
+ createTensorboardOperationSettings() {
+ return getStubSettingsBuilder().createTensorboardOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getTensorboard. */
+ public UnaryCallSettings.Builder getTensorboardSettings() {
+ return getStubSettingsBuilder().getTensorboardSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateTensorboard. */
+ public UnaryCallSettings.Builder
+ updateTensorboardSettings() {
+ return getStubSettingsBuilder().updateTensorboardSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateTensorboard. */
+ public OperationCallSettings.Builder<
+ UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata>
+ updateTensorboardOperationSettings() {
+ return getStubSettingsBuilder().updateTensorboardOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listTensorboards. */
+ public PagedCallSettings.Builder<
+ ListTensorboardsRequest, ListTensorboardsResponse, ListTensorboardsPagedResponse>
+ listTensorboardsSettings() {
+ return getStubSettingsBuilder().listTensorboardsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteTensorboard. */
+ public UnaryCallSettings.Builder
+ deleteTensorboardSettings() {
+ return getStubSettingsBuilder().deleteTensorboardSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteTensorboard. */
+ public OperationCallSettings.Builder
+ deleteTensorboardOperationSettings() {
+ return getStubSettingsBuilder().deleteTensorboardOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createTensorboardExperiment. */
+ public UnaryCallSettings.Builder
+ createTensorboardExperimentSettings() {
+ return getStubSettingsBuilder().createTensorboardExperimentSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getTensorboardExperiment. */
+ public UnaryCallSettings.Builder
+ getTensorboardExperimentSettings() {
+ return getStubSettingsBuilder().getTensorboardExperimentSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateTensorboardExperiment. */
+ public UnaryCallSettings.Builder
+ updateTensorboardExperimentSettings() {
+ return getStubSettingsBuilder().updateTensorboardExperimentSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listTensorboardExperiments. */
+ public PagedCallSettings.Builder<
+ ListTensorboardExperimentsRequest,
+ ListTensorboardExperimentsResponse,
+ ListTensorboardExperimentsPagedResponse>
+ listTensorboardExperimentsSettings() {
+ return getStubSettingsBuilder().listTensorboardExperimentsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteTensorboardExperiment. */
+ public UnaryCallSettings.Builder
+ deleteTensorboardExperimentSettings() {
+ return getStubSettingsBuilder().deleteTensorboardExperimentSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteTensorboardExperiment. */
+ public OperationCallSettings.Builder<
+ DeleteTensorboardExperimentRequest, Empty, DeleteOperationMetadata>
+ deleteTensorboardExperimentOperationSettings() {
+ return getStubSettingsBuilder().deleteTensorboardExperimentOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createTensorboardRun. */
+ public UnaryCallSettings.Builder
+ createTensorboardRunSettings() {
+ return getStubSettingsBuilder().createTensorboardRunSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to batchCreateTensorboardRuns. */
+ public UnaryCallSettings.Builder<
+ BatchCreateTensorboardRunsRequest, BatchCreateTensorboardRunsResponse>
+ batchCreateTensorboardRunsSettings() {
+ return getStubSettingsBuilder().batchCreateTensorboardRunsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getTensorboardRun. */
+ public UnaryCallSettings.Builder
+ getTensorboardRunSettings() {
+ return getStubSettingsBuilder().getTensorboardRunSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateTensorboardRun. */
+ public UnaryCallSettings.Builder
+ updateTensorboardRunSettings() {
+ return getStubSettingsBuilder().updateTensorboardRunSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listTensorboardRuns. */
+ public PagedCallSettings.Builder<
+ ListTensorboardRunsRequest,
+ ListTensorboardRunsResponse,
+ ListTensorboardRunsPagedResponse>
+ listTensorboardRunsSettings() {
+ return getStubSettingsBuilder().listTensorboardRunsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteTensorboardRun. */
+ public UnaryCallSettings.Builder
+ deleteTensorboardRunSettings() {
+ return getStubSettingsBuilder().deleteTensorboardRunSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteTensorboardRun. */
+ public OperationCallSettings.Builder<
+ DeleteTensorboardRunRequest, Empty, DeleteOperationMetadata>
+ deleteTensorboardRunOperationSettings() {
+ return getStubSettingsBuilder().deleteTensorboardRunOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to batchCreateTensorboardTimeSeries. */
+ public UnaryCallSettings.Builder<
+ BatchCreateTensorboardTimeSeriesRequest, BatchCreateTensorboardTimeSeriesResponse>
+ batchCreateTensorboardTimeSeriesSettings() {
+ return getStubSettingsBuilder().batchCreateTensorboardTimeSeriesSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createTensorboardTimeSeries. */
+ public UnaryCallSettings.Builder
+ createTensorboardTimeSeriesSettings() {
+ return getStubSettingsBuilder().createTensorboardTimeSeriesSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getTensorboardTimeSeries. */
+ public UnaryCallSettings.Builder
+ getTensorboardTimeSeriesSettings() {
+ return getStubSettingsBuilder().getTensorboardTimeSeriesSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateTensorboardTimeSeries. */
+ public UnaryCallSettings.Builder
+ updateTensorboardTimeSeriesSettings() {
+ return getStubSettingsBuilder().updateTensorboardTimeSeriesSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listTensorboardTimeSeries. */
+ public PagedCallSettings.Builder<
+ ListTensorboardTimeSeriesRequest,
+ ListTensorboardTimeSeriesResponse,
+ ListTensorboardTimeSeriesPagedResponse>
+ listTensorboardTimeSeriesSettings() {
+ return getStubSettingsBuilder().listTensorboardTimeSeriesSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteTensorboardTimeSeries. */
+ public UnaryCallSettings.Builder
+ deleteTensorboardTimeSeriesSettings() {
+ return getStubSettingsBuilder().deleteTensorboardTimeSeriesSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteTensorboardTimeSeries. */
+ public OperationCallSettings.Builder<
+ DeleteTensorboardTimeSeriesRequest, Empty, DeleteOperationMetadata>
+ deleteTensorboardTimeSeriesOperationSettings() {
+ return getStubSettingsBuilder().deleteTensorboardTimeSeriesOperationSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to batchReadTensorboardTimeSeriesData.
+ */
+ public UnaryCallSettings.Builder<
+ BatchReadTensorboardTimeSeriesDataRequest, BatchReadTensorboardTimeSeriesDataResponse>
+ batchReadTensorboardTimeSeriesDataSettings() {
+ return getStubSettingsBuilder().batchReadTensorboardTimeSeriesDataSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to readTensorboardTimeSeriesData. */
+ public UnaryCallSettings.Builder<
+ ReadTensorboardTimeSeriesDataRequest, ReadTensorboardTimeSeriesDataResponse>
+ readTensorboardTimeSeriesDataSettings() {
+ return getStubSettingsBuilder().readTensorboardTimeSeriesDataSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to readTensorboardBlobData. */
+ public ServerStreamingCallSettings.Builder<
+ ReadTensorboardBlobDataRequest, ReadTensorboardBlobDataResponse>
+ readTensorboardBlobDataSettings() {
+ return getStubSettingsBuilder().readTensorboardBlobDataSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to writeTensorboardExperimentData. */
+ public UnaryCallSettings.Builder<
+ WriteTensorboardExperimentDataRequest, WriteTensorboardExperimentDataResponse>
+ writeTensorboardExperimentDataSettings() {
+ return getStubSettingsBuilder().writeTensorboardExperimentDataSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to writeTensorboardRunData. */
+ public UnaryCallSettings.Builder<
+ WriteTensorboardRunDataRequest, WriteTensorboardRunDataResponse>
+ writeTensorboardRunDataSettings() {
+ return getStubSettingsBuilder().writeTensorboardRunDataSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to exportTensorboardTimeSeriesData. */
+ public PagedCallSettings.Builder<
+ ExportTensorboardTimeSeriesDataRequest,
+ ExportTensorboardTimeSeriesDataResponse,
+ ExportTensorboardTimeSeriesDataPagedResponse>
+ exportTensorboardTimeSeriesDataSettings() {
+ return getStubSettingsBuilder().exportTensorboardTimeSeriesDataSettings();
+ }
+
+ @Override
+ public TensorboardServiceSettings build() throws IOException {
+ return new TensorboardServiceSettings(this);
+ }
+ }
+}
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
index f8d3e55f3..1bdaf6a5f 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
@@ -542,6 +542,99 @@
}
}
},
+ "TensorboardService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "TensorboardServiceClient",
+ "rpcs": {
+ "BatchCreateTensorboardRuns": {
+ "methods": ["batchCreateTensorboardRuns", "batchCreateTensorboardRuns", "batchCreateTensorboardRuns", "batchCreateTensorboardRunsCallable"]
+ },
+ "BatchCreateTensorboardTimeSeries": {
+ "methods": ["batchCreateTensorboardTimeSeries", "batchCreateTensorboardTimeSeries", "batchCreateTensorboardTimeSeries", "batchCreateTensorboardTimeSeriesCallable"]
+ },
+ "BatchReadTensorboardTimeSeriesData": {
+ "methods": ["batchReadTensorboardTimeSeriesData", "batchReadTensorboardTimeSeriesData", "batchReadTensorboardTimeSeriesData", "batchReadTensorboardTimeSeriesDataCallable"]
+ },
+ "CreateTensorboard": {
+ "methods": ["createTensorboardAsync", "createTensorboardAsync", "createTensorboardAsync", "createTensorboardOperationCallable", "createTensorboardCallable"]
+ },
+ "CreateTensorboardExperiment": {
+ "methods": ["createTensorboardExperiment", "createTensorboardExperiment", "createTensorboardExperiment", "createTensorboardExperimentCallable"]
+ },
+ "CreateTensorboardRun": {
+ "methods": ["createTensorboardRun", "createTensorboardRun", "createTensorboardRun", "createTensorboardRunCallable"]
+ },
+ "CreateTensorboardTimeSeries": {
+ "methods": ["createTensorboardTimeSeries", "createTensorboardTimeSeries", "createTensorboardTimeSeries", "createTensorboardTimeSeriesCallable"]
+ },
+ "DeleteTensorboard": {
+ "methods": ["deleteTensorboardAsync", "deleteTensorboardAsync", "deleteTensorboardAsync", "deleteTensorboardOperationCallable", "deleteTensorboardCallable"]
+ },
+ "DeleteTensorboardExperiment": {
+ "methods": ["deleteTensorboardExperimentAsync", "deleteTensorboardExperimentAsync", "deleteTensorboardExperimentAsync", "deleteTensorboardExperimentOperationCallable", "deleteTensorboardExperimentCallable"]
+ },
+ "DeleteTensorboardRun": {
+ "methods": ["deleteTensorboardRunAsync", "deleteTensorboardRunAsync", "deleteTensorboardRunAsync", "deleteTensorboardRunOperationCallable", "deleteTensorboardRunCallable"]
+ },
+ "DeleteTensorboardTimeSeries": {
+ "methods": ["deleteTensorboardTimeSeriesAsync", "deleteTensorboardTimeSeriesAsync", "deleteTensorboardTimeSeriesAsync", "deleteTensorboardTimeSeriesOperationCallable", "deleteTensorboardTimeSeriesCallable"]
+ },
+ "ExportTensorboardTimeSeriesData": {
+ "methods": ["exportTensorboardTimeSeriesData", "exportTensorboardTimeSeriesData", "exportTensorboardTimeSeriesData", "exportTensorboardTimeSeriesDataPagedCallable", "exportTensorboardTimeSeriesDataCallable"]
+ },
+ "GetTensorboard": {
+ "methods": ["getTensorboard", "getTensorboard", "getTensorboard", "getTensorboardCallable"]
+ },
+ "GetTensorboardExperiment": {
+ "methods": ["getTensorboardExperiment", "getTensorboardExperiment", "getTensorboardExperiment", "getTensorboardExperimentCallable"]
+ },
+ "GetTensorboardRun": {
+ "methods": ["getTensorboardRun", "getTensorboardRun", "getTensorboardRun", "getTensorboardRunCallable"]
+ },
+ "GetTensorboardTimeSeries": {
+ "methods": ["getTensorboardTimeSeries", "getTensorboardTimeSeries", "getTensorboardTimeSeries", "getTensorboardTimeSeriesCallable"]
+ },
+ "ListTensorboardExperiments": {
+ "methods": ["listTensorboardExperiments", "listTensorboardExperiments", "listTensorboardExperiments", "listTensorboardExperimentsPagedCallable", "listTensorboardExperimentsCallable"]
+ },
+ "ListTensorboardRuns": {
+ "methods": ["listTensorboardRuns", "listTensorboardRuns", "listTensorboardRuns", "listTensorboardRunsPagedCallable", "listTensorboardRunsCallable"]
+ },
+ "ListTensorboardTimeSeries": {
+ "methods": ["listTensorboardTimeSeries", "listTensorboardTimeSeries", "listTensorboardTimeSeries", "listTensorboardTimeSeriesPagedCallable", "listTensorboardTimeSeriesCallable"]
+ },
+ "ListTensorboards": {
+ "methods": ["listTensorboards", "listTensorboards", "listTensorboards", "listTensorboardsPagedCallable", "listTensorboardsCallable"]
+ },
+ "ReadTensorboardBlobData": {
+ "methods": ["readTensorboardBlobDataCallable"]
+ },
+ "ReadTensorboardTimeSeriesData": {
+ "methods": ["readTensorboardTimeSeriesData", "readTensorboardTimeSeriesData", "readTensorboardTimeSeriesData", "readTensorboardTimeSeriesDataCallable"]
+ },
+ "UpdateTensorboard": {
+ "methods": ["updateTensorboardAsync", "updateTensorboardAsync", "updateTensorboardOperationCallable", "updateTensorboardCallable"]
+ },
+ "UpdateTensorboardExperiment": {
+ "methods": ["updateTensorboardExperiment", "updateTensorboardExperiment", "updateTensorboardExperimentCallable"]
+ },
+ "UpdateTensorboardRun": {
+ "methods": ["updateTensorboardRun", "updateTensorboardRun", "updateTensorboardRunCallable"]
+ },
+ "UpdateTensorboardTimeSeries": {
+ "methods": ["updateTensorboardTimeSeries", "updateTensorboardTimeSeries", "updateTensorboardTimeSeriesCallable"]
+ },
+ "WriteTensorboardExperimentData": {
+ "methods": ["writeTensorboardExperimentData", "writeTensorboardExperimentData", "writeTensorboardExperimentData", "writeTensorboardExperimentDataCallable"]
+ },
+ "WriteTensorboardRunData": {
+ "methods": ["writeTensorboardRunData", "writeTensorboardRunData", "writeTensorboardRunData", "writeTensorboardRunDataCallable"]
+ }
+ }
+ }
+ }
+ },
"VizierService": {
"clients": {
"grpc": {
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java
index e505dd560..dea14aabe 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java
@@ -208,6 +208,19 @@
* }
* }
*
+ * ======================= TensorboardServiceClient =======================
+ *
+ *
Service Description: TensorboardService
+ *
+ *
Sample for TensorboardServiceClient:
+ *
+ *
{@code
+ * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+ * TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
+ * Tensorboard response = tensorboardServiceClient.getTensorboard(name);
+ * }
+ * }
+ *
* ======================= VizierServiceClient =======================
*
*
Service Description: Vertex Vizier API.
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceCallableFactory.java
new file mode 100644
index 000000000..c551b814d
--- /dev/null
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceCallableFactory.java
@@ -0,0 +1,113 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.aiplatform.v1.stub;
+
+import com.google.api.gax.grpc.GrpcCallSettings;
+import com.google.api.gax.grpc.GrpcCallableFactory;
+import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.BidiStreamingCallable;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientStreamingCallable;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.StreamingCallSettings;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.Operation;
+import com.google.longrunning.stub.OperationsStub;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * gRPC callable factory implementation for the TensorboardService service API.
+ *
+ *
This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+public class GrpcTensorboardServiceCallableFactory implements GrpcStubCallableFactory {
+
+ @Override
+ public UnaryCallable createUnaryCallable(
+ GrpcCallSettings grpcCallSettings,
+ UnaryCallSettings callSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext);
+ }
+
+ @Override
+ public
+ UnaryCallable createPagedCallable(
+ GrpcCallSettings grpcCallSettings,
+ PagedCallSettings callSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext);
+ }
+
+ @Override
+ public UnaryCallable createBatchingCallable(
+ GrpcCallSettings grpcCallSettings,
+ BatchingCallSettings callSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createBatchingCallable(
+ grpcCallSettings, callSettings, clientContext);
+ }
+
+ @Override
+ public
+ OperationCallable createOperationCallable(
+ GrpcCallSettings grpcCallSettings,
+ OperationCallSettings callSettings,
+ ClientContext clientContext,
+ OperationsStub operationsStub) {
+ return GrpcCallableFactory.createOperationCallable(
+ grpcCallSettings, callSettings, clientContext, operationsStub);
+ }
+
+ @Override
+ public
+ BidiStreamingCallable createBidiStreamingCallable(
+ GrpcCallSettings grpcCallSettings,
+ StreamingCallSettings callSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createBidiStreamingCallable(
+ grpcCallSettings, callSettings, clientContext);
+ }
+
+ @Override
+ public
+ ServerStreamingCallable createServerStreamingCallable(
+ GrpcCallSettings grpcCallSettings,
+ ServerStreamingCallSettings callSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createServerStreamingCallable(
+ grpcCallSettings, callSettings, clientContext);
+ }
+
+ @Override
+ public
+ ClientStreamingCallable createClientStreamingCallable(
+ GrpcCallSettings grpcCallSettings,
+ StreamingCallSettings callSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createClientStreamingCallable(
+ grpcCallSettings, callSettings, clientContext);
+ }
+}
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceStub.java
new file mode 100644
index 000000000..d1cc5af7e
--- /dev/null
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceStub.java
@@ -0,0 +1,1388 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.aiplatform.v1.stub;
+
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardRunsPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardsPagedResponse;
+
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.core.BackgroundResourceAggregation;
+import com.google.api.gax.grpc.GrpcCallSettings;
+import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest;
+import com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse;
+import com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest;
+import com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse;
+import com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest;
+import com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse;
+import com.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest;
+import com.google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata;
+import com.google.cloud.aiplatform.v1.CreateTensorboardRequest;
+import com.google.cloud.aiplatform.v1.CreateTensorboardRunRequest;
+import com.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest;
+import com.google.cloud.aiplatform.v1.DeleteOperationMetadata;
+import com.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest;
+import com.google.cloud.aiplatform.v1.DeleteTensorboardRequest;
+import com.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest;
+import com.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest;
+import com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest;
+import com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse;
+import com.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest;
+import com.google.cloud.aiplatform.v1.GetTensorboardRequest;
+import com.google.cloud.aiplatform.v1.GetTensorboardRunRequest;
+import com.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest;
+import com.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest;
+import com.google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse;
+import com.google.cloud.aiplatform.v1.ListTensorboardRunsRequest;
+import com.google.cloud.aiplatform.v1.ListTensorboardRunsResponse;
+import com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest;
+import com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse;
+import com.google.cloud.aiplatform.v1.ListTensorboardsRequest;
+import com.google.cloud.aiplatform.v1.ListTensorboardsResponse;
+import com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest;
+import com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse;
+import com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest;
+import com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse;
+import com.google.cloud.aiplatform.v1.Tensorboard;
+import com.google.cloud.aiplatform.v1.TensorboardExperiment;
+import com.google.cloud.aiplatform.v1.TensorboardRun;
+import com.google.cloud.aiplatform.v1.TensorboardTimeSeries;
+import com.google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest;
+import com.google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata;
+import com.google.cloud.aiplatform.v1.UpdateTensorboardRequest;
+import com.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest;
+import com.google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest;
+import com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest;
+import com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse;
+import com.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest;
+import com.google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse;
+import com.google.common.collect.ImmutableMap;
+import com.google.longrunning.Operation;
+import com.google.longrunning.stub.GrpcOperationsStub;
+import com.google.protobuf.Empty;
+import io.grpc.MethodDescriptor;
+import io.grpc.protobuf.ProtoUtils;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * gRPC stub implementation for the TensorboardService service API.
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public class GrpcTensorboardServiceStub extends TensorboardServiceStub {
+ private static final MethodDescriptor
+ createTensorboardMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.aiplatform.v1.TensorboardService/CreateTensorboard")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreateTensorboardRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ getTensorboardMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.aiplatform.v1.TensorboardService/GetTensorboard")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetTensorboardRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Tensorboard.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ updateTensorboardMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.aiplatform.v1.TensorboardService/UpdateTensorboard")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(UpdateTensorboardRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ listTensorboardsMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.aiplatform.v1.TensorboardService/ListTensorboards")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListTensorboardsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListTensorboardsResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ deleteTensorboardMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.aiplatform.v1.TensorboardService/DeleteTensorboard")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(DeleteTensorboardRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ createTensorboardExperimentMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/CreateTensorboardExperiment")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreateTensorboardExperimentRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(TensorboardExperiment.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ getTensorboardExperimentMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/GetTensorboardExperiment")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetTensorboardExperimentRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(TensorboardExperiment.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ updateTensorboardExperimentMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/UpdateTensorboardExperiment")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(UpdateTensorboardExperimentRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(TensorboardExperiment.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ ListTensorboardExperimentsRequest, ListTensorboardExperimentsResponse>
+ listTensorboardExperimentsMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/ListTensorboardExperiments")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListTensorboardExperimentsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListTensorboardExperimentsResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ deleteTensorboardExperimentMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/DeleteTensorboardExperiment")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(DeleteTensorboardExperimentRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ createTensorboardRunMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/CreateTensorboardRun")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreateTensorboardRunRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(TensorboardRun.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ BatchCreateTensorboardRunsRequest, BatchCreateTensorboardRunsResponse>
+ batchCreateTensorboardRunsMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/BatchCreateTensorboardRuns")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(BatchCreateTensorboardRunsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(BatchCreateTensorboardRunsResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ getTensorboardRunMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.aiplatform.v1.TensorboardService/GetTensorboardRun")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetTensorboardRunRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(TensorboardRun.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ updateTensorboardRunMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/UpdateTensorboardRun")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(UpdateTensorboardRunRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(TensorboardRun.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ listTensorboardRunsMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/ListTensorboardRuns")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListTensorboardRunsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListTensorboardRunsResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ deleteTensorboardRunMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/DeleteTensorboardRun")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(DeleteTensorboardRunRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ BatchCreateTensorboardTimeSeriesRequest, BatchCreateTensorboardTimeSeriesResponse>
+ batchCreateTensorboardTimeSeriesMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/BatchCreateTensorboardTimeSeries")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ BatchCreateTensorboardTimeSeriesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(
+ BatchCreateTensorboardTimeSeriesResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ createTensorboardTimeSeriesMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/CreateTensorboardTimeSeries")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreateTensorboardTimeSeriesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(TensorboardTimeSeries.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ getTensorboardTimeSeriesMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/GetTensorboardTimeSeries")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetTensorboardTimeSeriesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(TensorboardTimeSeries.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ updateTensorboardTimeSeriesMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/UpdateTensorboardTimeSeries")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(UpdateTensorboardTimeSeriesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(TensorboardTimeSeries.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ ListTensorboardTimeSeriesRequest, ListTensorboardTimeSeriesResponse>
+ listTensorboardTimeSeriesMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/ListTensorboardTimeSeries")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListTensorboardTimeSeriesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListTensorboardTimeSeriesResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ deleteTensorboardTimeSeriesMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/DeleteTensorboardTimeSeries")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(DeleteTensorboardTimeSeriesRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ BatchReadTensorboardTimeSeriesDataRequest, BatchReadTensorboardTimeSeriesDataResponse>
+ batchReadTensorboardTimeSeriesDataMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/BatchReadTensorboardTimeSeriesData")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ BatchReadTensorboardTimeSeriesDataRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(
+ BatchReadTensorboardTimeSeriesDataResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ ReadTensorboardTimeSeriesDataRequest, ReadTensorboardTimeSeriesDataResponse>
+ readTensorboardTimeSeriesDataMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/ReadTensorboardTimeSeriesData")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ReadTensorboardTimeSeriesDataRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ReadTensorboardTimeSeriesDataResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ ReadTensorboardBlobDataRequest, ReadTensorboardBlobDataResponse>
+ readTensorboardBlobDataMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.SERVER_STREAMING)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/ReadTensorboardBlobData")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ReadTensorboardBlobDataRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ReadTensorboardBlobDataResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ WriteTensorboardExperimentDataRequest, WriteTensorboardExperimentDataResponse>
+ writeTensorboardExperimentDataMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/WriteTensorboardExperimentData")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(WriteTensorboardExperimentDataRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(
+ WriteTensorboardExperimentDataResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ WriteTensorboardRunDataRequest, WriteTensorboardRunDataResponse>
+ writeTensorboardRunDataMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/WriteTensorboardRunData")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(WriteTensorboardRunDataRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(WriteTensorboardRunDataResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse>
+ exportTensorboardTimeSeriesDataMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.aiplatform.v1.TensorboardService/ExportTensorboardTimeSeriesData")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ ExportTensorboardTimeSeriesDataRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(
+ ExportTensorboardTimeSeriesDataResponse.getDefaultInstance()))
+ .build();
+
+ private final UnaryCallable createTensorboardCallable;
+ private final OperationCallable<
+ CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata>
+ createTensorboardOperationCallable;
+ private final UnaryCallable getTensorboardCallable;
+ private final UnaryCallable updateTensorboardCallable;
+ private final OperationCallable<
+ UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata>
+ updateTensorboardOperationCallable;
+ private final UnaryCallable
+ listTensorboardsCallable;
+ private final UnaryCallable
+ listTensorboardsPagedCallable;
+ private final UnaryCallable deleteTensorboardCallable;
+ private final OperationCallable
+ deleteTensorboardOperationCallable;
+ private final UnaryCallable
+ createTensorboardExperimentCallable;
+ private final UnaryCallable
+ getTensorboardExperimentCallable;
+ private final UnaryCallable
+ updateTensorboardExperimentCallable;
+ private final UnaryCallable
+ listTensorboardExperimentsCallable;
+ private final UnaryCallable<
+ ListTensorboardExperimentsRequest, ListTensorboardExperimentsPagedResponse>
+ listTensorboardExperimentsPagedCallable;
+ private final UnaryCallable
+ deleteTensorboardExperimentCallable;
+ private final OperationCallable<
+ DeleteTensorboardExperimentRequest, Empty, DeleteOperationMetadata>
+ deleteTensorboardExperimentOperationCallable;
+ private final UnaryCallable
+ createTensorboardRunCallable;
+ private final UnaryCallable
+ batchCreateTensorboardRunsCallable;
+ private final UnaryCallable getTensorboardRunCallable;
+ private final UnaryCallable
+ updateTensorboardRunCallable;
+ private final UnaryCallable
+ listTensorboardRunsCallable;
+ private final UnaryCallable
+ listTensorboardRunsPagedCallable;
+ private final UnaryCallable deleteTensorboardRunCallable;
+ private final OperationCallable
+ deleteTensorboardRunOperationCallable;
+ private final UnaryCallable<
+ BatchCreateTensorboardTimeSeriesRequest, BatchCreateTensorboardTimeSeriesResponse>
+ batchCreateTensorboardTimeSeriesCallable;
+ private final UnaryCallable
+ createTensorboardTimeSeriesCallable;
+ private final UnaryCallable
+ getTensorboardTimeSeriesCallable;
+ private final UnaryCallable
+ updateTensorboardTimeSeriesCallable;
+ private final UnaryCallable
+ listTensorboardTimeSeriesCallable;
+ private final UnaryCallable<
+ ListTensorboardTimeSeriesRequest, ListTensorboardTimeSeriesPagedResponse>
+ listTensorboardTimeSeriesPagedCallable;
+ private final UnaryCallable
+ deleteTensorboardTimeSeriesCallable;
+ private final OperationCallable<
+ DeleteTensorboardTimeSeriesRequest, Empty, DeleteOperationMetadata>
+ deleteTensorboardTimeSeriesOperationCallable;
+ private final UnaryCallable<
+ BatchReadTensorboardTimeSeriesDataRequest, BatchReadTensorboardTimeSeriesDataResponse>
+ batchReadTensorboardTimeSeriesDataCallable;
+ private final UnaryCallable<
+ ReadTensorboardTimeSeriesDataRequest, ReadTensorboardTimeSeriesDataResponse>
+ readTensorboardTimeSeriesDataCallable;
+ private final ServerStreamingCallable<
+ ReadTensorboardBlobDataRequest, ReadTensorboardBlobDataResponse>
+ readTensorboardBlobDataCallable;
+ private final UnaryCallable<
+ WriteTensorboardExperimentDataRequest, WriteTensorboardExperimentDataResponse>
+ writeTensorboardExperimentDataCallable;
+ private final UnaryCallable
+ writeTensorboardRunDataCallable;
+ private final UnaryCallable<
+ ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse>
+ exportTensorboardTimeSeriesDataCallable;
+ private final UnaryCallable<
+ ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataPagedResponse>
+ exportTensorboardTimeSeriesDataPagedCallable;
+
+ private final BackgroundResource backgroundResources;
+ private final GrpcOperationsStub operationsStub;
+ private final GrpcStubCallableFactory callableFactory;
+
+ public static final GrpcTensorboardServiceStub create(TensorboardServiceStubSettings settings)
+ throws IOException {
+ return new GrpcTensorboardServiceStub(settings, ClientContext.create(settings));
+ }
+
+ public static final GrpcTensorboardServiceStub create(ClientContext clientContext)
+ throws IOException {
+ return new GrpcTensorboardServiceStub(
+ TensorboardServiceStubSettings.newBuilder().build(), clientContext);
+ }
+
+ public static final GrpcTensorboardServiceStub create(
+ ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException {
+ return new GrpcTensorboardServiceStub(
+ TensorboardServiceStubSettings.newBuilder().build(), clientContext, callableFactory);
+ }
+
+ /**
+ * Constructs an instance of GrpcTensorboardServiceStub, 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.
+ */
+ protected GrpcTensorboardServiceStub(
+ TensorboardServiceStubSettings settings, ClientContext clientContext) throws IOException {
+ this(settings, clientContext, new GrpcTensorboardServiceCallableFactory());
+ }
+
+ /**
+ * Constructs an instance of GrpcTensorboardServiceStub, 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.
+ */
+ protected GrpcTensorboardServiceStub(
+ TensorboardServiceStubSettings settings,
+ ClientContext clientContext,
+ GrpcStubCallableFactory callableFactory)
+ throws IOException {
+ this.callableFactory = callableFactory;
+ this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
+
+ GrpcCallSettings createTensorboardTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(createTensorboardMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings getTensorboardTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getTensorboardMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings updateTensorboardTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(updateTensorboardMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put(
+ "tensorboard.name", String.valueOf(request.getTensorboard().getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ listTensorboardsTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(listTensorboardsMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings deleteTensorboardTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(deleteTensorboardMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ createTensorboardExperimentTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(createTensorboardExperimentMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ getTensorboardExperimentTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getTensorboardExperimentMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ updateTensorboardExperimentTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(updateTensorboardExperimentMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put(
+ "tensorboard_experiment.name",
+ String.valueOf(request.getTensorboardExperiment().getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ listTensorboardExperimentsTransportSettings =
+ GrpcCallSettings
+ .newBuilder()
+ .setMethodDescriptor(listTensorboardExperimentsMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ deleteTensorboardExperimentTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(deleteTensorboardExperimentMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ createTensorboardRunTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(createTensorboardRunMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ batchCreateTensorboardRunsTransportSettings =
+ GrpcCallSettings
+ .newBuilder()
+ .setMethodDescriptor(batchCreateTensorboardRunsMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings getTensorboardRunTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getTensorboardRunMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ updateTensorboardRunTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(updateTensorboardRunMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put(
+ "tensorboard_run.name",
+ String.valueOf(request.getTensorboardRun().getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ listTensorboardRunsTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(listTensorboardRunsMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings deleteTensorboardRunTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(deleteTensorboardRunMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings<
+ BatchCreateTensorboardTimeSeriesRequest, BatchCreateTensorboardTimeSeriesResponse>
+ batchCreateTensorboardTimeSeriesTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(batchCreateTensorboardTimeSeriesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ createTensorboardTimeSeriesTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(createTensorboardTimeSeriesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ getTensorboardTimeSeriesTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getTensorboardTimeSeriesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ updateTensorboardTimeSeriesTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(updateTensorboardTimeSeriesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put(
+ "tensorboard_time_series.name",
+ String.valueOf(request.getTensorboardTimeSeries().getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ listTensorboardTimeSeriesTransportSettings =
+ GrpcCallSettings
+ .newBuilder()
+ .setMethodDescriptor(listTensorboardTimeSeriesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ deleteTensorboardTimeSeriesTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(deleteTensorboardTimeSeriesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings<
+ BatchReadTensorboardTimeSeriesDataRequest, BatchReadTensorboardTimeSeriesDataResponse>
+ batchReadTensorboardTimeSeriesDataTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(batchReadTensorboardTimeSeriesDataMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("tensorboard", String.valueOf(request.getTensorboard()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ readTensorboardTimeSeriesDataTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(readTensorboardTimeSeriesDataMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put(
+ "tensorboard_time_series",
+ String.valueOf(request.getTensorboardTimeSeries()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ readTensorboardBlobDataTransportSettings =
+ GrpcCallSettings
+ .newBuilder()
+ .setMethodDescriptor(readTensorboardBlobDataMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("time_series", String.valueOf(request.getTimeSeries()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ writeTensorboardExperimentDataTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(writeTensorboardExperimentDataMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put(
+ "tensorboard_experiment",
+ String.valueOf(request.getTensorboardExperiment()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings
+ writeTensorboardRunDataTransportSettings =
+ GrpcCallSettings
+ .newBuilder()
+ .setMethodDescriptor(writeTensorboardRunDataMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("tensorboard_run", String.valueOf(request.getTensorboardRun()));
+ return params.build();
+ })
+ .build();
+ GrpcCallSettings<
+ ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse>
+ exportTensorboardTimeSeriesDataTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(exportTensorboardTimeSeriesDataMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put(
+ "tensorboard_time_series",
+ String.valueOf(request.getTensorboardTimeSeries()));
+ return params.build();
+ })
+ .build();
+
+ this.createTensorboardCallable =
+ callableFactory.createUnaryCallable(
+ createTensorboardTransportSettings,
+ settings.createTensorboardSettings(),
+ clientContext);
+ this.createTensorboardOperationCallable =
+ callableFactory.createOperationCallable(
+ createTensorboardTransportSettings,
+ settings.createTensorboardOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.getTensorboardCallable =
+ callableFactory.createUnaryCallable(
+ getTensorboardTransportSettings, settings.getTensorboardSettings(), clientContext);
+ this.updateTensorboardCallable =
+ callableFactory.createUnaryCallable(
+ updateTensorboardTransportSettings,
+ settings.updateTensorboardSettings(),
+ clientContext);
+ this.updateTensorboardOperationCallable =
+ callableFactory.createOperationCallable(
+ updateTensorboardTransportSettings,
+ settings.updateTensorboardOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.listTensorboardsCallable =
+ callableFactory.createUnaryCallable(
+ listTensorboardsTransportSettings, settings.listTensorboardsSettings(), clientContext);
+ this.listTensorboardsPagedCallable =
+ callableFactory.createPagedCallable(
+ listTensorboardsTransportSettings, settings.listTensorboardsSettings(), clientContext);
+ this.deleteTensorboardCallable =
+ callableFactory.createUnaryCallable(
+ deleteTensorboardTransportSettings,
+ settings.deleteTensorboardSettings(),
+ clientContext);
+ this.deleteTensorboardOperationCallable =
+ callableFactory.createOperationCallable(
+ deleteTensorboardTransportSettings,
+ settings.deleteTensorboardOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.createTensorboardExperimentCallable =
+ callableFactory.createUnaryCallable(
+ createTensorboardExperimentTransportSettings,
+ settings.createTensorboardExperimentSettings(),
+ clientContext);
+ this.getTensorboardExperimentCallable =
+ callableFactory.createUnaryCallable(
+ getTensorboardExperimentTransportSettings,
+ settings.getTensorboardExperimentSettings(),
+ clientContext);
+ this.updateTensorboardExperimentCallable =
+ callableFactory.createUnaryCallable(
+ updateTensorboardExperimentTransportSettings,
+ settings.updateTensorboardExperimentSettings(),
+ clientContext);
+ this.listTensorboardExperimentsCallable =
+ callableFactory.createUnaryCallable(
+ listTensorboardExperimentsTransportSettings,
+ settings.listTensorboardExperimentsSettings(),
+ clientContext);
+ this.listTensorboardExperimentsPagedCallable =
+ callableFactory.createPagedCallable(
+ listTensorboardExperimentsTransportSettings,
+ settings.listTensorboardExperimentsSettings(),
+ clientContext);
+ this.deleteTensorboardExperimentCallable =
+ callableFactory.createUnaryCallable(
+ deleteTensorboardExperimentTransportSettings,
+ settings.deleteTensorboardExperimentSettings(),
+ clientContext);
+ this.deleteTensorboardExperimentOperationCallable =
+ callableFactory.createOperationCallable(
+ deleteTensorboardExperimentTransportSettings,
+ settings.deleteTensorboardExperimentOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.createTensorboardRunCallable =
+ callableFactory.createUnaryCallable(
+ createTensorboardRunTransportSettings,
+ settings.createTensorboardRunSettings(),
+ clientContext);
+ this.batchCreateTensorboardRunsCallable =
+ callableFactory.createUnaryCallable(
+ batchCreateTensorboardRunsTransportSettings,
+ settings.batchCreateTensorboardRunsSettings(),
+ clientContext);
+ this.getTensorboardRunCallable =
+ callableFactory.createUnaryCallable(
+ getTensorboardRunTransportSettings,
+ settings.getTensorboardRunSettings(),
+ clientContext);
+ this.updateTensorboardRunCallable =
+ callableFactory.createUnaryCallable(
+ updateTensorboardRunTransportSettings,
+ settings.updateTensorboardRunSettings(),
+ clientContext);
+ this.listTensorboardRunsCallable =
+ callableFactory.createUnaryCallable(
+ listTensorboardRunsTransportSettings,
+ settings.listTensorboardRunsSettings(),
+ clientContext);
+ this.listTensorboardRunsPagedCallable =
+ callableFactory.createPagedCallable(
+ listTensorboardRunsTransportSettings,
+ settings.listTensorboardRunsSettings(),
+ clientContext);
+ this.deleteTensorboardRunCallable =
+ callableFactory.createUnaryCallable(
+ deleteTensorboardRunTransportSettings,
+ settings.deleteTensorboardRunSettings(),
+ clientContext);
+ this.deleteTensorboardRunOperationCallable =
+ callableFactory.createOperationCallable(
+ deleteTensorboardRunTransportSettings,
+ settings.deleteTensorboardRunOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.batchCreateTensorboardTimeSeriesCallable =
+ callableFactory.createUnaryCallable(
+ batchCreateTensorboardTimeSeriesTransportSettings,
+ settings.batchCreateTensorboardTimeSeriesSettings(),
+ clientContext);
+ this.createTensorboardTimeSeriesCallable =
+ callableFactory.createUnaryCallable(
+ createTensorboardTimeSeriesTransportSettings,
+ settings.createTensorboardTimeSeriesSettings(),
+ clientContext);
+ this.getTensorboardTimeSeriesCallable =
+ callableFactory.createUnaryCallable(
+ getTensorboardTimeSeriesTransportSettings,
+ settings.getTensorboardTimeSeriesSettings(),
+ clientContext);
+ this.updateTensorboardTimeSeriesCallable =
+ callableFactory.createUnaryCallable(
+ updateTensorboardTimeSeriesTransportSettings,
+ settings.updateTensorboardTimeSeriesSettings(),
+ clientContext);
+ this.listTensorboardTimeSeriesCallable =
+ callableFactory.createUnaryCallable(
+ listTensorboardTimeSeriesTransportSettings,
+ settings.listTensorboardTimeSeriesSettings(),
+ clientContext);
+ this.listTensorboardTimeSeriesPagedCallable =
+ callableFactory.createPagedCallable(
+ listTensorboardTimeSeriesTransportSettings,
+ settings.listTensorboardTimeSeriesSettings(),
+ clientContext);
+ this.deleteTensorboardTimeSeriesCallable =
+ callableFactory.createUnaryCallable(
+ deleteTensorboardTimeSeriesTransportSettings,
+ settings.deleteTensorboardTimeSeriesSettings(),
+ clientContext);
+ this.deleteTensorboardTimeSeriesOperationCallable =
+ callableFactory.createOperationCallable(
+ deleteTensorboardTimeSeriesTransportSettings,
+ settings.deleteTensorboardTimeSeriesOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.batchReadTensorboardTimeSeriesDataCallable =
+ callableFactory.createUnaryCallable(
+ batchReadTensorboardTimeSeriesDataTransportSettings,
+ settings.batchReadTensorboardTimeSeriesDataSettings(),
+ clientContext);
+ this.readTensorboardTimeSeriesDataCallable =
+ callableFactory.createUnaryCallable(
+ readTensorboardTimeSeriesDataTransportSettings,
+ settings.readTensorboardTimeSeriesDataSettings(),
+ clientContext);
+ this.readTensorboardBlobDataCallable =
+ callableFactory.createServerStreamingCallable(
+ readTensorboardBlobDataTransportSettings,
+ settings.readTensorboardBlobDataSettings(),
+ clientContext);
+ this.writeTensorboardExperimentDataCallable =
+ callableFactory.createUnaryCallable(
+ writeTensorboardExperimentDataTransportSettings,
+ settings.writeTensorboardExperimentDataSettings(),
+ clientContext);
+ this.writeTensorboardRunDataCallable =
+ callableFactory.createUnaryCallable(
+ writeTensorboardRunDataTransportSettings,
+ settings.writeTensorboardRunDataSettings(),
+ clientContext);
+ this.exportTensorboardTimeSeriesDataCallable =
+ callableFactory.createUnaryCallable(
+ exportTensorboardTimeSeriesDataTransportSettings,
+ settings.exportTensorboardTimeSeriesDataSettings(),
+ clientContext);
+ this.exportTensorboardTimeSeriesDataPagedCallable =
+ callableFactory.createPagedCallable(
+ exportTensorboardTimeSeriesDataTransportSettings,
+ settings.exportTensorboardTimeSeriesDataSettings(),
+ clientContext);
+
+ this.backgroundResources =
+ new BackgroundResourceAggregation(clientContext.getBackgroundResources());
+ }
+
+ public GrpcOperationsStub getOperationsStub() {
+ return operationsStub;
+ }
+
+ @Override
+ public UnaryCallable createTensorboardCallable() {
+ return createTensorboardCallable;
+ }
+
+ @Override
+ public OperationCallable<
+ CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata>
+ createTensorboardOperationCallable() {
+ return createTensorboardOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable getTensorboardCallable() {
+ return getTensorboardCallable;
+ }
+
+ @Override
+ public UnaryCallable updateTensorboardCallable() {
+ return updateTensorboardCallable;
+ }
+
+ @Override
+ public OperationCallable<
+ UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata>
+ updateTensorboardOperationCallable() {
+ return updateTensorboardOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listTensorboardsCallable() {
+ return listTensorboardsCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listTensorboardsPagedCallable() {
+ return listTensorboardsPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable deleteTensorboardCallable() {
+ return deleteTensorboardCallable;
+ }
+
+ @Override
+ public OperationCallable
+ deleteTensorboardOperationCallable() {
+ return deleteTensorboardOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ createTensorboardExperimentCallable() {
+ return createTensorboardExperimentCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ getTensorboardExperimentCallable() {
+ return getTensorboardExperimentCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ updateTensorboardExperimentCallable() {
+ return updateTensorboardExperimentCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listTensorboardExperimentsCallable() {
+ return listTensorboardExperimentsCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listTensorboardExperimentsPagedCallable() {
+ return listTensorboardExperimentsPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ deleteTensorboardExperimentCallable() {
+ return deleteTensorboardExperimentCallable;
+ }
+
+ @Override
+ public OperationCallable
+ deleteTensorboardExperimentOperationCallable() {
+ return deleteTensorboardExperimentOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable createTensorboardRunCallable() {
+ return createTensorboardRunCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ batchCreateTensorboardRunsCallable() {
+ return batchCreateTensorboardRunsCallable;
+ }
+
+ @Override
+ public UnaryCallable getTensorboardRunCallable() {
+ return getTensorboardRunCallable;
+ }
+
+ @Override
+ public UnaryCallable updateTensorboardRunCallable() {
+ return updateTensorboardRunCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listTensorboardRunsCallable() {
+ return listTensorboardRunsCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listTensorboardRunsPagedCallable() {
+ return listTensorboardRunsPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable deleteTensorboardRunCallable() {
+ return deleteTensorboardRunCallable;
+ }
+
+ @Override
+ public OperationCallable
+ deleteTensorboardRunOperationCallable() {
+ return deleteTensorboardRunOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ BatchCreateTensorboardTimeSeriesRequest, BatchCreateTensorboardTimeSeriesResponse>
+ batchCreateTensorboardTimeSeriesCallable() {
+ return batchCreateTensorboardTimeSeriesCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ createTensorboardTimeSeriesCallable() {
+ return createTensorboardTimeSeriesCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ getTensorboardTimeSeriesCallable() {
+ return getTensorboardTimeSeriesCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ updateTensorboardTimeSeriesCallable() {
+ return updateTensorboardTimeSeriesCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listTensorboardTimeSeriesCallable() {
+ return listTensorboardTimeSeriesCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listTensorboardTimeSeriesPagedCallable() {
+ return listTensorboardTimeSeriesPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ deleteTensorboardTimeSeriesCallable() {
+ return deleteTensorboardTimeSeriesCallable;
+ }
+
+ @Override
+ public OperationCallable
+ deleteTensorboardTimeSeriesOperationCallable() {
+ return deleteTensorboardTimeSeriesOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ BatchReadTensorboardTimeSeriesDataRequest, BatchReadTensorboardTimeSeriesDataResponse>
+ batchReadTensorboardTimeSeriesDataCallable() {
+ return batchReadTensorboardTimeSeriesDataCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ readTensorboardTimeSeriesDataCallable() {
+ return readTensorboardTimeSeriesDataCallable;
+ }
+
+ @Override
+ public ServerStreamingCallable
+ readTensorboardBlobDataCallable() {
+ return readTensorboardBlobDataCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ WriteTensorboardExperimentDataRequest, WriteTensorboardExperimentDataResponse>
+ writeTensorboardExperimentDataCallable() {
+ return writeTensorboardExperimentDataCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ writeTensorboardRunDataCallable() {
+ return writeTensorboardRunDataCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse>
+ exportTensorboardTimeSeriesDataCallable() {
+ return exportTensorboardTimeSeriesDataCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataPagedResponse>
+ exportTensorboardTimeSeriesDataPagedCallable() {
+ return exportTensorboardTimeSeriesDataPagedCallable;
+ }
+
+ @Override
+ public final void close() {
+ try {
+ backgroundResources.close();
+ } catch (RuntimeException e) {
+ throw e;
+ } catch (Exception e) {
+ throw new IllegalStateException("Failed to close resource", e);
+ }
+ }
+
+ @Override
+ public void shutdown() {
+ backgroundResources.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return backgroundResources.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return backgroundResources.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ backgroundResources.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return backgroundResources.awaitTermination(duration, unit);
+ }
+}
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java
new file mode 100644
index 000000000..fc805a013
--- /dev/null
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java
@@ -0,0 +1,312 @@
+/*
+ * Copyright 2021 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.aiplatform.v1.stub;
+
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardRunsPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardsPagedResponse;
+
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest;
+import com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse;
+import com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest;
+import com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse;
+import com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest;
+import com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse;
+import com.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest;
+import com.google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata;
+import com.google.cloud.aiplatform.v1.CreateTensorboardRequest;
+import com.google.cloud.aiplatform.v1.CreateTensorboardRunRequest;
+import com.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest;
+import com.google.cloud.aiplatform.v1.DeleteOperationMetadata;
+import com.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest;
+import com.google.cloud.aiplatform.v1.DeleteTensorboardRequest;
+import com.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest;
+import com.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest;
+import com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest;
+import com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse;
+import com.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest;
+import com.google.cloud.aiplatform.v1.GetTensorboardRequest;
+import com.google.cloud.aiplatform.v1.GetTensorboardRunRequest;
+import com.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest;
+import com.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest;
+import com.google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse;
+import com.google.cloud.aiplatform.v1.ListTensorboardRunsRequest;
+import com.google.cloud.aiplatform.v1.ListTensorboardRunsResponse;
+import com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest;
+import com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse;
+import com.google.cloud.aiplatform.v1.ListTensorboardsRequest;
+import com.google.cloud.aiplatform.v1.ListTensorboardsResponse;
+import com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest;
+import com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse;
+import com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest;
+import com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse;
+import com.google.cloud.aiplatform.v1.Tensorboard;
+import com.google.cloud.aiplatform.v1.TensorboardExperiment;
+import com.google.cloud.aiplatform.v1.TensorboardRun;
+import com.google.cloud.aiplatform.v1.TensorboardTimeSeries;
+import com.google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest;
+import com.google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata;
+import com.google.cloud.aiplatform.v1.UpdateTensorboardRequest;
+import com.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest;
+import com.google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest;
+import com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest;
+import com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse;
+import com.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest;
+import com.google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse;
+import com.google.longrunning.Operation;
+import com.google.longrunning.stub.OperationsStub;
+import com.google.protobuf.Empty;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the TensorboardService service API.
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public abstract class TensorboardServiceStub implements BackgroundResource {
+
+ public OperationsStub getOperationsStub() {
+ throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+ }
+
+ public OperationCallable<
+ CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata>
+ createTensorboardOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: createTensorboardOperationCallable()");
+ }
+
+ public UnaryCallable createTensorboardCallable() {
+ throw new UnsupportedOperationException("Not implemented: createTensorboardCallable()");
+ }
+
+ public UnaryCallable getTensorboardCallable() {
+ throw new UnsupportedOperationException("Not implemented: getTensorboardCallable()");
+ }
+
+ public OperationCallable<
+ UpdateTensorboardRequest, Tensorboard, UpdateTensorboardOperationMetadata>
+ updateTensorboardOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: updateTensorboardOperationCallable()");
+ }
+
+ public UnaryCallable updateTensorboardCallable() {
+ throw new UnsupportedOperationException("Not implemented: updateTensorboardCallable()");
+ }
+
+ public UnaryCallable
+ listTensorboardsPagedCallable() {
+ throw new UnsupportedOperationException("Not implemented: listTensorboardsPagedCallable()");
+ }
+
+ public UnaryCallable
+ listTensorboardsCallable() {
+ throw new UnsupportedOperationException("Not implemented: listTensorboardsCallable()");
+ }
+
+ public OperationCallable
+ deleteTensorboardOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: deleteTensorboardOperationCallable()");
+ }
+
+ public UnaryCallable deleteTensorboardCallable() {
+ throw new UnsupportedOperationException("Not implemented: deleteTensorboardCallable()");
+ }
+
+ public UnaryCallable
+ createTensorboardExperimentCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: createTensorboardExperimentCallable()");
+ }
+
+ public UnaryCallable
+ getTensorboardExperimentCallable() {
+ throw new UnsupportedOperationException("Not implemented: getTensorboardExperimentCallable()");
+ }
+
+ public UnaryCallable
+ updateTensorboardExperimentCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: updateTensorboardExperimentCallable()");
+ }
+
+ public UnaryCallable
+ listTensorboardExperimentsPagedCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listTensorboardExperimentsPagedCallable()");
+ }
+
+ public UnaryCallable
+ listTensorboardExperimentsCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listTensorboardExperimentsCallable()");
+ }
+
+ public OperationCallable
+ deleteTensorboardExperimentOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: deleteTensorboardExperimentOperationCallable()");
+ }
+
+ public UnaryCallable
+ deleteTensorboardExperimentCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: deleteTensorboardExperimentCallable()");
+ }
+
+ public UnaryCallable createTensorboardRunCallable() {
+ throw new UnsupportedOperationException("Not implemented: createTensorboardRunCallable()");
+ }
+
+ public UnaryCallable
+ batchCreateTensorboardRunsCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: batchCreateTensorboardRunsCallable()");
+ }
+
+ public UnaryCallable getTensorboardRunCallable() {
+ throw new UnsupportedOperationException("Not implemented: getTensorboardRunCallable()");
+ }
+
+ public UnaryCallable updateTensorboardRunCallable() {
+ throw new UnsupportedOperationException("Not implemented: updateTensorboardRunCallable()");
+ }
+
+ public UnaryCallable