AggregateIssueStats
AggregateIssueStats provides database resource issues statistics.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *aggregateIssueStats(AggregateIssueStatsRequest request) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *aggregateIssueStatsCallable() + *
See the individual methods for example code. @@ -564,6 +577,69 @@ public final QueryDatabaseResourceGroupsPagedResponse queryDatabaseResourceGroup return stub.queryDatabaseResourceGroupsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * AggregateIssueStats provides database resource issues statistics. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DatabaseCenterClient databaseCenterClient = DatabaseCenterClient.create()) {
+ * AggregateIssueStatsRequest request =
+ * AggregateIssueStatsRequest.newBuilder()
+ * .setParent("parent-995424086")
+ * .setFilter("filter-1274492040")
+ * .addAllSignalTypeGroups(new ArrayList())
+ * .setBaselineDate(Date.newBuilder().build())
+ * .build();
+ * AggregateIssueStatsResponse response = databaseCenterClient.aggregateIssueStats(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 AggregateIssueStatsResponse aggregateIssueStats(AggregateIssueStatsRequest request) {
+ return aggregateIssueStatsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * AggregateIssueStats provides database resource issues statistics.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DatabaseCenterClient databaseCenterClient = DatabaseCenterClient.create()) {
+ * AggregateIssueStatsRequest request =
+ * AggregateIssueStatsRequest.newBuilder()
+ * .setParent("parent-995424086")
+ * .setFilter("filter-1274492040")
+ * .addAllSignalTypeGroups(new ArrayList())
+ * .setBaselineDate(Date.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * databaseCenterClient.aggregateIssueStatsCallable().futureCall(request);
+ * // Do something.
+ * AggregateIssueStatsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableFor example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of queryProducts: + * of aggregateIssueStats: * *
{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -66,10 +66,10 @@
* DatabaseCenterSettings.Builder databaseCenterSettingsBuilder =
* DatabaseCenterSettings.newBuilder();
* databaseCenterSettingsBuilder
- * .queryProductsSettings()
+ * .aggregateIssueStatsSettings()
* .setRetrySettings(
* databaseCenterSettingsBuilder
- * .queryProductsSettings()
+ * .aggregateIssueStatsSettings()
* .getRetrySettings()
* .toBuilder()
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
@@ -114,6 +114,12 @@ public class DatabaseCenterSettings extends ClientSettings
+ aggregateIssueStatsSettings() {
+ return ((DatabaseCenterStubSettings) getStubSettings()).aggregateIssueStatsSettings();
+ }
+
public static final DatabaseCenterSettings create(DatabaseCenterStubSettings stub)
throws IOException {
return new DatabaseCenterSettings.Builder(stub.toBuilder()).build();
@@ -249,6 +255,12 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().queryDatabaseResourceGroupsSettings();
}
+ /** Returns the builder for the settings used for calls to aggregateIssueStats. */
+ public UnaryCallSettings.Builder
+ aggregateIssueStatsSettings() {
+ return getStubSettingsBuilder().aggregateIssueStatsSettings();
+ }
+
@Override
public DatabaseCenterSettings build() throws IOException {
return new DatabaseCenterSettings(this);
diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/gapic_metadata.json b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/gapic_metadata.json
index 2590bb182e55..c45ba2664465 100644
--- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/gapic_metadata.json
+++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/gapic_metadata.json
@@ -13,6 +13,9 @@
"AggregateFleet": {
"methods": ["aggregateFleet", "aggregateFleetPagedCallable", "aggregateFleetCallable"]
},
+ "AggregateIssueStats": {
+ "methods": ["aggregateIssueStats", "aggregateIssueStatsCallable"]
+ },
"QueryDatabaseResourceGroups": {
"methods": ["queryDatabaseResourceGroups", "queryDatabaseResourceGroupsPagedCallable", "queryDatabaseResourceGroupsCallable"]
},
diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/package-info.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/package-info.java
index a27b731ee387..396c675d6d59 100644
--- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/package-info.java
+++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/package-info.java
@@ -33,15 +33,14 @@
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DatabaseCenterClient databaseCenterClient = DatabaseCenterClient.create()) {
- * QueryProductsRequest request =
- * QueryProductsRequest.newBuilder()
+ * AggregateIssueStatsRequest request =
+ * AggregateIssueStatsRequest.newBuilder()
* .setParent("parent-995424086")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .addAllSignalTypeGroups(new ArrayList())
+ * .setBaselineDate(Date.newBuilder().build())
* .build();
- * for (Product element : databaseCenterClient.queryProducts(request).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * AggregateIssueStatsResponse response = databaseCenterClient.aggregateIssueStats(request);
* }
* }
*/
diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStub.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStub.java
index b1a439debeff..1ac02449f7de 100644
--- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStub.java
+++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStub.java
@@ -25,6 +25,8 @@
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.databasecenter.v1beta.AggregateFleetRequest;
import com.google.cloud.databasecenter.v1beta.AggregateFleetResponse;
+import com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest;
+import com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse;
import com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest;
import com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse;
import com.google.cloud.databasecenter.v1beta.QueryProductsRequest;
@@ -71,6 +73,11 @@ public UnaryCallableFor example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of queryProducts: + * of aggregateIssueStats: * *
{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -92,10 +94,10 @@
* DatabaseCenterStubSettings.Builder databaseCenterSettingsBuilder =
* DatabaseCenterStubSettings.newBuilder();
* databaseCenterSettingsBuilder
- * .queryProductsSettings()
+ * .aggregateIssueStatsSettings()
* .setRetrySettings(
* databaseCenterSettingsBuilder
- * .queryProductsSettings()
+ * .aggregateIssueStatsSettings()
* .getRetrySettings()
* .toBuilder()
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
@@ -132,6 +134,8 @@ public class DatabaseCenterStubSettings extends StubSettings
queryDatabaseResourceGroupsSettings;
+ private final UnaryCallSettings
+ aggregateIssueStatsSettings;
private static final PagedListDescriptor
QUERY_PRODUCTS_PAGE_STR_DESC =
@@ -337,6 +341,12 @@ public ApiFuture getFuturePagedRespons
return queryDatabaseResourceGroupsSettings;
}
+ /** Returns the object with the settings used for calls to aggregateIssueStats. */
+ public UnaryCallSettings
+ aggregateIssueStatsSettings() {
+ return aggregateIssueStatsSettings;
+ }
+
public DatabaseCenterStub createStub() throws IOException {
if (getTransportChannelProvider()
.getTransportName()
@@ -452,6 +462,7 @@ protected DatabaseCenterStubSettings(Builder settingsBuilder) throws IOException
aggregateFleetSettings = settingsBuilder.aggregateFleetSettings().build();
queryDatabaseResourceGroupsSettings =
settingsBuilder.queryDatabaseResourceGroupsSettings().build();
+ aggregateIssueStatsSettings = settingsBuilder.aggregateIssueStatsSettings().build();
}
/** Builder for DatabaseCenterStubSettings. */
@@ -468,6 +479,8 @@ public static class Builder extends StubSettings.Builder
queryDatabaseResourceGroupsSettings;
+ private final UnaryCallSettings.Builder
+ aggregateIssueStatsSettings;
private static final ImmutableMap>
RETRYABLE_CODE_DEFINITIONS;
@@ -499,10 +512,14 @@ protected Builder(ClientContext clientContext) {
aggregateFleetSettings = PagedCallSettings.newBuilder(AGGREGATE_FLEET_PAGE_STR_FACT);
queryDatabaseResourceGroupsSettings =
PagedCallSettings.newBuilder(QUERY_DATABASE_RESOURCE_GROUPS_PAGE_STR_FACT);
+ aggregateIssueStatsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
- queryProductsSettings, aggregateFleetSettings, queryDatabaseResourceGroupsSettings);
+ queryProductsSettings,
+ aggregateFleetSettings,
+ queryDatabaseResourceGroupsSettings,
+ aggregateIssueStatsSettings);
initDefaults(this);
}
@@ -513,10 +530,14 @@ protected Builder(DatabaseCenterStubSettings settings) {
aggregateFleetSettings = settings.aggregateFleetSettings.toBuilder();
queryDatabaseResourceGroupsSettings =
settings.queryDatabaseResourceGroupsSettings.toBuilder();
+ aggregateIssueStatsSettings = settings.aggregateIssueStatsSettings.toBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
- queryProductsSettings, aggregateFleetSettings, queryDatabaseResourceGroupsSettings);
+ queryProductsSettings,
+ aggregateFleetSettings,
+ queryDatabaseResourceGroupsSettings,
+ aggregateIssueStatsSettings);
}
private static Builder createDefault() {
@@ -559,6 +580,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+ builder
+ .aggregateIssueStatsSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
return builder;
}
@@ -600,6 +626,12 @@ public Builder applyToAllUnaryMethods(
return queryDatabaseResourceGroupsSettings;
}
+ /** Returns the builder for the settings used for calls to aggregateIssueStats. */
+ public UnaryCallSettings.Builder
+ aggregateIssueStatsSettings() {
+ return aggregateIssueStatsSettings;
+ }
+
@Override
public DatabaseCenterStubSettings build() throws IOException {
return new DatabaseCenterStubSettings(this);
diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/GrpcDatabaseCenterStub.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/GrpcDatabaseCenterStub.java
index 62bd1a017efd..0d95c8cebd38 100644
--- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/GrpcDatabaseCenterStub.java
+++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/GrpcDatabaseCenterStub.java
@@ -29,6 +29,8 @@
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.databasecenter.v1beta.AggregateFleetRequest;
import com.google.cloud.databasecenter.v1beta.AggregateFleetResponse;
+import com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest;
+import com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse;
import com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest;
import com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse;
import com.google.cloud.databasecenter.v1beta.QueryProductsRequest;
@@ -88,6 +90,19 @@ public class GrpcDatabaseCenterStub extends DatabaseCenterStub {
.setSampledToLocalTracing(true)
.build();
+ private static final MethodDescriptor
+ aggregateIssueStatsMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.databasecenter.v1beta.DatabaseCenter/AggregateIssueStats")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(AggregateIssueStatsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(AggregateIssueStatsResponse.getDefaultInstance()))
+ .setSampledToLocalTracing(true)
+ .build();
+
private final UnaryCallable queryProductsCallable;
private final UnaryCallable
queryProductsPagedCallable;
@@ -100,6 +115,8 @@ public class GrpcDatabaseCenterStub extends DatabaseCenterStub {
private final UnaryCallable<
QueryDatabaseResourceGroupsRequest, QueryDatabaseResourceGroupsPagedResponse>
queryDatabaseResourceGroupsPagedCallable;
+ private final UnaryCallable
+ aggregateIssueStatsCallable;
private final BackgroundResource backgroundResources;
private final GrpcOperationsStub operationsStub;
@@ -161,6 +178,11 @@ protected GrpcDatabaseCenterStub(
newBuilder()
.setMethodDescriptor(queryDatabaseResourceGroupsMethodDescriptor)
.build();
+ GrpcCallSettings
+ aggregateIssueStatsTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(aggregateIssueStatsMethodDescriptor)
+ .build();
this.queryProductsCallable =
callableFactory.createUnaryCallable(
@@ -184,6 +206,11 @@ protected GrpcDatabaseCenterStub(
queryDatabaseResourceGroupsTransportSettings,
settings.queryDatabaseResourceGroupsSettings(),
clientContext);
+ this.aggregateIssueStatsCallable =
+ callableFactory.createUnaryCallable(
+ aggregateIssueStatsTransportSettings,
+ settings.aggregateIssueStatsSettings(),
+ clientContext);
this.backgroundResources =
new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -227,6 +254,12 @@ public UnaryCallable aggregateFle
return queryDatabaseResourceGroupsPagedCallable;
}
+ @Override
+ public UnaryCallable
+ aggregateIssueStatsCallable() {
+ return aggregateIssueStatsCallable;
+ }
+
@Override
public final void close() {
try {
diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/HttpJsonDatabaseCenterStub.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/HttpJsonDatabaseCenterStub.java
index c82fdc6c50b8..aa4648a6d4f0 100644
--- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/HttpJsonDatabaseCenterStub.java
+++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/HttpJsonDatabaseCenterStub.java
@@ -34,6 +34,8 @@
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.databasecenter.v1beta.AggregateFleetRequest;
import com.google.cloud.databasecenter.v1beta.AggregateFleetResponse;
+import com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest;
+import com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse;
import com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest;
import com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse;
import com.google.cloud.databasecenter.v1beta.QueryProductsRequest;
@@ -176,6 +178,43 @@ public class HttpJsonDatabaseCenterStub extends DatabaseCenterStub {
.build())
.build();
+ private static final ApiMethodDescriptor
+ aggregateIssueStatsMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName(
+ "google.cloud.databasecenter.v1beta.DatabaseCenter/AggregateIssueStats")
+ .setHttpMethod("POST")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1beta:aggregateIssueStats",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody("*", request.toBuilder().build(), true))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(AggregateIssueStatsResponse.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
private final UnaryCallable queryProductsCallable;
private final UnaryCallable
queryProductsPagedCallable;
@@ -188,6 +227,8 @@ public class HttpJsonDatabaseCenterStub extends DatabaseCenterStub {
private final UnaryCallable<
QueryDatabaseResourceGroupsRequest, QueryDatabaseResourceGroupsPagedResponse>
queryDatabaseResourceGroupsPagedCallable;
+ private final UnaryCallable
+ aggregateIssueStatsCallable;
private final BackgroundResource backgroundResources;
private final HttpJsonStubCallableFactory callableFactory;
@@ -251,6 +292,13 @@ protected HttpJsonDatabaseCenterStub(
.setMethodDescriptor(queryDatabaseResourceGroupsMethodDescriptor)
.setTypeRegistry(typeRegistry)
.build();
+ HttpJsonCallSettings
+ aggregateIssueStatsTransportSettings =
+ HttpJsonCallSettings
+ .newBuilder()
+ .setMethodDescriptor(aggregateIssueStatsMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .build();
this.queryProductsCallable =
callableFactory.createUnaryCallable(
@@ -274,6 +322,11 @@ protected HttpJsonDatabaseCenterStub(
queryDatabaseResourceGroupsTransportSettings,
settings.queryDatabaseResourceGroupsSettings(),
clientContext);
+ this.aggregateIssueStatsCallable =
+ callableFactory.createUnaryCallable(
+ aggregateIssueStatsTransportSettings,
+ settings.aggregateIssueStatsSettings(),
+ clientContext);
this.backgroundResources =
new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -285,6 +338,7 @@ public static List getMethodDescriptors() {
methodDescriptors.add(queryProductsMethodDescriptor);
methodDescriptors.add(aggregateFleetMethodDescriptor);
methodDescriptors.add(queryDatabaseResourceGroupsMethodDescriptor);
+ methodDescriptors.add(aggregateIssueStatsMethodDescriptor);
return methodDescriptors;
}
@@ -322,6 +376,12 @@ public UnaryCallable aggregateFle
return queryDatabaseResourceGroupsPagedCallable;
}
+ @Override
+ public UnaryCallable
+ aggregateIssueStatsCallable() {
+ return aggregateIssueStatsCallable;
+ }
+
@Override
public final void close() {
try {
diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json b/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json
index 4ceaa6974bf6..443ff777aec8 100644
--- a/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json
+++ b/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json
@@ -485,6 +485,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.databasecenter.v1beta.AutomatedBackupPolicyInfo",
"queryAllDeclaredConstructors": true,
@@ -692,6 +728,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.databasecenter.v1beta.IssueGroupStats",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.databasecenter.v1beta.IssueGroupStats$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.databasecenter.v1beta.IssueSeverity",
"queryAllDeclaredConstructors": true,
@@ -701,6 +755,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.databasecenter.v1beta.IssueStats",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.databasecenter.v1beta.IssueStats$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.databasecenter.v1beta.Label",
"queryAllDeclaredConstructors": true,
diff --git a/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientHttpJsonTest.java b/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientHttpJsonTest.java
index 0d895e8ea332..906a6e7d68b2 100644
--- a/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientHttpJsonTest.java
+++ b/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientHttpJsonTest.java
@@ -275,4 +275,63 @@ public void queryDatabaseResourceGroupsExceptionTest() throws Exception {
// Expected exception.
}
}
+
+ @Test
+ public void aggregateIssueStatsTest() throws Exception {
+ AggregateIssueStatsResponse expectedResponse =
+ AggregateIssueStatsResponse.newBuilder()
+ .addAllIssueGroupStats(new ArrayList())
+ .setTotalResourcesCount(-1148081286)
+ .setTotalResourceGroupsCount(-1586193222)
+ .addAllUnreachable(new ArrayList())
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ AggregateIssueStatsRequest request =
+ AggregateIssueStatsRequest.newBuilder()
+ .setParent("parent-995424086")
+ .setFilter("filter-1274492040")
+ .addAllSignalTypeGroups(new ArrayList())
+ .setBaselineDate(Date.newBuilder().build())
+ .build();
+
+ AggregateIssueStatsResponse actualResponse = client.aggregateIssueStats(request);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockService.getRequestPaths();
+ Assert.assertEquals(1, actualRequests.size());
+
+ String apiClientHeaderKey =
+ mockService
+ .getRequestHeaders()
+ .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+ .iterator()
+ .next();
+ Assert.assertTrue(
+ GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+ .matcher(apiClientHeaderKey)
+ .matches());
+ }
+
+ @Test
+ public void aggregateIssueStatsExceptionTest() throws Exception {
+ ApiException exception =
+ ApiExceptionFactory.createException(
+ new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+ mockService.addException(exception);
+
+ try {
+ AggregateIssueStatsRequest request =
+ AggregateIssueStatsRequest.newBuilder()
+ .setParent("parent-995424086")
+ .setFilter("filter-1274492040")
+ .addAllSignalTypeGroups(new ArrayList())
+ .setBaselineDate(Date.newBuilder().build())
+ .build();
+ client.aggregateIssueStats(request);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
}
diff --git a/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientTest.java b/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientTest.java
index 4b24b1d0f456..002d66141ae3 100644
--- a/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientTest.java
+++ b/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientTest.java
@@ -275,4 +275,60 @@ public void queryDatabaseResourceGroupsExceptionTest() throws Exception {
// Expected exception.
}
}
+
+ @Test
+ public void aggregateIssueStatsTest() throws Exception {
+ AggregateIssueStatsResponse expectedResponse =
+ AggregateIssueStatsResponse.newBuilder()
+ .addAllIssueGroupStats(new ArrayList())
+ .setTotalResourcesCount(-1148081286)
+ .setTotalResourceGroupsCount(-1586193222)
+ .addAllUnreachable(new ArrayList())
+ .build();
+ mockDatabaseCenter.addResponse(expectedResponse);
+
+ AggregateIssueStatsRequest request =
+ AggregateIssueStatsRequest.newBuilder()
+ .setParent("parent-995424086")
+ .setFilter("filter-1274492040")
+ .addAllSignalTypeGroups(new ArrayList())
+ .setBaselineDate(Date.newBuilder().build())
+ .build();
+
+ AggregateIssueStatsResponse actualResponse = client.aggregateIssueStats(request);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockDatabaseCenter.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ AggregateIssueStatsRequest actualRequest = ((AggregateIssueStatsRequest) actualRequests.get(0));
+
+ Assert.assertEquals(request.getParent(), actualRequest.getParent());
+ Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+ Assert.assertEquals(request.getSignalTypeGroupsList(), actualRequest.getSignalTypeGroupsList());
+ Assert.assertEquals(request.getBaselineDate(), actualRequest.getBaselineDate());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ public void aggregateIssueStatsExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+ mockDatabaseCenter.addException(exception);
+
+ try {
+ AggregateIssueStatsRequest request =
+ AggregateIssueStatsRequest.newBuilder()
+ .setParent("parent-995424086")
+ .setFilter("filter-1274492040")
+ .addAllSignalTypeGroups(new ArrayList())
+ .setBaselineDate(Date.newBuilder().build())
+ .build();
+ client.aggregateIssueStats(request);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception.
+ }
+ }
}
diff --git a/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/MockDatabaseCenterImpl.java b/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/MockDatabaseCenterImpl.java
index 735234316598..416eee07d67e 100644
--- a/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/MockDatabaseCenterImpl.java
+++ b/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/MockDatabaseCenterImpl.java
@@ -122,4 +122,26 @@ public void queryDatabaseResourceGroups(
Exception.class.getName())));
}
}
+
+ @Override
+ public void aggregateIssueStats(
+ AggregateIssueStatsRequest request,
+ StreamObserver responseObserver) {
+ Object response = responses.poll();
+ if (response instanceof AggregateIssueStatsResponse) {
+ requests.add(request);
+ responseObserver.onNext(((AggregateIssueStatsResponse) response));
+ responseObserver.onCompleted();
+ } else if (response instanceof Exception) {
+ responseObserver.onError(((Exception) response));
+ } else {
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method AggregateIssueStats, expected %s or %s",
+ response == null ? "null" : response.getClass().getName(),
+ AggregateIssueStatsResponse.class.getName(),
+ Exception.class.getName())));
+ }
+ }
}
diff --git a/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterGrpc.java b/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterGrpc.java
index e9983acf42e3..a0c4d1b10567 100644
--- a/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterGrpc.java
+++ b/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterGrpc.java
@@ -181,6 +181,55 @@ private DatabaseCenterGrpc() {}
return getQueryDatabaseResourceGroupsMethod;
}
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest,
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse>
+ getAggregateIssueStatsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "AggregateIssueStats",
+ requestType = com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest.class,
+ responseType = com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest,
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse>
+ getAggregateIssueStatsMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest,
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse>
+ getAggregateIssueStatsMethod;
+ if ((getAggregateIssueStatsMethod = DatabaseCenterGrpc.getAggregateIssueStatsMethod) == null) {
+ synchronized (DatabaseCenterGrpc.class) {
+ if ((getAggregateIssueStatsMethod = DatabaseCenterGrpc.getAggregateIssueStatsMethod)
+ == null) {
+ DatabaseCenterGrpc.getAggregateIssueStatsMethod =
+ getAggregateIssueStatsMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ generateFullMethodName(SERVICE_NAME, "AggregateIssueStats"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse
+ .getDefaultInstance()))
+ .setSchemaDescriptor(
+ new DatabaseCenterMethodDescriptorSupplier("AggregateIssueStats"))
+ .build();
+ }
+ }
+ }
+ return getAggregateIssueStatsMethod;
+ }
+
/** Creates a new async stub that supports all call types for the service */
public static DatabaseCenterStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
@@ -291,6 +340,22 @@ default void queryDatabaseResourceGroups(
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getQueryDatabaseResourceGroupsMethod(), responseObserver);
}
+
+ /**
+ *
+ *
+ *
+ * AggregateIssueStats provides database resource issues statistics.
+ *
+ */
+ default void aggregateIssueStats(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getAggregateIssueStatsMethod(), responseObserver);
+ }
}
/**
@@ -380,6 +445,24 @@ public void queryDatabaseResourceGroups(
request,
responseObserver);
}
+
+ /**
+ *
+ *
+ *
+ * AggregateIssueStats provides database resource issues statistics.
+ *
+ */
+ public void aggregateIssueStats(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse>
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getAggregateIssueStatsMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
}
/**
@@ -445,6 +528,20 @@ public com.google.cloud.databasecenter.v1beta.AggregateFleetResponse aggregateFl
return io.grpc.stub.ClientCalls.blockingV2UnaryCall(
getChannel(), getQueryDatabaseResourceGroupsMethod(), getCallOptions(), request);
}
+
+ /**
+ *
+ *
+ *
+ * AggregateIssueStats provides database resource issues statistics.
+ *
+ */
+ public com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse aggregateIssueStats(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest request)
+ throws io.grpc.StatusException {
+ return io.grpc.stub.ClientCalls.blockingV2UnaryCall(
+ getChannel(), getAggregateIssueStatsMethod(), getCallOptions(), request);
+ }
}
/**
@@ -507,6 +604,19 @@ public com.google.cloud.databasecenter.v1beta.AggregateFleetResponse aggregateFl
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getQueryDatabaseResourceGroupsMethod(), getCallOptions(), request);
}
+
+ /**
+ *
+ *
+ *
+ * AggregateIssueStats provides database resource issues statistics.
+ *
+ */
+ public com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse aggregateIssueStats(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getAggregateIssueStatsMethod(), getCallOptions(), request);
+ }
}
/**
@@ -572,11 +682,27 @@ protected DatabaseCenterFutureStub build(
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getQueryDatabaseResourceGroupsMethod(), getCallOptions()), request);
}
+
+ /**
+ *
+ *
+ *
+ * AggregateIssueStats provides database resource issues statistics.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse>
+ aggregateIssueStats(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getAggregateIssueStatsMethod(), getCallOptions()), request);
+ }
}
private static final int METHODID_QUERY_PRODUCTS = 0;
private static final int METHODID_AGGREGATE_FLEET = 1;
private static final int METHODID_QUERY_DATABASE_RESOURCE_GROUPS = 2;
+ private static final int METHODID_AGGREGATE_ISSUE_STATS = 3;
private static final class MethodHandlers
implements io.grpc.stub.ServerCalls.UnaryMethod,
@@ -616,6 +742,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv
com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse>)
responseObserver);
break;
+ case METHODID_AGGREGATE_ISSUE_STATS:
+ serviceImpl.aggregateIssueStats(
+ (com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest) request,
+ (io.grpc.stub.StreamObserver<
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse>)
+ responseObserver);
+ break;
default:
throw new AssertionError();
}
@@ -655,6 +788,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser
com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest,
com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse>(
service, METHODID_QUERY_DATABASE_RESOURCE_GROUPS)))
+ .addMethod(
+ getAggregateIssueStatsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest,
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse>(
+ service, METHODID_AGGREGATE_ISSUE_STATS)))
.build();
}
@@ -709,6 +849,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
.addMethod(getQueryProductsMethod())
.addMethod(getAggregateFleetMethod())
.addMethod(getQueryDatabaseResourceGroupsMethod())
+ .addMethod(getAggregateIssueStatsMethod())
.build();
}
}
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsRequest.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsRequest.java
new file mode 100644
index 000000000000..eee468c3b4fa
--- /dev/null
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsRequest.java
@@ -0,0 +1,1891 @@
+/*
+ * Copyright 2026 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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/databasecenter/v1beta/service.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.databasecenter.v1beta;
+
+/**
+ *
+ *
+ *
+ * AggregateIssueStatsRequest represents the input to the AggregateIssueStats
+ * method.
+ *
+ *
+ * Protobuf type {@code google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest}
+ */
+public final class AggregateIssueStatsRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest)
+ AggregateIssueStatsRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use AggregateIssueStatsRequest.newBuilder() to construct.
+ private AggregateIssueStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private AggregateIssueStatsRequest() {
+ parent_ = "";
+ filter_ = "";
+ signalTypeGroups_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new AggregateIssueStatsRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest.class,
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int PARENT_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. Parent can be a project, a folder, or an organization. The search
+ * is limited to the resources within the `scope`.
+ *
+ * The allowed values are:
+ *
+ * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+ * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+ * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+ * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Parent can be a project, a folder, or an organization. The search
+ * is limited to the resources within the `scope`.
+ *
+ * The allowed values are:
+ *
+ * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+ * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+ * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+ * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FILTER_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object filter_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The expression to filter resources.
+ *
+ * Supported fields are: `full_resource_name`, `resource_type`, `container`,
+ * `product.type`, `product.engine`, `product.version`, `location`,
+ * `labels`, `issues`, fields of availability_info,
+ * data_protection_info,'resource_name', etc.
+ *
+ * The expression is a list of zero or more restrictions combined via logical
+ * operators `AND` and `OR`. When `AND` and `OR` are both used in the
+ * expression, parentheses must be appropriately used to group the
+ * combinations.
+ *
+ * Example: location="us-east1"
+ * Example: container="projects/123" OR container="projects/456"
+ * Example: (container="projects/123" OR
+ * container="projects/456") AND location="us-east1"
+ *
+ *
+ * string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The filter.
+ */
+ @java.lang.Override
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The expression to filter resources.
+ *
+ * Supported fields are: `full_resource_name`, `resource_type`, `container`,
+ * `product.type`, `product.engine`, `product.version`, `location`,
+ * `labels`, `issues`, fields of availability_info,
+ * data_protection_info,'resource_name', etc.
+ *
+ * The expression is a list of zero or more restrictions combined via logical
+ * operators `AND` and `OR`. When `AND` and `OR` are both used in the
+ * expression, parentheses must be appropriately used to group the
+ * combinations.
+ *
+ * Example: location="us-east1"
+ * Example: container="projects/123" OR container="projects/456"
+ * Example: (container="projects/123" OR
+ * container="projects/456") AND location="us-east1"
+ *
+ *
+ * string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for filter.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SIGNAL_TYPE_GROUPS_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private java.util.List signalTypeGroups_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ getSignalTypeGroupsList() {
+ return signalTypeGroups_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.databasecenter.v1beta.SignalTypeGroupOrBuilder>
+ getSignalTypeGroupsOrBuilderList() {
+ return signalTypeGroups_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getSignalTypeGroupsCount() {
+ return signalTypeGroups_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.SignalTypeGroup getSignalTypeGroups(int index) {
+ return signalTypeGroups_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.SignalTypeGroupOrBuilder
+ getSignalTypeGroupsOrBuilder(int index) {
+ return signalTypeGroups_.get(index);
+ }
+
+ public static final int BASELINE_DATE_FIELD_NUMBER = 4;
+ private com.google.type.Date baselineDate_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The baseline date w.r.t. which the delta counts are calculated.
+ * If not set, delta counts are not included in the response and the response
+ * indicates the current state of the fleet.
+ *
+ *
+ * optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the baselineDate field is set.
+ */
+ @java.lang.Override
+ public boolean hasBaselineDate() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The baseline date w.r.t. which the delta counts are calculated.
+ * If not set, delta counts are not included in the response and the response
+ * indicates the current state of the fleet.
+ *
+ *
+ * optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The baselineDate.
+ */
+ @java.lang.Override
+ public com.google.type.Date getBaselineDate() {
+ return baselineDate_ == null ? com.google.type.Date.getDefaultInstance() : baselineDate_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The baseline date w.r.t. which the delta counts are calculated.
+ * If not set, delta counts are not included in the response and the response
+ * indicates the current state of the fleet.
+ *
+ *
+ * optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.type.DateOrBuilder getBaselineDateOrBuilder() {
+ return baselineDate_ == null ? com.google.type.Date.getDefaultInstance() : baselineDate_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
+ }
+ for (int i = 0; i < signalTypeGroups_.size(); i++) {
+ output.writeMessage(3, signalTypeGroups_.get(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(4, getBaselineDate());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
+ }
+ for (int i = 0; i < signalTypeGroups_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, signalTypeGroups_.get(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBaselineDate());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest other =
+ (com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getFilter().equals(other.getFilter())) return false;
+ if (!getSignalTypeGroupsList().equals(other.getSignalTypeGroupsList())) return false;
+ if (hasBaselineDate() != other.hasBaselineDate()) return false;
+ if (hasBaselineDate()) {
+ if (!getBaselineDate().equals(other.getBaselineDate())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFilter().hashCode();
+ if (getSignalTypeGroupsCount() > 0) {
+ hash = (37 * hash) + SIGNAL_TYPE_GROUPS_FIELD_NUMBER;
+ hash = (53 * hash) + getSignalTypeGroupsList().hashCode();
+ }
+ if (hasBaselineDate()) {
+ hash = (37 * hash) + BASELINE_DATE_FIELD_NUMBER;
+ hash = (53 * hash) + getBaselineDate().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * AggregateIssueStatsRequest represents the input to the AggregateIssueStats
+ * method.
+ *
+ *
+ * Protobuf type {@code google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest)
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest.class,
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getSignalTypeGroupsFieldBuilder();
+ getBaselineDateFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ parent_ = "";
+ filter_ = "";
+ if (signalTypeGroupsBuilder_ == null) {
+ signalTypeGroups_ = java.util.Collections.emptyList();
+ } else {
+ signalTypeGroups_ = null;
+ signalTypeGroupsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000004);
+ baselineDate_ = null;
+ if (baselineDateBuilder_ != null) {
+ baselineDateBuilder_.dispose();
+ baselineDateBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest
+ getDefaultInstanceForType() {
+ return com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest build() {
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest buildPartial() {
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest result =
+ new com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest result) {
+ if (signalTypeGroupsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ signalTypeGroups_ = java.util.Collections.unmodifiableList(signalTypeGroups_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.signalTypeGroups_ = signalTypeGroups_;
+ } else {
+ result.signalTypeGroups_ = signalTypeGroupsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parent_ = parent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.filter_ = filter_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.baselineDate_ =
+ baselineDateBuilder_ == null ? baselineDate_ : baselineDateBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest) {
+ return mergeFrom((com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest other) {
+ if (other
+ == com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest.getDefaultInstance())
+ return this;
+ if (!other.getParent().isEmpty()) {
+ parent_ = other.parent_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getFilter().isEmpty()) {
+ filter_ = other.filter_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (signalTypeGroupsBuilder_ == null) {
+ if (!other.signalTypeGroups_.isEmpty()) {
+ if (signalTypeGroups_.isEmpty()) {
+ signalTypeGroups_ = other.signalTypeGroups_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureSignalTypeGroupsIsMutable();
+ signalTypeGroups_.addAll(other.signalTypeGroups_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.signalTypeGroups_.isEmpty()) {
+ if (signalTypeGroupsBuilder_.isEmpty()) {
+ signalTypeGroupsBuilder_.dispose();
+ signalTypeGroupsBuilder_ = null;
+ signalTypeGroups_ = other.signalTypeGroups_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ signalTypeGroupsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getSignalTypeGroupsFieldBuilder()
+ : null;
+ } else {
+ signalTypeGroupsBuilder_.addAllMessages(other.signalTypeGroups_);
+ }
+ }
+ }
+ if (other.hasBaselineDate()) {
+ mergeBaselineDate(other.getBaselineDate());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ parent_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ filter_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26:
+ {
+ com.google.cloud.databasecenter.v1beta.SignalTypeGroup m =
+ input.readMessage(
+ com.google.cloud.databasecenter.v1beta.SignalTypeGroup.parser(),
+ extensionRegistry);
+ if (signalTypeGroupsBuilder_ == null) {
+ ensureSignalTypeGroupsIsMutable();
+ signalTypeGroups_.add(m);
+ } else {
+ signalTypeGroupsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 26
+ case 34:
+ {
+ input.readMessage(getBaselineDateFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object parent_ = "";
+
+ /**
+ *
+ *
+ *
+ * Required. Parent can be a project, a folder, or an organization. The search
+ * is limited to the resources within the `scope`.
+ *
+ * The allowed values are:
+ *
+ * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+ * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+ * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+ * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Parent can be a project, a folder, or an organization. The search
+ * is limited to the resources within the `scope`.
+ *
+ * The allowed values are:
+ *
+ * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+ * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+ * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+ * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Parent can be a project, a folder, or an organization. The search
+ * is limited to the resources within the `scope`.
+ *
+ * The allowed values are:
+ *
+ * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+ * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+ * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+ * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Parent can be a project, a folder, or an organization. The search
+ * is limited to the resources within the `scope`.
+ *
+ * The allowed values are:
+ *
+ * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+ * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+ * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+ * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+ parent_ = getDefaultInstance().getParent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. Parent can be a project, a folder, or an organization. The search
+ * is limited to the resources within the `scope`.
+ *
+ * The allowed values are:
+ *
+ * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+ * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+ * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+ * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ parent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object filter_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The expression to filter resources.
+ *
+ * Supported fields are: `full_resource_name`, `resource_type`, `container`,
+ * `product.type`, `product.engine`, `product.version`, `location`,
+ * `labels`, `issues`, fields of availability_info,
+ * data_protection_info,'resource_name', etc.
+ *
+ * The expression is a list of zero or more restrictions combined via logical
+ * operators `AND` and `OR`. When `AND` and `OR` are both used in the
+ * expression, parentheses must be appropriately used to group the
+ * combinations.
+ *
+ * Example: location="us-east1"
+ * Example: container="projects/123" OR container="projects/456"
+ * Example: (container="projects/123" OR
+ * container="projects/456") AND location="us-east1"
+ *
+ *
+ * string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The filter.
+ */
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The expression to filter resources.
+ *
+ * Supported fields are: `full_resource_name`, `resource_type`, `container`,
+ * `product.type`, `product.engine`, `product.version`, `location`,
+ * `labels`, `issues`, fields of availability_info,
+ * data_protection_info,'resource_name', etc.
+ *
+ * The expression is a list of zero or more restrictions combined via logical
+ * operators `AND` and `OR`. When `AND` and `OR` are both used in the
+ * expression, parentheses must be appropriately used to group the
+ * combinations.
+ *
+ * Example: location="us-east1"
+ * Example: container="projects/123" OR container="projects/456"
+ * Example: (container="projects/123" OR
+ * container="projects/456") AND location="us-east1"
+ *
+ *
+ * string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for filter.
+ */
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The expression to filter resources.
+ *
+ * Supported fields are: `full_resource_name`, `resource_type`, `container`,
+ * `product.type`, `product.engine`, `product.version`, `location`,
+ * `labels`, `issues`, fields of availability_info,
+ * data_protection_info,'resource_name', etc.
+ *
+ * The expression is a list of zero or more restrictions combined via logical
+ * operators `AND` and `OR`. When `AND` and `OR` are both used in the
+ * expression, parentheses must be appropriately used to group the
+ * combinations.
+ *
+ * Example: location="us-east1"
+ * Example: container="projects/123" OR container="projects/456"
+ * Example: (container="projects/123" OR
+ * container="projects/456") AND location="us-east1"
+ *
+ *
+ * string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The filter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFilter(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ filter_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The expression to filter resources.
+ *
+ * Supported fields are: `full_resource_name`, `resource_type`, `container`,
+ * `product.type`, `product.engine`, `product.version`, `location`,
+ * `labels`, `issues`, fields of availability_info,
+ * data_protection_info,'resource_name', etc.
+ *
+ * The expression is a list of zero or more restrictions combined via logical
+ * operators `AND` and `OR`. When `AND` and `OR` are both used in the
+ * expression, parentheses must be appropriately used to group the
+ * combinations.
+ *
+ * Example: location="us-east1"
+ * Example: container="projects/123" OR container="projects/456"
+ * Example: (container="projects/123" OR
+ * container="projects/456") AND location="us-east1"
+ *
+ *
+ * string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFilter() {
+ filter_ = getDefaultInstance().getFilter();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The expression to filter resources.
+ *
+ * Supported fields are: `full_resource_name`, `resource_type`, `container`,
+ * `product.type`, `product.engine`, `product.version`, `location`,
+ * `labels`, `issues`, fields of availability_info,
+ * data_protection_info,'resource_name', etc.
+ *
+ * The expression is a list of zero or more restrictions combined via logical
+ * operators `AND` and `OR`. When `AND` and `OR` are both used in the
+ * expression, parentheses must be appropriately used to group the
+ * combinations.
+ *
+ * Example: location="us-east1"
+ * Example: container="projects/123" OR container="projects/456"
+ * Example: (container="projects/123" OR
+ * container="projects/456") AND location="us-east1"
+ *
+ *
+ * string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for filter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ filter_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List
+ signalTypeGroups_ = java.util.Collections.emptyList();
+
+ private void ensureSignalTypeGroupsIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ signalTypeGroups_ =
+ new java.util.ArrayList(
+ signalTypeGroups_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.databasecenter.v1beta.SignalTypeGroup,
+ com.google.cloud.databasecenter.v1beta.SignalTypeGroup.Builder,
+ com.google.cloud.databasecenter.v1beta.SignalTypeGroupOrBuilder>
+ signalTypeGroupsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List
+ getSignalTypeGroupsList() {
+ if (signalTypeGroupsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(signalTypeGroups_);
+ } else {
+ return signalTypeGroupsBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getSignalTypeGroupsCount() {
+ if (signalTypeGroupsBuilder_ == null) {
+ return signalTypeGroups_.size();
+ } else {
+ return signalTypeGroupsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.databasecenter.v1beta.SignalTypeGroup getSignalTypeGroups(int index) {
+ if (signalTypeGroupsBuilder_ == null) {
+ return signalTypeGroups_.get(index);
+ } else {
+ return signalTypeGroupsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSignalTypeGroups(
+ int index, com.google.cloud.databasecenter.v1beta.SignalTypeGroup value) {
+ if (signalTypeGroupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSignalTypeGroupsIsMutable();
+ signalTypeGroups_.set(index, value);
+ onChanged();
+ } else {
+ signalTypeGroupsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSignalTypeGroups(
+ int index, com.google.cloud.databasecenter.v1beta.SignalTypeGroup.Builder builderForValue) {
+ if (signalTypeGroupsBuilder_ == null) {
+ ensureSignalTypeGroupsIsMutable();
+ signalTypeGroups_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ signalTypeGroupsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addSignalTypeGroups(
+ com.google.cloud.databasecenter.v1beta.SignalTypeGroup value) {
+ if (signalTypeGroupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSignalTypeGroupsIsMutable();
+ signalTypeGroups_.add(value);
+ onChanged();
+ } else {
+ signalTypeGroupsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addSignalTypeGroups(
+ int index, com.google.cloud.databasecenter.v1beta.SignalTypeGroup value) {
+ if (signalTypeGroupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSignalTypeGroupsIsMutable();
+ signalTypeGroups_.add(index, value);
+ onChanged();
+ } else {
+ signalTypeGroupsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addSignalTypeGroups(
+ com.google.cloud.databasecenter.v1beta.SignalTypeGroup.Builder builderForValue) {
+ if (signalTypeGroupsBuilder_ == null) {
+ ensureSignalTypeGroupsIsMutable();
+ signalTypeGroups_.add(builderForValue.build());
+ onChanged();
+ } else {
+ signalTypeGroupsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addSignalTypeGroups(
+ int index, com.google.cloud.databasecenter.v1beta.SignalTypeGroup.Builder builderForValue) {
+ if (signalTypeGroupsBuilder_ == null) {
+ ensureSignalTypeGroupsIsMutable();
+ signalTypeGroups_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ signalTypeGroupsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllSignalTypeGroups(
+ java.lang.Iterable extends com.google.cloud.databasecenter.v1beta.SignalTypeGroup>
+ values) {
+ if (signalTypeGroupsBuilder_ == null) {
+ ensureSignalTypeGroupsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, signalTypeGroups_);
+ onChanged();
+ } else {
+ signalTypeGroupsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearSignalTypeGroups() {
+ if (signalTypeGroupsBuilder_ == null) {
+ signalTypeGroups_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ signalTypeGroupsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeSignalTypeGroups(int index) {
+ if (signalTypeGroupsBuilder_ == null) {
+ ensureSignalTypeGroupsIsMutable();
+ signalTypeGroups_.remove(index);
+ onChanged();
+ } else {
+ signalTypeGroupsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.databasecenter.v1beta.SignalTypeGroup.Builder
+ getSignalTypeGroupsBuilder(int index) {
+ return getSignalTypeGroupsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.databasecenter.v1beta.SignalTypeGroupOrBuilder
+ getSignalTypeGroupsOrBuilder(int index) {
+ if (signalTypeGroupsBuilder_ == null) {
+ return signalTypeGroups_.get(index);
+ } else {
+ return signalTypeGroupsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List extends com.google.cloud.databasecenter.v1beta.SignalTypeGroupOrBuilder>
+ getSignalTypeGroupsOrBuilderList() {
+ if (signalTypeGroupsBuilder_ != null) {
+ return signalTypeGroupsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(signalTypeGroups_);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.databasecenter.v1beta.SignalTypeGroup.Builder
+ addSignalTypeGroupsBuilder() {
+ return getSignalTypeGroupsFieldBuilder()
+ .addBuilder(com.google.cloud.databasecenter.v1beta.SignalTypeGroup.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.databasecenter.v1beta.SignalTypeGroup.Builder
+ addSignalTypeGroupsBuilder(int index) {
+ return getSignalTypeGroupsFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.databasecenter.v1beta.SignalTypeGroup.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List
+ getSignalTypeGroupsBuilderList() {
+ return getSignalTypeGroupsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.databasecenter.v1beta.SignalTypeGroup,
+ com.google.cloud.databasecenter.v1beta.SignalTypeGroup.Builder,
+ com.google.cloud.databasecenter.v1beta.SignalTypeGroupOrBuilder>
+ getSignalTypeGroupsFieldBuilder() {
+ if (signalTypeGroupsBuilder_ == null) {
+ signalTypeGroupsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.databasecenter.v1beta.SignalTypeGroup,
+ com.google.cloud.databasecenter.v1beta.SignalTypeGroup.Builder,
+ com.google.cloud.databasecenter.v1beta.SignalTypeGroupOrBuilder>(
+ signalTypeGroups_,
+ ((bitField0_ & 0x00000004) != 0),
+ getParentForChildren(),
+ isClean());
+ signalTypeGroups_ = null;
+ }
+ return signalTypeGroupsBuilder_;
+ }
+
+ private com.google.type.Date baselineDate_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
+ baselineDateBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The baseline date w.r.t. which the delta counts are calculated.
+ * If not set, delta counts are not included in the response and the response
+ * indicates the current state of the fleet.
+ *
+ *
+ * optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the baselineDate field is set.
+ */
+ public boolean hasBaselineDate() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The baseline date w.r.t. which the delta counts are calculated.
+ * If not set, delta counts are not included in the response and the response
+ * indicates the current state of the fleet.
+ *
+ *
+ * optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The baselineDate.
+ */
+ public com.google.type.Date getBaselineDate() {
+ if (baselineDateBuilder_ == null) {
+ return baselineDate_ == null ? com.google.type.Date.getDefaultInstance() : baselineDate_;
+ } else {
+ return baselineDateBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The baseline date w.r.t. which the delta counts are calculated.
+ * If not set, delta counts are not included in the response and the response
+ * indicates the current state of the fleet.
+ *
+ *
+ * optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setBaselineDate(com.google.type.Date value) {
+ if (baselineDateBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ baselineDate_ = value;
+ } else {
+ baselineDateBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The baseline date w.r.t. which the delta counts are calculated.
+ * If not set, delta counts are not included in the response and the response
+ * indicates the current state of the fleet.
+ *
+ *
+ * optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setBaselineDate(com.google.type.Date.Builder builderForValue) {
+ if (baselineDateBuilder_ == null) {
+ baselineDate_ = builderForValue.build();
+ } else {
+ baselineDateBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The baseline date w.r.t. which the delta counts are calculated.
+ * If not set, delta counts are not included in the response and the response
+ * indicates the current state of the fleet.
+ *
+ *
+ * optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeBaselineDate(com.google.type.Date value) {
+ if (baselineDateBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && baselineDate_ != null
+ && baselineDate_ != com.google.type.Date.getDefaultInstance()) {
+ getBaselineDateBuilder().mergeFrom(value);
+ } else {
+ baselineDate_ = value;
+ }
+ } else {
+ baselineDateBuilder_.mergeFrom(value);
+ }
+ if (baselineDate_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The baseline date w.r.t. which the delta counts are calculated.
+ * If not set, delta counts are not included in the response and the response
+ * indicates the current state of the fleet.
+ *
+ *
+ * optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearBaselineDate() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ baselineDate_ = null;
+ if (baselineDateBuilder_ != null) {
+ baselineDateBuilder_.dispose();
+ baselineDateBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The baseline date w.r.t. which the delta counts are calculated.
+ * If not set, delta counts are not included in the response and the response
+ * indicates the current state of the fleet.
+ *
+ *
+ * optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.type.Date.Builder getBaselineDateBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getBaselineDateFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The baseline date w.r.t. which the delta counts are calculated.
+ * If not set, delta counts are not included in the response and the response
+ * indicates the current state of the fleet.
+ *
+ *
+ * optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.type.DateOrBuilder getBaselineDateOrBuilder() {
+ if (baselineDateBuilder_ != null) {
+ return baselineDateBuilder_.getMessageOrBuilder();
+ } else {
+ return baselineDate_ == null ? com.google.type.Date.getDefaultInstance() : baselineDate_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The baseline date w.r.t. which the delta counts are calculated.
+ * If not set, delta counts are not included in the response and the response
+ * indicates the current state of the fleet.
+ *
+ *
+ * optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
+ getBaselineDateFieldBuilder() {
+ if (baselineDateBuilder_ == null) {
+ baselineDateBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
+ getBaselineDate(), getParentForChildren(), isClean());
+ baselineDate_ = null;
+ }
+ return baselineDateBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest)
+ private static final com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest();
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public AggregateIssueStatsRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsRequestOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsRequestOrBuilder.java
new file mode 100644
index 000000000000..3d84b719573e
--- /dev/null
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsRequestOrBuilder.java
@@ -0,0 +1,237 @@
+/*
+ * Copyright 2026 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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/databasecenter/v1beta/service.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.databasecenter.v1beta;
+
+public interface AggregateIssueStatsRequestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. Parent can be a project, a folder, or an organization. The search
+ * is limited to the resources within the `scope`.
+ *
+ * The allowed values are:
+ *
+ * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+ * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+ * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+ * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+
+ /**
+ *
+ *
+ *
+ * Required. Parent can be a project, a folder, or an organization. The search
+ * is limited to the resources within the `scope`.
+ *
+ * The allowed values are:
+ *
+ * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+ * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+ * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+ * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The expression to filter resources.
+ *
+ * Supported fields are: `full_resource_name`, `resource_type`, `container`,
+ * `product.type`, `product.engine`, `product.version`, `location`,
+ * `labels`, `issues`, fields of availability_info,
+ * data_protection_info,'resource_name', etc.
+ *
+ * The expression is a list of zero or more restrictions combined via logical
+ * operators `AND` and `OR`. When `AND` and `OR` are both used in the
+ * expression, parentheses must be appropriately used to group the
+ * combinations.
+ *
+ * Example: location="us-east1"
+ * Example: container="projects/123" OR container="projects/456"
+ * Example: (container="projects/123" OR
+ * container="projects/456") AND location="us-east1"
+ *
+ *
+ * string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The filter.
+ */
+ java.lang.String getFilter();
+
+ /**
+ *
+ *
+ *
+ * Optional. The expression to filter resources.
+ *
+ * Supported fields are: `full_resource_name`, `resource_type`, `container`,
+ * `product.type`, `product.engine`, `product.version`, `location`,
+ * `labels`, `issues`, fields of availability_info,
+ * data_protection_info,'resource_name', etc.
+ *
+ * The expression is a list of zero or more restrictions combined via logical
+ * operators `AND` and `OR`. When `AND` and `OR` are both used in the
+ * expression, parentheses must be appropriately used to group the
+ * combinations.
+ *
+ * Example: location="us-east1"
+ * Example: container="projects/123" OR container="projects/456"
+ * Example: (container="projects/123" OR
+ * container="projects/456") AND location="us-east1"
+ *
+ *
+ * string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for filter.
+ */
+ com.google.protobuf.ByteString getFilterBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List getSignalTypeGroupsList();
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.databasecenter.v1beta.SignalTypeGroup getSignalTypeGroups(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getSignalTypeGroupsCount();
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.cloud.databasecenter.v1beta.SignalTypeGroupOrBuilder>
+ getSignalTypeGroupsOrBuilderList();
+
+ /**
+ *
+ *
+ *
+ * Optional. Lists of signal types that are issues.
+ *
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.databasecenter.v1beta.SignalTypeGroupOrBuilder getSignalTypeGroupsOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. The baseline date w.r.t. which the delta counts are calculated.
+ * If not set, delta counts are not included in the response and the response
+ * indicates the current state of the fleet.
+ *
+ *
+ * optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the baselineDate field is set.
+ */
+ boolean hasBaselineDate();
+
+ /**
+ *
+ *
+ *
+ * Optional. The baseline date w.r.t. which the delta counts are calculated.
+ * If not set, delta counts are not included in the response and the response
+ * indicates the current state of the fleet.
+ *
+ *
+ * optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The baselineDate.
+ */
+ com.google.type.Date getBaselineDate();
+
+ /**
+ *
+ *
+ *
+ * Optional. The baseline date w.r.t. which the delta counts are calculated.
+ * If not set, delta counts are not included in the response and the response
+ * indicates the current state of the fleet.
+ *
+ *
+ * optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.type.DateOrBuilder getBaselineDateOrBuilder();
+}
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsResponse.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsResponse.java
new file mode 100644
index 000000000000..0803114febd7
--- /dev/null
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsResponse.java
@@ -0,0 +1,1536 @@
+/*
+ * Copyright 2026 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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/databasecenter/v1beta/service.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.databasecenter.v1beta;
+
+/**
+ *
+ *
+ *
+ * The response message containing one of more group of relevant health issues
+ * for database resources.
+ *
+ *
+ * Protobuf type {@code google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse}
+ */
+public final class AggregateIssueStatsResponse extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse)
+ AggregateIssueStatsResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use AggregateIssueStatsResponse.newBuilder() to construct.
+ private AggregateIssueStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private AggregateIssueStatsResponse() {
+ issueGroupStats_ = java.util.Collections.emptyList();
+ unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new AggregateIssueStatsResponse();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse.class,
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse.Builder.class);
+ }
+
+ public static final int ISSUE_GROUP_STATS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private java.util.List issueGroupStats_;
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ getIssueGroupStatsList() {
+ return issueGroupStats_;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.databasecenter.v1beta.IssueGroupStatsOrBuilder>
+ getIssueGroupStatsOrBuilderList() {
+ return issueGroupStats_;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ @java.lang.Override
+ public int getIssueGroupStatsCount() {
+ return issueGroupStats_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.IssueGroupStats getIssueGroupStats(int index) {
+ return issueGroupStats_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.IssueGroupStatsOrBuilder
+ getIssueGroupStatsOrBuilder(int index) {
+ return issueGroupStats_.get(index);
+ }
+
+ public static final int TOTAL_RESOURCES_COUNT_FIELD_NUMBER = 2;
+ private int totalResourcesCount_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Total count of the resources filtered in based on the user given filter.
+ *
+ *
+ * int32 total_resources_count = 2;
+ *
+ * @return The totalResourcesCount.
+ */
+ @java.lang.Override
+ public int getTotalResourcesCount() {
+ return totalResourcesCount_;
+ }
+
+ public static final int TOTAL_RESOURCE_GROUPS_COUNT_FIELD_NUMBER = 3;
+ private int totalResourceGroupsCount_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Total count of the resource filtered in based on the user given filter.
+ *
+ *
+ * int32 total_resource_groups_count = 3;
+ *
+ * @return The totalResourceGroupsCount.
+ */
+ @java.lang.Override
+ public int getTotalResourceGroupsCount() {
+ return totalResourceGroupsCount_;
+ }
+
+ public static final int UNREACHABLE_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList unreachable_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @return A list containing the unreachable.
+ */
+ public com.google.protobuf.ProtocolStringList getUnreachableList() {
+ return unreachable_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @return The count of unreachable.
+ */
+ public int getUnreachableCount() {
+ return unreachable_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @param index The index of the element to return.
+ * @return The unreachable at the given index.
+ */
+ public java.lang.String getUnreachable(int index) {
+ return unreachable_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the unreachable at the given index.
+ */
+ public com.google.protobuf.ByteString getUnreachableBytes(int index) {
+ return unreachable_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < issueGroupStats_.size(); i++) {
+ output.writeMessage(1, issueGroupStats_.get(i));
+ }
+ if (totalResourcesCount_ != 0) {
+ output.writeInt32(2, totalResourcesCount_);
+ }
+ if (totalResourceGroupsCount_ != 0) {
+ output.writeInt32(3, totalResourceGroupsCount_);
+ }
+ for (int i = 0; i < unreachable_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, unreachable_.getRaw(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < issueGroupStats_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, issueGroupStats_.get(i));
+ }
+ if (totalResourcesCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, totalResourcesCount_);
+ }
+ if (totalResourceGroupsCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalResourceGroupsCount_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < unreachable_.size(); i++) {
+ dataSize += computeStringSizeNoTag(unreachable_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getUnreachableList().size();
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse other =
+ (com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse) obj;
+
+ if (!getIssueGroupStatsList().equals(other.getIssueGroupStatsList())) return false;
+ if (getTotalResourcesCount() != other.getTotalResourcesCount()) return false;
+ if (getTotalResourceGroupsCount() != other.getTotalResourceGroupsCount()) return false;
+ if (!getUnreachableList().equals(other.getUnreachableList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getIssueGroupStatsCount() > 0) {
+ hash = (37 * hash) + ISSUE_GROUP_STATS_FIELD_NUMBER;
+ hash = (53 * hash) + getIssueGroupStatsList().hashCode();
+ }
+ hash = (37 * hash) + TOTAL_RESOURCES_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getTotalResourcesCount();
+ hash = (37 * hash) + TOTAL_RESOURCE_GROUPS_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getTotalResourceGroupsCount();
+ if (getUnreachableCount() > 0) {
+ hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER;
+ hash = (53 * hash) + getUnreachableList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * The response message containing one of more group of relevant health issues
+ * for database resources.
+ *
+ *
+ * Protobuf type {@code google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse)
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse.class,
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (issueGroupStatsBuilder_ == null) {
+ issueGroupStats_ = java.util.Collections.emptyList();
+ } else {
+ issueGroupStats_ = null;
+ issueGroupStatsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ totalResourcesCount_ = 0;
+ totalResourceGroupsCount_ = 0;
+ unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse
+ getDefaultInstanceForType() {
+ return com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse build() {
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse buildPartial() {
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse result =
+ new com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse result) {
+ if (issueGroupStatsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ issueGroupStats_ = java.util.Collections.unmodifiableList(issueGroupStats_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.issueGroupStats_ = issueGroupStats_;
+ } else {
+ result.issueGroupStats_ = issueGroupStatsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.totalResourcesCount_ = totalResourcesCount_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.totalResourceGroupsCount_ = totalResourceGroupsCount_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ unreachable_.makeImmutable();
+ result.unreachable_ = unreachable_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse) {
+ return mergeFrom(
+ (com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse other) {
+ if (other
+ == com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse
+ .getDefaultInstance()) return this;
+ if (issueGroupStatsBuilder_ == null) {
+ if (!other.issueGroupStats_.isEmpty()) {
+ if (issueGroupStats_.isEmpty()) {
+ issueGroupStats_ = other.issueGroupStats_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureIssueGroupStatsIsMutable();
+ issueGroupStats_.addAll(other.issueGroupStats_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.issueGroupStats_.isEmpty()) {
+ if (issueGroupStatsBuilder_.isEmpty()) {
+ issueGroupStatsBuilder_.dispose();
+ issueGroupStatsBuilder_ = null;
+ issueGroupStats_ = other.issueGroupStats_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ issueGroupStatsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getIssueGroupStatsFieldBuilder()
+ : null;
+ } else {
+ issueGroupStatsBuilder_.addAllMessages(other.issueGroupStats_);
+ }
+ }
+ }
+ if (other.getTotalResourcesCount() != 0) {
+ setTotalResourcesCount(other.getTotalResourcesCount());
+ }
+ if (other.getTotalResourceGroupsCount() != 0) {
+ setTotalResourceGroupsCount(other.getTotalResourceGroupsCount());
+ }
+ if (!other.unreachable_.isEmpty()) {
+ if (unreachable_.isEmpty()) {
+ unreachable_ = other.unreachable_;
+ bitField0_ |= 0x00000008;
+ } else {
+ ensureUnreachableIsMutable();
+ unreachable_.addAll(other.unreachable_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats m =
+ input.readMessage(
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats.parser(),
+ extensionRegistry);
+ if (issueGroupStatsBuilder_ == null) {
+ ensureIssueGroupStatsIsMutable();
+ issueGroupStats_.add(m);
+ } else {
+ issueGroupStatsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ case 16:
+ {
+ totalResourcesCount_ = input.readInt32();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 24:
+ {
+ totalResourceGroupsCount_ = input.readInt32();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureUnreachableIsMutable();
+ unreachable_.add(s);
+ break;
+ } // case 34
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.util.List
+ issueGroupStats_ = java.util.Collections.emptyList();
+
+ private void ensureIssueGroupStatsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ issueGroupStats_ =
+ new java.util.ArrayList(
+ issueGroupStats_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats,
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats.Builder,
+ com.google.cloud.databasecenter.v1beta.IssueGroupStatsOrBuilder>
+ issueGroupStatsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public java.util.List
+ getIssueGroupStatsList() {
+ if (issueGroupStatsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(issueGroupStats_);
+ } else {
+ return issueGroupStatsBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public int getIssueGroupStatsCount() {
+ if (issueGroupStatsBuilder_ == null) {
+ return issueGroupStats_.size();
+ } else {
+ return issueGroupStatsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public com.google.cloud.databasecenter.v1beta.IssueGroupStats getIssueGroupStats(int index) {
+ if (issueGroupStatsBuilder_ == null) {
+ return issueGroupStats_.get(index);
+ } else {
+ return issueGroupStatsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public Builder setIssueGroupStats(
+ int index, com.google.cloud.databasecenter.v1beta.IssueGroupStats value) {
+ if (issueGroupStatsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIssueGroupStatsIsMutable();
+ issueGroupStats_.set(index, value);
+ onChanged();
+ } else {
+ issueGroupStatsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public Builder setIssueGroupStats(
+ int index, com.google.cloud.databasecenter.v1beta.IssueGroupStats.Builder builderForValue) {
+ if (issueGroupStatsBuilder_ == null) {
+ ensureIssueGroupStatsIsMutable();
+ issueGroupStats_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ issueGroupStatsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public Builder addIssueGroupStats(
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats value) {
+ if (issueGroupStatsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIssueGroupStatsIsMutable();
+ issueGroupStats_.add(value);
+ onChanged();
+ } else {
+ issueGroupStatsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public Builder addIssueGroupStats(
+ int index, com.google.cloud.databasecenter.v1beta.IssueGroupStats value) {
+ if (issueGroupStatsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIssueGroupStatsIsMutable();
+ issueGroupStats_.add(index, value);
+ onChanged();
+ } else {
+ issueGroupStatsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public Builder addIssueGroupStats(
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats.Builder builderForValue) {
+ if (issueGroupStatsBuilder_ == null) {
+ ensureIssueGroupStatsIsMutable();
+ issueGroupStats_.add(builderForValue.build());
+ onChanged();
+ } else {
+ issueGroupStatsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public Builder addIssueGroupStats(
+ int index, com.google.cloud.databasecenter.v1beta.IssueGroupStats.Builder builderForValue) {
+ if (issueGroupStatsBuilder_ == null) {
+ ensureIssueGroupStatsIsMutable();
+ issueGroupStats_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ issueGroupStatsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public Builder addAllIssueGroupStats(
+ java.lang.Iterable extends com.google.cloud.databasecenter.v1beta.IssueGroupStats>
+ values) {
+ if (issueGroupStatsBuilder_ == null) {
+ ensureIssueGroupStatsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, issueGroupStats_);
+ onChanged();
+ } else {
+ issueGroupStatsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public Builder clearIssueGroupStats() {
+ if (issueGroupStatsBuilder_ == null) {
+ issueGroupStats_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ issueGroupStatsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public Builder removeIssueGroupStats(int index) {
+ if (issueGroupStatsBuilder_ == null) {
+ ensureIssueGroupStatsIsMutable();
+ issueGroupStats_.remove(index);
+ onChanged();
+ } else {
+ issueGroupStatsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public com.google.cloud.databasecenter.v1beta.IssueGroupStats.Builder getIssueGroupStatsBuilder(
+ int index) {
+ return getIssueGroupStatsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public com.google.cloud.databasecenter.v1beta.IssueGroupStatsOrBuilder
+ getIssueGroupStatsOrBuilder(int index) {
+ if (issueGroupStatsBuilder_ == null) {
+ return issueGroupStats_.get(index);
+ } else {
+ return issueGroupStatsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public java.util.List extends com.google.cloud.databasecenter.v1beta.IssueGroupStatsOrBuilder>
+ getIssueGroupStatsOrBuilderList() {
+ if (issueGroupStatsBuilder_ != null) {
+ return issueGroupStatsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(issueGroupStats_);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public com.google.cloud.databasecenter.v1beta.IssueGroupStats.Builder
+ addIssueGroupStatsBuilder() {
+ return getIssueGroupStatsFieldBuilder()
+ .addBuilder(com.google.cloud.databasecenter.v1beta.IssueGroupStats.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public com.google.cloud.databasecenter.v1beta.IssueGroupStats.Builder addIssueGroupStatsBuilder(
+ int index) {
+ return getIssueGroupStatsFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.databasecenter.v1beta.IssueGroupStats.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ public java.util.List
+ getIssueGroupStatsBuilderList() {
+ return getIssueGroupStatsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats,
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats.Builder,
+ com.google.cloud.databasecenter.v1beta.IssueGroupStatsOrBuilder>
+ getIssueGroupStatsFieldBuilder() {
+ if (issueGroupStatsBuilder_ == null) {
+ issueGroupStatsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats,
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats.Builder,
+ com.google.cloud.databasecenter.v1beta.IssueGroupStatsOrBuilder>(
+ issueGroupStats_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ issueGroupStats_ = null;
+ }
+ return issueGroupStatsBuilder_;
+ }
+
+ private int totalResourcesCount_;
+
+ /**
+ *
+ *
+ *
+ * Total count of the resources filtered in based on the user given filter.
+ *
+ *
+ * int32 total_resources_count = 2;
+ *
+ * @return The totalResourcesCount.
+ */
+ @java.lang.Override
+ public int getTotalResourcesCount() {
+ return totalResourcesCount_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Total count of the resources filtered in based on the user given filter.
+ *
+ *
+ * int32 total_resources_count = 2;
+ *
+ * @param value The totalResourcesCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalResourcesCount(int value) {
+
+ totalResourcesCount_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Total count of the resources filtered in based on the user given filter.
+ *
+ *
+ * int32 total_resources_count = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalResourcesCount() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ totalResourcesCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int totalResourceGroupsCount_;
+
+ /**
+ *
+ *
+ *
+ * Total count of the resource filtered in based on the user given filter.
+ *
+ *
+ * int32 total_resource_groups_count = 3;
+ *
+ * @return The totalResourceGroupsCount.
+ */
+ @java.lang.Override
+ public int getTotalResourceGroupsCount() {
+ return totalResourceGroupsCount_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Total count of the resource filtered in based on the user given filter.
+ *
+ *
+ * int32 total_resource_groups_count = 3;
+ *
+ * @param value The totalResourceGroupsCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalResourceGroupsCount(int value) {
+
+ totalResourceGroupsCount_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Total count of the resource filtered in based on the user given filter.
+ *
+ *
+ * int32 total_resource_groups_count = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalResourceGroupsCount() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ totalResourceGroupsCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList unreachable_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureUnreachableIsMutable() {
+ if (!unreachable_.isModifiable()) {
+ unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_);
+ }
+ bitField0_ |= 0x00000008;
+ }
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @return A list containing the unreachable.
+ */
+ public com.google.protobuf.ProtocolStringList getUnreachableList() {
+ unreachable_.makeImmutable();
+ return unreachable_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @return The count of unreachable.
+ */
+ public int getUnreachableCount() {
+ return unreachable_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @param index The index of the element to return.
+ * @return The unreachable at the given index.
+ */
+ public java.lang.String getUnreachable(int index) {
+ return unreachable_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the unreachable at the given index.
+ */
+ public com.google.protobuf.ByteString getUnreachableBytes(int index) {
+ return unreachable_.getByteString(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @param index The index to set the value at.
+ * @param value The unreachable to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUnreachable(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureUnreachableIsMutable();
+ unreachable_.set(index, value);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @param value The unreachable to add.
+ * @return This builder for chaining.
+ */
+ public Builder addUnreachable(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureUnreachableIsMutable();
+ unreachable_.add(value);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @param values The unreachable to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllUnreachable(java.lang.Iterable values) {
+ ensureUnreachableIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUnreachable() {
+ unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @param value The bytes of the unreachable to add.
+ * @return This builder for chaining.
+ */
+ public Builder addUnreachableBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureUnreachableIsMutable();
+ unreachable_.add(value);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse)
+ private static final com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse();
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public AggregateIssueStatsResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsResponseOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsResponseOrBuilder.java
new file mode 100644
index 000000000000..4a168826df2b
--- /dev/null
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsResponseOrBuilder.java
@@ -0,0 +1,177 @@
+/*
+ * Copyright 2026 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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/databasecenter/v1beta/service.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.databasecenter.v1beta;
+
+public interface AggregateIssueStatsResponseOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ java.util.List getIssueGroupStatsList();
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats getIssueGroupStats(int index);
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ int getIssueGroupStatsCount();
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ java.util.List extends com.google.cloud.databasecenter.v1beta.IssueGroupStatsOrBuilder>
+ getIssueGroupStatsOrBuilderList();
+
+ /**
+ *
+ *
+ *
+ * List of issue group stats where each group contains stats for resources
+ * having a particular combination of relevant issues.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1;
+ *
+ */
+ com.google.cloud.databasecenter.v1beta.IssueGroupStatsOrBuilder getIssueGroupStatsOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ *
+ * Total count of the resources filtered in based on the user given filter.
+ *
+ *
+ * int32 total_resources_count = 2;
+ *
+ * @return The totalResourcesCount.
+ */
+ int getTotalResourcesCount();
+
+ /**
+ *
+ *
+ *
+ * Total count of the resource filtered in based on the user given filter.
+ *
+ *
+ * int32 total_resource_groups_count = 3;
+ *
+ * @return The totalResourceGroupsCount.
+ */
+ int getTotalResourceGroupsCount();
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @return A list containing the unreachable.
+ */
+ java.util.List getUnreachableList();
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @return The count of unreachable.
+ */
+ int getUnreachableCount();
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @param index The index of the element to return.
+ * @return The unreachable at the given index.
+ */
+ java.lang.String getUnreachable(int index);
+
+ /**
+ *
+ *
+ *
+ * Unordered list. List of unreachable regions from where data could not be
+ * retrieved.
+ *
+ *
+ * repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the unreachable at the given index.
+ */
+ com.google.protobuf.ByteString getUnreachableBytes(int index);
+}
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/IssueGroupStats.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/IssueGroupStats.java
new file mode 100644
index 000000000000..b158c745e78b
--- /dev/null
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/IssueGroupStats.java
@@ -0,0 +1,1605 @@
+/*
+ * Copyright 2026 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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/databasecenter/v1beta/service.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.databasecenter.v1beta;
+
+/**
+ *
+ *
+ *
+ * IssueGroupStats refers to stats for a particulare combination of relevant
+ * health issues of database resources.
+ *
+ *
+ * Protobuf type {@code google.cloud.databasecenter.v1beta.IssueGroupStats}
+ */
+public final class IssueGroupStats extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.databasecenter.v1beta.IssueGroupStats)
+ IssueGroupStatsOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use IssueGroupStats.newBuilder() to construct.
+ private IssueGroupStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private IssueGroupStats() {
+ displayName_ = "";
+ issueStats_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new IssueGroupStats();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_IssueGroupStats_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_IssueGroupStats_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats.class,
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats.Builder.class);
+ }
+
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Database resource level health card name. This will corresponds to one of
+ * the requested input group names.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @return The displayName.
+ */
+ @java.lang.Override
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Database resource level health card name. This will corresponds to one of
+ * the requested input group names.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @return The bytes for displayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RESOURCE_GROUPS_COUNT_FIELD_NUMBER = 2;
+ private int resourceGroupsCount_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Total count of the groups of resources returned by the filter that
+ * also have one or more resources for which any of the specified issues
+ * are applicable.
+ *
+ *
+ * int32 resource_groups_count = 2;
+ *
+ * @return The resourceGroupsCount.
+ */
+ @java.lang.Override
+ public int getResourceGroupsCount() {
+ return resourceGroupsCount_;
+ }
+
+ public static final int RESOURCES_COUNT_FIELD_NUMBER = 3;
+ private int resourcesCount_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Total count of resources returned by the filter for which any of the
+ * specified issues are applicable.
+ *
+ *
+ * int32 resources_count = 3;
+ *
+ * @return The resourcesCount.
+ */
+ @java.lang.Override
+ public int getResourcesCount() {
+ return resourcesCount_;
+ }
+
+ public static final int HEALTHY_RESOURCE_GROUPS_COUNT_FIELD_NUMBER = 4;
+ private int healthyResourceGroupsCount_ = 0;
+
+ /**
+ *
+ *
+ *
+ * The number of resource groups from the total groups as defined above
+ * that are healthy with respect to all of the specified issues.
+ *
+ *
+ * int32 healthy_resource_groups_count = 4;
+ *
+ * @return The healthyResourceGroupsCount.
+ */
+ @java.lang.Override
+ public int getHealthyResourceGroupsCount() {
+ return healthyResourceGroupsCount_;
+ }
+
+ public static final int HEALTHY_RESOURCES_COUNT_FIELD_NUMBER = 5;
+ private int healthyResourcesCount_ = 0;
+
+ /**
+ *
+ *
+ *
+ * The number of resources from the total defined above in field
+ * total_resources_count that are healthy with respect to all of the specified
+ * issues.
+ *
+ *
+ * int32 healthy_resources_count = 5;
+ *
+ * @return The healthyResourcesCount.
+ */
+ @java.lang.Override
+ public int getHealthyResourcesCount() {
+ return healthyResourcesCount_;
+ }
+
+ public static final int ISSUE_STATS_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private java.util.List issueStats_;
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ @java.lang.Override
+ public java.util.List getIssueStatsList() {
+ return issueStats_;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.databasecenter.v1beta.IssueStatsOrBuilder>
+ getIssueStatsOrBuilderList() {
+ return issueStats_;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ @java.lang.Override
+ public int getIssueStatsCount() {
+ return issueStats_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.IssueStats getIssueStats(int index) {
+ return issueStats_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.IssueStatsOrBuilder getIssueStatsOrBuilder(
+ int index) {
+ return issueStats_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_);
+ }
+ if (resourceGroupsCount_ != 0) {
+ output.writeInt32(2, resourceGroupsCount_);
+ }
+ if (resourcesCount_ != 0) {
+ output.writeInt32(3, resourcesCount_);
+ }
+ if (healthyResourceGroupsCount_ != 0) {
+ output.writeInt32(4, healthyResourceGroupsCount_);
+ }
+ if (healthyResourcesCount_ != 0) {
+ output.writeInt32(5, healthyResourcesCount_);
+ }
+ for (int i = 0; i < issueStats_.size(); i++) {
+ output.writeMessage(6, issueStats_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_);
+ }
+ if (resourceGroupsCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, resourceGroupsCount_);
+ }
+ if (resourcesCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, resourcesCount_);
+ }
+ if (healthyResourceGroupsCount_ != 0) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt32Size(4, healthyResourceGroupsCount_);
+ }
+ if (healthyResourcesCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, healthyResourcesCount_);
+ }
+ for (int i = 0; i < issueStats_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, issueStats_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.databasecenter.v1beta.IssueGroupStats)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats other =
+ (com.google.cloud.databasecenter.v1beta.IssueGroupStats) obj;
+
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (getResourceGroupsCount() != other.getResourceGroupsCount()) return false;
+ if (getResourcesCount() != other.getResourcesCount()) return false;
+ if (getHealthyResourceGroupsCount() != other.getHealthyResourceGroupsCount()) return false;
+ if (getHealthyResourcesCount() != other.getHealthyResourcesCount()) return false;
+ if (!getIssueStatsList().equals(other.getIssueStatsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (37 * hash) + RESOURCE_GROUPS_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceGroupsCount();
+ hash = (37 * hash) + RESOURCES_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getResourcesCount();
+ hash = (37 * hash) + HEALTHY_RESOURCE_GROUPS_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getHealthyResourceGroupsCount();
+ hash = (37 * hash) + HEALTHY_RESOURCES_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getHealthyResourcesCount();
+ if (getIssueStatsCount() > 0) {
+ hash = (37 * hash) + ISSUE_STATS_FIELD_NUMBER;
+ hash = (53 * hash) + getIssueStatsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueGroupStats parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueGroupStats parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueGroupStats parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueGroupStats parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueGroupStats parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueGroupStats parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueGroupStats parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueGroupStats parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueGroupStats parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueGroupStats parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueGroupStats parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueGroupStats parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * IssueGroupStats refers to stats for a particulare combination of relevant
+ * health issues of database resources.
+ *
+ *
+ * Protobuf type {@code google.cloud.databasecenter.v1beta.IssueGroupStats}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.databasecenter.v1beta.IssueGroupStats)
+ com.google.cloud.databasecenter.v1beta.IssueGroupStatsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_IssueGroupStats_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_IssueGroupStats_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats.class,
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats.Builder.class);
+ }
+
+ // Construct using com.google.cloud.databasecenter.v1beta.IssueGroupStats.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ displayName_ = "";
+ resourceGroupsCount_ = 0;
+ resourcesCount_ = 0;
+ healthyResourceGroupsCount_ = 0;
+ healthyResourcesCount_ = 0;
+ if (issueStatsBuilder_ == null) {
+ issueStats_ = java.util.Collections.emptyList();
+ } else {
+ issueStats_ = null;
+ issueStatsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000020);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_IssueGroupStats_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.IssueGroupStats getDefaultInstanceForType() {
+ return com.google.cloud.databasecenter.v1beta.IssueGroupStats.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.IssueGroupStats build() {
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.IssueGroupStats buildPartial() {
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats result =
+ new com.google.cloud.databasecenter.v1beta.IssueGroupStats(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.databasecenter.v1beta.IssueGroupStats result) {
+ if (issueStatsBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
+ issueStats_ = java.util.Collections.unmodifiableList(issueStats_);
+ bitField0_ = (bitField0_ & ~0x00000020);
+ }
+ result.issueStats_ = issueStats_;
+ } else {
+ result.issueStats_ = issueStatsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.google.cloud.databasecenter.v1beta.IssueGroupStats result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.resourceGroupsCount_ = resourceGroupsCount_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.resourcesCount_ = resourcesCount_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.healthyResourceGroupsCount_ = healthyResourceGroupsCount_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.healthyResourcesCount_ = healthyResourcesCount_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.databasecenter.v1beta.IssueGroupStats) {
+ return mergeFrom((com.google.cloud.databasecenter.v1beta.IssueGroupStats) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.databasecenter.v1beta.IssueGroupStats other) {
+ if (other == com.google.cloud.databasecenter.v1beta.IssueGroupStats.getDefaultInstance())
+ return this;
+ if (!other.getDisplayName().isEmpty()) {
+ displayName_ = other.displayName_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.getResourceGroupsCount() != 0) {
+ setResourceGroupsCount(other.getResourceGroupsCount());
+ }
+ if (other.getResourcesCount() != 0) {
+ setResourcesCount(other.getResourcesCount());
+ }
+ if (other.getHealthyResourceGroupsCount() != 0) {
+ setHealthyResourceGroupsCount(other.getHealthyResourceGroupsCount());
+ }
+ if (other.getHealthyResourcesCount() != 0) {
+ setHealthyResourcesCount(other.getHealthyResourcesCount());
+ }
+ if (issueStatsBuilder_ == null) {
+ if (!other.issueStats_.isEmpty()) {
+ if (issueStats_.isEmpty()) {
+ issueStats_ = other.issueStats_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ } else {
+ ensureIssueStatsIsMutable();
+ issueStats_.addAll(other.issueStats_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.issueStats_.isEmpty()) {
+ if (issueStatsBuilder_.isEmpty()) {
+ issueStatsBuilder_.dispose();
+ issueStatsBuilder_ = null;
+ issueStats_ = other.issueStats_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ issueStatsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getIssueStatsFieldBuilder()
+ : null;
+ } else {
+ issueStatsBuilder_.addAllMessages(other.issueStats_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ displayName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16:
+ {
+ resourceGroupsCount_ = input.readInt32();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 24:
+ {
+ resourcesCount_ = input.readInt32();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ case 32:
+ {
+ healthyResourceGroupsCount_ = input.readInt32();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 32
+ case 40:
+ {
+ healthyResourcesCount_ = input.readInt32();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 40
+ case 50:
+ {
+ com.google.cloud.databasecenter.v1beta.IssueStats m =
+ input.readMessage(
+ com.google.cloud.databasecenter.v1beta.IssueStats.parser(),
+ extensionRegistry);
+ if (issueStatsBuilder_ == null) {
+ ensureIssueStatsIsMutable();
+ issueStats_.add(m);
+ } else {
+ issueStatsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 50
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object displayName_ = "";
+
+ /**
+ *
+ *
+ *
+ * Database resource level health card name. This will corresponds to one of
+ * the requested input group names.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @return The displayName.
+ */
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Database resource level health card name. This will corresponds to one of
+ * the requested input group names.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @return The bytes for displayName.
+ */
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Database resource level health card name. This will corresponds to one of
+ * the requested input group names.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @param value The displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ displayName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Database resource level health card name. This will corresponds to one of
+ * the requested input group names.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Database resource level health card name. This will corresponds to one of
+ * the requested input group names.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @param value The bytes for displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ displayName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int resourceGroupsCount_;
+
+ /**
+ *
+ *
+ *
+ * Total count of the groups of resources returned by the filter that
+ * also have one or more resources for which any of the specified issues
+ * are applicable.
+ *
+ *
+ * int32 resource_groups_count = 2;
+ *
+ * @return The resourceGroupsCount.
+ */
+ @java.lang.Override
+ public int getResourceGroupsCount() {
+ return resourceGroupsCount_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Total count of the groups of resources returned by the filter that
+ * also have one or more resources for which any of the specified issues
+ * are applicable.
+ *
+ *
+ * int32 resource_groups_count = 2;
+ *
+ * @param value The resourceGroupsCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceGroupsCount(int value) {
+
+ resourceGroupsCount_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Total count of the groups of resources returned by the filter that
+ * also have one or more resources for which any of the specified issues
+ * are applicable.
+ *
+ *
+ * int32 resource_groups_count = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResourceGroupsCount() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ resourceGroupsCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int resourcesCount_;
+
+ /**
+ *
+ *
+ *
+ * Total count of resources returned by the filter for which any of the
+ * specified issues are applicable.
+ *
+ *
+ * int32 resources_count = 3;
+ *
+ * @return The resourcesCount.
+ */
+ @java.lang.Override
+ public int getResourcesCount() {
+ return resourcesCount_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Total count of resources returned by the filter for which any of the
+ * specified issues are applicable.
+ *
+ *
+ * int32 resources_count = 3;
+ *
+ * @param value The resourcesCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourcesCount(int value) {
+
+ resourcesCount_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Total count of resources returned by the filter for which any of the
+ * specified issues are applicable.
+ *
+ *
+ * int32 resources_count = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResourcesCount() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ resourcesCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int healthyResourceGroupsCount_;
+
+ /**
+ *
+ *
+ *
+ * The number of resource groups from the total groups as defined above
+ * that are healthy with respect to all of the specified issues.
+ *
+ *
+ * int32 healthy_resource_groups_count = 4;
+ *
+ * @return The healthyResourceGroupsCount.
+ */
+ @java.lang.Override
+ public int getHealthyResourceGroupsCount() {
+ return healthyResourceGroupsCount_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The number of resource groups from the total groups as defined above
+ * that are healthy with respect to all of the specified issues.
+ *
+ *
+ * int32 healthy_resource_groups_count = 4;
+ *
+ * @param value The healthyResourceGroupsCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHealthyResourceGroupsCount(int value) {
+
+ healthyResourceGroupsCount_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The number of resource groups from the total groups as defined above
+ * that are healthy with respect to all of the specified issues.
+ *
+ *
+ * int32 healthy_resource_groups_count = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearHealthyResourceGroupsCount() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ healthyResourceGroupsCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int healthyResourcesCount_;
+
+ /**
+ *
+ *
+ *
+ * The number of resources from the total defined above in field
+ * total_resources_count that are healthy with respect to all of the specified
+ * issues.
+ *
+ *
+ * int32 healthy_resources_count = 5;
+ *
+ * @return The healthyResourcesCount.
+ */
+ @java.lang.Override
+ public int getHealthyResourcesCount() {
+ return healthyResourcesCount_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The number of resources from the total defined above in field
+ * total_resources_count that are healthy with respect to all of the specified
+ * issues.
+ *
+ *
+ * int32 healthy_resources_count = 5;
+ *
+ * @param value The healthyResourcesCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHealthyResourcesCount(int value) {
+
+ healthyResourcesCount_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The number of resources from the total defined above in field
+ * total_resources_count that are healthy with respect to all of the specified
+ * issues.
+ *
+ *
+ * int32 healthy_resources_count = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearHealthyResourcesCount() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ healthyResourcesCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List issueStats_ =
+ java.util.Collections.emptyList();
+
+ private void ensureIssueStatsIsMutable() {
+ if (!((bitField0_ & 0x00000020) != 0)) {
+ issueStats_ =
+ new java.util.ArrayList(issueStats_);
+ bitField0_ |= 0x00000020;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.databasecenter.v1beta.IssueStats,
+ com.google.cloud.databasecenter.v1beta.IssueStats.Builder,
+ com.google.cloud.databasecenter.v1beta.IssueStatsOrBuilder>
+ issueStatsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public java.util.List getIssueStatsList() {
+ if (issueStatsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(issueStats_);
+ } else {
+ return issueStatsBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public int getIssueStatsCount() {
+ if (issueStatsBuilder_ == null) {
+ return issueStats_.size();
+ } else {
+ return issueStatsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public com.google.cloud.databasecenter.v1beta.IssueStats getIssueStats(int index) {
+ if (issueStatsBuilder_ == null) {
+ return issueStats_.get(index);
+ } else {
+ return issueStatsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public Builder setIssueStats(
+ int index, com.google.cloud.databasecenter.v1beta.IssueStats value) {
+ if (issueStatsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIssueStatsIsMutable();
+ issueStats_.set(index, value);
+ onChanged();
+ } else {
+ issueStatsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public Builder setIssueStats(
+ int index, com.google.cloud.databasecenter.v1beta.IssueStats.Builder builderForValue) {
+ if (issueStatsBuilder_ == null) {
+ ensureIssueStatsIsMutable();
+ issueStats_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ issueStatsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public Builder addIssueStats(com.google.cloud.databasecenter.v1beta.IssueStats value) {
+ if (issueStatsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIssueStatsIsMutable();
+ issueStats_.add(value);
+ onChanged();
+ } else {
+ issueStatsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public Builder addIssueStats(
+ int index, com.google.cloud.databasecenter.v1beta.IssueStats value) {
+ if (issueStatsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIssueStatsIsMutable();
+ issueStats_.add(index, value);
+ onChanged();
+ } else {
+ issueStatsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public Builder addIssueStats(
+ com.google.cloud.databasecenter.v1beta.IssueStats.Builder builderForValue) {
+ if (issueStatsBuilder_ == null) {
+ ensureIssueStatsIsMutable();
+ issueStats_.add(builderForValue.build());
+ onChanged();
+ } else {
+ issueStatsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public Builder addIssueStats(
+ int index, com.google.cloud.databasecenter.v1beta.IssueStats.Builder builderForValue) {
+ if (issueStatsBuilder_ == null) {
+ ensureIssueStatsIsMutable();
+ issueStats_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ issueStatsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public Builder addAllIssueStats(
+ java.lang.Iterable extends com.google.cloud.databasecenter.v1beta.IssueStats> values) {
+ if (issueStatsBuilder_ == null) {
+ ensureIssueStatsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, issueStats_);
+ onChanged();
+ } else {
+ issueStatsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public Builder clearIssueStats() {
+ if (issueStatsBuilder_ == null) {
+ issueStats_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ } else {
+ issueStatsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public Builder removeIssueStats(int index) {
+ if (issueStatsBuilder_ == null) {
+ ensureIssueStatsIsMutable();
+ issueStats_.remove(index);
+ onChanged();
+ } else {
+ issueStatsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public com.google.cloud.databasecenter.v1beta.IssueStats.Builder getIssueStatsBuilder(
+ int index) {
+ return getIssueStatsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public com.google.cloud.databasecenter.v1beta.IssueStatsOrBuilder getIssueStatsOrBuilder(
+ int index) {
+ if (issueStatsBuilder_ == null) {
+ return issueStats_.get(index);
+ } else {
+ return issueStatsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public java.util.List extends com.google.cloud.databasecenter.v1beta.IssueStatsOrBuilder>
+ getIssueStatsOrBuilderList() {
+ if (issueStatsBuilder_ != null) {
+ return issueStatsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(issueStats_);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public com.google.cloud.databasecenter.v1beta.IssueStats.Builder addIssueStatsBuilder() {
+ return getIssueStatsFieldBuilder()
+ .addBuilder(com.google.cloud.databasecenter.v1beta.IssueStats.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public com.google.cloud.databasecenter.v1beta.IssueStats.Builder addIssueStatsBuilder(
+ int index) {
+ return getIssueStatsFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.databasecenter.v1beta.IssueStats.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ public java.util.List
+ getIssueStatsBuilderList() {
+ return getIssueStatsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.databasecenter.v1beta.IssueStats,
+ com.google.cloud.databasecenter.v1beta.IssueStats.Builder,
+ com.google.cloud.databasecenter.v1beta.IssueStatsOrBuilder>
+ getIssueStatsFieldBuilder() {
+ if (issueStatsBuilder_ == null) {
+ issueStatsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.databasecenter.v1beta.IssueStats,
+ com.google.cloud.databasecenter.v1beta.IssueStats.Builder,
+ com.google.cloud.databasecenter.v1beta.IssueStatsOrBuilder>(
+ issueStats_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean());
+ issueStats_ = null;
+ }
+ return issueStatsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.databasecenter.v1beta.IssueGroupStats)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.databasecenter.v1beta.IssueGroupStats)
+ private static final com.google.cloud.databasecenter.v1beta.IssueGroupStats DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.databasecenter.v1beta.IssueGroupStats();
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueGroupStats getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public IssueGroupStats parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.IssueGroupStats getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/IssueGroupStatsOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/IssueGroupStatsOrBuilder.java
new file mode 100644
index 000000000000..6b8a97518afa
--- /dev/null
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/IssueGroupStatsOrBuilder.java
@@ -0,0 +1,173 @@
+/*
+ * Copyright 2026 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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/databasecenter/v1beta/service.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.databasecenter.v1beta;
+
+public interface IssueGroupStatsOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.databasecenter.v1beta.IssueGroupStats)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Database resource level health card name. This will corresponds to one of
+ * the requested input group names.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+
+ /**
+ *
+ *
+ *
+ * Database resource level health card name. This will corresponds to one of
+ * the requested input group names.
+ *
+ *
+ * string display_name = 1;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Total count of the groups of resources returned by the filter that
+ * also have one or more resources for which any of the specified issues
+ * are applicable.
+ *
+ *
+ * int32 resource_groups_count = 2;
+ *
+ * @return The resourceGroupsCount.
+ */
+ int getResourceGroupsCount();
+
+ /**
+ *
+ *
+ *
+ * Total count of resources returned by the filter for which any of the
+ * specified issues are applicable.
+ *
+ *
+ * int32 resources_count = 3;
+ *
+ * @return The resourcesCount.
+ */
+ int getResourcesCount();
+
+ /**
+ *
+ *
+ *
+ * The number of resource groups from the total groups as defined above
+ * that are healthy with respect to all of the specified issues.
+ *
+ *
+ * int32 healthy_resource_groups_count = 4;
+ *
+ * @return The healthyResourceGroupsCount.
+ */
+ int getHealthyResourceGroupsCount();
+
+ /**
+ *
+ *
+ *
+ * The number of resources from the total defined above in field
+ * total_resources_count that are healthy with respect to all of the specified
+ * issues.
+ *
+ *
+ * int32 healthy_resources_count = 5;
+ *
+ * @return The healthyResourcesCount.
+ */
+ int getHealthyResourcesCount();
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ java.util.List getIssueStatsList();
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ com.google.cloud.databasecenter.v1beta.IssueStats getIssueStats(int index);
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ int getIssueStatsCount();
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ java.util.List extends com.google.cloud.databasecenter.v1beta.IssueStatsOrBuilder>
+ getIssueStatsOrBuilderList();
+
+ /**
+ *
+ *
+ *
+ * List of issues stats containing count of resources having particular issue
+ * category.
+ *
+ *
+ * repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6;
+ */
+ com.google.cloud.databasecenter.v1beta.IssueStatsOrBuilder getIssueStatsOrBuilder(int index);
+}
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/IssueStats.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/IssueStats.java
new file mode 100644
index 000000000000..f963631b955d
--- /dev/null
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/IssueStats.java
@@ -0,0 +1,1228 @@
+/*
+ * Copyright 2026 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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/databasecenter/v1beta/service.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.databasecenter.v1beta;
+
+/**
+ *
+ *
+ *
+ * IssueStats holds stats for a particular signal category.
+ *
+ *
+ * Protobuf type {@code google.cloud.databasecenter.v1beta.IssueStats}
+ */
+public final class IssueStats extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.databasecenter.v1beta.IssueStats)
+ IssueStatsOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use IssueStats.newBuilder() to construct.
+ private IssueStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private IssueStats() {
+ signalType_ = 0;
+ issueSeverity_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new IssueStats();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_IssueStats_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_IssueStats_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.databasecenter.v1beta.IssueStats.class,
+ com.google.cloud.databasecenter.v1beta.IssueStats.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int SIGNAL_TYPE_FIELD_NUMBER = 1;
+ private int signalType_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Type of signal which is an issue.
+ *
+ *
+ * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1;
+ *
+ * @return The enum numeric value on the wire for signalType.
+ */
+ @java.lang.Override
+ public int getSignalTypeValue() {
+ return signalType_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Type of signal which is an issue.
+ *
+ *
+ * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1;
+ *
+ * @return The signalType.
+ */
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.SignalType getSignalType() {
+ com.google.cloud.databasecenter.v1beta.SignalType result =
+ com.google.cloud.databasecenter.v1beta.SignalType.forNumber(signalType_);
+ return result == null ? com.google.cloud.databasecenter.v1beta.SignalType.UNRECOGNIZED : result;
+ }
+
+ public static final int RESOURCE_COUNT_FIELD_NUMBER = 2;
+ private int resourceCount_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Number of resources having issues of a given type.
+ *
+ *
+ * int32 resource_count = 2;
+ *
+ * @return The resourceCount.
+ */
+ @java.lang.Override
+ public int getResourceCount() {
+ return resourceCount_;
+ }
+
+ public static final int DELTA_DETAILS_FIELD_NUMBER = 3;
+ private com.google.cloud.databasecenter.v1beta.DeltaDetails deltaDetails_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Delta counts and details of resources for which issue was raised
+ * or fixed.
+ *
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the deltaDetails field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeltaDetails() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Delta counts and details of resources for which issue was raised
+ * or fixed.
+ *
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The deltaDetails.
+ */
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.DeltaDetails getDeltaDetails() {
+ return deltaDetails_ == null
+ ? com.google.cloud.databasecenter.v1beta.DeltaDetails.getDefaultInstance()
+ : deltaDetails_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Delta counts and details of resources for which issue was raised
+ * or fixed.
+ *
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.DeltaDetailsOrBuilder getDeltaDetailsOrBuilder() {
+ return deltaDetails_ == null
+ ? com.google.cloud.databasecenter.v1beta.DeltaDetails.getDefaultInstance()
+ : deltaDetails_;
+ }
+
+ public static final int ISSUE_SEVERITY_FIELD_NUMBER = 4;
+ private int issueSeverity_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Severity of the issue.
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
+ *
+ * @return Whether the issueSeverity field is set.
+ */
+ @java.lang.Override
+ public boolean hasIssueSeverity() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Severity of the issue.
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
+ *
+ * @return The enum numeric value on the wire for issueSeverity.
+ */
+ @java.lang.Override
+ public int getIssueSeverityValue() {
+ return issueSeverity_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Severity of the issue.
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
+ *
+ * @return The issueSeverity.
+ */
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.IssueSeverity getIssueSeverity() {
+ com.google.cloud.databasecenter.v1beta.IssueSeverity result =
+ com.google.cloud.databasecenter.v1beta.IssueSeverity.forNumber(issueSeverity_);
+ return result == null
+ ? com.google.cloud.databasecenter.v1beta.IssueSeverity.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (signalType_
+ != com.google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(1, signalType_);
+ }
+ if (resourceCount_ != 0) {
+ output.writeInt32(2, resourceCount_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(3, getDeltaDetails());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeEnum(4, issueSeverity_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (signalType_
+ != com.google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, signalType_);
+ }
+ if (resourceCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, resourceCount_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeltaDetails());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, issueSeverity_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.databasecenter.v1beta.IssueStats)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.databasecenter.v1beta.IssueStats other =
+ (com.google.cloud.databasecenter.v1beta.IssueStats) obj;
+
+ if (signalType_ != other.signalType_) return false;
+ if (getResourceCount() != other.getResourceCount()) return false;
+ if (hasDeltaDetails() != other.hasDeltaDetails()) return false;
+ if (hasDeltaDetails()) {
+ if (!getDeltaDetails().equals(other.getDeltaDetails())) return false;
+ }
+ if (hasIssueSeverity() != other.hasIssueSeverity()) return false;
+ if (hasIssueSeverity()) {
+ if (issueSeverity_ != other.issueSeverity_) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SIGNAL_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + signalType_;
+ hash = (37 * hash) + RESOURCE_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceCount();
+ if (hasDeltaDetails()) {
+ hash = (37 * hash) + DELTA_DETAILS_FIELD_NUMBER;
+ hash = (53 * hash) + getDeltaDetails().hashCode();
+ }
+ if (hasIssueSeverity()) {
+ hash = (37 * hash) + ISSUE_SEVERITY_FIELD_NUMBER;
+ hash = (53 * hash) + issueSeverity_;
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueStats parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueStats parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueStats parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueStats parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueStats parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueStats parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueStats parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueStats parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueStats parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueStats parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueStats parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueStats parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.databasecenter.v1beta.IssueStats prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * IssueStats holds stats for a particular signal category.
+ *
+ *
+ * Protobuf type {@code google.cloud.databasecenter.v1beta.IssueStats}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.databasecenter.v1beta.IssueStats)
+ com.google.cloud.databasecenter.v1beta.IssueStatsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_IssueStats_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_IssueStats_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.databasecenter.v1beta.IssueStats.class,
+ com.google.cloud.databasecenter.v1beta.IssueStats.Builder.class);
+ }
+
+ // Construct using com.google.cloud.databasecenter.v1beta.IssueStats.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getDeltaDetailsFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ signalType_ = 0;
+ resourceCount_ = 0;
+ deltaDetails_ = null;
+ if (deltaDetailsBuilder_ != null) {
+ deltaDetailsBuilder_.dispose();
+ deltaDetailsBuilder_ = null;
+ }
+ issueSeverity_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.databasecenter.v1beta.ServiceProto
+ .internal_static_google_cloud_databasecenter_v1beta_IssueStats_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.IssueStats getDefaultInstanceForType() {
+ return com.google.cloud.databasecenter.v1beta.IssueStats.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.IssueStats build() {
+ com.google.cloud.databasecenter.v1beta.IssueStats result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.IssueStats buildPartial() {
+ com.google.cloud.databasecenter.v1beta.IssueStats result =
+ new com.google.cloud.databasecenter.v1beta.IssueStats(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.databasecenter.v1beta.IssueStats result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.signalType_ = signalType_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.resourceCount_ = resourceCount_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.deltaDetails_ =
+ deltaDetailsBuilder_ == null ? deltaDetails_ : deltaDetailsBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.issueSeverity_ = issueSeverity_;
+ to_bitField0_ |= 0x00000002;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.databasecenter.v1beta.IssueStats) {
+ return mergeFrom((com.google.cloud.databasecenter.v1beta.IssueStats) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.databasecenter.v1beta.IssueStats other) {
+ if (other == com.google.cloud.databasecenter.v1beta.IssueStats.getDefaultInstance())
+ return this;
+ if (other.signalType_ != 0) {
+ setSignalTypeValue(other.getSignalTypeValue());
+ }
+ if (other.getResourceCount() != 0) {
+ setResourceCount(other.getResourceCount());
+ }
+ if (other.hasDeltaDetails()) {
+ mergeDeltaDetails(other.getDeltaDetails());
+ }
+ if (other.hasIssueSeverity()) {
+ setIssueSeverity(other.getIssueSeverity());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ signalType_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16:
+ {
+ resourceCount_ = input.readInt32();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 26:
+ {
+ input.readMessage(getDeltaDetailsFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 32:
+ {
+ issueSeverity_ = input.readEnum();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 32
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private int signalType_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Type of signal which is an issue.
+ *
+ *
+ * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1;
+ *
+ * @return The enum numeric value on the wire for signalType.
+ */
+ @java.lang.Override
+ public int getSignalTypeValue() {
+ return signalType_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Type of signal which is an issue.
+ *
+ *
+ * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1;
+ *
+ * @param value The enum numeric value on the wire for signalType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSignalTypeValue(int value) {
+ signalType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Type of signal which is an issue.
+ *
+ *
+ * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1;
+ *
+ * @return The signalType.
+ */
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.SignalType getSignalType() {
+ com.google.cloud.databasecenter.v1beta.SignalType result =
+ com.google.cloud.databasecenter.v1beta.SignalType.forNumber(signalType_);
+ return result == null
+ ? com.google.cloud.databasecenter.v1beta.SignalType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Type of signal which is an issue.
+ *
+ *
+ * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1;
+ *
+ * @param value The signalType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSignalType(com.google.cloud.databasecenter.v1beta.SignalType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ signalType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Type of signal which is an issue.
+ *
+ *
+ * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSignalType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ signalType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int resourceCount_;
+
+ /**
+ *
+ *
+ *
+ * Number of resources having issues of a given type.
+ *
+ *
+ * int32 resource_count = 2;
+ *
+ * @return The resourceCount.
+ */
+ @java.lang.Override
+ public int getResourceCount() {
+ return resourceCount_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Number of resources having issues of a given type.
+ *
+ *
+ * int32 resource_count = 2;
+ *
+ * @param value The resourceCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceCount(int value) {
+
+ resourceCount_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Number of resources having issues of a given type.
+ *
+ *
+ * int32 resource_count = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResourceCount() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ resourceCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.databasecenter.v1beta.DeltaDetails deltaDetails_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.databasecenter.v1beta.DeltaDetails,
+ com.google.cloud.databasecenter.v1beta.DeltaDetails.Builder,
+ com.google.cloud.databasecenter.v1beta.DeltaDetailsOrBuilder>
+ deltaDetailsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Delta counts and details of resources for which issue was raised
+ * or fixed.
+ *
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the deltaDetails field is set.
+ */
+ public boolean hasDeltaDetails() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Delta counts and details of resources for which issue was raised
+ * or fixed.
+ *
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The deltaDetails.
+ */
+ public com.google.cloud.databasecenter.v1beta.DeltaDetails getDeltaDetails() {
+ if (deltaDetailsBuilder_ == null) {
+ return deltaDetails_ == null
+ ? com.google.cloud.databasecenter.v1beta.DeltaDetails.getDefaultInstance()
+ : deltaDetails_;
+ } else {
+ return deltaDetailsBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Delta counts and details of resources for which issue was raised
+ * or fixed.
+ *
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setDeltaDetails(com.google.cloud.databasecenter.v1beta.DeltaDetails value) {
+ if (deltaDetailsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ deltaDetails_ = value;
+ } else {
+ deltaDetailsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Delta counts and details of resources for which issue was raised
+ * or fixed.
+ *
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setDeltaDetails(
+ com.google.cloud.databasecenter.v1beta.DeltaDetails.Builder builderForValue) {
+ if (deltaDetailsBuilder_ == null) {
+ deltaDetails_ = builderForValue.build();
+ } else {
+ deltaDetailsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Delta counts and details of resources for which issue was raised
+ * or fixed.
+ *
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeDeltaDetails(com.google.cloud.databasecenter.v1beta.DeltaDetails value) {
+ if (deltaDetailsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && deltaDetails_ != null
+ && deltaDetails_
+ != com.google.cloud.databasecenter.v1beta.DeltaDetails.getDefaultInstance()) {
+ getDeltaDetailsBuilder().mergeFrom(value);
+ } else {
+ deltaDetails_ = value;
+ }
+ } else {
+ deltaDetailsBuilder_.mergeFrom(value);
+ }
+ if (deltaDetails_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Delta counts and details of resources for which issue was raised
+ * or fixed.
+ *
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearDeltaDetails() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ deltaDetails_ = null;
+ if (deltaDetailsBuilder_ != null) {
+ deltaDetailsBuilder_.dispose();
+ deltaDetailsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Delta counts and details of resources for which issue was raised
+ * or fixed.
+ *
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.databasecenter.v1beta.DeltaDetails.Builder getDeltaDetailsBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getDeltaDetailsFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Delta counts and details of resources for which issue was raised
+ * or fixed.
+ *
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.databasecenter.v1beta.DeltaDetailsOrBuilder getDeltaDetailsOrBuilder() {
+ if (deltaDetailsBuilder_ != null) {
+ return deltaDetailsBuilder_.getMessageOrBuilder();
+ } else {
+ return deltaDetails_ == null
+ ? com.google.cloud.databasecenter.v1beta.DeltaDetails.getDefaultInstance()
+ : deltaDetails_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Delta counts and details of resources for which issue was raised
+ * or fixed.
+ *
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.databasecenter.v1beta.DeltaDetails,
+ com.google.cloud.databasecenter.v1beta.DeltaDetails.Builder,
+ com.google.cloud.databasecenter.v1beta.DeltaDetailsOrBuilder>
+ getDeltaDetailsFieldBuilder() {
+ if (deltaDetailsBuilder_ == null) {
+ deltaDetailsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.databasecenter.v1beta.DeltaDetails,
+ com.google.cloud.databasecenter.v1beta.DeltaDetails.Builder,
+ com.google.cloud.databasecenter.v1beta.DeltaDetailsOrBuilder>(
+ getDeltaDetails(), getParentForChildren(), isClean());
+ deltaDetails_ = null;
+ }
+ return deltaDetailsBuilder_;
+ }
+
+ private int issueSeverity_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Severity of the issue.
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
+ *
+ * @return Whether the issueSeverity field is set.
+ */
+ @java.lang.Override
+ public boolean hasIssueSeverity() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Severity of the issue.
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
+ *
+ * @return The enum numeric value on the wire for issueSeverity.
+ */
+ @java.lang.Override
+ public int getIssueSeverityValue() {
+ return issueSeverity_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Severity of the issue.
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
+ *
+ * @param value The enum numeric value on the wire for issueSeverity to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIssueSeverityValue(int value) {
+ issueSeverity_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Severity of the issue.
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
+ *
+ * @return The issueSeverity.
+ */
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.IssueSeverity getIssueSeverity() {
+ com.google.cloud.databasecenter.v1beta.IssueSeverity result =
+ com.google.cloud.databasecenter.v1beta.IssueSeverity.forNumber(issueSeverity_);
+ return result == null
+ ? com.google.cloud.databasecenter.v1beta.IssueSeverity.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Severity of the issue.
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
+ *
+ * @param value The issueSeverity to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIssueSeverity(com.google.cloud.databasecenter.v1beta.IssueSeverity value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ issueSeverity_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Severity of the issue.
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIssueSeverity() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ issueSeverity_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.databasecenter.v1beta.IssueStats)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.databasecenter.v1beta.IssueStats)
+ private static final com.google.cloud.databasecenter.v1beta.IssueStats DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.databasecenter.v1beta.IssueStats();
+ }
+
+ public static com.google.cloud.databasecenter.v1beta.IssueStats getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public IssueStats parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.databasecenter.v1beta.IssueStats getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/IssueStatsOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/IssueStatsOrBuilder.java
new file mode 100644
index 000000000000..c095591eec9e
--- /dev/null
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/IssueStatsOrBuilder.java
@@ -0,0 +1,150 @@
+/*
+ * Copyright 2026 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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/databasecenter/v1beta/service.proto
+
+// Protobuf Java Version: 3.25.8
+package com.google.cloud.databasecenter.v1beta;
+
+public interface IssueStatsOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.databasecenter.v1beta.IssueStats)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Type of signal which is an issue.
+ *
+ *
+ * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1;
+ *
+ * @return The enum numeric value on the wire for signalType.
+ */
+ int getSignalTypeValue();
+
+ /**
+ *
+ *
+ *
+ * Type of signal which is an issue.
+ *
+ *
+ * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1;
+ *
+ * @return The signalType.
+ */
+ com.google.cloud.databasecenter.v1beta.SignalType getSignalType();
+
+ /**
+ *
+ *
+ *
+ * Number of resources having issues of a given type.
+ *
+ *
+ * int32 resource_count = 2;
+ *
+ * @return The resourceCount.
+ */
+ int getResourceCount();
+
+ /**
+ *
+ *
+ *
+ * Optional. Delta counts and details of resources for which issue was raised
+ * or fixed.
+ *
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the deltaDetails field is set.
+ */
+ boolean hasDeltaDetails();
+
+ /**
+ *
+ *
+ *
+ * Optional. Delta counts and details of resources for which issue was raised
+ * or fixed.
+ *
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The deltaDetails.
+ */
+ com.google.cloud.databasecenter.v1beta.DeltaDetails getDeltaDetails();
+
+ /**
+ *
+ *
+ *
+ * Optional. Delta counts and details of resources for which issue was raised
+ * or fixed.
+ *
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.databasecenter.v1beta.DeltaDetailsOrBuilder getDeltaDetailsOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Severity of the issue.
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
+ *
+ * @return Whether the issueSeverity field is set.
+ */
+ boolean hasIssueSeverity();
+
+ /**
+ *
+ *
+ *
+ * Severity of the issue.
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
+ *
+ * @return The enum numeric value on the wire for issueSeverity.
+ */
+ int getIssueSeverityValue();
+
+ /**
+ *
+ *
+ *
+ * Severity of the issue.
+ *
+ *
+ * optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
+ *
+ * @return The issueSeverity.
+ */
+ com.google.cloud.databasecenter.v1beta.IssueSeverity getIssueSeverity();
+}
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfig.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfig.java
index 31944b8102de..082e94a01194 100644
--- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfig.java
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MachineConfig.java
@@ -25,7 +25,6 @@
*
* MachineConfig describes the configuration of a machine specific to a Database
* Resource.
- * NextID: 5
*
*
* Protobuf type {@code google.cloud.databasecenter.v1beta.MachineConfig}
@@ -352,7 +351,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* MachineConfig describes the configuration of a machine specific to a Database
* Resource.
- * NextID: 5
*
*
* Protobuf type {@code google.cloud.databasecenter.v1beta.MachineConfig}
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java
index 350e7eb75837..2dcce61e53e9 100644
--- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java
@@ -52,6 +52,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_databasecenter_v1beta_DatabaseResource_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_databasecenter_v1beta_DatabaseResource_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_databasecenter_v1beta_IssueGroupStats_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_databasecenter_v1beta_IssueGroupStats_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_databasecenter_v1beta_IssueStats_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_databasecenter_v1beta_IssueStats_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_databasecenter_v1beta_Label_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -158,7 +174,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ud.databasecenter.v1beta.BackupDRConfigB\003\340A\001\022<\n"
+ "\007edition\030\022 \001(\0162+.google.cloud.databasecenter.v1beta.Edition\022R\n"
+ "\020maintenance_info\030\023"
- + " \001(\01323.google.cloud.databasecenter.v1beta.MaintenanceInfoB\003\340A\001\"3\n"
+ + " \001(\01323.google.cloud.databasecenter.v1beta.MaintenanceInfoB\003\340A\001\"\342\001\n"
+ + "\032AggregateIssueStatsRequest\022\023\n"
+ + "\006parent\030\001 \001(\tB\003\340A\002\022\023\n"
+ + "\006filter\030\002 \001(\tB\003\340A\001\022T\n"
+ + "\022signal_type_groups\030\003"
+ + " \003(\01323.google.cloud.databasecenter.v1beta.SignalTypeGroupB\003\340A\001\0222\n\r"
+ + "baseline_date\030\004"
+ + " \001(\0132\021.google.type.DateB\003\340A\001H\000\210\001\001B\020\n"
+ + "\016_baseline_date\"\313\001\n"
+ + "\033AggregateIssueStatsResponse\022N\n"
+ + "\021issue_group_stats\030\001 \003(\01323"
+ + ".google.cloud.databasecenter.v1beta.IssueGroupStats\022\035\n"
+ + "\025total_resources_count\030\002 \001(\005\022#\n"
+ + "\033total_resource_groups_count\030\003 \001(\005\022\030\n"
+ + "\013unreachable\030\004 \003(\tB\003\340A\006\"\354\001\n"
+ + "\017IssueGroupStats\022\024\n"
+ + "\014display_name\030\001 \001(\t\022\035\n"
+ + "\025resource_groups_count\030\002 \001(\005\022\027\n"
+ + "\017resources_count\030\003 \001(\005\022%\n"
+ + "\035healthy_resource_groups_count\030\004 \001(\005\022\037\n"
+ + "\027healthy_resources_count\030\005 \001(\005\022C\n"
+ + "\013issue_stats\030\006"
+ + " \003(\0132..google.cloud.databasecenter.v1beta.IssueStats\"\261\002\n\n"
+ + "IssueStats\022C\n"
+ + "\013signal_type\030\001"
+ + " \001(\0162..google.cloud.databasecenter.v1beta.SignalType\022\026\n"
+ + "\016resource_count\030\002 \001(\005\022Q\n\r"
+ + "delta_details\030\003 \001(\01320.go"
+ + "ogle.cloud.databasecenter.v1beta.DeltaDetailsB\003\340A\001H\000\210\001\001\022N\n"
+ + "\016issue_severity\030\004 \001(\0162"
+ + "1.google.cloud.databasecenter.v1beta.IssueSeverityH\001\210\001\001B\020\n"
+ + "\016_delta_detailsB\021\n"
+ + "\017_issue_severity\"3\n"
+ "\005Label\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t\022\016\n"
@@ -174,8 +222,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ " \001(\0132\021.google.type.DateB\003\340A\001H\000\210\001\001B\020\n"
+ "\016_baseline_date\"\323\001\n"
+ "\026AggregateFleetResponse\022C\n"
- + "\004rows\030\001 \003(\01325."
- + "google.cloud.databasecenter.v1beta.AggregateFleetRow\022#\n"
+ + "\004rows\030\001"
+ + " \003(\01325.google.cloud.databasecenter.v1beta.AggregateFleetRow\022#\n"
+ "\033resource_groups_total_count\030\002 \001(\005\022\034\n"
+ "\024resource_total_count\030\003 \001(\005\022\027\n"
+ "\017next_page_token\030\004 \001(\t\022\030\n"
@@ -184,22 +232,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\tdimension\030\001 \003(\0132-.google.cloud.databasecenter.v1beta.Dimension\022\035\n"
+ "\025resource_groups_count\030\002 \001(\005\022\027\n"
+ "\017resources_count\030\003 \001(\005\022Q\n\r"
- + "delta_details\030\004"
- + " \001(\01320.google.cloud.databasecenter.v1beta.DeltaDetailsB\003\340A\001H\000\210\001\001B\020\n"
+ + "delta_details\030\004 \001(\0132"
+ + "0.google.cloud.databasecenter.v1beta.DeltaDetailsB\003\340A\001H\000\210\001\001B\020\n"
+ "\016_delta_details\"\241\006\n"
+ "\tDimension\022\023\n"
+ "\tcontainer\030\002 \001(\tH\000\022G\n"
- + "\014product_type\030\003 \001(\0162/.googl"
- + "e.cloud.databasecenter.v1beta.ProductTypeH\000\022D\n"
+ + "\014product_type\030\003"
+ + " \001(\0162/.google.cloud.databasecenter.v1beta.ProductTypeH\000\022D\n"
+ "\016product_engine\030\004"
+ " \001(\0162*.google.cloud.databasecenter.v1beta.EngineH\000\022\031\n"
+ "\017product_version\030\005 \001(\tH\000\022\022\n"
+ "\010location\030\006 \001(\tH\000\022\027\n\r"
+ "resource_type\030\007 \001(\tH\000\022P\n"
- + "\021sub_resource_type\030\010"
- + " \001(\01623.google.cloud.databasecenter.v1beta.SubResourceTypeH\000\022Q\n"
- + "\021resource_category\030\t"
- + " \001(\01624.google.cloud.databasecenter.v1beta.ResourceCategoryH\000\022M\n"
+ + "\021sub_resource_type\030\010 \001(\01623.goo"
+ + "gle.cloud.databasecenter.v1beta.SubResourceTypeH\000\022Q\n"
+ + "\021resource_category\030\t \001(\01624.g"
+ + "oogle.cloud.databasecenter.v1beta.ResourceCategoryH\000\022M\n"
+ "\017management_type\030\n"
+ " \001(\01622.google.cloud.databasecenter.v1beta.ManagementTypeH\000\022>\n"
+ "\007edition\030\013"
@@ -229,10 +277,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\007product\030\003 \001(\0132+.google.cloud.databasecenter.v1beta.Product\022\020\n"
+ "\010location\030\004 \001(\t\"\262\001\n"
+ "\014DeltaDetails\022P\n"
- + "\023increased_resources\030\001 \003(\01323.googl"
- + "e.cloud.databasecenter.v1beta.ResourceDetails\022P\n"
- + "\023decreased_resources\030\002 \003(\01323.goo"
- + "gle.cloud.databasecenter.v1beta.ResourceDetails*^\n"
+ + "\023increased_resources\030\001"
+ + " \003(\01323.google.cloud.databasecenter.v1beta.ResourceDetails\022P\n"
+ + "\023decreased_resources\030\002"
+ + " \003(\01323.google.cloud.databasecenter.v1beta.ResourceDetails*^\n"
+ "\020ResourceCategory\022!\n"
+ "\035RESOURCE_CATEGORY_UNSPECIFIED\020\000\022\014\n"
+ "\010INSTANCE\020\001\022\013\n"
@@ -253,25 +301,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\016ManagementType\022\037\n"
+ "\033MANAGEMENT_TYPE_UNSPECIFIED\020\000\022\037\n"
+ "\033MANAGEMENT_TYPE_GCP_MANAGED\020\001\022 \n"
- + "\034MANAGEMENT_TYPE_SELF_MANAGED\020\0022\224\005\n"
+ + "\034MANAGEMENT_TYPE_SELF_MANAGED\020\0022\325\006\n"
+ "\016DatabaseCenter\022\243\001\n\r"
- + "QueryProducts\0228.google.cloud.databasecenter.v1beta.QueryProd"
- + "uctsRequest\0329.google.cloud.databasecente"
- + "r.v1beta.QueryProductsResponse\"\035\202\323\344\223\002\027\022\025/v1beta:queryProducts\022\247\001\n"
- + "\016AggregateFleet\0229.google.cloud.databasecenter.v1beta.Ag"
- + "gregateFleetRequest\032:.google.cloud.datab"
- + "asecenter.v1beta.AggregateFleetResponse\"\036\202\323\344\223\002\030\022\026/v1beta:aggregateFleet\022\336\001\n"
- + "\033QueryDatabaseResourceGroups\022F.google.cloud.d"
- + "atabasecenter.v1beta.QueryDatabaseResourceGroupsRequest\032G.google.cloud.databasec"
- + "enter.v1beta.QueryDatabaseResourceGroups"
- + "Response\".\202\323\344\223\002(\"#/v1beta:queryDatabaseR"
- + "esourceGroups:\001*\032Q\312A\035databasecenter.goog"
- + "leapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\372\001\n"
- + "&com.google.cloud.databasecenter.v1betaB\014ServiceProtoP\001ZN"
- + "cloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb\252\002"
- + "\"Google.Cloud.DatabaseCenter.V1Beta\312\002\"Go"
- + "ogle\\Cloud\\DatabaseCenter\\V1beta\352\002%Googl"
- + "e::Cloud::DatabaseCenter::V1betab\006proto3"
+ + "QueryProducts\0228.google.cloud.databasecenter.v1beta.QueryProductsRequest\0329.goog"
+ + "le.cloud.databasecenter.v1beta.QueryProd"
+ + "uctsResponse\"\035\202\323\344\223\002\027\022\025/v1beta:queryProducts\022\247\001\n"
+ + "\016AggregateFleet\0229.google.cloud.databasecenter.v1beta.AggregateFleetReques"
+ + "t\032:.google.cloud.databasecenter.v1beta.A"
+ + "ggregateFleetResponse\"\036\202\323\344\223\002\030\022\026/v1beta:aggregateFleet\022\336\001\n"
+ + "\033QueryDatabaseResourceGroups\022F.google.cloud.databasecenter.v1be"
+ + "ta.QueryDatabaseResourceGroupsRequest\032G.google.cloud.databasecenter.v1beta.Query"
+ + "DatabaseResourceGroupsResponse\".\202\323\344\223\002(\"#"
+ + "/v1beta:queryDatabaseResourceGroups:\001*\022\276\001\n"
+ + "\023AggregateIssueStats\022>.google.cloud.databasecenter.v1beta.AggregateIssueStatsR"
+ + "equest\032?.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse\"&\202\323\344\223\002"
+ + " \"\033/v1beta:aggregateIssueStats:\001*\032Q\312A\035data"
+ + "basecenter.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\372\001\n"
+ + "&com.google.cloud.databasecenter.v1betaB\014S"
+ + "erviceProtoP\001ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;dat"
+ + "abasecenterpb\252\002\"Google.Cloud.DatabaseCen"
+ + "ter.V1Beta\312\002\"Google\\Cloud\\DatabaseCenter"
+ + "\\V1beta\352\002%Google::Cloud::DatabaseCenter::V1betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -357,8 +407,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Edition",
"MaintenanceInfo",
});
- internal_static_google_cloud_databasecenter_v1beta_Label_descriptor =
+ internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
+ internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Filter", "SignalTypeGroups", "BaselineDate",
+ });
+ internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_databasecenter_v1beta_AggregateIssueStatsResponse_descriptor,
+ new java.lang.String[] {
+ "IssueGroupStats", "TotalResourcesCount", "TotalResourceGroupsCount", "Unreachable",
+ });
+ internal_static_google_cloud_databasecenter_v1beta_IssueGroupStats_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_google_cloud_databasecenter_v1beta_IssueGroupStats_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_databasecenter_v1beta_IssueGroupStats_descriptor,
+ new java.lang.String[] {
+ "DisplayName",
+ "ResourceGroupsCount",
+ "ResourcesCount",
+ "HealthyResourceGroupsCount",
+ "HealthyResourcesCount",
+ "IssueStats",
+ });
+ internal_static_google_cloud_databasecenter_v1beta_IssueStats_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_google_cloud_databasecenter_v1beta_IssueStats_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_databasecenter_v1beta_IssueStats_descriptor,
+ new java.lang.String[] {
+ "SignalType", "ResourceCount", "DeltaDetails", "IssueSeverity",
+ });
+ internal_static_google_cloud_databasecenter_v1beta_Label_descriptor =
+ getDescriptor().getMessageTypes().get(10);
internal_static_google_cloud_databasecenter_v1beta_Label_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_databasecenter_v1beta_Label_descriptor,
@@ -366,7 +453,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Key", "Value", "Source",
});
internal_static_google_cloud_databasecenter_v1beta_AggregateFleetRequest_descriptor =
- getDescriptor().getMessageTypes().get(7);
+ getDescriptor().getMessageTypes().get(11);
internal_static_google_cloud_databasecenter_v1beta_AggregateFleetRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_databasecenter_v1beta_AggregateFleetRequest_descriptor,
@@ -374,7 +461,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "Filter", "GroupBy", "OrderBy", "PageSize", "PageToken", "BaselineDate",
});
internal_static_google_cloud_databasecenter_v1beta_AggregateFleetResponse_descriptor =
- getDescriptor().getMessageTypes().get(8);
+ getDescriptor().getMessageTypes().get(12);
internal_static_google_cloud_databasecenter_v1beta_AggregateFleetResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_databasecenter_v1beta_AggregateFleetResponse_descriptor,
@@ -386,7 +473,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Unreachable",
});
internal_static_google_cloud_databasecenter_v1beta_AggregateFleetRow_descriptor =
- getDescriptor().getMessageTypes().get(9);
+ getDescriptor().getMessageTypes().get(13);
internal_static_google_cloud_databasecenter_v1beta_AggregateFleetRow_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_databasecenter_v1beta_AggregateFleetRow_descriptor,
@@ -394,7 +481,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Dimension", "ResourceGroupsCount", "ResourcesCount", "DeltaDetails",
});
internal_static_google_cloud_databasecenter_v1beta_Dimension_descriptor =
- getDescriptor().getMessageTypes().get(10);
+ getDescriptor().getMessageTypes().get(14);
internal_static_google_cloud_databasecenter_v1beta_Dimension_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_databasecenter_v1beta_Dimension_descriptor,
@@ -421,7 +508,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Dimension",
});
internal_static_google_cloud_databasecenter_v1beta_BackupDRConfig_descriptor =
- getDescriptor().getMessageTypes().get(11);
+ getDescriptor().getMessageTypes().get(15);
internal_static_google_cloud_databasecenter_v1beta_BackupDRConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_databasecenter_v1beta_BackupDRConfig_descriptor,
@@ -429,7 +516,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"BackupdrManaged",
});
internal_static_google_cloud_databasecenter_v1beta_Tag_descriptor =
- getDescriptor().getMessageTypes().get(12);
+ getDescriptor().getMessageTypes().get(16);
internal_static_google_cloud_databasecenter_v1beta_Tag_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_databasecenter_v1beta_Tag_descriptor,
@@ -437,7 +524,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Key", "Value", "Source", "Inherited",
});
internal_static_google_cloud_databasecenter_v1beta_ResourceDetails_descriptor =
- getDescriptor().getMessageTypes().get(13);
+ getDescriptor().getMessageTypes().get(17);
internal_static_google_cloud_databasecenter_v1beta_ResourceDetails_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_databasecenter_v1beta_ResourceDetails_descriptor,
@@ -445,7 +532,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"FullResourceName", "Container", "Product", "Location",
});
internal_static_google_cloud_databasecenter_v1beta_DeltaDetails_descriptor =
- getDescriptor().getMessageTypes().get(14);
+ getDescriptor().getMessageTypes().get(18);
internal_static_google_cloud_databasecenter_v1beta_DeltaDetails_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_databasecenter_v1beta_DeltaDetails_descriptor,
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/machine_config.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/machine_config.proto
index ec1dfef79213..994bce966f01 100644
--- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/machine_config.proto
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/machine_config.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -28,7 +28,6 @@ option ruby_package = "Google::Cloud::DatabaseCenter::V1beta";
// MachineConfig describes the configuration of a machine specific to a Database
// Resource.
-// NextID: 5
message MachineConfig {
// Memory size in bytes.
int64 memory_size_bytes = 2;
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/maintenance.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/maintenance.proto
index d4b5bec6802e..2ce4bb139da0 100644
--- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/maintenance.proto
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/maintenance.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/metric_data.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/metric_data.proto
index bbab749f2092..366ca91854bd 100644
--- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/metric_data.proto
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/metric_data.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/operation_error_type.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/operation_error_type.proto
index ca4daa9dffda..6503048dcb26 100644
--- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/operation_error_type.proto
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/operation_error_type.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/product.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/product.proto
index f24f5cabcddb..06dc0c71a211 100644
--- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/product.proto
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/product.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto
index 381944cb2af5..93d5e99a2e77 100644
--- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -64,6 +64,15 @@ service DatabaseCenter {
body: "*"
};
}
+
+ // AggregateIssueStats provides database resource issues statistics.
+ rpc AggregateIssueStats(AggregateIssueStatsRequest)
+ returns (AggregateIssueStatsResponse) {
+ option (google.api.http) = {
+ post: "/v1beta:aggregateIssueStats"
+ body: "*"
+ };
+ }
}
// The enum value corresponds to 'type' suffix in the resource_type field.
@@ -405,6 +414,115 @@ message DatabaseResource {
[(google.api.field_behavior) = OPTIONAL];
}
+// AggregateIssueStatsRequest represents the input to the AggregateIssueStats
+// method.
+message AggregateIssueStatsRequest {
+ // Required. Parent can be a project, a folder, or an organization. The search
+ // is limited to the resources within the `scope`.
+ //
+ // The allowed values are:
+ //
+ // * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
+ // * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
+ // * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
+ // * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The expression to filter resources.
+ //
+ // Supported fields are: `full_resource_name`, `resource_type`, `container`,
+ // `product.type`, `product.engine`, `product.version`, `location`,
+ // `labels`, `issues`, fields of availability_info,
+ // data_protection_info,'resource_name', etc.
+ //
+ // The expression is a list of zero or more restrictions combined via logical
+ // operators `AND` and `OR`. When `AND` and `OR` are both used in the
+ // expression, parentheses must be appropriately used to group the
+ // combinations.
+ //
+ // Example: location="us-east1"
+ // Example: container="projects/123" OR container="projects/456"
+ // Example: (container="projects/123" OR
+ // container="projects/456") AND location="us-east1"
+ string filter = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Lists of signal types that are issues.
+ repeated SignalTypeGroup signal_type_groups = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The baseline date w.r.t. which the delta counts are calculated.
+ // If not set, delta counts are not included in the response and the response
+ // indicates the current state of the fleet.
+ optional google.type.Date baseline_date = 4
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The response message containing one of more group of relevant health issues
+// for database resources.
+message AggregateIssueStatsResponse {
+ // List of issue group stats where each group contains stats for resources
+ // having a particular combination of relevant issues.
+ repeated IssueGroupStats issue_group_stats = 1;
+
+ // Total count of the resources filtered in based on the user given filter.
+ int32 total_resources_count = 2;
+
+ // Total count of the resource filtered in based on the user given filter.
+ int32 total_resource_groups_count = 3;
+
+ // Unordered list. List of unreachable regions from where data could not be
+ // retrieved.
+ repeated string unreachable = 4
+ [(google.api.field_behavior) = UNORDERED_LIST];
+}
+
+// IssueGroupStats refers to stats for a particulare combination of relevant
+// health issues of database resources.
+message IssueGroupStats {
+ // Database resource level health card name. This will corresponds to one of
+ // the requested input group names.
+ string display_name = 1;
+
+ // Total count of the groups of resources returned by the filter that
+ // also have one or more resources for which any of the specified issues
+ // are applicable.
+ int32 resource_groups_count = 2;
+
+ // Total count of resources returned by the filter for which any of the
+ // specified issues are applicable.
+ int32 resources_count = 3;
+
+ // The number of resource groups from the total groups as defined above
+ // that are healthy with respect to all of the specified issues.
+ int32 healthy_resource_groups_count = 4;
+
+ // The number of resources from the total defined above in field
+ // total_resources_count that are healthy with respect to all of the specified
+ // issues.
+ int32 healthy_resources_count = 5;
+
+ // List of issues stats containing count of resources having particular issue
+ // category.
+ repeated IssueStats issue_stats = 6;
+}
+
+// IssueStats holds stats for a particular signal category.
+message IssueStats {
+ // Type of signal which is an issue.
+ SignalType signal_type = 1;
+
+ // Number of resources having issues of a given type.
+ int32 resource_count = 2;
+
+ // Optional. Delta counts and details of resources for which issue was raised
+ // or fixed.
+ optional DeltaDetails delta_details = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Severity of the issue.
+ optional IssueSeverity issue_severity = 4;
+}
+
// Label is a key value pair applied to a resource.
message Label {
// The key part of the label.
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/signals.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/signals.proto
index 72a74a8f8209..c922892fd192 100644
--- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/signals.proto
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/signals.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/suspension_reason.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/suspension_reason.proto
index 7c2b9191d889..a47532a4602d 100644
--- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/suspension_reason.proto
+++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/suspension_reason.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/aggregateissuestats/AsyncAggregateIssueStats.java b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/aggregateissuestats/AsyncAggregateIssueStats.java
new file mode 100644
index 000000000000..9d6c7721e62c
--- /dev/null
+++ b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/aggregateissuestats/AsyncAggregateIssueStats.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2026 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.databasecenter.v1beta.samples;
+
+// [START databasecenter_v1beta_generated_DatabaseCenter_AggregateIssueStats_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest;
+import com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse;
+import com.google.cloud.databasecenter.v1beta.DatabaseCenterClient;
+import com.google.cloud.databasecenter.v1beta.SignalTypeGroup;
+import com.google.type.Date;
+import java.util.ArrayList;
+
+public class AsyncAggregateIssueStats {
+
+ public static void main(String[] args) throws Exception {
+ asyncAggregateIssueStats();
+ }
+
+ public static void asyncAggregateIssueStats() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (DatabaseCenterClient databaseCenterClient = DatabaseCenterClient.create()) {
+ AggregateIssueStatsRequest request =
+ AggregateIssueStatsRequest.newBuilder()
+ .setParent("parent-995424086")
+ .setFilter("filter-1274492040")
+ .addAllSignalTypeGroups(new ArrayList())
+ .setBaselineDate(Date.newBuilder().build())
+ .build();
+ ApiFuture future =
+ databaseCenterClient.aggregateIssueStatsCallable().futureCall(request);
+ // Do something.
+ AggregateIssueStatsResponse response = future.get();
+ }
+ }
+}
+// [END databasecenter_v1beta_generated_DatabaseCenter_AggregateIssueStats_async]
diff --git a/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/aggregateissuestats/SyncAggregateIssueStats.java b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/aggregateissuestats/SyncAggregateIssueStats.java
new file mode 100644
index 000000000000..23dd4f11d555
--- /dev/null
+++ b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/aggregateissuestats/SyncAggregateIssueStats.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2026 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.databasecenter.v1beta.samples;
+
+// [START databasecenter_v1beta_generated_DatabaseCenter_AggregateIssueStats_sync]
+import com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest;
+import com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse;
+import com.google.cloud.databasecenter.v1beta.DatabaseCenterClient;
+import com.google.cloud.databasecenter.v1beta.SignalTypeGroup;
+import com.google.type.Date;
+import java.util.ArrayList;
+
+public class SyncAggregateIssueStats {
+
+ public static void main(String[] args) throws Exception {
+ syncAggregateIssueStats();
+ }
+
+ public static void syncAggregateIssueStats() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (DatabaseCenterClient databaseCenterClient = DatabaseCenterClient.create()) {
+ AggregateIssueStatsRequest request =
+ AggregateIssueStatsRequest.newBuilder()
+ .setParent("parent-995424086")
+ .setFilter("filter-1274492040")
+ .addAllSignalTypeGroups(new ArrayList())
+ .setBaselineDate(Date.newBuilder().build())
+ .build();
+ AggregateIssueStatsResponse response = databaseCenterClient.aggregateIssueStats(request);
+ }
+ }
+}
+// [END databasecenter_v1beta_generated_DatabaseCenter_AggregateIssueStats_sync]
diff --git a/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecentersettings/queryproducts/SyncQueryProducts.java b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecentersettings/aggregateissuestats/SyncAggregateIssueStats.java
similarity index 86%
rename from java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecentersettings/queryproducts/SyncQueryProducts.java
rename to java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecentersettings/aggregateissuestats/SyncAggregateIssueStats.java
index 00fe05c7b96b..05b37e44d536 100644
--- a/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecentersettings/queryproducts/SyncQueryProducts.java
+++ b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecentersettings/aggregateissuestats/SyncAggregateIssueStats.java
@@ -16,17 +16,17 @@
package com.google.cloud.databasecenter.v1beta.samples;
-// [START databasecenter_v1beta_generated_DatabaseCenterSettings_QueryProducts_sync]
+// [START databasecenter_v1beta_generated_DatabaseCenterSettings_AggregateIssueStats_sync]
import com.google.cloud.databasecenter.v1beta.DatabaseCenterSettings;
import java.time.Duration;
-public class SyncQueryProducts {
+public class SyncAggregateIssueStats {
public static void main(String[] args) throws Exception {
- syncQueryProducts();
+ syncAggregateIssueStats();
}
- public static void syncQueryProducts() throws Exception {
+ public static void syncAggregateIssueStats() throws Exception {
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
@@ -35,10 +35,10 @@ public static void syncQueryProducts() throws Exception {
DatabaseCenterSettings.Builder databaseCenterSettingsBuilder =
DatabaseCenterSettings.newBuilder();
databaseCenterSettingsBuilder
- .queryProductsSettings()
+ .aggregateIssueStatsSettings()
.setRetrySettings(
databaseCenterSettingsBuilder
- .queryProductsSettings()
+ .aggregateIssueStatsSettings()
.getRetrySettings()
.toBuilder()
.setInitialRetryDelayDuration(Duration.ofSeconds(1))
@@ -53,4 +53,4 @@ public static void syncQueryProducts() throws Exception {
DatabaseCenterSettings databaseCenterSettings = databaseCenterSettingsBuilder.build();
}
}
-// [END databasecenter_v1beta_generated_DatabaseCenterSettings_QueryProducts_sync]
+// [END databasecenter_v1beta_generated_DatabaseCenterSettings_AggregateIssueStats_sync]
diff --git a/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/stub/databasecenterstubsettings/queryproducts/SyncQueryProducts.java b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/stub/databasecenterstubsettings/aggregateissuestats/SyncAggregateIssueStats.java
similarity index 88%
rename from java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/stub/databasecenterstubsettings/queryproducts/SyncQueryProducts.java
rename to java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/stub/databasecenterstubsettings/aggregateissuestats/SyncAggregateIssueStats.java
index cdc07b9b13ce..b45e2a8112f1 100644
--- a/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/stub/databasecenterstubsettings/queryproducts/SyncQueryProducts.java
+++ b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/stub/databasecenterstubsettings/aggregateissuestats/SyncAggregateIssueStats.java
@@ -16,17 +16,17 @@
package com.google.cloud.databasecenter.v1beta.stub.samples;
-// [START databasecenter_v1beta_generated_DatabaseCenterStubSettings_QueryProducts_sync]
+// [START databasecenter_v1beta_generated_DatabaseCenterStubSettings_AggregateIssueStats_sync]
import com.google.cloud.databasecenter.v1beta.stub.DatabaseCenterStubSettings;
import java.time.Duration;
-public class SyncQueryProducts {
+public class SyncAggregateIssueStats {
public static void main(String[] args) throws Exception {
- syncQueryProducts();
+ syncAggregateIssueStats();
}
- public static void syncQueryProducts() throws Exception {
+ public static void syncAggregateIssueStats() throws Exception {
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
@@ -35,10 +35,10 @@ public static void syncQueryProducts() throws Exception {
DatabaseCenterStubSettings.Builder databaseCenterSettingsBuilder =
DatabaseCenterStubSettings.newBuilder();
databaseCenterSettingsBuilder
- .queryProductsSettings()
+ .aggregateIssueStatsSettings()
.setRetrySettings(
databaseCenterSettingsBuilder
- .queryProductsSettings()
+ .aggregateIssueStatsSettings()
.getRetrySettings()
.toBuilder()
.setInitialRetryDelayDuration(Duration.ofSeconds(1))
@@ -53,4 +53,4 @@ public static void syncQueryProducts() throws Exception {
DatabaseCenterStubSettings databaseCenterSettings = databaseCenterSettingsBuilder.build();
}
}
-// [END databasecenter_v1beta_generated_DatabaseCenterStubSettings_QueryProducts_sync]
+// [END databasecenter_v1beta_generated_DatabaseCenterStubSettings_AggregateIssueStats_sync]
diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md
index c160254af60f..210db57a22b0 100644
--- a/java-dialogflow-cx/README.md
+++ b/java-dialogflow-cx/README.md
@@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies:
com.google.cloud
google-cloud-dialogflow-cx
- 0.92.0
+ 0.93.0
```
If you are using Gradle without BOM, add this to your dependencies:
```Groovy
-implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.92.0'
+implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.93.0'
```
If you are using SBT, add this to your dependencies:
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.92.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.93.0"
```
## Authentication
@@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/overview
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.92.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.93.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java
new file mode 100644
index 000000000000..7b0a23a13828
--- /dev/null
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java
@@ -0,0 +1,1245 @@
+/*
+ * Copyright 2026 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.dialogflow.cx.v3;
+
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
+import com.google.api.gax.core.BackgroundResource;
+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.PageContext;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.dialogflow.cx.v3.stub.ExamplesStub;
+import com.google.cloud.dialogflow.cx.v3.stub.ExamplesStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.common.util.concurrent.MoreExecutors;
+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: Service for managing [Examples][google.cloud.dialogflow.cx.v3.Example].
+ *
+ * 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
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * PlaybookName parent = PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]");
+ * Example example = Example.newBuilder().build();
+ * Example response = examplesClient.createExample(parent, example);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the ExamplesClient object to clean up resources such as
+ * threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ *
+ * Methods
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ * CreateExample
+ * Creates an example in the specified playbook.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createExample(CreateExampleRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * createExample(PlaybookName parent, Example example)
+ *
createExample(String parent, Example example)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createExampleCallable()
+ *
+ *
+ *
+ *
+ * DeleteExample
+ * Deletes the specified example.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteExample(DeleteExampleRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * deleteExample(ExampleName name)
+ *
deleteExample(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteExampleCallable()
+ *
+ *
+ *
+ *
+ * ListExamples
+ * Returns a list of examples in the specified playbook.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listExamples(ListExamplesRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listExamples(PlaybookName parent)
+ *
listExamples(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listExamplesPagedCallable()
+ *
listExamplesCallable()
+ *
+ *
+ *
+ *
+ * GetExample
+ * Retrieves the specified example.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getExample(GetExampleRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getExample(ExampleName name)
+ *
getExample(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getExampleCallable()
+ *
+ *
+ *
+ *
+ * UpdateExample
+ * Update the specified example.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateExample(UpdateExampleRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * updateExample(Example example, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateExampleCallable()
+ *
+ *
+ *
+ *
+ * ListLocations
+ * Lists information about the supported locations for this service.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listLocations(ListLocationsRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listLocationsPagedCallable()
+ *
listLocationsCallable()
+ *
+ *
+ *
+ *
+ * GetLocation
+ * Gets information about a location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getLocation(GetLocationRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getLocationCallable()
+ *
+ *
+ *
+ *
+ *
+ * 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 ExamplesSettings to create().
+ * For example:
+ *
+ *
To customize credentials:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ExamplesSettings examplesSettings =
+ * ExamplesSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * ExamplesClient examplesClient = ExamplesClient.create(examplesSettings);
+ * }
+ *
+ * To customize the endpoint:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ExamplesSettings examplesSettings =
+ * ExamplesSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ExamplesClient examplesClient = ExamplesClient.create(examplesSettings);
+ * }
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ExamplesSettings examplesSettings = ExamplesSettings.newHttpJsonBuilder().build();
+ * ExamplesClient examplesClient = ExamplesClient.create(examplesSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class ExamplesClient implements BackgroundResource {
+ private final ExamplesSettings settings;
+ private final ExamplesStub stub;
+
+ /** Constructs an instance of ExamplesClient with default settings. */
+ public static final ExamplesClient create() throws IOException {
+ return create(ExamplesSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of ExamplesClient, 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 ExamplesClient create(ExamplesSettings settings) throws IOException {
+ return new ExamplesClient(settings);
+ }
+
+ /**
+ * Constructs an instance of ExamplesClient, using the given stub for making calls. This is for
+ * advanced usage - prefer using create(ExamplesSettings).
+ */
+ public static final ExamplesClient create(ExamplesStub stub) {
+ return new ExamplesClient(stub);
+ }
+
+ /**
+ * Constructs an instance of ExamplesClient, 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 ExamplesClient(ExamplesSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((ExamplesStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected ExamplesClient(ExamplesStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final ExamplesSettings getSettings() {
+ return settings;
+ }
+
+ public ExamplesStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates an example in the specified playbook.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * PlaybookName parent = PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]");
+ * Example example = Example.newBuilder().build();
+ * Example response = examplesClient.createExample(parent, example);
+ * }
+ * }
+ *
+ * @param parent Required. The playbook to create an example for. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
+ * @param example Required. The example to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Example createExample(PlaybookName parent, Example example) {
+ CreateExampleRequest request =
+ CreateExampleRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setExample(example)
+ .build();
+ return createExample(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates an example in the specified playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * String parent =
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString();
+ * Example example = Example.newBuilder().build();
+ * Example response = examplesClient.createExample(parent, example);
+ * }
+ * }
+ *
+ * @param parent Required. The playbook to create an example for. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
+ * @param example Required. The example to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Example createExample(String parent, Example example) {
+ CreateExampleRequest request =
+ CreateExampleRequest.newBuilder().setParent(parent).setExample(example).build();
+ return createExample(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates an example in the specified playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * CreateExampleRequest request =
+ * CreateExampleRequest.newBuilder()
+ * .setParent(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .setExample(Example.newBuilder().build())
+ * .build();
+ * Example response = examplesClient.createExample(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 Example createExample(CreateExampleRequest request) {
+ return createExampleCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates an example in the specified playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * CreateExampleRequest request =
+ * CreateExampleRequest.newBuilder()
+ * .setParent(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .setExample(Example.newBuilder().build())
+ * .build();
+ * ApiFuture future = examplesClient.createExampleCallable().futureCall(request);
+ * // Do something.
+ * Example response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createExampleCallable() {
+ return stub.createExampleCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified example.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * ExampleName name =
+ * ExampleName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[EXAMPLE]");
+ * examplesClient.deleteExample(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the example to delete. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/examples/<ExampleID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteExample(ExampleName name) {
+ DeleteExampleRequest request =
+ DeleteExampleRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ deleteExample(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified example.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * String name =
+ * ExampleName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[EXAMPLE]")
+ * .toString();
+ * examplesClient.deleteExample(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the example to delete. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/examples/<ExampleID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteExample(String name) {
+ DeleteExampleRequest request = DeleteExampleRequest.newBuilder().setName(name).build();
+ deleteExample(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified example.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * DeleteExampleRequest request =
+ * DeleteExampleRequest.newBuilder()
+ * .setName(
+ * ExampleName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[EXAMPLE]")
+ * .toString())
+ * .build();
+ * examplesClient.deleteExample(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 void deleteExample(DeleteExampleRequest request) {
+ deleteExampleCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified example.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * DeleteExampleRequest request =
+ * DeleteExampleRequest.newBuilder()
+ * .setName(
+ * ExampleName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[EXAMPLE]")
+ * .toString())
+ * .build();
+ * ApiFuture future = examplesClient.deleteExampleCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteExampleCallable() {
+ return stub.deleteExampleCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of examples in the specified playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * PlaybookName parent = PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]");
+ * for (Example element : examplesClient.listExamples(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The playbook to list the examples from. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListExamplesPagedResponse listExamples(PlaybookName parent) {
+ ListExamplesRequest request =
+ ListExamplesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listExamples(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of examples in the specified playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * String parent =
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString();
+ * for (Example element : examplesClient.listExamples(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The playbook to list the examples from. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListExamplesPagedResponse listExamples(String parent) {
+ ListExamplesRequest request = ListExamplesRequest.newBuilder().setParent(parent).build();
+ return listExamples(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of examples in the specified playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * ListExamplesRequest request =
+ * ListExamplesRequest.newBuilder()
+ * .setParent(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setLanguageCode("languageCode-2092349083")
+ * .build();
+ * for (Example element : examplesClient.listExamples(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 ListExamplesPagedResponse listExamples(ListExamplesRequest request) {
+ return listExamplesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of examples in the specified playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * ListExamplesRequest request =
+ * ListExamplesRequest.newBuilder()
+ * .setParent(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setLanguageCode("languageCode-2092349083")
+ * .build();
+ * ApiFuture future = examplesClient.listExamplesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Example element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listExamplesPagedCallable() {
+ return stub.listExamplesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of examples in the specified playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * ListExamplesRequest request =
+ * ListExamplesRequest.newBuilder()
+ * .setParent(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setLanguageCode("languageCode-2092349083")
+ * .build();
+ * while (true) {
+ * ListExamplesResponse response = examplesClient.listExamplesCallable().call(request);
+ * for (Example element : response.getExamplesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listExamplesCallable() {
+ return stub.listExamplesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified example.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * ExampleName name =
+ * ExampleName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[EXAMPLE]");
+ * Example response = examplesClient.getExample(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the example. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/examples/<ExampleID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Example getExample(ExampleName name) {
+ GetExampleRequest request =
+ GetExampleRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getExample(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified example.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * String name =
+ * ExampleName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[EXAMPLE]")
+ * .toString();
+ * Example response = examplesClient.getExample(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the example. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/examples/<ExampleID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Example getExample(String name) {
+ GetExampleRequest request = GetExampleRequest.newBuilder().setName(name).build();
+ return getExample(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified example.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * GetExampleRequest request =
+ * GetExampleRequest.newBuilder()
+ * .setName(
+ * ExampleName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[EXAMPLE]")
+ * .toString())
+ * .build();
+ * Example response = examplesClient.getExample(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 Example getExample(GetExampleRequest request) {
+ return getExampleCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified example.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * GetExampleRequest request =
+ * GetExampleRequest.newBuilder()
+ * .setName(
+ * ExampleName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[EXAMPLE]")
+ * .toString())
+ * .build();
+ * ApiFuture future = examplesClient.getExampleCallable().futureCall(request);
+ * // Do something.
+ * Example response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getExampleCallable() {
+ return stub.getExampleCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update the specified example.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * Example example = Example.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Example response = examplesClient.updateExample(example, updateMask);
+ * }
+ * }
+ *
+ * @param example Required. The example to update.
+ * @param updateMask Optional. The mask to control which fields get updated. If the mask is not
+ * present, all fields will be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Example updateExample(Example example, FieldMask updateMask) {
+ UpdateExampleRequest request =
+ UpdateExampleRequest.newBuilder().setExample(example).setUpdateMask(updateMask).build();
+ return updateExample(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update the specified example.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * UpdateExampleRequest request =
+ * UpdateExampleRequest.newBuilder()
+ * .setExample(Example.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Example response = examplesClient.updateExample(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 Example updateExample(UpdateExampleRequest request) {
+ return updateExampleCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update the specified example.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * UpdateExampleRequest request =
+ * UpdateExampleRequest.newBuilder()
+ * .setExample(Example.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future = examplesClient.updateExampleCallable().futureCall(request);
+ * // Do something.
+ * Example response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateExampleCallable() {
+ return stub.updateExampleCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : examplesClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
+ return listLocationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future = examplesClient.listLocationsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Location element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listLocationsPagedCallable() {
+ return stub.listLocationsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response = examplesClient.listLocationsCallable().call(request);
+ * for (Location element : response.getLocationsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listLocationsCallable() {
+ return stub.listLocationsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = examplesClient.getLocation(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 Location getLocation(GetLocationRequest request) {
+ return getLocationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExamplesClient examplesClient = ExamplesClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture future = examplesClient.getLocationCallable().futureCall(request);
+ * // Do something.
+ * Location response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getLocationCallable() {
+ return stub.getLocationCallable();
+ }
+
+ @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 ListExamplesPagedResponse
+ extends AbstractPagedListResponse<
+ ListExamplesRequest,
+ ListExamplesResponse,
+ Example,
+ ListExamplesPage,
+ ListExamplesFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListExamplesPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListExamplesPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListExamplesPagedResponse(ListExamplesPage page) {
+ super(page, ListExamplesFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListExamplesPage
+ extends AbstractPage {
+
+ private ListExamplesPage(
+ PageContext context,
+ ListExamplesResponse response) {
+ super(context, response);
+ }
+
+ private static ListExamplesPage createEmptyPage() {
+ return new ListExamplesPage(null, null);
+ }
+
+ @Override
+ protected ListExamplesPage createPage(
+ PageContext context,
+ ListExamplesResponse response) {
+ return new ListExamplesPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListExamplesFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListExamplesRequest,
+ ListExamplesResponse,
+ Example,
+ ListExamplesPage,
+ ListExamplesFixedSizeCollection> {
+
+ private ListExamplesFixedSizeCollection(List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListExamplesFixedSizeCollection createEmptyCollection() {
+ return new ListExamplesFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListExamplesFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListExamplesFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ListLocationsPagedResponse
+ extends AbstractPagedListResponse<
+ ListLocationsRequest,
+ ListLocationsResponse,
+ Location,
+ ListLocationsPage,
+ ListLocationsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListLocationsPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListLocationsPagedResponse(ListLocationsPage page) {
+ super(page, ListLocationsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListLocationsPage
+ extends AbstractPage<
+ ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> {
+
+ private ListLocationsPage(
+ PageContext context,
+ ListLocationsResponse response) {
+ super(context, response);
+ }
+
+ private static ListLocationsPage createEmptyPage() {
+ return new ListLocationsPage(null, null);
+ }
+
+ @Override
+ protected ListLocationsPage createPage(
+ PageContext context,
+ ListLocationsResponse response) {
+ return new ListLocationsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListLocationsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListLocationsRequest,
+ ListLocationsResponse,
+ Location,
+ ListLocationsPage,
+ ListLocationsFixedSizeCollection> {
+
+ private ListLocationsFixedSizeCollection(List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListLocationsFixedSizeCollection createEmptyCollection() {
+ return new ListLocationsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListLocationsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListLocationsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+}
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesSettings.java
new file mode 100644
index 000000000000..4636cbbfab8c
--- /dev/null
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesSettings.java
@@ -0,0 +1,288 @@
+/*
+ * Copyright 2026 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.dialogflow.cx.v3;
+
+import static com.google.cloud.dialogflow.cx.v3.ExamplesClient.ListExamplesPagedResponse;
+import static com.google.cloud.dialogflow.cx.v3.ExamplesClient.ListLocationsPagedResponse;
+
+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.httpjson.InstantiatingHttpJsonChannelProvider;
+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.PagedCallSettings;
+import com.google.api.gax.rpc.TransportChannelProvider;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.cloud.dialogflow.cx.v3.stub.ExamplesStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+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 ExamplesClient}.
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ *
+ * - The default service address (dialogflow.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
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of createExample:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ExamplesSettings.Builder examplesSettingsBuilder = ExamplesSettings.newBuilder();
+ * examplesSettingsBuilder
+ * .createExampleSettings()
+ * .setRetrySettings(
+ * examplesSettingsBuilder
+ * .createExampleSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * ExamplesSettings examplesSettings = examplesSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@Generated("by gapic-generator-java")
+public class ExamplesSettings extends ClientSettings {
+
+ /** Returns the object with the settings used for calls to createExample. */
+ public UnaryCallSettings createExampleSettings() {
+ return ((ExamplesStubSettings) getStubSettings()).createExampleSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteExample. */
+ public UnaryCallSettings deleteExampleSettings() {
+ return ((ExamplesStubSettings) getStubSettings()).deleteExampleSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listExamples. */
+ public PagedCallSettings
+ listExamplesSettings() {
+ return ((ExamplesStubSettings) getStubSettings()).listExamplesSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getExample. */
+ public UnaryCallSettings getExampleSettings() {
+ return ((ExamplesStubSettings) getStubSettings()).getExampleSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateExample. */
+ public UnaryCallSettings updateExampleSettings() {
+ return ((ExamplesStubSettings) getStubSettings()).updateExampleSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listLocations. */
+ public PagedCallSettings
+ listLocationsSettings() {
+ return ((ExamplesStubSettings) getStubSettings()).listLocationsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getLocation. */
+ public UnaryCallSettings getLocationSettings() {
+ return ((ExamplesStubSettings) getStubSettings()).getLocationSettings();
+ }
+
+ public static final ExamplesSettings create(ExamplesStubSettings stub) throws IOException {
+ return new ExamplesSettings.Builder(stub.toBuilder()).build();
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return ExamplesStubSettings.defaultExecutorProviderBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return ExamplesStubSettings.getDefaultEndpoint();
+ }
+
+ /** Returns the default service scopes. */
+ public static List getDefaultServiceScopes() {
+ return ExamplesStubSettings.getDefaultServiceScopes();
+ }
+
+ /** Returns a builder for the default credentials for this service. */
+ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
+ return ExamplesStubSettings.defaultCredentialsProviderBuilder();
+ }
+
+ /** Returns a builder for the default gRPC ChannelProvider for this service. */
+ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
+ return ExamplesStubSettings.defaultGrpcTransportProviderBuilder();
+ }
+
+ /** Returns a builder for the default REST ChannelProvider for this service. */
+ @BetaApi
+ public static InstantiatingHttpJsonChannelProvider.Builder
+ defaultHttpJsonTransportProviderBuilder() {
+ return ExamplesStubSettings.defaultHttpJsonTransportProviderBuilder();
+ }
+
+ public static TransportChannelProvider defaultTransportChannelProvider() {
+ return ExamplesStubSettings.defaultTransportChannelProvider();
+ }
+
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return ExamplesStubSettings.defaultApiClientHeaderProviderBuilder();
+ }
+
+ /** Returns a new gRPC builder for this class. */
+ public static Builder newBuilder() {
+ return Builder.createDefault();
+ }
+
+ /** Returns a new REST builder for this class. */
+ public static Builder newHttpJsonBuilder() {
+ return Builder.createHttpJsonDefault();
+ }
+
+ /** 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 ExamplesSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+ }
+
+ /** Builder for ExamplesSettings. */
+ public static class Builder extends ClientSettings.Builder {
+
+ protected Builder() throws IOException {
+ this(((ClientContext) null));
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(ExamplesStubSettings.newBuilder(clientContext));
+ }
+
+ protected Builder(ExamplesSettings settings) {
+ super(settings.getStubSettings().toBuilder());
+ }
+
+ protected Builder(ExamplesStubSettings.Builder stubSettings) {
+ super(stubSettings);
+ }
+
+ private static Builder createDefault() {
+ return new Builder(ExamplesStubSettings.newBuilder());
+ }
+
+ private static Builder createHttpJsonDefault() {
+ return new Builder(ExamplesStubSettings.newHttpJsonBuilder());
+ }
+
+ public ExamplesStubSettings.Builder getStubSettingsBuilder() {
+ return ((ExamplesStubSettings.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 createExample. */
+ public UnaryCallSettings.Builder createExampleSettings() {
+ return getStubSettingsBuilder().createExampleSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteExample. */
+ public UnaryCallSettings.Builder deleteExampleSettings() {
+ return getStubSettingsBuilder().deleteExampleSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listExamples. */
+ public PagedCallSettings.Builder<
+ ListExamplesRequest, ListExamplesResponse, ListExamplesPagedResponse>
+ listExamplesSettings() {
+ return getStubSettingsBuilder().listExamplesSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getExample. */
+ public UnaryCallSettings.Builder getExampleSettings() {
+ return getStubSettingsBuilder().getExampleSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateExample. */
+ public UnaryCallSettings.Builder updateExampleSettings() {
+ return getStubSettingsBuilder().updateExampleSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listLocations. */
+ public PagedCallSettings.Builder<
+ ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+ listLocationsSettings() {
+ return getStubSettingsBuilder().listLocationsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getLocation. */
+ public UnaryCallSettings.Builder getLocationSettings() {
+ return getStubSettingsBuilder().getLocationSettings();
+ }
+
+ @Override
+ public ExamplesSettings build() throws IOException {
+ return new ExamplesSettings(this);
+ }
+ }
+}
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java
new file mode 100644
index 000000000000..b557a6dbb20f
--- /dev/null
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java
@@ -0,0 +1,2333 @@
+/*
+ * Copyright 2026 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.dialogflow.cx.v3;
+
+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.httpjson.longrunning.OperationsClient;
+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.UnaryCallable;
+import com.google.cloud.dialogflow.cx.v3.stub.PlaybooksStub;
+import com.google.cloud.dialogflow.cx.v3.stub.PlaybooksStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.google.longrunning.Operation;
+import com.google.protobuf.Empty;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Struct;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: Service for managing [Playbooks][google.cloud.dialogflow.cx.v3.Playbook].
+ *
+ * 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
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
+ * Playbook playbook = Playbook.newBuilder().build();
+ * Playbook response = playbooksClient.createPlaybook(parent, playbook);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the PlaybooksClient object to clean up resources such as
+ * threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ *
+ * Methods
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ * CreatePlaybook
+ * Creates a playbook in a specified agent.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createPlaybook(CreatePlaybookRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * createPlaybook(AgentName parent, Playbook playbook)
+ *
createPlaybook(String parent, Playbook playbook)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createPlaybookCallable()
+ *
+ *
+ *
+ *
+ * DeletePlaybook
+ * Deletes a specified playbook.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deletePlaybook(DeletePlaybookRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * deletePlaybook(PlaybookName name)
+ *
deletePlaybook(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deletePlaybookCallable()
+ *
+ *
+ *
+ *
+ * ListPlaybooks
+ * Returns a list of playbooks in the specified agent.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listPlaybooks(ListPlaybooksRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listPlaybooks(AgentName parent)
+ *
listPlaybooks(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listPlaybooksPagedCallable()
+ *
listPlaybooksCallable()
+ *
+ *
+ *
+ *
+ * GetPlaybook
+ * Retrieves the specified Playbook.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getPlaybook(GetPlaybookRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getPlaybook(PlaybookName name)
+ *
getPlaybook(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getPlaybookCallable()
+ *
+ *
+ *
+ *
+ * ExportPlaybook
+ * Exports the specified playbook to a binary file.
+ *
Note that resources (e.g. examples, tools) that the playbook references will also be exported.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * exportPlaybookAsync(ExportPlaybookRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * exportPlaybookOperationCallable()
+ *
exportPlaybookCallable()
+ *
+ *
+ *
+ *
+ * ImportPlaybook
+ * Imports the specified playbook to the specified agent from a binary file.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * importPlaybookAsync(ImportPlaybookRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * importPlaybookOperationCallable()
+ *
importPlaybookCallable()
+ *
+ *
+ *
+ *
+ * UpdatePlaybook
+ * Updates the specified Playbook.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updatePlaybook(UpdatePlaybookRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * updatePlaybook(Playbook playbook, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updatePlaybookCallable()
+ *
+ *
+ *
+ *
+ * CreatePlaybookVersion
+ * Creates a version for the specified Playbook.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createPlaybookVersion(CreatePlaybookVersionRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * createPlaybookVersion(PlaybookName parent, PlaybookVersion playbookVersion)
+ *
createPlaybookVersion(String parent, PlaybookVersion playbookVersion)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createPlaybookVersionCallable()
+ *
+ *
+ *
+ *
+ * GetPlaybookVersion
+ * Retrieves the specified version of the Playbook.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getPlaybookVersion(GetPlaybookVersionRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getPlaybookVersion(PlaybookVersionName name)
+ *
getPlaybookVersion(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getPlaybookVersionCallable()
+ *
+ *
+ *
+ *
+ * RestorePlaybookVersion
+ * Retrieves the specified version of the Playbook and stores it as the current playbook draft, returning the playbook with resources updated.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * restorePlaybookVersion(RestorePlaybookVersionRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * restorePlaybookVersion(PlaybookVersionName name)
+ *
restorePlaybookVersion(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * restorePlaybookVersionCallable()
+ *
+ *
+ *
+ *
+ * ListPlaybookVersions
+ * Lists versions for the specified Playbook.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listPlaybookVersions(ListPlaybookVersionsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listPlaybookVersions(PlaybookName parent)
+ *
listPlaybookVersions(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listPlaybookVersionsPagedCallable()
+ *
listPlaybookVersionsCallable()
+ *
+ *
+ *
+ *
+ * DeletePlaybookVersion
+ * Deletes the specified version of the Playbook.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deletePlaybookVersion(DeletePlaybookVersionRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * deletePlaybookVersion(PlaybookVersionName name)
+ *
deletePlaybookVersion(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deletePlaybookVersionCallable()
+ *
+ *
+ *
+ *
+ * ListLocations
+ * Lists information about the supported locations for this service.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listLocations(ListLocationsRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listLocationsPagedCallable()
+ *
listLocationsCallable()
+ *
+ *
+ *
+ *
+ * GetLocation
+ * Gets information about a location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getLocation(GetLocationRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getLocationCallable()
+ *
+ *
+ *
+ *
+ *
+ * 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 PlaybooksSettings to create().
+ * For example:
+ *
+ *
To customize credentials:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PlaybooksSettings playbooksSettings =
+ * PlaybooksSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * PlaybooksClient playbooksClient = PlaybooksClient.create(playbooksSettings);
+ * }
+ *
+ * To customize the endpoint:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PlaybooksSettings playbooksSettings =
+ * PlaybooksSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * PlaybooksClient playbooksClient = PlaybooksClient.create(playbooksSettings);
+ * }
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PlaybooksSettings playbooksSettings = PlaybooksSettings.newHttpJsonBuilder().build();
+ * PlaybooksClient playbooksClient = PlaybooksClient.create(playbooksSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class PlaybooksClient implements BackgroundResource {
+ private final PlaybooksSettings settings;
+ private final PlaybooksStub stub;
+ private final OperationsClient httpJsonOperationsClient;
+ private final com.google.longrunning.OperationsClient operationsClient;
+
+ /** Constructs an instance of PlaybooksClient with default settings. */
+ public static final PlaybooksClient create() throws IOException {
+ return create(PlaybooksSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of PlaybooksClient, 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 PlaybooksClient create(PlaybooksSettings settings) throws IOException {
+ return new PlaybooksClient(settings);
+ }
+
+ /**
+ * Constructs an instance of PlaybooksClient, using the given stub for making calls. This is for
+ * advanced usage - prefer using create(PlaybooksSettings).
+ */
+ public static final PlaybooksClient create(PlaybooksStub stub) {
+ return new PlaybooksClient(stub);
+ }
+
+ /**
+ * Constructs an instance of PlaybooksClient, 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 PlaybooksClient(PlaybooksSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((PlaybooksStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ protected PlaybooksClient(PlaybooksStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ public final PlaybooksSettings getSettings() {
+ return settings;
+ }
+
+ public PlaybooksStub 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 com.google.longrunning.OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ @BetaApi
+ public final OperationsClient getHttpJsonOperationsClient() {
+ return httpJsonOperationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a playbook in a specified agent.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
+ * Playbook playbook = Playbook.newBuilder().build();
+ * Playbook response = playbooksClient.createPlaybook(parent, playbook);
+ * }
+ * }
+ *
+ * @param parent Required. The agent to create a playbook for. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
+ * @param playbook Required. The playbook to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Playbook createPlaybook(AgentName parent, Playbook playbook) {
+ CreatePlaybookRequest request =
+ CreatePlaybookRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setPlaybook(playbook)
+ .build();
+ return createPlaybook(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a playbook in a specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
+ * Playbook playbook = Playbook.newBuilder().build();
+ * Playbook response = playbooksClient.createPlaybook(parent, playbook);
+ * }
+ * }
+ *
+ * @param parent Required. The agent to create a playbook for. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
+ * @param playbook Required. The playbook to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Playbook createPlaybook(String parent, Playbook playbook) {
+ CreatePlaybookRequest request =
+ CreatePlaybookRequest.newBuilder().setParent(parent).setPlaybook(playbook).build();
+ return createPlaybook(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a playbook in a specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * CreatePlaybookRequest request =
+ * CreatePlaybookRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setPlaybook(Playbook.newBuilder().build())
+ * .build();
+ * Playbook response = playbooksClient.createPlaybook(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 Playbook createPlaybook(CreatePlaybookRequest request) {
+ return createPlaybookCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a playbook in a specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * CreatePlaybookRequest request =
+ * CreatePlaybookRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setPlaybook(Playbook.newBuilder().build())
+ * .build();
+ * ApiFuture future = playbooksClient.createPlaybookCallable().futureCall(request);
+ * // Do something.
+ * Playbook response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createPlaybookCallable() {
+ return stub.createPlaybookCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a specified playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * PlaybookName name = PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]");
+ * playbooksClient.deletePlaybook(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the playbook to delete. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deletePlaybook(PlaybookName name) {
+ DeletePlaybookRequest request =
+ DeletePlaybookRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ deletePlaybook(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a specified playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * String name = PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString();
+ * playbooksClient.deletePlaybook(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the playbook to delete. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deletePlaybook(String name) {
+ DeletePlaybookRequest request = DeletePlaybookRequest.newBuilder().setName(name).build();
+ deletePlaybook(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a specified playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * DeletePlaybookRequest request =
+ * DeletePlaybookRequest.newBuilder()
+ * .setName(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .build();
+ * playbooksClient.deletePlaybook(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 void deletePlaybook(DeletePlaybookRequest request) {
+ deletePlaybookCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a specified playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * DeletePlaybookRequest request =
+ * DeletePlaybookRequest.newBuilder()
+ * .setName(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .build();
+ * ApiFuture future = playbooksClient.deletePlaybookCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deletePlaybookCallable() {
+ return stub.deletePlaybookCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of playbooks in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
+ * for (Playbook element : playbooksClient.listPlaybooks(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The agent to list playbooks from. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPlaybooksPagedResponse listPlaybooks(AgentName parent) {
+ ListPlaybooksRequest request =
+ ListPlaybooksRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listPlaybooks(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of playbooks in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
+ * for (Playbook element : playbooksClient.listPlaybooks(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The agent to list playbooks from. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPlaybooksPagedResponse listPlaybooks(String parent) {
+ ListPlaybooksRequest request = ListPlaybooksRequest.newBuilder().setParent(parent).build();
+ return listPlaybooks(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of playbooks in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * ListPlaybooksRequest request =
+ * ListPlaybooksRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Playbook element : playbooksClient.listPlaybooks(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 ListPlaybooksPagedResponse listPlaybooks(ListPlaybooksRequest request) {
+ return listPlaybooksPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of playbooks in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * ListPlaybooksRequest request =
+ * ListPlaybooksRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future = playbooksClient.listPlaybooksPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Playbook element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listPlaybooksPagedCallable() {
+ return stub.listPlaybooksPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of playbooks in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * ListPlaybooksRequest request =
+ * ListPlaybooksRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListPlaybooksResponse response = playbooksClient.listPlaybooksCallable().call(request);
+ * for (Playbook element : response.getPlaybooksList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listPlaybooksCallable() {
+ return stub.listPlaybooksCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * PlaybookName name = PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]");
+ * Playbook response = playbooksClient.getPlaybook(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the playbook. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Playbook getPlaybook(PlaybookName name) {
+ GetPlaybookRequest request =
+ GetPlaybookRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getPlaybook(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * String name = PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString();
+ * Playbook response = playbooksClient.getPlaybook(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the playbook. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Playbook getPlaybook(String name) {
+ GetPlaybookRequest request = GetPlaybookRequest.newBuilder().setName(name).build();
+ return getPlaybook(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * GetPlaybookRequest request =
+ * GetPlaybookRequest.newBuilder()
+ * .setName(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .build();
+ * Playbook response = playbooksClient.getPlaybook(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 Playbook getPlaybook(GetPlaybookRequest request) {
+ return getPlaybookCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * GetPlaybookRequest request =
+ * GetPlaybookRequest.newBuilder()
+ * .setName(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .build();
+ * ApiFuture future = playbooksClient.getPlaybookCallable().futureCall(request);
+ * // Do something.
+ * Playbook response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getPlaybookCallable() {
+ return stub.getPlaybookCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Exports the specified playbook to a binary file.
+ *
+ * Note that resources (e.g. examples, tools) that the playbook references will also be
+ * exported.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * ExportPlaybookRequest request =
+ * ExportPlaybookRequest.newBuilder()
+ * .setName(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .setPlaybookUri("playbookUri2118184975")
+ * .build();
+ * ExportPlaybookResponse response = playbooksClient.exportPlaybookAsync(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 exportPlaybookAsync(
+ ExportPlaybookRequest request) {
+ return exportPlaybookOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Exports the specified playbook to a binary file.
+ *
+ * Note that resources (e.g. examples, tools) that the playbook references will also be
+ * exported.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * ExportPlaybookRequest request =
+ * ExportPlaybookRequest.newBuilder()
+ * .setName(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .setPlaybookUri("playbookUri2118184975")
+ * .build();
+ * OperationFuture future =
+ * playbooksClient.exportPlaybookOperationCallable().futureCall(request);
+ * // Do something.
+ * ExportPlaybookResponse response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ exportPlaybookOperationCallable() {
+ return stub.exportPlaybookOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Exports the specified playbook to a binary file.
+ *
+ * Note that resources (e.g. examples, tools) that the playbook references will also be
+ * exported.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * ExportPlaybookRequest request =
+ * ExportPlaybookRequest.newBuilder()
+ * .setName(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .setPlaybookUri("playbookUri2118184975")
+ * .build();
+ * ApiFuture future = playbooksClient.exportPlaybookCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable exportPlaybookCallable() {
+ return stub.exportPlaybookCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Imports the specified playbook to the specified agent from a binary file.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * ImportPlaybookRequest request =
+ * ImportPlaybookRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setImportStrategy(PlaybookImportStrategy.newBuilder().build())
+ * .build();
+ * ImportPlaybookResponse response = playbooksClient.importPlaybookAsync(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 importPlaybookAsync(
+ ImportPlaybookRequest request) {
+ return importPlaybookOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Imports the specified playbook to the specified agent from a binary file.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * ImportPlaybookRequest request =
+ * ImportPlaybookRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setImportStrategy(PlaybookImportStrategy.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * playbooksClient.importPlaybookOperationCallable().futureCall(request);
+ * // Do something.
+ * ImportPlaybookResponse response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ importPlaybookOperationCallable() {
+ return stub.importPlaybookOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Imports the specified playbook to the specified agent from a binary file.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * ImportPlaybookRequest request =
+ * ImportPlaybookRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setImportStrategy(PlaybookImportStrategy.newBuilder().build())
+ * .build();
+ * ApiFuture future = playbooksClient.importPlaybookCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable importPlaybookCallable() {
+ return stub.importPlaybookCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * Playbook playbook = Playbook.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Playbook response = playbooksClient.updatePlaybook(playbook, updateMask);
+ * }
+ * }
+ *
+ * @param playbook Required. The playbook to update.
+ * @param updateMask The mask to control which fields get updated. If the mask is not present, all
+ * fields will be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Playbook updatePlaybook(Playbook playbook, FieldMask updateMask) {
+ UpdatePlaybookRequest request =
+ UpdatePlaybookRequest.newBuilder().setPlaybook(playbook).setUpdateMask(updateMask).build();
+ return updatePlaybook(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * UpdatePlaybookRequest request =
+ * UpdatePlaybookRequest.newBuilder()
+ * .setPlaybook(Playbook.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Playbook response = playbooksClient.updatePlaybook(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 Playbook updatePlaybook(UpdatePlaybookRequest request) {
+ return updatePlaybookCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * UpdatePlaybookRequest request =
+ * UpdatePlaybookRequest.newBuilder()
+ * .setPlaybook(Playbook.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future = playbooksClient.updatePlaybookCallable().futureCall(request);
+ * // Do something.
+ * Playbook response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updatePlaybookCallable() {
+ return stub.updatePlaybookCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a version for the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * PlaybookName parent = PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]");
+ * PlaybookVersion playbookVersion = PlaybookVersion.newBuilder().build();
+ * PlaybookVersion response = playbooksClient.createPlaybookVersion(parent, playbookVersion);
+ * }
+ * }
+ *
+ * @param parent Required. The playbook to create a version for. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
+ * @param playbookVersion Required. The playbook version to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PlaybookVersion createPlaybookVersion(
+ PlaybookName parent, PlaybookVersion playbookVersion) {
+ CreatePlaybookVersionRequest request =
+ CreatePlaybookVersionRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setPlaybookVersion(playbookVersion)
+ .build();
+ return createPlaybookVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a version for the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * String parent =
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString();
+ * PlaybookVersion playbookVersion = PlaybookVersion.newBuilder().build();
+ * PlaybookVersion response = playbooksClient.createPlaybookVersion(parent, playbookVersion);
+ * }
+ * }
+ *
+ * @param parent Required. The playbook to create a version for. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
+ * @param playbookVersion Required. The playbook version to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PlaybookVersion createPlaybookVersion(
+ String parent, PlaybookVersion playbookVersion) {
+ CreatePlaybookVersionRequest request =
+ CreatePlaybookVersionRequest.newBuilder()
+ .setParent(parent)
+ .setPlaybookVersion(playbookVersion)
+ .build();
+ return createPlaybookVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a version for the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * CreatePlaybookVersionRequest request =
+ * CreatePlaybookVersionRequest.newBuilder()
+ * .setParent(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .setPlaybookVersion(PlaybookVersion.newBuilder().build())
+ * .build();
+ * PlaybookVersion response = playbooksClient.createPlaybookVersion(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 PlaybookVersion createPlaybookVersion(CreatePlaybookVersionRequest request) {
+ return createPlaybookVersionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a version for the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * CreatePlaybookVersionRequest request =
+ * CreatePlaybookVersionRequest.newBuilder()
+ * .setParent(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .setPlaybookVersion(PlaybookVersion.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * playbooksClient.createPlaybookVersionCallable().futureCall(request);
+ * // Do something.
+ * PlaybookVersion response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createPlaybookVersionCallable() {
+ return stub.createPlaybookVersionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified version of the Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * PlaybookVersionName name =
+ * PlaybookVersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[VERSION]");
+ * PlaybookVersion response = playbooksClient.getPlaybookVersion(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the playbook version. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PlaybookVersion getPlaybookVersion(PlaybookVersionName name) {
+ GetPlaybookVersionRequest request =
+ GetPlaybookVersionRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getPlaybookVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified version of the Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * String name =
+ * PlaybookVersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[VERSION]")
+ * .toString();
+ * PlaybookVersion response = playbooksClient.getPlaybookVersion(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the playbook version. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PlaybookVersion getPlaybookVersion(String name) {
+ GetPlaybookVersionRequest request =
+ GetPlaybookVersionRequest.newBuilder().setName(name).build();
+ return getPlaybookVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified version of the Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * GetPlaybookVersionRequest request =
+ * GetPlaybookVersionRequest.newBuilder()
+ * .setName(
+ * PlaybookVersionName.of(
+ * "[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[VERSION]")
+ * .toString())
+ * .build();
+ * PlaybookVersion response = playbooksClient.getPlaybookVersion(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 PlaybookVersion getPlaybookVersion(GetPlaybookVersionRequest request) {
+ return getPlaybookVersionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified version of the Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * GetPlaybookVersionRequest request =
+ * GetPlaybookVersionRequest.newBuilder()
+ * .setName(
+ * PlaybookVersionName.of(
+ * "[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[VERSION]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * playbooksClient.getPlaybookVersionCallable().futureCall(request);
+ * // Do something.
+ * PlaybookVersion response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getPlaybookVersionCallable() {
+ return stub.getPlaybookVersionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified version of the Playbook and stores it as the current playbook draft,
+ * returning the playbook with resources updated.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * PlaybookVersionName name =
+ * PlaybookVersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[VERSION]");
+ * RestorePlaybookVersionResponse response = playbooksClient.restorePlaybookVersion(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the playbook version. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RestorePlaybookVersionResponse restorePlaybookVersion(PlaybookVersionName name) {
+ RestorePlaybookVersionRequest request =
+ RestorePlaybookVersionRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return restorePlaybookVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified version of the Playbook and stores it as the current playbook draft,
+ * returning the playbook with resources updated.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * String name =
+ * PlaybookVersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[VERSION]")
+ * .toString();
+ * RestorePlaybookVersionResponse response = playbooksClient.restorePlaybookVersion(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the playbook version. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RestorePlaybookVersionResponse restorePlaybookVersion(String name) {
+ RestorePlaybookVersionRequest request =
+ RestorePlaybookVersionRequest.newBuilder().setName(name).build();
+ return restorePlaybookVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified version of the Playbook and stores it as the current playbook draft,
+ * returning the playbook with resources updated.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * RestorePlaybookVersionRequest request =
+ * RestorePlaybookVersionRequest.newBuilder()
+ * .setName(
+ * PlaybookVersionName.of(
+ * "[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[VERSION]")
+ * .toString())
+ * .build();
+ * RestorePlaybookVersionResponse response = playbooksClient.restorePlaybookVersion(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 RestorePlaybookVersionResponse restorePlaybookVersion(
+ RestorePlaybookVersionRequest request) {
+ return restorePlaybookVersionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified version of the Playbook and stores it as the current playbook draft,
+ * returning the playbook with resources updated.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * RestorePlaybookVersionRequest request =
+ * RestorePlaybookVersionRequest.newBuilder()
+ * .setName(
+ * PlaybookVersionName.of(
+ * "[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[VERSION]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * playbooksClient.restorePlaybookVersionCallable().futureCall(request);
+ * // Do something.
+ * RestorePlaybookVersionResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ restorePlaybookVersionCallable() {
+ return stub.restorePlaybookVersionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists versions for the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * PlaybookName parent = PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]");
+ * for (PlaybookVersion element : playbooksClient.listPlaybookVersions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The playbook to list versions for. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPlaybookVersionsPagedResponse listPlaybookVersions(PlaybookName parent) {
+ ListPlaybookVersionsRequest request =
+ ListPlaybookVersionsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listPlaybookVersions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists versions for the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * String parent =
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString();
+ * for (PlaybookVersion element : playbooksClient.listPlaybookVersions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The playbook to list versions for. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPlaybookVersionsPagedResponse listPlaybookVersions(String parent) {
+ ListPlaybookVersionsRequest request =
+ ListPlaybookVersionsRequest.newBuilder().setParent(parent).build();
+ return listPlaybookVersions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists versions for the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * ListPlaybookVersionsRequest request =
+ * ListPlaybookVersionsRequest.newBuilder()
+ * .setParent(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (PlaybookVersion element : playbooksClient.listPlaybookVersions(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 ListPlaybookVersionsPagedResponse listPlaybookVersions(
+ ListPlaybookVersionsRequest request) {
+ return listPlaybookVersionsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists versions for the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * ListPlaybookVersionsRequest request =
+ * ListPlaybookVersionsRequest.newBuilder()
+ * .setParent(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * playbooksClient.listPlaybookVersionsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (PlaybookVersion element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listPlaybookVersionsPagedCallable() {
+ return stub.listPlaybookVersionsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists versions for the specified Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * ListPlaybookVersionsRequest request =
+ * ListPlaybookVersionsRequest.newBuilder()
+ * .setParent(
+ * PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListPlaybookVersionsResponse response =
+ * playbooksClient.listPlaybookVersionsCallable().call(request);
+ * for (PlaybookVersion element : response.getPlaybookVersionsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listPlaybookVersionsCallable() {
+ return stub.listPlaybookVersionsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified version of the Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * PlaybookVersionName name =
+ * PlaybookVersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[VERSION]");
+ * playbooksClient.deletePlaybookVersion(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the playbook version to delete. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deletePlaybookVersion(PlaybookVersionName name) {
+ DeletePlaybookVersionRequest request =
+ DeletePlaybookVersionRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deletePlaybookVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified version of the Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * String name =
+ * PlaybookVersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[VERSION]")
+ * .toString();
+ * playbooksClient.deletePlaybookVersion(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the playbook version to delete. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deletePlaybookVersion(String name) {
+ DeletePlaybookVersionRequest request =
+ DeletePlaybookVersionRequest.newBuilder().setName(name).build();
+ deletePlaybookVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified version of the Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * DeletePlaybookVersionRequest request =
+ * DeletePlaybookVersionRequest.newBuilder()
+ * .setName(
+ * PlaybookVersionName.of(
+ * "[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[VERSION]")
+ * .toString())
+ * .build();
+ * playbooksClient.deletePlaybookVersion(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 void deletePlaybookVersion(DeletePlaybookVersionRequest request) {
+ deletePlaybookVersionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified version of the Playbook.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * DeletePlaybookVersionRequest request =
+ * DeletePlaybookVersionRequest.newBuilder()
+ * .setName(
+ * PlaybookVersionName.of(
+ * "[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]", "[VERSION]")
+ * .toString())
+ * .build();
+ * ApiFuture future = playbooksClient.deletePlaybookVersionCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deletePlaybookVersionCallable() {
+ return stub.deletePlaybookVersionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : playbooksClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
+ return listLocationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future = playbooksClient.listLocationsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Location element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listLocationsPagedCallable() {
+ return stub.listLocationsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response = playbooksClient.listLocationsCallable().call(request);
+ * for (Location element : response.getLocationsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listLocationsCallable() {
+ return stub.listLocationsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = playbooksClient.getLocation(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 Location getLocation(GetLocationRequest request) {
+ return getLocationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlaybooksClient playbooksClient = PlaybooksClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture future = playbooksClient.getLocationCallable().futureCall(request);
+ * // Do something.
+ * Location response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getLocationCallable() {
+ return stub.getLocationCallable();
+ }
+
+ @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 ListPlaybooksPagedResponse
+ extends AbstractPagedListResponse<
+ ListPlaybooksRequest,
+ ListPlaybooksResponse,
+ Playbook,
+ ListPlaybooksPage,
+ ListPlaybooksFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListPlaybooksPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListPlaybooksPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListPlaybooksPagedResponse(ListPlaybooksPage page) {
+ super(page, ListPlaybooksFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListPlaybooksPage
+ extends AbstractPage<
+ ListPlaybooksRequest, ListPlaybooksResponse, Playbook, ListPlaybooksPage> {
+
+ private ListPlaybooksPage(
+ PageContext context,
+ ListPlaybooksResponse response) {
+ super(context, response);
+ }
+
+ private static ListPlaybooksPage createEmptyPage() {
+ return new ListPlaybooksPage(null, null);
+ }
+
+ @Override
+ protected ListPlaybooksPage createPage(
+ PageContext context,
+ ListPlaybooksResponse response) {
+ return new ListPlaybooksPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListPlaybooksFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListPlaybooksRequest,
+ ListPlaybooksResponse,
+ Playbook,
+ ListPlaybooksPage,
+ ListPlaybooksFixedSizeCollection> {
+
+ private ListPlaybooksFixedSizeCollection(List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListPlaybooksFixedSizeCollection createEmptyCollection() {
+ return new ListPlaybooksFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListPlaybooksFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListPlaybooksFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ListPlaybookVersionsPagedResponse
+ extends AbstractPagedListResponse<
+ ListPlaybookVersionsRequest,
+ ListPlaybookVersionsResponse,
+ PlaybookVersion,
+ ListPlaybookVersionsPage,
+ ListPlaybookVersionsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListPlaybookVersionsPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListPlaybookVersionsPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListPlaybookVersionsPagedResponse(ListPlaybookVersionsPage page) {
+ super(page, ListPlaybookVersionsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListPlaybookVersionsPage
+ extends AbstractPage<
+ ListPlaybookVersionsRequest,
+ ListPlaybookVersionsResponse,
+ PlaybookVersion,
+ ListPlaybookVersionsPage> {
+
+ private ListPlaybookVersionsPage(
+ PageContext
+ context,
+ ListPlaybookVersionsResponse response) {
+ super(context, response);
+ }
+
+ private static ListPlaybookVersionsPage createEmptyPage() {
+ return new ListPlaybookVersionsPage(null, null);
+ }
+
+ @Override
+ protected ListPlaybookVersionsPage createPage(
+ PageContext
+ context,
+ ListPlaybookVersionsResponse response) {
+ return new ListPlaybookVersionsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListPlaybookVersionsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListPlaybookVersionsRequest,
+ ListPlaybookVersionsResponse,
+ PlaybookVersion,
+ ListPlaybookVersionsPage,
+ ListPlaybookVersionsFixedSizeCollection> {
+
+ private ListPlaybookVersionsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListPlaybookVersionsFixedSizeCollection createEmptyCollection() {
+ return new ListPlaybookVersionsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListPlaybookVersionsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListPlaybookVersionsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ListLocationsPagedResponse
+ extends AbstractPagedListResponse<
+ ListLocationsRequest,
+ ListLocationsResponse,
+ Location,
+ ListLocationsPage,
+ ListLocationsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListLocationsPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListLocationsPagedResponse(ListLocationsPage page) {
+ super(page, ListLocationsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListLocationsPage
+ extends AbstractPage<
+ ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> {
+
+ private ListLocationsPage(
+ PageContext context,
+ ListLocationsResponse response) {
+ super(context, response);
+ }
+
+ private static ListLocationsPage createEmptyPage() {
+ return new ListLocationsPage(null, null);
+ }
+
+ @Override
+ protected ListLocationsPage createPage(
+ PageContext context,
+ ListLocationsResponse response) {
+ return new ListLocationsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListLocationsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListLocationsRequest,
+ ListLocationsResponse,
+ Location,
+ ListLocationsPage,
+ ListLocationsFixedSizeCollection> {
+
+ private ListLocationsFixedSizeCollection(List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListLocationsFixedSizeCollection createEmptyCollection() {
+ return new ListLocationsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListLocationsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListLocationsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+}
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksSettings.java
new file mode 100644
index 000000000000..03dd9629c0c7
--- /dev/null
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksSettings.java
@@ -0,0 +1,426 @@
+/*
+ * Copyright 2026 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.dialogflow.cx.v3;
+
+import static com.google.cloud.dialogflow.cx.v3.PlaybooksClient.ListLocationsPagedResponse;
+import static com.google.cloud.dialogflow.cx.v3.PlaybooksClient.ListPlaybookVersionsPagedResponse;
+import static com.google.cloud.dialogflow.cx.v3.PlaybooksClient.ListPlaybooksPagedResponse;
+
+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.httpjson.InstantiatingHttpJsonChannelProvider;
+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.TransportChannelProvider;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.cloud.dialogflow.cx.v3.stub.PlaybooksStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.longrunning.Operation;
+import com.google.protobuf.Empty;
+import com.google.protobuf.Struct;
+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 PlaybooksClient}.
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ *
+ * - The default service address (dialogflow.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
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of createPlaybook:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PlaybooksSettings.Builder playbooksSettingsBuilder = PlaybooksSettings.newBuilder();
+ * playbooksSettingsBuilder
+ * .createPlaybookSettings()
+ * .setRetrySettings(
+ * playbooksSettingsBuilder
+ * .createPlaybookSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * PlaybooksSettings playbooksSettings = playbooksSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an
+ * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
+ * configure the RetrySettings for exportPlaybook:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PlaybooksSettings.Builder playbooksSettingsBuilder = PlaybooksSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * playbooksSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class PlaybooksSettings extends ClientSettings {
+
+ /** Returns the object with the settings used for calls to createPlaybook. */
+ public UnaryCallSettings createPlaybookSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).createPlaybookSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deletePlaybook. */
+ public UnaryCallSettings deletePlaybookSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).deletePlaybookSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listPlaybooks. */
+ public PagedCallSettings
+ listPlaybooksSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).listPlaybooksSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getPlaybook. */
+ public UnaryCallSettings getPlaybookSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).getPlaybookSettings();
+ }
+
+ /** Returns the object with the settings used for calls to exportPlaybook. */
+ public UnaryCallSettings exportPlaybookSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).exportPlaybookSettings();
+ }
+
+ /** Returns the object with the settings used for calls to exportPlaybook. */
+ public OperationCallSettings
+ exportPlaybookOperationSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).exportPlaybookOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to importPlaybook. */
+ public UnaryCallSettings importPlaybookSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).importPlaybookSettings();
+ }
+
+ /** Returns the object with the settings used for calls to importPlaybook. */
+ public OperationCallSettings
+ importPlaybookOperationSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).importPlaybookOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updatePlaybook. */
+ public UnaryCallSettings updatePlaybookSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).updatePlaybookSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createPlaybookVersion. */
+ public UnaryCallSettings
+ createPlaybookVersionSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).createPlaybookVersionSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getPlaybookVersion. */
+ public UnaryCallSettings
+ getPlaybookVersionSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).getPlaybookVersionSettings();
+ }
+
+ /** Returns the object with the settings used for calls to restorePlaybookVersion. */
+ public UnaryCallSettings
+ restorePlaybookVersionSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).restorePlaybookVersionSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listPlaybookVersions. */
+ public PagedCallSettings<
+ ListPlaybookVersionsRequest,
+ ListPlaybookVersionsResponse,
+ ListPlaybookVersionsPagedResponse>
+ listPlaybookVersionsSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).listPlaybookVersionsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deletePlaybookVersion. */
+ public UnaryCallSettings deletePlaybookVersionSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).deletePlaybookVersionSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listLocations. */
+ public PagedCallSettings
+ listLocationsSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).listLocationsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getLocation. */
+ public UnaryCallSettings getLocationSettings() {
+ return ((PlaybooksStubSettings) getStubSettings()).getLocationSettings();
+ }
+
+ public static final PlaybooksSettings create(PlaybooksStubSettings stub) throws IOException {
+ return new PlaybooksSettings.Builder(stub.toBuilder()).build();
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return PlaybooksStubSettings.defaultExecutorProviderBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return PlaybooksStubSettings.getDefaultEndpoint();
+ }
+
+ /** Returns the default service scopes. */
+ public static List getDefaultServiceScopes() {
+ return PlaybooksStubSettings.getDefaultServiceScopes();
+ }
+
+ /** Returns a builder for the default credentials for this service. */
+ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
+ return PlaybooksStubSettings.defaultCredentialsProviderBuilder();
+ }
+
+ /** Returns a builder for the default gRPC ChannelProvider for this service. */
+ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
+ return PlaybooksStubSettings.defaultGrpcTransportProviderBuilder();
+ }
+
+ /** Returns a builder for the default REST ChannelProvider for this service. */
+ @BetaApi
+ public static InstantiatingHttpJsonChannelProvider.Builder
+ defaultHttpJsonTransportProviderBuilder() {
+ return PlaybooksStubSettings.defaultHttpJsonTransportProviderBuilder();
+ }
+
+ public static TransportChannelProvider defaultTransportChannelProvider() {
+ return PlaybooksStubSettings.defaultTransportChannelProvider();
+ }
+
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return PlaybooksStubSettings.defaultApiClientHeaderProviderBuilder();
+ }
+
+ /** Returns a new gRPC builder for this class. */
+ public static Builder newBuilder() {
+ return Builder.createDefault();
+ }
+
+ /** Returns a new REST builder for this class. */
+ public static Builder newHttpJsonBuilder() {
+ return Builder.createHttpJsonDefault();
+ }
+
+ /** 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 PlaybooksSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+ }
+
+ /** Builder for PlaybooksSettings. */
+ public static class Builder extends ClientSettings.Builder {
+
+ protected Builder() throws IOException {
+ this(((ClientContext) null));
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(PlaybooksStubSettings.newBuilder(clientContext));
+ }
+
+ protected Builder(PlaybooksSettings settings) {
+ super(settings.getStubSettings().toBuilder());
+ }
+
+ protected Builder(PlaybooksStubSettings.Builder stubSettings) {
+ super(stubSettings);
+ }
+
+ private static Builder createDefault() {
+ return new Builder(PlaybooksStubSettings.newBuilder());
+ }
+
+ private static Builder createHttpJsonDefault() {
+ return new Builder(PlaybooksStubSettings.newHttpJsonBuilder());
+ }
+
+ public PlaybooksStubSettings.Builder getStubSettingsBuilder() {
+ return ((PlaybooksStubSettings.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 createPlaybook. */
+ public UnaryCallSettings.Builder createPlaybookSettings() {
+ return getStubSettingsBuilder().createPlaybookSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deletePlaybook. */
+ public UnaryCallSettings.Builder deletePlaybookSettings() {
+ return getStubSettingsBuilder().deletePlaybookSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listPlaybooks. */
+ public PagedCallSettings.Builder<
+ ListPlaybooksRequest, ListPlaybooksResponse, ListPlaybooksPagedResponse>
+ listPlaybooksSettings() {
+ return getStubSettingsBuilder().listPlaybooksSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getPlaybook. */
+ public UnaryCallSettings.Builder getPlaybookSettings() {
+ return getStubSettingsBuilder().getPlaybookSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to exportPlaybook. */
+ public UnaryCallSettings.Builder exportPlaybookSettings() {
+ return getStubSettingsBuilder().exportPlaybookSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to exportPlaybook. */
+ public OperationCallSettings.Builder
+ exportPlaybookOperationSettings() {
+ return getStubSettingsBuilder().exportPlaybookOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to importPlaybook. */
+ public UnaryCallSettings.Builder importPlaybookSettings() {
+ return getStubSettingsBuilder().importPlaybookSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to importPlaybook. */
+ public OperationCallSettings.Builder
+ importPlaybookOperationSettings() {
+ return getStubSettingsBuilder().importPlaybookOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updatePlaybook. */
+ public UnaryCallSettings.Builder updatePlaybookSettings() {
+ return getStubSettingsBuilder().updatePlaybookSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createPlaybookVersion. */
+ public UnaryCallSettings.Builder
+ createPlaybookVersionSettings() {
+ return getStubSettingsBuilder().createPlaybookVersionSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getPlaybookVersion. */
+ public UnaryCallSettings.Builder
+ getPlaybookVersionSettings() {
+ return getStubSettingsBuilder().getPlaybookVersionSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to restorePlaybookVersion. */
+ public UnaryCallSettings.Builder
+ restorePlaybookVersionSettings() {
+ return getStubSettingsBuilder().restorePlaybookVersionSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listPlaybookVersions. */
+ public PagedCallSettings.Builder<
+ ListPlaybookVersionsRequest,
+ ListPlaybookVersionsResponse,
+ ListPlaybookVersionsPagedResponse>
+ listPlaybookVersionsSettings() {
+ return getStubSettingsBuilder().listPlaybookVersionsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deletePlaybookVersion. */
+ public UnaryCallSettings.Builder
+ deletePlaybookVersionSettings() {
+ return getStubSettingsBuilder().deletePlaybookVersionSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listLocations. */
+ public PagedCallSettings.Builder<
+ ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+ listLocationsSettings() {
+ return getStubSettingsBuilder().listLocationsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getLocation. */
+ public UnaryCallSettings.Builder getLocationSettings() {
+ return getStubSettingsBuilder().getLocationSettings();
+ }
+
+ @Override
+ public PlaybooksSettings build() throws IOException {
+ return new PlaybooksSettings(this);
+ }
+ }
+}
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java
index 7d05f319520a..f7b1e0e55e5c 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java
@@ -63,6 +63,7 @@
* .setQueryParams(QueryParameters.newBuilder().build())
* .setQueryInput(QueryInput.newBuilder().build())
* .setOutputAudioConfig(OutputAudioConfig.newBuilder().build())
+ * .setResponseView(DetectIntentResponseView.forNumber(0))
* .build();
* DetectIntentResponse response = sessionsClient.detectIntent(request);
* }
@@ -314,6 +315,7 @@ public SessionsStub getStub() {
* .setQueryParams(QueryParameters.newBuilder().build())
* .setQueryInput(QueryInput.newBuilder().build())
* .setOutputAudioConfig(OutputAudioConfig.newBuilder().build())
+ * .setResponseView(DetectIntentResponseView.forNumber(0))
* .build();
* DetectIntentResponse response = sessionsClient.detectIntent(request);
* }
@@ -353,6 +355,7 @@ public final DetectIntentResponse detectIntent(DetectIntentRequest request) {
* .setQueryParams(QueryParameters.newBuilder().build())
* .setQueryInput(QueryInput.newBuilder().build())
* .setOutputAudioConfig(OutputAudioConfig.newBuilder().build())
+ * .setResponseView(DetectIntentResponseView.forNumber(0))
* .build();
* ApiFuture future =
* sessionsClient.detectIntentCallable().futureCall(request);
@@ -390,6 +393,7 @@ public final UnaryCallable detectInte
* .setQueryParams(QueryParameters.newBuilder().build())
* .setQueryInput(QueryInput.newBuilder().build())
* .setOutputAudioConfig(OutputAudioConfig.newBuilder().build())
+ * .setResponseView(DetectIntentResponseView.forNumber(0))
* .build();
* ServerStream stream =
* sessionsClient.serverStreamingDetectIntentCallable().call(request);
@@ -435,6 +439,7 @@ public final UnaryCallable detectInte
* .setOutputAudioConfig(OutputAudioConfig.newBuilder().build())
* .setEnablePartialResponse(true)
* .setEnableDebuggingInfo(true)
+ * .setResponseView(DetectIntentResponseView.forNumber(0))
* .build();
* bidiStream.send(request);
* for (StreamingDetectIntentResponse response : bidiStream) {
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java
new file mode 100644
index 000000000000..2bb686962c8f
--- /dev/null
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java
@@ -0,0 +1,2032 @@
+/*
+ * Copyright 2026 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.dialogflow.cx.v3;
+
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
+import com.google.api.gax.core.BackgroundResource;
+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.PageContext;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.dialogflow.cx.v3.stub.ToolsStub;
+import com.google.cloud.dialogflow.cx.v3.stub.ToolsStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.common.util.concurrent.MoreExecutors;
+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: Service for managing [Tools][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * 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
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
+ * Tool tool = Tool.newBuilder().build();
+ * Tool response = toolsClient.createTool(parent, tool);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the ToolsClient object to clean up resources such as
+ * threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ *
+ * Methods
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ * CreateTool
+ * Creates a [Tool][google.cloud.dialogflow.cx.v3.Tool] in the specified agent.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createTool(CreateToolRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * createTool(AgentName parent, Tool tool)
+ *
createTool(String parent, Tool tool)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createToolCallable()
+ *
+ *
+ *
+ *
+ * ListTools
+ * Returns a list of [Tools][google.cloud.dialogflow.cx.v3.Tool] in the specified agent.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listTools(ListToolsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listTools(AgentName parent)
+ *
listTools(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listToolsPagedCallable()
+ *
listToolsCallable()
+ *
+ *
+ *
+ *
+ * GetTool
+ * Retrieves the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getTool(GetToolRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getTool(ToolName name)
+ *
getTool(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getToolCallable()
+ *
+ *
+ *
+ *
+ * UpdateTool
+ * Update the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateTool(UpdateToolRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * updateTool(Tool tool, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateToolCallable()
+ *
+ *
+ *
+ *
+ * DeleteTool
+ * Deletes a specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteTool(DeleteToolRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * deleteTool(ToolName name)
+ *
deleteTool(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteToolCallable()
+ *
+ *
+ *
+ *
+ * ListToolVersions
+ * List versions of the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listToolVersions(ListToolVersionsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listToolVersions(ToolName parent)
+ *
listToolVersions(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listToolVersionsPagedCallable()
+ *
listToolVersionsCallable()
+ *
+ *
+ *
+ *
+ * CreateToolVersion
+ * Creates a version for the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createToolVersion(CreateToolVersionRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * createToolVersion(ToolName parent, ToolVersion toolVersion)
+ *
createToolVersion(String parent, ToolVersion toolVersion)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createToolVersionCallable()
+ *
+ *
+ *
+ *
+ * GetToolVersion
+ * Retrieves the specified version of the [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getToolVersion(GetToolVersionRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getToolVersion(ToolVersionName name)
+ *
getToolVersion(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getToolVersionCallable()
+ *
+ *
+ *
+ *
+ * DeleteToolVersion
+ * Deletes the specified version of the [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteToolVersion(DeleteToolVersionRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * deleteToolVersion(ToolVersionName name)
+ *
deleteToolVersion(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteToolVersionCallable()
+ *
+ *
+ *
+ *
+ * RestoreToolVersion
+ * Retrieves the specified version of the Tool and stores it as the current tool draft, returning the tool with resources updated.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * restoreToolVersion(RestoreToolVersionRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * restoreToolVersion(ToolVersionName name)
+ *
restoreToolVersion(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * restoreToolVersionCallable()
+ *
+ *
+ *
+ *
+ * ListLocations
+ * Lists information about the supported locations for this service.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listLocations(ListLocationsRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listLocationsPagedCallable()
+ *
listLocationsCallable()
+ *
+ *
+ *
+ *
+ * GetLocation
+ * Gets information about a location.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getLocation(GetLocationRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getLocationCallable()
+ *
+ *
+ *
+ *
+ *
+ * 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 ToolsSettings to create(). For
+ * example:
+ *
+ *
To customize credentials:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ToolsSettings toolsSettings =
+ * ToolsSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * ToolsClient toolsClient = ToolsClient.create(toolsSettings);
+ * }
+ *
+ * To customize the endpoint:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ToolsSettings toolsSettings = ToolsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ToolsClient toolsClient = ToolsClient.create(toolsSettings);
+ * }
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ToolsSettings toolsSettings = ToolsSettings.newHttpJsonBuilder().build();
+ * ToolsClient toolsClient = ToolsClient.create(toolsSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class ToolsClient implements BackgroundResource {
+ private final ToolsSettings settings;
+ private final ToolsStub stub;
+
+ /** Constructs an instance of ToolsClient with default settings. */
+ public static final ToolsClient create() throws IOException {
+ return create(ToolsSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of ToolsClient, 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 ToolsClient create(ToolsSettings settings) throws IOException {
+ return new ToolsClient(settings);
+ }
+
+ /**
+ * Constructs an instance of ToolsClient, using the given stub for making calls. This is for
+ * advanced usage - prefer using create(ToolsSettings).
+ */
+ public static final ToolsClient create(ToolsStub stub) {
+ return new ToolsClient(stub);
+ }
+
+ /**
+ * Constructs an instance of ToolsClient, 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 ToolsClient(ToolsSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((ToolsStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected ToolsClient(ToolsStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final ToolsSettings getSettings() {
+ return settings;
+ }
+
+ public ToolsStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [Tool][google.cloud.dialogflow.cx.v3.Tool] in the specified agent.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
+ * Tool tool = Tool.newBuilder().build();
+ * Tool response = toolsClient.createTool(parent, tool);
+ * }
+ * }
+ *
+ * @param parent Required. The agent to create a Tool for. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
+ * @param tool Required. The Tool to be created.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Tool createTool(AgentName parent, Tool tool) {
+ CreateToolRequest request =
+ CreateToolRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setTool(tool)
+ .build();
+ return createTool(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [Tool][google.cloud.dialogflow.cx.v3.Tool] in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
+ * Tool tool = Tool.newBuilder().build();
+ * Tool response = toolsClient.createTool(parent, tool);
+ * }
+ * }
+ *
+ * @param parent Required. The agent to create a Tool for. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
+ * @param tool Required. The Tool to be created.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Tool createTool(String parent, Tool tool) {
+ CreateToolRequest request =
+ CreateToolRequest.newBuilder().setParent(parent).setTool(tool).build();
+ return createTool(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [Tool][google.cloud.dialogflow.cx.v3.Tool] in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * CreateToolRequest request =
+ * CreateToolRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setTool(Tool.newBuilder().build())
+ * .build();
+ * Tool response = toolsClient.createTool(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 Tool createTool(CreateToolRequest request) {
+ return createToolCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [Tool][google.cloud.dialogflow.cx.v3.Tool] in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * CreateToolRequest request =
+ * CreateToolRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setTool(Tool.newBuilder().build())
+ * .build();
+ * ApiFuture future = toolsClient.createToolCallable().futureCall(request);
+ * // Do something.
+ * Tool response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createToolCallable() {
+ return stub.createToolCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of [Tools][google.cloud.dialogflow.cx.v3.Tool] in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
+ * for (Tool element : toolsClient.listTools(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The agent to list the Tools from. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListToolsPagedResponse listTools(AgentName parent) {
+ ListToolsRequest request =
+ ListToolsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
+ return listTools(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of [Tools][google.cloud.dialogflow.cx.v3.Tool] in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
+ * for (Tool element : toolsClient.listTools(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The agent to list the Tools from. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListToolsPagedResponse listTools(String parent) {
+ ListToolsRequest request = ListToolsRequest.newBuilder().setParent(parent).build();
+ return listTools(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of [Tools][google.cloud.dialogflow.cx.v3.Tool] in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * ListToolsRequest request =
+ * ListToolsRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Tool element : toolsClient.listTools(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 ListToolsPagedResponse listTools(ListToolsRequest request) {
+ return listToolsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of [Tools][google.cloud.dialogflow.cx.v3.Tool] in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * ListToolsRequest request =
+ * ListToolsRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future = toolsClient.listToolsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Tool element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listToolsPagedCallable() {
+ return stub.listToolsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of [Tools][google.cloud.dialogflow.cx.v3.Tool] in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * ListToolsRequest request =
+ * ListToolsRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListToolsResponse response = toolsClient.listToolsCallable().call(request);
+ * for (Tool element : response.getToolsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listToolsCallable() {
+ return stub.listToolsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]");
+ * Tool response = toolsClient.getTool(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Tool. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Tool getTool(ToolName name) {
+ GetToolRequest request =
+ GetToolRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getTool(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * String name = ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString();
+ * Tool response = toolsClient.getTool(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Tool. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Tool getTool(String name) {
+ GetToolRequest request = GetToolRequest.newBuilder().setName(name).build();
+ return getTool(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * GetToolRequest request =
+ * GetToolRequest.newBuilder()
+ * .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString())
+ * .build();
+ * Tool response = toolsClient.getTool(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 Tool getTool(GetToolRequest request) {
+ return getToolCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * GetToolRequest request =
+ * GetToolRequest.newBuilder()
+ * .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString())
+ * .build();
+ * ApiFuture future = toolsClient.getToolCallable().futureCall(request);
+ * // Do something.
+ * Tool response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getToolCallable() {
+ return stub.getToolCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * Tool tool = Tool.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Tool response = toolsClient.updateTool(tool, updateMask);
+ * }
+ * }
+ *
+ * @param tool Required. The Tool to be updated.
+ * @param updateMask The mask to control which fields get updated. If the mask is not present, all
+ * fields will be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Tool updateTool(Tool tool, FieldMask updateMask) {
+ UpdateToolRequest request =
+ UpdateToolRequest.newBuilder().setTool(tool).setUpdateMask(updateMask).build();
+ return updateTool(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * UpdateToolRequest request =
+ * UpdateToolRequest.newBuilder()
+ * .setTool(Tool.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Tool response = toolsClient.updateTool(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 Tool updateTool(UpdateToolRequest request) {
+ return updateToolCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * UpdateToolRequest request =
+ * UpdateToolRequest.newBuilder()
+ * .setTool(Tool.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future = toolsClient.updateToolCallable().futureCall(request);
+ * // Do something.
+ * Tool response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateToolCallable() {
+ return stub.updateToolCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]");
+ * toolsClient.deleteTool(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Tool to be deleted. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteTool(ToolName name) {
+ DeleteToolRequest request =
+ DeleteToolRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ deleteTool(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * String name = ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString();
+ * toolsClient.deleteTool(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Tool to be deleted. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteTool(String name) {
+ DeleteToolRequest request = DeleteToolRequest.newBuilder().setName(name).build();
+ deleteTool(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * DeleteToolRequest request =
+ * DeleteToolRequest.newBuilder()
+ * .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString())
+ * .setForce(true)
+ * .build();
+ * toolsClient.deleteTool(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 void deleteTool(DeleteToolRequest request) {
+ deleteToolCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * DeleteToolRequest request =
+ * DeleteToolRequest.newBuilder()
+ * .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString())
+ * .setForce(true)
+ * .build();
+ * ApiFuture future = toolsClient.deleteToolCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteToolCallable() {
+ return stub.deleteToolCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List versions of the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * ToolName parent = ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]");
+ * for (ToolVersion element : toolsClient.listToolVersions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent of the tool versions. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListToolVersionsPagedResponse listToolVersions(ToolName parent) {
+ ListToolVersionsRequest request =
+ ListToolVersionsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listToolVersions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List versions of the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * String parent = ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString();
+ * for (ToolVersion element : toolsClient.listToolVersions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent of the tool versions. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListToolVersionsPagedResponse listToolVersions(String parent) {
+ ListToolVersionsRequest request =
+ ListToolVersionsRequest.newBuilder().setParent(parent).build();
+ return listToolVersions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List versions of the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * ListToolVersionsRequest request =
+ * ListToolVersionsRequest.newBuilder()
+ * .setParent(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (ToolVersion element : toolsClient.listToolVersions(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 ListToolVersionsPagedResponse listToolVersions(ListToolVersionsRequest request) {
+ return listToolVersionsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List versions of the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * ListToolVersionsRequest request =
+ * ListToolVersionsRequest.newBuilder()
+ * .setParent(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * toolsClient.listToolVersionsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (ToolVersion element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listToolVersionsPagedCallable() {
+ return stub.listToolVersionsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List versions of the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * ListToolVersionsRequest request =
+ * ListToolVersionsRequest.newBuilder()
+ * .setParent(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListToolVersionsResponse response = toolsClient.listToolVersionsCallable().call(request);
+ * for (ToolVersion element : response.getToolVersionsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listToolVersionsCallable() {
+ return stub.listToolVersionsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a version for the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * ToolName parent = ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]");
+ * ToolVersion toolVersion = ToolVersion.newBuilder().build();
+ * ToolVersion response = toolsClient.createToolVersion(parent, toolVersion);
+ * }
+ * }
+ *
+ * @param parent Required. The tool to create a version for. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
+ * @param toolVersion Required. The tool version to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ToolVersion createToolVersion(ToolName parent, ToolVersion toolVersion) {
+ CreateToolVersionRequest request =
+ CreateToolVersionRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setToolVersion(toolVersion)
+ .build();
+ return createToolVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a version for the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * String parent = ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString();
+ * ToolVersion toolVersion = ToolVersion.newBuilder().build();
+ * ToolVersion response = toolsClient.createToolVersion(parent, toolVersion);
+ * }
+ * }
+ *
+ * @param parent Required. The tool to create a version for. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
+ * @param toolVersion Required. The tool version to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ToolVersion createToolVersion(String parent, ToolVersion toolVersion) {
+ CreateToolVersionRequest request =
+ CreateToolVersionRequest.newBuilder().setParent(parent).setToolVersion(toolVersion).build();
+ return createToolVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a version for the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * CreateToolVersionRequest request =
+ * CreateToolVersionRequest.newBuilder()
+ * .setParent(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString())
+ * .setToolVersion(ToolVersion.newBuilder().build())
+ * .build();
+ * ToolVersion response = toolsClient.createToolVersion(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 ToolVersion createToolVersion(CreateToolVersionRequest request) {
+ return createToolVersionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a version for the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * CreateToolVersionRequest request =
+ * CreateToolVersionRequest.newBuilder()
+ * .setParent(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString())
+ * .setToolVersion(ToolVersion.newBuilder().build())
+ * .build();
+ * ApiFuture future = toolsClient.createToolVersionCallable().futureCall(request);
+ * // Do something.
+ * ToolVersion response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createToolVersionCallable() {
+ return stub.createToolVersionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified version of the [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * ToolVersionName name =
+ * ToolVersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]", "[VERSION]");
+ * ToolVersion response = toolsClient.getToolVersion(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the tool version. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ToolVersion getToolVersion(ToolVersionName name) {
+ GetToolVersionRequest request =
+ GetToolVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getToolVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified version of the [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * String name =
+ * ToolVersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]", "[VERSION]")
+ * .toString();
+ * ToolVersion response = toolsClient.getToolVersion(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the tool version. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ToolVersion getToolVersion(String name) {
+ GetToolVersionRequest request = GetToolVersionRequest.newBuilder().setName(name).build();
+ return getToolVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified version of the [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * GetToolVersionRequest request =
+ * GetToolVersionRequest.newBuilder()
+ * .setName(
+ * ToolVersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]", "[VERSION]")
+ * .toString())
+ * .build();
+ * ToolVersion response = toolsClient.getToolVersion(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 ToolVersion getToolVersion(GetToolVersionRequest request) {
+ return getToolVersionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the specified version of the [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * GetToolVersionRequest request =
+ * GetToolVersionRequest.newBuilder()
+ * .setName(
+ * ToolVersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]", "[VERSION]")
+ * .toString())
+ * .build();
+ * ApiFuture future = toolsClient.getToolVersionCallable().futureCall(request);
+ * // Do something.
+ * ToolVersion response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getToolVersionCallable() {
+ return stub.getToolVersionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified version of the [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * ToolVersionName name =
+ * ToolVersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]", "[VERSION]");
+ * toolsClient.deleteToolVersion(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the tool version to delete. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteToolVersion(ToolVersionName name) {
+ DeleteToolVersionRequest request =
+ DeleteToolVersionRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteToolVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified version of the [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * String name =
+ * ToolVersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]", "[VERSION]")
+ * .toString();
+ * toolsClient.deleteToolVersion(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the tool version to delete. Format:
+ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteToolVersion(String name) {
+ DeleteToolVersionRequest request = DeleteToolVersionRequest.newBuilder().setName(name).build();
+ deleteToolVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified version of the [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * DeleteToolVersionRequest request =
+ * DeleteToolVersionRequest.newBuilder()
+ * .setName(
+ * ToolVersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]", "[VERSION]")
+ * .toString())
+ * .setForce(true)
+ * .build();
+ * toolsClient.deleteToolVersion(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 void deleteToolVersion(DeleteToolVersionRequest request) {
+ deleteToolVersionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified version of the [Tool][google.cloud.dialogflow.cx.v3.Tool].
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ToolsClient toolsClient = ToolsClient.create()) {
+ * DeleteToolVersionRequest request =
+ * DeleteToolVersionRequest.newBuilder()
+ * .setName(
+ * ToolVersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]", "[VERSION]")
+ * .toString())
+ * .setForce(true)
+ * .build();
+ * ApiFuture