From 5abe9464195d2253eceeb906b8fc4de03fb763ca Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Mon, 16 Feb 2026 18:05:39 -0800
Subject: [PATCH] chore: regenerate discoveryengine client
---
.../v1/2.0.0/README.md | 4 +-
.../discoveryengine/v1/DiscoveryEngine.java | 372 ++-
.../GoogleCloudDiscoveryengineV1Engine.java | 24 +
...leCloudDiscoveryengineV1LicenseConfig.java | 51 +
...dDiscoveryengineV1ObservabilityConfig.java | 93 +
...ustomerProvidedConfigNotebooklmConfig.java | 48 +
...gNotebooklmConfigDataProtectionPolicy.java | 66 +
...onPolicySensitiveDataProtectionPolicy.java | 67 +
...ngineV1alphaAlertPolicyResourceConfig.java | 24 +
...udDiscoveryengineV1alphaDataConnector.java | 24 +
...veryengineV1alphaDataProtectionPolicy.java | 66 +
...onPolicySensitiveDataProtectionPolicy.java | 67 +
...ogleCloudDiscoveryengineV1alphaEngine.java | 24 +
...udDiscoveryengineV1alphaLicenseConfig.java | 51 +
...overyengineV1alphaObservabilityConfig.java | 93 +
...ustomerProvidedConfigNotebooklmConfig.java | 48 +
...gNotebooklmConfigDataProtectionPolicy.java | 66 +
...onPolicySensitiveDataProtectionPolicy.java | 67 +
...oogleCloudDiscoveryengineV1alphaQuery.java | 24 +
...eCloudDiscoveryengineV1alphaQueryPart.java | 196 ++
...gineV1alphaQueryPartDocumentReference.java | 189 ++
...1alphaQueryPartDriveDocumentReference.java | 189 ++
...engineV1alphaQueryPartPersonReference.java | 213 ++
...udDiscoveryengineV1alphaSearchRequest.java | 30 +
...gineV1alphaSearchRequestDataStoreSpec.java | 33 +
...oogleCloudDiscoveryengineV1betaEngine.java | 24 +
...oudDiscoveryengineV1betaLicenseConfig.java | 51 +
...coveryengineV1betaObservabilityConfig.java | 93 +
...ustomerProvidedConfigNotebooklmConfig.java | 48 +
...gNotebooklmConfigDataProtectionPolicy.java | 66 +
...onPolicySensitiveDataProtectionPolicy.java | 67 +
...oudDiscoveryengineV1betaSearchRequest.java | 30 +
...ngineV1betaSearchRequestDataStoreSpec.java | 33 +
.../v1/model/GoogleIamV1Binding.java | 270 +++
.../v1/model/GoogleIamV1Policy.java | 261 +++
.../model/GoogleIamV1SetIamPolicyRequest.java | 72 +
.../v1/model/GoogleTypeExpr.java | 159 ++
.../v1/2.0.0/pom.xml | 4 +-
.../v1/README.md | 4 +-
.../v1alpha/2.0.0/README.md | 4 +-
.../v1alpha/DiscoveryEngine.java | 2052 +++++------------
.../GoogleCloudDiscoveryengineV1Engine.java | 24 +
...leCloudDiscoveryengineV1LicenseConfig.java | 51 +
...dDiscoveryengineV1ObservabilityConfig.java | 93 +
...ustomerProvidedConfigNotebooklmConfig.java | 48 +
...gNotebooklmConfigDataProtectionPolicy.java | 66 +
...onPolicySensitiveDataProtectionPolicy.java | 67 +
...eCloudDiscoveryengineV1alphaAgentView.java | 447 ----
...engineV1alphaAgentViewUserPermissions.java | 210 --
...ngineV1alphaAlertPolicyResourceConfig.java | 24 +
...ineV1alphaBillingAccountLicenseConfig.java | 51 +
...haCompleteExternalIdentitiesResponse.java} | 33 +-
...udDiscoveryengineV1alphaDataConnector.java | 24 +
...veryengineV1alphaDataProtectionPolicy.java | 66 +
...onPolicySensitiveDataProtectionPolicy.java | 67 +
...ogleCloudDiscoveryengineV1alphaEngine.java | 24 +
...iscoveryengineV1alphaExternalIdentity.java | 139 ++
...eV1alphaExternalIdentityGroupMetadata.java | 42 +
...neV1alphaExternalIdentityUserMetadata.java | 114 +
...udDiscoveryengineV1alphaLicenseConfig.java | 51 +
...1alphaListAvailableAgentViewsResponse.java | 99 -
...overyengineV1alphaObservabilityConfig.java | 93 +
...ustomerProvidedConfigNotebooklmConfig.java | 48 +
...gNotebooklmConfigDataProtectionPolicy.java | 66 +
...onPolicySensitiveDataProtectionPolicy.java | 67 +
...oogleCloudDiscoveryengineV1alphaQuery.java | 24 +
...eCloudDiscoveryengineV1alphaQueryPart.java | 196 ++
...gineV1alphaQueryPartDocumentReference.java | 189 ++
...1alphaQueryPartDriveDocumentReference.java | 189 ++
...engineV1alphaQueryPartPersonReference.java | 213 ++
...udDiscoveryengineV1alphaSearchRequest.java | 30 +
...gineV1alphaSearchRequestDataStoreSpec.java | 33 +
...overyengineV1alphaStreamAssistRequest.java | 24 +
...V1alphaStreamAssistRequestActionSpec.java} | 33 +-
...DiscoveryengineV1alphaUserAnnotations.java | 93 -
...oogleCloudDiscoveryengineV1betaEngine.java | 24 +
...oudDiscoveryengineV1betaLicenseConfig.java | 51 +
...coveryengineV1betaObservabilityConfig.java | 93 +
...ustomerProvidedConfigNotebooklmConfig.java | 48 +
...gNotebooklmConfigDataProtectionPolicy.java | 66 +
...onPolicySensitiveDataProtectionPolicy.java | 67 +
...oudDiscoveryengineV1betaSearchRequest.java | 30 +
...ngineV1betaSearchRequestDataStoreSpec.java | 33 +
.../v1alpha/2.0.0/pom.xml | 4 +-
.../v1alpha/README.md | 4 +-
.../v1beta/2.0.0/README.md | 4 +-
.../v1beta/DiscoveryEngine.java | 384 ++-
.../GoogleCloudDiscoveryengineV1Engine.java | 24 +
...leCloudDiscoveryengineV1LicenseConfig.java | 51 +
...dDiscoveryengineV1ObservabilityConfig.java | 93 +
...ustomerProvidedConfigNotebooklmConfig.java | 48 +
...gNotebooklmConfigDataProtectionPolicy.java | 66 +
...onPolicySensitiveDataProtectionPolicy.java | 67 +
...ngineV1alphaAlertPolicyResourceConfig.java | 24 +
...udDiscoveryengineV1alphaDataConnector.java | 24 +
...veryengineV1alphaDataProtectionPolicy.java | 66 +
...onPolicySensitiveDataProtectionPolicy.java | 67 +
...ogleCloudDiscoveryengineV1alphaEngine.java | 24 +
...udDiscoveryengineV1alphaLicenseConfig.java | 51 +
...overyengineV1alphaObservabilityConfig.java | 93 +
...ustomerProvidedConfigNotebooklmConfig.java | 48 +
...gNotebooklmConfigDataProtectionPolicy.java | 66 +
...onPolicySensitiveDataProtectionPolicy.java | 67 +
...oogleCloudDiscoveryengineV1alphaQuery.java | 24 +
...eCloudDiscoveryengineV1alphaQueryPart.java | 196 ++
...gineV1alphaQueryPartDocumentReference.java | 189 ++
...1alphaQueryPartDriveDocumentReference.java | 189 ++
...engineV1alphaQueryPartPersonReference.java | 213 ++
...udDiscoveryengineV1alphaSearchRequest.java | 30 +
...gineV1alphaSearchRequestDataStoreSpec.java | 33 +
...oogleCloudDiscoveryengineV1betaEngine.java | 24 +
...oudDiscoveryengineV1betaLicenseConfig.java | 51 +
...coveryengineV1betaObservabilityConfig.java | 93 +
...ustomerProvidedConfigNotebooklmConfig.java | 48 +
...gNotebooklmConfigDataProtectionPolicy.java | 66 +
...onPolicySensitiveDataProtectionPolicy.java | 67 +
...oudDiscoveryengineV1betaSearchRequest.java | 30 +
...ngineV1betaSearchRequestDataStoreSpec.java | 33 +
.../v1beta/model/GoogleIamV1Binding.java | 270 +++
.../v1beta/model/GoogleIamV1Policy.java | 261 +++
.../model/GoogleIamV1SetIamPolicyRequest.java | 72 +
.../v1beta/model/GoogleTypeExpr.java | 159 ++
.../v1beta/2.0.0/pom.xml | 4 +-
.../v1beta/README.md | 4 +-
124 files changed, 9793 insertions(+), 2355 deletions(-)
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1ObservabilityConfig.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaObservabilityConfig.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQueryPart.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaObservabilityConfig.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleIamV1Binding.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleIamV1Policy.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleIamV1SetIamPolicyRequest.java
create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleTypeExpr.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ObservabilityConfig.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java
delete mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAgentView.java
delete mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions.java
rename clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/{GoogleCloudDiscoveryengineV1alphaAgentViewSuggestedPrompt.java => GoogleCloudDiscoveryengineV1alphaCompleteExternalIdentitiesResponse.java} (50%)
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaExternalIdentity.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaExternalIdentityGroupMetadata.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaExternalIdentityUserMetadata.java
delete mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaObservabilityConfig.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaQueryPart.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference.java
rename clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/{GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse.java => GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec.java} (53%)
delete mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUserAnnotations.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaObservabilityConfig.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1ObservabilityConfig.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaObservabilityConfig.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQueryPart.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaObservabilityConfig.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleIamV1Binding.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleIamV1Policy.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleIamV1SetIamPolicyRequest.java
create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleTypeExpr.java
diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/README.md b/clients/google-api-services-discoveryengine/v1/2.0.0/README.md
index 1d97a6d8996..e6db3df8813 100644
--- a/clients/google-api-services-discoveryengine/v1/2.0.0/README.md
+++ b/clients/google-api-services-discoveryengine/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
{@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String resource) { + super(DiscoveryEngine.this, "GET", REST_PATH, null, com.google.api.services.discoveryengine.v1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. + * Requests for policies with any conditional role bindings must specify version 3. + * Policies with no conditional role bindings may specify any valid value or leave the + * field unset. The policy in the response might use the policy version that you + * specified, or it might use a lower policy version. For example, if you specify + * version 3, but the policy has no conditional role bindings, the response uses version + * 1. To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. + * Requests for policies with any conditional role bindings must specify version 3. + * Policies with no conditional role bindings may specify any valid value or leave the + * field unset. The policy in the response might use the policy version that you + * specified, or it might use a lower policy version. For example, if you specify + * version 3, but the policy has no conditional role bindings, the response uses version + * 1. To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } /** * Lists all the Engines associated with the project. * @@ -19002,6 +19203,160 @@ public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } + /** + * Sets the IAM access control policy for an Engine. A `NOT_FOUND` error is returned if the resource + * does not exist. **Important:** When setting a policy directly on an Engine resource, the only + * recommended roles in the bindings are: `roles/discoveryengine.user` and + * `roles/discoveryengine.agentspaceUser`. Attempting to grant any other role will result in a + * warning in logging. + * + * Create a request for the method "engines.setIamPolicy". + * + * This request holds the parameters needed by the discoveryengine server. After setting any + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation. + * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.discoveryengine.v1.model.GoogleIamV1SetIamPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.discoveryengine.v1.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends DiscoveryEngineRequest{@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.discoveryengine.v1.model.GoogleIamV1SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.discoveryengine.v1.model.GoogleIamV1SetIamPolicyRequest content) { + super(DiscoveryEngine.this, "POST", REST_PATH, content, com.google.api.services.discoveryengine.v1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } /** * An accessor for creating requests from the Assistants collection. @@ -45058,8 +45413,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1ObservabilityConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean observabilityEnabled; + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean sensitiveLoggingEnabled; + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * @return value or {@code null} for none + */ + public java.lang.Boolean getObservabilityEnabled() { + return observabilityEnabled; + } + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * @param observabilityEnabled observabilityEnabled or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ObservabilityConfig setObservabilityEnabled(java.lang.Boolean observabilityEnabled) { + this.observabilityEnabled = observabilityEnabled; + return this; + } + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSensitiveLoggingEnabled() { + return sensitiveLoggingEnabled; + } + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * @param sensitiveLoggingEnabled sensitiveLoggingEnabled or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ObservabilityConfig setSensitiveLoggingEnabled(java.lang.Boolean sensitiveLoggingEnabled) { + this.sensitiveLoggingEnabled = sensitiveLoggingEnabled; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1ObservabilityConfig set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1ObservabilityConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1ObservabilityConfig clone() { + return (GoogleCloudDiscoveryengineV1ObservabilityConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig.java index cceed2d5790..6d359f6d41d 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig extends com.google.api.client.json.GenericJson { + /** + * Optional. Specifies the data protection policy for NotebookLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy dataProtectionPolicy; + /** * Model Armor configuration to be used for sanitizing user prompts and LLM responses. * The value may be {@code null}. @@ -36,6 +43,13 @@ public final class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNote @com.google.api.client.util.Key private GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigModelArmorConfig modelArmorConfig; + /** + * Optional. Observability config for NotebookLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1ObservabilityConfig observabilityConfig; + /** * Optional. Whether to disable the notebook sharing feature for the project. Default to false if * not specified. @@ -44,6 +58,23 @@ public final class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNote @com.google.api.client.util.Key private java.lang.Boolean optOutNotebookSharing; + /** + * Optional. Specifies the data protection policy for NotebookLM. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy getDataProtectionPolicy() { + return dataProtectionPolicy; + } + + /** + * Optional. Specifies the data protection policy for NotebookLM. + * @param dataProtectionPolicy dataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig setDataProtectionPolicy(GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy dataProtectionPolicy) { + this.dataProtectionPolicy = dataProtectionPolicy; + return this; + } + /** * Model Armor configuration to be used for sanitizing user prompts and LLM responses. * @return value or {@code null} for none @@ -61,6 +92,23 @@ public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig return this; } + /** + * Optional. Observability config for NotebookLM. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ObservabilityConfig getObservabilityConfig() { + return observabilityConfig; + } + + /** + * Optional. Observability config for NotebookLM. + * @param observabilityConfig observabilityConfig or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig setObservabilityConfig(GoogleCloudDiscoveryengineV1ObservabilityConfig observabilityConfig) { + this.observabilityConfig = observabilityConfig; + return this; + } + /** * Optional. Whether to disable the notebook sharing feature for the project. Default to false if * not specified. diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java new file mode 100644 index 00000000000..a8e5559557d --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java @@ -0,0 +1,66 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Data protection policy config for NotebookLM. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The sensitive data protection policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy; + + /** + * Optional. The sensitive data protection policy. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy getSensitiveDataProtectionPolicy() { + return sensitiveDataProtectionPolicy; + } + + /** + * Optional. The sensitive data protection policy. + * @param sensitiveDataProtectionPolicy sensitiveDataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy setSensitiveDataProtectionPolicy(GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy) { + this.sensitiveDataProtectionPolicy = sensitiveDataProtectionPolicy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java new file mode 100644 index 00000000000..e2f904f250d --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java @@ -0,0 +1,67 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data- + * protection/docs/sensitive-data-protection-overview) policy. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The Sensitive Data Protection policy resource name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** + * Optional. The Sensitive Data Protection policy resource name. + * @return value or {@code null} for none + */ + public java.lang.String getPolicy() { + return policy; + } + + /** + * Optional. The Sensitive Data Protection policy resource name. + * @param policy policy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy setPolicy(java.lang.String policy) { + this.policy = policy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig.java index c2bf65e5f19..fe011c59156 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig.java @@ -58,6 +58,13 @@ public final class GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig ex @com.google.api.client.util.Key private java.lang.String languageCode; + /** + * Optional. The region code used of the user that subscribed to the alert policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String regionCode; + /** * Optional. The enrollment state of each alert. * @return value or {@code null} for none @@ -126,6 +133,23 @@ public GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig setLanguageCod return this; } + /** + * Optional. The region code used of the user that subscribed to the alert policy. + * @return value or {@code null} for none + */ + public java.lang.String getRegionCode() { + return regionCode; + } + + /** + * Optional. The region code used of the user that subscribed to the alert policy. + * @param regionCode regionCode or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig setRegionCode(java.lang.String regionCode) { + this.regionCode = regionCode; + return this; + } + @Override public GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig set(String fieldName, Object value) { return (GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig) super.set(fieldName, value); diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaDataConnector.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaDataConnector.java index 5fd91f24b05..337ef7fa22b 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaDataConnector.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaDataConnector.java @@ -121,6 +121,13 @@ public final class GoogleCloudDiscoveryengineV1alphaDataConnector extends com.go @com.google.api.client.util.Key private String createTime; + /** + * Optional. Specifies the data protection policy for the connector. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy dataProtectionPolicy; + /** * Required. The name of the data source. Supported values: `salesforce`, `jira`, `confluence`, * `bigquery`. @@ -550,6 +557,23 @@ public GoogleCloudDiscoveryengineV1alphaDataConnector setCreateTime(String creat return this; } + /** + * Optional. Specifies the data protection policy for the connector. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy getDataProtectionPolicy() { + return dataProtectionPolicy; + } + + /** + * Optional. Specifies the data protection policy for the connector. + * @param dataProtectionPolicy dataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaDataConnector setDataProtectionPolicy(GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy dataProtectionPolicy) { + this.dataProtectionPolicy = dataProtectionPolicy; + return this; + } + /** * Required. The name of the data source. Supported values: `salesforce`, `jira`, `confluence`, * `bigquery`. diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy.java new file mode 100644 index 00000000000..4d1151da6fd --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy.java @@ -0,0 +1,66 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Data protection policy config for a connector. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The sensitive data protection policy for the connector source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy; + + /** + * Optional. The sensitive data protection policy for the connector source. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy getSensitiveDataProtectionPolicy() { + return sensitiveDataProtectionPolicy; + } + + /** + * Optional. The sensitive data protection policy for the connector source. + * @param sensitiveDataProtectionPolicy sensitiveDataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy setSensitiveDataProtectionPolicy(GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy) { + this.sensitiveDataProtectionPolicy = sensitiveDataProtectionPolicy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy.java new file mode 100644 index 00000000000..2a7053f9e7d --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy.java @@ -0,0 +1,67 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data- + * protection/docs/sensitive-data-protection-overview) policy. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The Sensitive Data Protection content policy resource name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** + * Optional. The Sensitive Data Protection content policy resource name. + * @return value or {@code null} for none + */ + public java.lang.String getPolicy() { + return policy; + } + + /** + * Optional. The Sensitive Data Protection content policy resource name. + * @param policy policy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy setPolicy(java.lang.String policy) { + this.policy = policy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngine.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngine.java index f4c62200637..f8ed8fc0da0 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngine.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngine.java @@ -167,6 +167,13 @@ public final class GoogleCloudDiscoveryengineV1alphaEngine extends com.google.ap @com.google.api.client.util.Key private java.lang.String name; + /** + * Optional. Observability config for the engine. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaObservabilityConfig observabilityConfig; + /** * Output only. Additional information of a recommendation engine. Only applicable if * solution_type is SOLUTION_TYPE_RECOMMENDATION. @@ -527,6 +534,23 @@ public GoogleCloudDiscoveryengineV1alphaEngine setName(java.lang.String name) { return this; } + /** + * Optional. Observability config for the engine. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaObservabilityConfig getObservabilityConfig() { + return observabilityConfig; + } + + /** + * Optional. Observability config for the engine. + * @param observabilityConfig observabilityConfig or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngine setObservabilityConfig(GoogleCloudDiscoveryengineV1alphaObservabilityConfig observabilityConfig) { + this.observabilityConfig = observabilityConfig; + return this; + } + /** * Output only. Additional information of a recommendation engine. Only applicable if * solution_type is SOLUTION_TYPE_RECOMMENDATION. diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaLicenseConfig.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaLicenseConfig.java index 0c75436f66e..3c5a88f5bfe 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaLicenseConfig.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaLicenseConfig.java @@ -43,6 +43,21 @@ public final class GoogleCloudDiscoveryengineV1alphaLicenseConfig extends com.go @com.google.api.client.util.Key private java.lang.Boolean autoRenew; + /** + * Output only. Indication of whether the subscription is terminated earlier than the expiration + * date. This is usually terminated by pipeline once the subscription gets terminated from subsv3. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean earlyTerminated; + + /** + * Output only. The date when the subscription is terminated earlier than the expiration date. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeDate earlyTerminationDate; + /** * Optional. The planed end date. * The value may be {@code null}. @@ -141,6 +156,42 @@ public GoogleCloudDiscoveryengineV1alphaLicenseConfig setAutoRenew(java.lang.Boo return this; } + /** + * Output only. Indication of whether the subscription is terminated earlier than the expiration + * date. This is usually terminated by pipeline once the subscription gets terminated from subsv3. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEarlyTerminated() { + return earlyTerminated; + } + + /** + * Output only. Indication of whether the subscription is terminated earlier than the expiration + * date. This is usually terminated by pipeline once the subscription gets terminated from subsv3. + * @param earlyTerminated earlyTerminated or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaLicenseConfig setEarlyTerminated(java.lang.Boolean earlyTerminated) { + this.earlyTerminated = earlyTerminated; + return this; + } + + /** + * Output only. The date when the subscription is terminated earlier than the expiration date. + * @return value or {@code null} for none + */ + public GoogleTypeDate getEarlyTerminationDate() { + return earlyTerminationDate; + } + + /** + * Output only. The date when the subscription is terminated earlier than the expiration date. + * @param earlyTerminationDate earlyTerminationDate or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaLicenseConfig setEarlyTerminationDate(GoogleTypeDate earlyTerminationDate) { + this.earlyTerminationDate = earlyTerminationDate; + return this; + } + /** * Optional. The planed end date. * @return value or {@code null} for none diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaObservabilityConfig.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaObservabilityConfig.java new file mode 100644 index 00000000000..087f95422e1 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaObservabilityConfig.java @@ -0,0 +1,93 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Observability config for a resource. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaObservabilityConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean observabilityEnabled; + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean sensitiveLoggingEnabled; + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * @return value or {@code null} for none + */ + public java.lang.Boolean getObservabilityEnabled() { + return observabilityEnabled; + } + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * @param observabilityEnabled observabilityEnabled or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaObservabilityConfig setObservabilityEnabled(java.lang.Boolean observabilityEnabled) { + this.observabilityEnabled = observabilityEnabled; + return this; + } + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSensitiveLoggingEnabled() { + return sensitiveLoggingEnabled; + } + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * @param sensitiveLoggingEnabled sensitiveLoggingEnabled or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaObservabilityConfig setSensitiveLoggingEnabled(java.lang.Boolean sensitiveLoggingEnabled) { + this.sensitiveLoggingEnabled = sensitiveLoggingEnabled; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaObservabilityConfig set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaObservabilityConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaObservabilityConfig clone() { + return (GoogleCloudDiscoveryengineV1alphaObservabilityConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig.java index 37d72a43c66..5e25345f724 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig extends com.google.api.client.json.GenericJson { + /** + * Optional. Specifies the data protection policy for NotebookLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy dataProtectionPolicy; + /** * Model Armor configuration to be used for sanitizing user prompts and LLM responses. * The value may be {@code null}. @@ -36,6 +43,13 @@ public final class GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfi @com.google.api.client.util.Key private GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigModelArmorConfig modelArmorConfig; + /** + * Optional. Observability config for NotebookLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaObservabilityConfig observabilityConfig; + /** * Optional. Whether to disable the notebook sharing feature for the project. Default to false if * not specified. @@ -44,6 +58,23 @@ public final class GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfi @com.google.api.client.util.Key private java.lang.Boolean optOutNotebookSharing; + /** + * Optional. Specifies the data protection policy for NotebookLM. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy getDataProtectionPolicy() { + return dataProtectionPolicy; + } + + /** + * Optional. Specifies the data protection policy for NotebookLM. + * @param dataProtectionPolicy dataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig setDataProtectionPolicy(GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy dataProtectionPolicy) { + this.dataProtectionPolicy = dataProtectionPolicy; + return this; + } + /** * Model Armor configuration to be used for sanitizing user prompts and LLM responses. * @return value or {@code null} for none @@ -61,6 +92,23 @@ public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmC return this; } + /** + * Optional. Observability config for NotebookLM. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaObservabilityConfig getObservabilityConfig() { + return observabilityConfig; + } + + /** + * Optional. Observability config for NotebookLM. + * @param observabilityConfig observabilityConfig or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig setObservabilityConfig(GoogleCloudDiscoveryengineV1alphaObservabilityConfig observabilityConfig) { + this.observabilityConfig = observabilityConfig; + return this; + } + /** * Optional. Whether to disable the notebook sharing feature for the project. Default to false if * not specified. diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java new file mode 100644 index 00000000000..d4426ba9ef4 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java @@ -0,0 +1,66 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Data protection policy config for NotebookLM. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The sensitive data protection policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy; + + /** + * Optional. The sensitive data protection policy. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy getSensitiveDataProtectionPolicy() { + return sensitiveDataProtectionPolicy; + } + + /** + * Optional. The sensitive data protection policy. + * @param sensitiveDataProtectionPolicy sensitiveDataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy setSensitiveDataProtectionPolicy(GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy) { + this.sensitiveDataProtectionPolicy = sensitiveDataProtectionPolicy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java new file mode 100644 index 00000000000..fc3481621e4 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java @@ -0,0 +1,67 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data- + * protection/docs/sensitive-data-protection-overview) policy. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The Sensitive Data Protection policy resource name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** + * Optional. The Sensitive Data Protection policy resource name. + * @return value or {@code null} for none + */ + public java.lang.String getPolicy() { + return policy; + } + + /** + * Optional. The Sensitive Data Protection policy resource name. + * @param policy policy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy setPolicy(java.lang.String policy) { + this.policy = policy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQuery.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQuery.java index ffadc04cd67..f8fe6c803e1 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQuery.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQuery.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudDiscoveryengineV1alphaQuery extends com.google.api.client.json.GenericJson { + /** + * Query content parts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaQueryPart extends com.google.api.client.json.GenericJson { + + /** + * Other VAIS Document references. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference documentReference; + + /** + * Reference to a Google Drive document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference driveDocumentReference; + + /** + * Optional. The IANA standard MIME type of the data. See https://www.iana.org/assignments/media- + * types/media-types.xhtml. This field is optional. If not set, the default assumed MIME type is + * "text/plain" for the "data" field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * Reference to a person. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference personReference; + + /** + * Text content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * This field is expected to be a ui message in JSON format. As of Q1 2026, ui_json_payload is + * only supported for A2UI messages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uiJsonPayload; + + /** + * Other VAIS Document references. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference getDocumentReference() { + return documentReference; + } + + /** + * Other VAIS Document references. + * @param documentReference documentReference or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPart setDocumentReference(GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference documentReference) { + this.documentReference = documentReference; + return this; + } + + /** + * Reference to a Google Drive document. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference getDriveDocumentReference() { + return driveDocumentReference; + } + + /** + * Reference to a Google Drive document. + * @param driveDocumentReference driveDocumentReference or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPart setDriveDocumentReference(GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference driveDocumentReference) { + this.driveDocumentReference = driveDocumentReference; + return this; + } + + /** + * Optional. The IANA standard MIME type of the data. See https://www.iana.org/assignments/media- + * types/media-types.xhtml. This field is optional. If not set, the default assumed MIME type is + * "text/plain" for the "data" field. + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * Optional. The IANA standard MIME type of the data. See https://www.iana.org/assignments/media- + * types/media-types.xhtml. This field is optional. If not set, the default assumed MIME type is + * "text/plain" for the "data" field. + * @param mimeType mimeType or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPart setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * Reference to a person. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference getPersonReference() { + return personReference; + } + + /** + * Reference to a person. + * @param personReference personReference or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPart setPersonReference(GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference personReference) { + this.personReference = personReference; + return this; + } + + /** + * Text content. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Text content. + * @param text text or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPart setText(java.lang.String text) { + this.text = text; + return this; + } + + /** + * This field is expected to be a ui message in JSON format. As of Q1 2026, ui_json_payload is + * only supported for A2UI messages. + * @return value or {@code null} for none + */ + public java.lang.String getUiJsonPayload() { + return uiJsonPayload; + } + + /** + * This field is expected to be a ui message in JSON format. As of Q1 2026, ui_json_payload is + * only supported for A2UI messages. + * @param uiJsonPayload uiJsonPayload or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPart setUiJsonPayload(java.lang.String uiJsonPayload) { + this.uiJsonPayload = uiJsonPayload; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPart set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaQueryPart) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPart clone() { + return (GoogleCloudDiscoveryengineV1alphaQueryPart) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference.java new file mode 100644 index 00000000000..b1b7fff3312 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference.java @@ -0,0 +1,189 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Represents a document reference. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference extends com.google.api.client.json.GenericJson { + + /** + * The destination uri of the reference. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destinationUri; + + /** + * The display title of the reference. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayTitle; + + /** + * The full resource name of the document. Format: `projects/{project}/locations/{location}/collec + * tions/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentName; + + /** + * Output only. The file id of the document data stored in the session context files. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fileId; + + /** + * The icon uri of the reference. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String iconUri; + + /** + * Input only. The url_for_connector of the document returned by Federated Search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String urlForConnector; + + /** + * The destination uri of the reference. + * @return value or {@code null} for none + */ + public java.lang.String getDestinationUri() { + return destinationUri; + } + + /** + * The destination uri of the reference. + * @param destinationUri destinationUri or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference setDestinationUri(java.lang.String destinationUri) { + this.destinationUri = destinationUri; + return this; + } + + /** + * The display title of the reference. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayTitle() { + return displayTitle; + } + + /** + * The display title of the reference. + * @param displayTitle displayTitle or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference setDisplayTitle(java.lang.String displayTitle) { + this.displayTitle = displayTitle; + return this; + } + + /** + * The full resource name of the document. Format: `projects/{project}/locations/{location}/collec + * tions/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentName() { + return documentName; + } + + /** + * The full resource name of the document. Format: `projects/{project}/locations/{location}/collec + * tions/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. + * @param documentName documentName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference setDocumentName(java.lang.String documentName) { + this.documentName = documentName; + return this; + } + + /** + * Output only. The file id of the document data stored in the session context files. + * @return value or {@code null} for none + */ + public java.lang.String getFileId() { + return fileId; + } + + /** + * Output only. The file id of the document data stored in the session context files. + * @param fileId fileId or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference setFileId(java.lang.String fileId) { + this.fileId = fileId; + return this; + } + + /** + * The icon uri of the reference. + * @return value or {@code null} for none + */ + public java.lang.String getIconUri() { + return iconUri; + } + + /** + * The icon uri of the reference. + * @param iconUri iconUri or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference setIconUri(java.lang.String iconUri) { + this.iconUri = iconUri; + return this; + } + + /** + * Input only. The url_for_connector of the document returned by Federated Search. + * @return value or {@code null} for none + */ + public java.lang.String getUrlForConnector() { + return urlForConnector; + } + + /** + * Input only. The url_for_connector of the document returned by Federated Search. + * @param urlForConnector urlForConnector or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference setUrlForConnector(java.lang.String urlForConnector) { + this.urlForConnector = urlForConnector; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference clone() { + return (GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference.java new file mode 100644 index 00000000000..1f2d9c1e85c --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference.java @@ -0,0 +1,189 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Represents a Google Drive document reference. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference extends com.google.api.client.json.GenericJson { + + /** + * The destination uri of the reference. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destinationUri; + + /** + * The display title of the reference. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayTitle; + + /** + * The full resource name of the document. Format: + * `projects/locations/collections/dataStores/branches/documents`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentName; + + /** + * The Drive id of the document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String driveId; + + /** + * Output only. The file id of the Drive document data stored in the session context files. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fileId; + + /** + * The icon uri of the Drive document reference. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String iconUri; + + /** + * The destination uri of the reference. + * @return value or {@code null} for none + */ + public java.lang.String getDestinationUri() { + return destinationUri; + } + + /** + * The destination uri of the reference. + * @param destinationUri destinationUri or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference setDestinationUri(java.lang.String destinationUri) { + this.destinationUri = destinationUri; + return this; + } + + /** + * The display title of the reference. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayTitle() { + return displayTitle; + } + + /** + * The display title of the reference. + * @param displayTitle displayTitle or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference setDisplayTitle(java.lang.String displayTitle) { + this.displayTitle = displayTitle; + return this; + } + + /** + * The full resource name of the document. Format: + * `projects/locations/collections/dataStores/branches/documents`. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentName() { + return documentName; + } + + /** + * The full resource name of the document. Format: + * `projects/locations/collections/dataStores/branches/documents`. + * @param documentName documentName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference setDocumentName(java.lang.String documentName) { + this.documentName = documentName; + return this; + } + + /** + * The Drive id of the document. + * @return value or {@code null} for none + */ + public java.lang.String getDriveId() { + return driveId; + } + + /** + * The Drive id of the document. + * @param driveId driveId or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference setDriveId(java.lang.String driveId) { + this.driveId = driveId; + return this; + } + + /** + * Output only. The file id of the Drive document data stored in the session context files. + * @return value or {@code null} for none + */ + public java.lang.String getFileId() { + return fileId; + } + + /** + * Output only. The file id of the Drive document data stored in the session context files. + * @param fileId fileId or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference setFileId(java.lang.String fileId) { + this.fileId = fileId; + return this; + } + + /** + * The icon uri of the Drive document reference. + * @return value or {@code null} for none + */ + public java.lang.String getIconUri() { + return iconUri; + } + + /** + * The icon uri of the Drive document reference. + * @param iconUri iconUri or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference setIconUri(java.lang.String iconUri) { + this.iconUri = iconUri; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference clone() { + return (GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference.java new file mode 100644 index 00000000000..f4a2630a831 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference.java @@ -0,0 +1,213 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Represents a person reference. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference extends com.google.api.client.json.GenericJson { + + /** + * The destination uri of the person. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destinationUri; + + /** + * The display name of the person. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * The display photo url of the person. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayPhotoUri; + + /** + * The full resource name of the person. Format: + * `projects/locations/collections/dataStores/branches/documents`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentName; + + /** + * The email of the person. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String email; + + /** + * Output only. The file id of the person data stored in the session context files. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fileId; + + /** + * The person id of the person. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String personId; + + /** + * The destination uri of the person. + * @return value or {@code null} for none + */ + public java.lang.String getDestinationUri() { + return destinationUri; + } + + /** + * The destination uri of the person. + * @param destinationUri destinationUri or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference setDestinationUri(java.lang.String destinationUri) { + this.destinationUri = destinationUri; + return this; + } + + /** + * The display name of the person. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The display name of the person. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The display photo url of the person. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayPhotoUri() { + return displayPhotoUri; + } + + /** + * The display photo url of the person. + * @param displayPhotoUri displayPhotoUri or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference setDisplayPhotoUri(java.lang.String displayPhotoUri) { + this.displayPhotoUri = displayPhotoUri; + return this; + } + + /** + * The full resource name of the person. Format: + * `projects/locations/collections/dataStores/branches/documents`. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentName() { + return documentName; + } + + /** + * The full resource name of the person. Format: + * `projects/locations/collections/dataStores/branches/documents`. + * @param documentName documentName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference setDocumentName(java.lang.String documentName) { + this.documentName = documentName; + return this; + } + + /** + * The email of the person. + * @return value or {@code null} for none + */ + public java.lang.String getEmail() { + return email; + } + + /** + * The email of the person. + * @param email email or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference setEmail(java.lang.String email) { + this.email = email; + return this; + } + + /** + * Output only. The file id of the person data stored in the session context files. + * @return value or {@code null} for none + */ + public java.lang.String getFileId() { + return fileId; + } + + /** + * Output only. The file id of the person data stored in the session context files. + * @param fileId fileId or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference setFileId(java.lang.String fileId) { + this.fileId = fileId; + return this; + } + + /** + * The person id of the person. + * @return value or {@code null} for none + */ + public java.lang.String getPersonId() { + return personId; + } + + /** + * The person id of the person. + * @param personId personId or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference setPersonId(java.lang.String personId) { + this.personId = personId; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference clone() { + return (GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaSearchRequest.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaSearchRequest.java index 65438978899..7070054d55f 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaSearchRequest.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaSearchRequest.java @@ -164,6 +164,15 @@ public final class GoogleCloudDiscoveryengineV1alphaSearchRequest extends com.go @com.google.api.client.util.Key private GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec naturalLanguageQueryUnderstandingSpec; + /** + * Optional. The maximum number of results to retrieve from each data store. If not specified, it + * will use the SearchRequest.data_store_specs.num_results if provided, otherwise there is no + * limit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer numResultsPerDataStore; + /** * A 0-indexed integer that specifies the current offset (that is, starting result location, * amongst the Documents deemed by the API as relevant) in search results. This field is only @@ -783,6 +792,27 @@ public GoogleCloudDiscoveryengineV1alphaSearchRequest setNaturalLanguageQueryUnd return this; } + /** + * Optional. The maximum number of results to retrieve from each data store. If not specified, it + * will use the SearchRequest.data_store_specs.num_results if provided, otherwise there is no + * limit. + * @return value or {@code null} for none + */ + public java.lang.Integer getNumResultsPerDataStore() { + return numResultsPerDataStore; + } + + /** + * Optional. The maximum number of results to retrieve from each data store. If not specified, it + * will use the SearchRequest.data_store_specs.num_results if provided, otherwise there is no + * limit. + * @param numResultsPerDataStore numResultsPerDataStore or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaSearchRequest setNumResultsPerDataStore(java.lang.Integer numResultsPerDataStore) { + this.numResultsPerDataStore = numResultsPerDataStore; + return this; + } + /** * A 0-indexed integer that specifies the current offset (that is, starting result location, * amongst the Documents deemed by the API as relevant) in search results. This field is only diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec.java index d70d6c5d7e1..78d8c08d191 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec.java @@ -65,6 +65,16 @@ public final class GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec e @com.google.api.client.util.Key private java.lang.String filter; + /** + * Optional. The maximum number of results to retrieve from this data store. If not specified, it + * will use the SearchRequest.num_results_per_data_store if provided, otherwise there is no limit. + * If both this field and SearchRequest.num_results_per_data_store are specified, this field will + * be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer numResults; + /** * Optional. Boost specification to boost certain documents. For more information on boosting, see * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) @@ -147,6 +157,29 @@ public GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec setFilter(jav return this; } + /** + * Optional. The maximum number of results to retrieve from this data store. If not specified, it + * will use the SearchRequest.num_results_per_data_store if provided, otherwise there is no limit. + * If both this field and SearchRequest.num_results_per_data_store are specified, this field will + * be used. + * @return value or {@code null} for none + */ + public java.lang.Integer getNumResults() { + return numResults; + } + + /** + * Optional. The maximum number of results to retrieve from this data store. If not specified, it + * will use the SearchRequest.num_results_per_data_store if provided, otherwise there is no limit. + * If both this field and SearchRequest.num_results_per_data_store are specified, this field will + * be used. + * @param numResults numResults or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec setNumResults(java.lang.Integer numResults) { + this.numResults = numResults; + return this; + } + @Override public GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec set(String fieldName, Object value) { return (GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec) super.set(fieldName, value); diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngine.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngine.java index aa8750f828a..dc494f83232 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngine.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngine.java @@ -167,6 +167,13 @@ public final class GoogleCloudDiscoveryengineV1betaEngine extends com.google.api @com.google.api.client.util.Key private java.lang.String name; + /** + * Optional. Observability config for the engine. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1betaObservabilityConfig observabilityConfig; + /** * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH. * The value may be {@code null}. @@ -512,6 +519,23 @@ public GoogleCloudDiscoveryengineV1betaEngine setName(java.lang.String name) { return this; } + /** + * Optional. Observability config for the engine. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaObservabilityConfig getObservabilityConfig() { + return observabilityConfig; + } + + /** + * Optional. Observability config for the engine. + * @param observabilityConfig observabilityConfig or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngine setObservabilityConfig(GoogleCloudDiscoveryengineV1betaObservabilityConfig observabilityConfig) { + this.observabilityConfig = observabilityConfig; + return this; + } + /** * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH. * @return value or {@code null} for none diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaLicenseConfig.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaLicenseConfig.java index 70fc9a59730..d4bea00b114 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaLicenseConfig.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaLicenseConfig.java @@ -36,6 +36,21 @@ public final class GoogleCloudDiscoveryengineV1betaLicenseConfig extends com.goo @com.google.api.client.util.Key private java.lang.Boolean autoRenew; + /** + * Output only. Indication of whether the subscription is terminated earlier than the expiration + * date. This is usually terminated by pipeline once the subscription gets terminated from subsv3. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean earlyTerminated; + + /** + * Output only. The date when the subscription is terminated earlier than the expiration date. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeDate earlyTerminationDate; + /** * Optional. The planed end date. * The value may be {@code null}. @@ -117,6 +132,42 @@ public GoogleCloudDiscoveryengineV1betaLicenseConfig setAutoRenew(java.lang.Bool return this; } + /** + * Output only. Indication of whether the subscription is terminated earlier than the expiration + * date. This is usually terminated by pipeline once the subscription gets terminated from subsv3. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEarlyTerminated() { + return earlyTerminated; + } + + /** + * Output only. Indication of whether the subscription is terminated earlier than the expiration + * date. This is usually terminated by pipeline once the subscription gets terminated from subsv3. + * @param earlyTerminated earlyTerminated or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaLicenseConfig setEarlyTerminated(java.lang.Boolean earlyTerminated) { + this.earlyTerminated = earlyTerminated; + return this; + } + + /** + * Output only. The date when the subscription is terminated earlier than the expiration date. + * @return value or {@code null} for none + */ + public GoogleTypeDate getEarlyTerminationDate() { + return earlyTerminationDate; + } + + /** + * Output only. The date when the subscription is terminated earlier than the expiration date. + * @param earlyTerminationDate earlyTerminationDate or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaLicenseConfig setEarlyTerminationDate(GoogleTypeDate earlyTerminationDate) { + this.earlyTerminationDate = earlyTerminationDate; + return this; + } + /** * Optional. The planed end date. * @return value or {@code null} for none diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaObservabilityConfig.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaObservabilityConfig.java new file mode 100644 index 00000000000..ff9182f7dc0 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaObservabilityConfig.java @@ -0,0 +1,93 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Observability config for a resource. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1betaObservabilityConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean observabilityEnabled; + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean sensitiveLoggingEnabled; + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * @return value or {@code null} for none + */ + public java.lang.Boolean getObservabilityEnabled() { + return observabilityEnabled; + } + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * @param observabilityEnabled observabilityEnabled or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaObservabilityConfig setObservabilityEnabled(java.lang.Boolean observabilityEnabled) { + this.observabilityEnabled = observabilityEnabled; + return this; + } + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSensitiveLoggingEnabled() { + return sensitiveLoggingEnabled; + } + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * @param sensitiveLoggingEnabled sensitiveLoggingEnabled or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaObservabilityConfig setSensitiveLoggingEnabled(java.lang.Boolean sensitiveLoggingEnabled) { + this.sensitiveLoggingEnabled = sensitiveLoggingEnabled; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1betaObservabilityConfig set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1betaObservabilityConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1betaObservabilityConfig clone() { + return (GoogleCloudDiscoveryengineV1betaObservabilityConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig.java index 6dd42f95dfe..ff242e763e6 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig extends com.google.api.client.json.GenericJson { + /** + * Optional. Specifies the data protection policy for NotebookLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy dataProtectionPolicy; + /** * Model Armor configuration to be used for sanitizing user prompts and LLM responses. * The value may be {@code null}. @@ -36,6 +43,13 @@ public final class GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfig @com.google.api.client.util.Key private GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigModelArmorConfig modelArmorConfig; + /** + * Optional. Observability config for NotebookLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1betaObservabilityConfig observabilityConfig; + /** * Optional. Whether to disable the notebook sharing feature for the project. Default to false if * not specified. @@ -44,6 +58,23 @@ public final class GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfig @com.google.api.client.util.Key private java.lang.Boolean optOutNotebookSharing; + /** + * Optional. Specifies the data protection policy for NotebookLM. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy getDataProtectionPolicy() { + return dataProtectionPolicy; + } + + /** + * Optional. Specifies the data protection policy for NotebookLM. + * @param dataProtectionPolicy dataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig setDataProtectionPolicy(GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy dataProtectionPolicy) { + this.dataProtectionPolicy = dataProtectionPolicy; + return this; + } + /** * Model Armor configuration to be used for sanitizing user prompts and LLM responses. * @return value or {@code null} for none @@ -61,6 +92,23 @@ public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmCo return this; } + /** + * Optional. Observability config for NotebookLM. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaObservabilityConfig getObservabilityConfig() { + return observabilityConfig; + } + + /** + * Optional. Observability config for NotebookLM. + * @param observabilityConfig observabilityConfig or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig setObservabilityConfig(GoogleCloudDiscoveryengineV1betaObservabilityConfig observabilityConfig) { + this.observabilityConfig = observabilityConfig; + return this; + } + /** * Optional. Whether to disable the notebook sharing feature for the project. Default to false if * not specified. diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java new file mode 100644 index 00000000000..0c18fefdb5d --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java @@ -0,0 +1,66 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Data protection policy config for NotebookLM. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The sensitive data protection policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy; + + /** + * Optional. The sensitive data protection policy. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy getSensitiveDataProtectionPolicy() { + return sensitiveDataProtectionPolicy; + } + + /** + * Optional. The sensitive data protection policy. + * @param sensitiveDataProtectionPolicy sensitiveDataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy setSensitiveDataProtectionPolicy(GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy) { + this.sensitiveDataProtectionPolicy = sensitiveDataProtectionPolicy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java new file mode 100644 index 00000000000..560ecef05d7 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java @@ -0,0 +1,67 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data- + * protection/docs/sensitive-data-protection-overview) policy. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The Sensitive Data Protection policy resource name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** + * Optional. The Sensitive Data Protection policy resource name. + * @return value or {@code null} for none + */ + public java.lang.String getPolicy() { + return policy; + } + + /** + * Optional. The Sensitive Data Protection policy resource name. + * @param policy policy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy setPolicy(java.lang.String policy) { + this.policy = policy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaSearchRequest.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaSearchRequest.java index 89d4dc043b5..442fc4f9cb9 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaSearchRequest.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaSearchRequest.java @@ -156,6 +156,15 @@ public final class GoogleCloudDiscoveryengineV1betaSearchRequest extends com.goo @com.google.api.client.util.Key private GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec naturalLanguageQueryUnderstandingSpec; + /** + * Optional. The maximum number of results to retrieve from each data store. If not specified, it + * will use the SearchRequest.data_store_specs.num_results if provided, otherwise there is no + * limit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer numResultsPerDataStore; + /** * A 0-indexed integer that specifies the current offset (that is, starting result location, * amongst the Documents deemed by the API as relevant) in search results. This field is only @@ -747,6 +756,27 @@ public GoogleCloudDiscoveryengineV1betaSearchRequest setNaturalLanguageQueryUnde return this; } + /** + * Optional. The maximum number of results to retrieve from each data store. If not specified, it + * will use the SearchRequest.data_store_specs.num_results if provided, otherwise there is no + * limit. + * @return value or {@code null} for none + */ + public java.lang.Integer getNumResultsPerDataStore() { + return numResultsPerDataStore; + } + + /** + * Optional. The maximum number of results to retrieve from each data store. If not specified, it + * will use the SearchRequest.data_store_specs.num_results if provided, otherwise there is no + * limit. + * @param numResultsPerDataStore numResultsPerDataStore or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaSearchRequest setNumResultsPerDataStore(java.lang.Integer numResultsPerDataStore) { + this.numResultsPerDataStore = numResultsPerDataStore; + return this; + } + /** * A 0-indexed integer that specifies the current offset (that is, starting result location, * amongst the Documents deemed by the API as relevant) in search results. This field is only diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec.java index 87cce320c6f..44ec85c2880 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec.java @@ -65,6 +65,16 @@ public final class GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec ex @com.google.api.client.util.Key private java.lang.String filter; + /** + * Optional. The maximum number of results to retrieve from this data store. If not specified, it + * will use the SearchRequest.num_results_per_data_store if provided, otherwise there is no limit. + * If both this field and SearchRequest.num_results_per_data_store are specified, this field will + * be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer numResults; + /** * Optional. Boost specification to boost certain documents. For more information on boosting, see * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) @@ -147,6 +157,29 @@ public GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec setFilter(java return this; } + /** + * Optional. The maximum number of results to retrieve from this data store. If not specified, it + * will use the SearchRequest.num_results_per_data_store if provided, otherwise there is no limit. + * If both this field and SearchRequest.num_results_per_data_store are specified, this field will + * be used. + * @return value or {@code null} for none + */ + public java.lang.Integer getNumResults() { + return numResults; + } + + /** + * Optional. The maximum number of results to retrieve from this data store. If not specified, it + * will use the SearchRequest.num_results_per_data_store if provided, otherwise there is no limit. + * If both this field and SearchRequest.num_results_per_data_store are specified, this field will + * be used. + * @param numResults numResults or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec setNumResults(java.lang.Integer numResults) { + this.numResults = numResults; + return this; + } + @Override public GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec set(String fieldName, Object value) { return (GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec) super.set(fieldName, value); diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleIamV1Binding.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleIamV1Binding.java new file mode 100644 index 00000000000..622e78c6d85 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleIamV1Binding.java @@ -0,0 +1,270 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Associates `members`, or principals, with a `role`. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleIamV1Binding extends com.google.api.client.json.GenericJson { + + /** + * The condition that is associated with this binding. If the condition evaluates to `true`, then + * this binding applies to the current request. If the condition evaluates to `false`, then this + * binding does not apply to the current request. However, a different role binding might grant + * the same role to one or more of the principals in this binding. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeExpr condition; + + /** + * Specifies the principals requesting access for a Google Cloud resource. `members` can have the + * following values: * `allUsers`: A special identifier that represents anyone who is on the + * internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier + * that represents anyone who is authenticated with a Google account or a service account. Does + * not include identities that come from external identity providers (IdPs) through identity + * federation. * `user:{emailid}`: An email address that represents a specific Google account. For + * example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a + * Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * + * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a + * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes- + * service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + * `group:{emailid}`: An email address that represents a Google group. For example, + * `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis + * .com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workforce identity pool. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + * All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/work + * forcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities + * with a specific attribute value. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All identities + * in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locat + * ions/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_nu + * mber}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity + * pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/wor + * kloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a + * workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/ + * {project_number}/locations/global/workloadIdentityPools/{pool_id}`: All identities in a + * workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a user that has been recently deleted. For example, + * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to + * `user:{emailid}` and the recovered user retains the role in the binding. * + * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a service account that has been recently deleted. For example, `my-other- + * app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is + * undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account + * retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address + * (plus unique identifier) representing a Google group that has been recently deleted. For + * example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value + * reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `delete + * d:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_att + * ribute_value}`: Deleted single identity in a workforce identity pool. For example, + * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- + * subject-attribute-value`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleIamV1Policy extends com.google.api.client.json.GenericJson { + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a + * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` + * must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 + * principals; up to 250 of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 different roles to + * `user:alice@example.com`, and not to any other principal, then you can add another 1,450 + * principals to the `bindings` in the `Policy`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List+ * The value is encoded Base64 or {@code null} for none. + *
+ * + * @since 1.14 + */ + public GoogleIamV1Policy encodeEtag(byte[] etag) { + this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); + return this; + } + + /** + * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify + * an invalid value are rejected. Any operation that affects conditional role bindings must + * specify version `3`. This requirement applies to the following operations: * Getting a policy + * that includes a conditional role binding * Adding a conditional role binding to a policy * + * Changing a conditional role binding in a policy * Removing any role binding, with or without a + * condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you + * must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then + * IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the + * conditions in the version `3` policy are lost. If a policy does not include any conditions, + * operations on that policy may specify any valid version or leave the field unset. To learn + * which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @return value or {@code null} for none + */ + public java.lang.Integer getVersion() { + return version; + } + + /** + * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify + * an invalid value are rejected. Any operation that affects conditional role bindings must + * specify version `3`. This requirement applies to the following operations: * Getting a policy + * that includes a conditional role binding * Adding a conditional role binding to a policy * + * Changing a conditional role binding in a policy * Removing any role binding, with or without a + * condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you + * must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then + * IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the + * conditions in the version `3` policy are lost. If a policy does not include any conditions, + * operations on that policy may specify any valid version or leave the field unset. To learn + * which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @param version version or {@code null} for none + */ + public GoogleIamV1Policy setVersion(java.lang.Integer version) { + this.version = version; + return this; + } + + @Override + public GoogleIamV1Policy set(String fieldName, Object value) { + return (GoogleIamV1Policy) super.set(fieldName, value); + } + + @Override + public GoogleIamV1Policy clone() { + return (GoogleIamV1Policy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleIamV1SetIamPolicyRequest.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleIamV1SetIamPolicyRequest.java new file mode 100644 index 00000000000..5f51a0fded1 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleIamV1SetIamPolicyRequest.java @@ -0,0 +1,72 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Request message for `SetIamPolicy` method. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleIamV1SetIamPolicyRequest extends com.google.api.client.json.GenericJson { + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is + * limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services + * (such as Projects) might reject them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleIamV1Policy policy; + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is + * limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services + * (such as Projects) might reject them. + * @return value or {@code null} for none + */ + public GoogleIamV1Policy getPolicy() { + return policy; + } + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is + * limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services + * (such as Projects) might reject them. + * @param policy policy or {@code null} for none + */ + public GoogleIamV1SetIamPolicyRequest setPolicy(GoogleIamV1Policy policy) { + this.policy = policy; + return this; + } + + @Override + public GoogleIamV1SetIamPolicyRequest set(String fieldName, Object value) { + return (GoogleIamV1SetIamPolicyRequest) super.set(fieldName, value); + } + + @Override + public GoogleIamV1SetIamPolicyRequest clone() { + return (GoogleIamV1SetIamPolicyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleTypeExpr.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleTypeExpr.java new file mode 100644 index 00000000000..9ce8cb44279 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleTypeExpr.java @@ -0,0 +1,159 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like + * expression language. The syntax and semantics of CEL are documented at + * https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" + * description: "Determines if a summary is less than 100 chars" expression: + * "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: + * "Determines if requestor is the document owner" expression: "document.owner == + * request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine + * whether the document should be publicly visible" expression: "document.type != 'private' && + * document.type != 'internal'" Example (Data Manipulation): title: "Notification string" + * description: "Create a notification string with a timestamp." expression: "'New message received + * at ' + string(document.create_time)" The exact variables and functions that may be referenced + * within an expression are determined by the service that evaluates it. See the service + * documentation for additional information. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleTypeExpr extends com.google.api.client.json.GenericJson { + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Textual representation of an expression in Common Expression Language syntax. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expression; + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * @param description description or {@code null} for none + */ + public GoogleTypeExpr setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Textual representation of an expression in Common Expression Language syntax. + * @return value or {@code null} for none + */ + public java.lang.String getExpression() { + return expression; + } + + /** + * Textual representation of an expression in Common Expression Language syntax. + * @param expression expression or {@code null} for none + */ + public GoogleTypeExpr setExpression(java.lang.String expression) { + this.expression = expression; + return this; + } + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * @param location location or {@code null} for none + */ + public GoogleTypeExpr setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * @param title title or {@code null} for none + */ + public GoogleTypeExpr setTitle(java.lang.String title) { + this.title = title; + return this; + } + + @Override + public GoogleTypeExpr set(String fieldName, Object value) { + return (GoogleTypeExpr) super.set(fieldName, value); + } + + @Override + public GoogleTypeExpr clone() { + return (GoogleTypeExpr) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/pom.xml b/clients/google-api-services-discoveryengine/v1/2.0.0/pom.xml index 74cdee95568..85a3d4f6ffb 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/pom.xml +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@{@link CompleteExternalIdentities#initialize(com.google.api.client.google + * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
+ * + * @param parent Required. The parent location resource name, such as `projects/locations/global`. + * @since 1.13 + */ + protected CompleteExternalIdentities(java.lang.String parent) { + super(DiscoveryEngine.this, "GET", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaCompleteExternalIdentitiesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public CompleteExternalIdentities set$Xgafv(java.lang.String $Xgafv) { + return (CompleteExternalIdentities) super.set$Xgafv($Xgafv); + } + + @Override + public CompleteExternalIdentities setAccessToken(java.lang.String accessToken) { + return (CompleteExternalIdentities) super.setAccessToken(accessToken); + } + + @Override + public CompleteExternalIdentities setAlt(java.lang.String alt) { + return (CompleteExternalIdentities) super.setAlt(alt); + } + + @Override + public CompleteExternalIdentities setCallback(java.lang.String callback) { + return (CompleteExternalIdentities) super.setCallback(callback); + } + + @Override + public CompleteExternalIdentities setFields(java.lang.String fields) { + return (CompleteExternalIdentities) super.setFields(fields); + } + + @Override + public CompleteExternalIdentities setKey(java.lang.String key) { + return (CompleteExternalIdentities) super.setKey(key); + } + + @Override + public CompleteExternalIdentities setOauthToken(java.lang.String oauthToken) { + return (CompleteExternalIdentities) super.setOauthToken(oauthToken); + } + + @Override + public CompleteExternalIdentities setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CompleteExternalIdentities) super.setPrettyPrint(prettyPrint); + } + + @Override + public CompleteExternalIdentities setQuotaUser(java.lang.String quotaUser) { + return (CompleteExternalIdentities) super.setQuotaUser(quotaUser); + } + + @Override + public CompleteExternalIdentities setUploadType(java.lang.String uploadType) { + return (CompleteExternalIdentities) super.setUploadType(uploadType); + } + + @Override + public CompleteExternalIdentities setUploadProtocol(java.lang.String uploadProtocol) { + return (CompleteExternalIdentities) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent location resource name, such as `projects/locations/global`. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent location resource name, such as `projects/locations/global`. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent location resource name, such as `projects/locations/global`. */ + public CompleteExternalIdentities setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The type of entities to fetch. If not set, all entity types will be returned. + */ + @com.google.api.client.util.Key + private java.lang.String entityTypeFilter; + + /** Optional. The type of entities to fetch. If not set, all entity types will be returned. + */ + public java.lang.String getEntityTypeFilter() { + return entityTypeFilter; + } + + /** + * Optional. The type of entities to fetch. If not set, all entity types will be returned. + */ + public CompleteExternalIdentities setEntityTypeFilter(java.lang.String entityTypeFilter) { + this.entityTypeFilter = entityTypeFilter; + return this; + } + + /** + * Optional. The maximum number of user and group results to return. The service may return + * fewer than this value. If unspecified, at most 6 results will be returned. The limit is + * distributed as evenly as possible across users and groups. For example, if + * max_suggestions is 7, the service may return 4 users and 3 groups. If there are fewer + * suggestions of one type than half the limit, the other type may return more suggestions + * up to the max_suggestions limit. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxSuggestions; + + /** Optional. The maximum number of user and group results to return. The service may return fewer than + this value. If unspecified, at most 6 results will be returned. The limit is distributed as evenly + as possible across users and groups. For example, if max_suggestions is 7, the service may return 4 + users and 3 groups. If there are fewer suggestions of one type than half the limit, the other type + may return more suggestions up to the max_suggestions limit. + */ + public java.lang.Integer getMaxSuggestions() { + return maxSuggestions; + } + + /** + * Optional. The maximum number of user and group results to return. The service may return + * fewer than this value. If unspecified, at most 6 results will be returned. The limit is + * distributed as evenly as possible across users and groups. For example, if + * max_suggestions is 7, the service may return 4 users and 3 groups. If there are fewer + * suggestions of one type than half the limit, the other type may return more suggestions + * up to the max_suggestions limit. + */ + public CompleteExternalIdentities setMaxSuggestions(java.lang.Integer maxSuggestions) { + this.maxSuggestions = maxSuggestions; + return this; + } + + /** + * Required. The prefix to search for. For users, this prefix is matched against the + * `primary_email`. For groups, this prefix is matched against the `display_name`. The + * matching is case-insensitive. + */ + @com.google.api.client.util.Key + private java.lang.String prefixQuery; + + /** Required. The prefix to search for. For users, this prefix is matched against the `primary_email`. + For groups, this prefix is matched against the `display_name`. The matching is case-insensitive. + */ + public java.lang.String getPrefixQuery() { + return prefixQuery; + } + + /** + * Required. The prefix to search for. For users, this prefix is matched against the + * `primary_email`. For groups, this prefix is matched against the `display_name`. The + * matching is case-insensitive. + */ + public CompleteExternalIdentities setPrefixQuery(java.lang.String prefixQuery) { + this.prefixQuery = prefixQuery; + return this; + } + + /** + * Optional. Whether to use scim identities for external identity completion. If false, we + * will call the Microsoft graph API to fetch the external identities. + */ + @com.google.api.client.util.Key + private java.lang.Boolean useScimIdentities; + + /** Optional. Whether to use scim identities for external identity completion. If false, we will call + the Microsoft graph API to fetch the external identities. + */ + public java.lang.Boolean getUseScimIdentities() { + return useScimIdentities; + } + + /** + * Optional. Whether to use scim identities for external identity completion. If false, we + * will call the Microsoft graph API to fetch the external identities. + */ + public CompleteExternalIdentities setUseScimIdentities(java.lang.Boolean useScimIdentities) { + this.useScimIdentities = useScimIdentities; + return this; + } + + @Override + public CompleteExternalIdentities set(String parameterName, Object value) { + return (CompleteExternalIdentities) super.set(parameterName, value); + } + } /** * Estimates the data size to be used by a customer. * @@ -6207,8 +6451,8 @@ public GetConnectorSecret set(String parameterName, Object value) { * optional parameters, call the {@link StartConnectorRun#execute()} method to invoke the remote * operation. * - * @param parent Required. Connector name of the form projects/{project}/locations/{location}/collections/ - * {collection_id}/dataConnector + * @param parent Required. Connector name of the form + * `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector` * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaStartConnectorRunRequest} * @return the request */ @@ -6238,8 +6482,8 @@ public class StartConnectorRun extends DiscoveryEngineRequest{@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String resource) { + super(DiscoveryEngine.this, "GET", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. + * Requests for policies with any conditional role bindings must specify version 3. + * Policies with no conditional role bindings may specify any valid value or leave the + * field unset. The policy in the response might use the policy version that you + * specified, or it might use a lower policy version. For example, if you specify + * version 3, but the policy has no conditional role bindings, the response uses version + * 1. To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. + * Requests for policies with any conditional role bindings must specify version 3. + * Policies with no conditional role bindings may specify any valid value or leave the + * field unset. The policy in the response might use the policy version that you + * specified, or it might use a lower policy version. For example, if you specify + * version 3, but the policy has no conditional role bindings, the response uses version + * 1. To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } /** * Get Workspace settings for the end user. * @@ -25530,7 +25975,7 @@ public Patch set(String parameterName, Object value) { } } /** - * Pauses the training of an existing engine. Only applicable if SolutionType is + * Pauses the training of an existing Engine. Only applicable if SolutionType is * SOLUTION_TYPE_RECOMMENDATION. * * Create a request for the method "engines.pause". @@ -25557,7 +26002,7 @@ public class Pause extends DiscoveryEngineRequest{@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleIamV1SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.discoveryengine.v1alpha.model.GoogleIamV1SetIamPolicyRequest content) { + super(DiscoveryEngine.this, "POST", REST_PATH, content, com.google.api.services.discoveryengine.v1alpha.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Tunes an existing Engine. Only applicable if SolutionType is SOLUTION_TYPE_RECOMMENDATION. * * Create a request for the method "engines.tune". * @@ -25840,7 +26439,7 @@ public class Tune extends DiscoveryEngineRequest{@link ListAvailableAgentViews#initialize(com.google.api.client.googleapi - * s.services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.
- * - * @param parent Required. The parent resource name. Format: `projects/{project}/locations/{location}/collections/{co - * llection}/engines/{engine}/assistants/{assistant}` - * @since 1.13 - */ - protected ListAvailableAgentViews(java.lang.String parent) { - super(DiscoveryEngine.this, "POST", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+$"); - } - } - - @Override - public ListAvailableAgentViews set$Xgafv(java.lang.String $Xgafv) { - return (ListAvailableAgentViews) super.set$Xgafv($Xgafv); - } - - @Override - public ListAvailableAgentViews setAccessToken(java.lang.String accessToken) { - return (ListAvailableAgentViews) super.setAccessToken(accessToken); - } - - @Override - public ListAvailableAgentViews setAlt(java.lang.String alt) { - return (ListAvailableAgentViews) super.setAlt(alt); - } - - @Override - public ListAvailableAgentViews setCallback(java.lang.String callback) { - return (ListAvailableAgentViews) super.setCallback(callback); - } - - @Override - public ListAvailableAgentViews setFields(java.lang.String fields) { - return (ListAvailableAgentViews) super.setFields(fields); - } - - @Override - public ListAvailableAgentViews setKey(java.lang.String key) { - return (ListAvailableAgentViews) super.setKey(key); - } - - @Override - public ListAvailableAgentViews setOauthToken(java.lang.String oauthToken) { - return (ListAvailableAgentViews) super.setOauthToken(oauthToken); - } - - @Override - public ListAvailableAgentViews setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListAvailableAgentViews) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListAvailableAgentViews setQuotaUser(java.lang.String quotaUser) { - return (ListAvailableAgentViews) super.setQuotaUser(quotaUser); - } - - @Override - public ListAvailableAgentViews setUploadType(java.lang.String uploadType) { - return (ListAvailableAgentViews) super.setUploadType(uploadType); - } - - @Override - public ListAvailableAgentViews setUploadProtocol(java.lang.String uploadProtocol) { - return (ListAvailableAgentViews) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The parent resource name. Format: `projects/{project}/locations/{location - * }/collections/{collection}/engines/{engine}/assistants/{assistant}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The parent resource name. Format: `projects/{project}/locations/{location}/collections/{c - ollection}/engines/{engine}/assistants/{assistant}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The parent resource name. Format: `projects/{project}/locations/{location - * }/collections/{collection}/engines/{engine}/assistants/{assistant}` - */ - public ListAvailableAgentViews setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. Indicates whether to consider if the caller is an admin. If set, and the - * caller is an admin, the response will consider admin-only permissions. Otherwise, a - * caller with admin permissions will get a response as an unprivileged user. - */ - @com.google.api.client.util.Key - private java.lang.Boolean adminView; - - /** Optional. Indicates whether to consider if the caller is an admin. If set, and the caller is an - admin, the response will consider admin-only permissions. Otherwise, a caller with admin - permissions will get a response as an unprivileged user. - */ - public java.lang.Boolean getAdminView() { - return adminView; - } - - /** - * Optional. Indicates whether to consider if the caller is an admin. If set, and the - * caller is an admin, the response will consider admin-only permissions. Otherwise, a - * caller with admin permissions will get a response as an unprivileged user. - */ - public ListAvailableAgentViews setAdminView(java.lang.Boolean adminView) { - this.adminView = adminView; - return this; - } - - /** Optional. The origin of the Agent. */ - @com.google.api.client.util.Key - private java.lang.String agentOrigin; - - /** Optional. The origin of the Agent. - */ - public java.lang.String getAgentOrigin() { - return agentOrigin; - } - - /** Optional. The origin of the Agent. */ - public ListAvailableAgentViews setAgentOrigin(java.lang.String agentOrigin) { - this.agentOrigin = agentOrigin; - return this; - } - - /** - * Optional. The filter syntax consists of an expression language for constructing a - * predicate from one or more fields of the files being filtered. Filter expression is - * case-sensitive. Allowed fields are: * `display_name` * `state` Some examples of - * filters would be: * `display_name = 'agent_1'` * `display_name = 'agent_1' AND - * state = ENABLED` For a full description of the filter format, please see - * https://google.aip.dev/160. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. The filter syntax consists of an expression language for constructing a predicate from - one or more fields of the files being filtered. Filter expression is case-sensitive. Allowed fields - are: * `display_name` * `state` Some examples of filters would be: * `display_name = 'agent_1'` * - `display_name = 'agent_1' AND state = ENABLED` For a full description of the filter format, please - see https://google.aip.dev/160. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. The filter syntax consists of an expression language for constructing a - * predicate from one or more fields of the files being filtered. Filter expression is - * case-sensitive. Allowed fields are: * `display_name` * `state` Some examples of - * filters would be: * `display_name = 'agent_1'` * `display_name = 'agent_1' AND - * state = ENABLED` For a full description of the filter format, please see - * https://google.aip.dev/160. - */ - public ListAvailableAgentViews setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. The UI language currently shown to the user. Specifying this field - * request that the texts in the AgentViews in the response should be translated to - * this language. - */ - @com.google.api.client.util.Key - private java.lang.String languageCode; - - /** Optional. The UI language currently shown to the user. Specifying this field request that the texts - in the AgentViews in the response should be translated to this language. - */ - public java.lang.String getLanguageCode() { - return languageCode; - } - - /** - * Optional. The UI language currently shown to the user. Specifying this field - * request that the texts in the AgentViews in the response should be translated to - * this language. - */ - public ListAvailableAgentViews setLanguageCode(java.lang.String languageCode) { - this.languageCode = languageCode; - return this; - } - - /** Optional. The maximum number of suggested prompts to return per agent. */ - @com.google.api.client.util.Key - private java.lang.Integer maxSuggestedPrompts; - - /** Optional. The maximum number of suggested prompts to return per agent. - */ - public java.lang.Integer getMaxSuggestedPrompts() { - return maxSuggestedPrompts; - } - - /** Optional. The maximum number of suggested prompts to return per agent. */ - public ListAvailableAgentViews setMaxSuggestedPrompts(java.lang.Integer maxSuggestedPrompts) { - this.maxSuggestedPrompts = maxSuggestedPrompts; - return this; - } - - /** - * Optional. Maximum number of AgentViews to return. If unspecified, defaults to 100. - * The maximum allowed value is 1000; anything above that will be coerced down to - * 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. Maximum number of AgentViews to return. If unspecified, defaults to 100. The maximum - allowed value is 1000; anything above that will be coerced down to 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. Maximum number of AgentViews to return. If unspecified, defaults to 100. - * The maximum allowed value is 1000; anything above that will be coerced down to - * 1000. - */ - public ListAvailableAgentViews setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. A page token ListAvailableAgentViewsResponse.next_page_token, received - * from a previous AgentService.ListAvailableAgentViews call. Provide this to retrieve - * the subsequent page. When paginating, all other parameters provided to - * ListAvailableAgentViews must match the call that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. A page token ListAvailableAgentViewsResponse.next_page_token, received from a previous - AgentService.ListAvailableAgentViews call. Provide this to retrieve the subsequent page. When - paginating, all other parameters provided to ListAvailableAgentViews must match the call that - provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. A page token ListAvailableAgentViewsResponse.next_page_token, received - * from a previous AgentService.ListAvailableAgentViews call. Provide this to retrieve - * the subsequent page. When paginating, all other parameters provided to - * ListAvailableAgentViews must match the call that provided the page token. - */ - public ListAvailableAgentViews setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Optional. The field to sort by. Can have the following values: - display-name: The - * display name of the agent. - description: The description of the agent. - create- - * time: The creation time of the agent. - state: The state of the agent. - */ - @com.google.api.client.util.Key - private java.lang.String sortBy; - - /** Optional. The field to sort by. Can have the following values: - display-name: The display name of - the agent. - description: The description of the agent. - create-time: The creation time of the - agent. - state: The state of the agent. - */ - public java.lang.String getSortBy() { - return sortBy; - } - - /** - * Optional. The field to sort by. Can have the following values: - display-name: The - * display name of the agent. - description: The description of the agent. - create- - * time: The creation time of the agent. - state: The state of the agent. - */ - public ListAvailableAgentViews setSortBy(java.lang.String sortBy) { - this.sortBy = sortBy; - return this; - } - - @Override - public ListAvailableAgentViews set(String parameterName, Object value) { - return (ListAvailableAgentViews) super.set(parameterName, value); - } - } /** * Updates an Assistant * @@ -28073,338 +28336,6 @@ public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } - /** - * Disables an Agent. The `state` of the Agent becomes `DISABLED`. Can be called on an Agent in the - * state `ENABLED` or`SUSPENDED`, otherwise it returns an error. - * - * Create a request for the method "agents.disableAgent". - * - * This request holds the parameters needed by the discoveryengine server. After setting any - * optional parameters, call the {@link DisableAgent#execute()} method to invoke the remote - * operation. - * - * @param name Required. The name of the Agent to disable. Format: `projects/{project}/locations/{location}/collect - * ions/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` - * @return the request - */ - public DisableAgent disableAgent(java.lang.String name) throws java.io.IOException { - DisableAgent result = new DisableAgent(name); - initialize(result); - return result; - } - - public class DisableAgent extends DiscoveryEngineRequest{@link - * DisableAgent#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the Agent to disable. Format: `projects/{project}/locations/{location}/collect - * ions/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` - * @since 1.13 - */ - protected DisableAgent(java.lang.String name) { - super(DiscoveryEngine.this, "POST", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaAgent.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - } - } - - @Override - public DisableAgent set$Xgafv(java.lang.String $Xgafv) { - return (DisableAgent) super.set$Xgafv($Xgafv); - } - - @Override - public DisableAgent setAccessToken(java.lang.String accessToken) { - return (DisableAgent) super.setAccessToken(accessToken); - } - - @Override - public DisableAgent setAlt(java.lang.String alt) { - return (DisableAgent) super.setAlt(alt); - } - - @Override - public DisableAgent setCallback(java.lang.String callback) { - return (DisableAgent) super.setCallback(callback); - } - - @Override - public DisableAgent setFields(java.lang.String fields) { - return (DisableAgent) super.setFields(fields); - } - - @Override - public DisableAgent setKey(java.lang.String key) { - return (DisableAgent) super.setKey(key); - } - - @Override - public DisableAgent setOauthToken(java.lang.String oauthToken) { - return (DisableAgent) super.setOauthToken(oauthToken); - } - - @Override - public DisableAgent setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DisableAgent) super.setPrettyPrint(prettyPrint); - } - - @Override - public DisableAgent setQuotaUser(java.lang.String quotaUser) { - return (DisableAgent) super.setQuotaUser(quotaUser); - } - - @Override - public DisableAgent setUploadType(java.lang.String uploadType) { - return (DisableAgent) super.setUploadType(uploadType); - } - - @Override - public DisableAgent setUploadProtocol(java.lang.String uploadProtocol) { - return (DisableAgent) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the Agent to disable. Format: `projects/{project}/locations - * /{location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agen - * ts/{agent}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the Agent to disable. Format: `projects/{project}/locations/{location}/collec - tions/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the Agent to disable. Format: `projects/{project}/locations - * /{location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agen - * ts/{agent}` - */ - public DisableAgent setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. The Revision ID of the Agent to disable. If not specified, the latest - * revision will be disabled. - */ - @com.google.api.client.util.Key - private java.lang.String revisionId; - - /** Optional. The Revision ID of the Agent to disable. If not specified, the latest revision will be - disabled. - */ - public java.lang.String getRevisionId() { - return revisionId; - } - - /** - * Optional. The Revision ID of the Agent to disable. If not specified, the latest - * revision will be disabled. - */ - public DisableAgent setRevisionId(java.lang.String revisionId) { - this.revisionId = revisionId; - return this; - } - - @Override - public DisableAgent set(String parameterName, Object value) { - return (DisableAgent) super.set(parameterName, value); - } - } - /** - * Enables an Agent. The `state` of the Agent becomes `ENABLED`. Can be called on an Agent in the - * state `DISABLED` or 'SUSPENDED', otherwise it returns an error. - * - * Create a request for the method "agents.enableAgent". - * - * This request holds the parameters needed by the discoveryengine server. After setting any - * optional parameters, call the {@link EnableAgent#execute()} method to invoke the remote - * operation. - * - * @param name Required. The name of the Agent to enable. Format: `projects/{project}/locations/{location}/collecti - * ons/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` - * @return the request - */ - public EnableAgent enableAgent(java.lang.String name) throws java.io.IOException { - EnableAgent result = new EnableAgent(name); - initialize(result); - return result; - } - - public class EnableAgent extends DiscoveryEngineRequest{@link - * EnableAgent#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the Agent to enable. Format: `projects/{project}/locations/{location}/collecti - * ons/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` - * @since 1.13 - */ - protected EnableAgent(java.lang.String name) { - super(DiscoveryEngine.this, "POST", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaAgent.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - } - } - - @Override - public EnableAgent set$Xgafv(java.lang.String $Xgafv) { - return (EnableAgent) super.set$Xgafv($Xgafv); - } - - @Override - public EnableAgent setAccessToken(java.lang.String accessToken) { - return (EnableAgent) super.setAccessToken(accessToken); - } - - @Override - public EnableAgent setAlt(java.lang.String alt) { - return (EnableAgent) super.setAlt(alt); - } - - @Override - public EnableAgent setCallback(java.lang.String callback) { - return (EnableAgent) super.setCallback(callback); - } - - @Override - public EnableAgent setFields(java.lang.String fields) { - return (EnableAgent) super.setFields(fields); - } - - @Override - public EnableAgent setKey(java.lang.String key) { - return (EnableAgent) super.setKey(key); - } - - @Override - public EnableAgent setOauthToken(java.lang.String oauthToken) { - return (EnableAgent) super.setOauthToken(oauthToken); - } - - @Override - public EnableAgent setPrettyPrint(java.lang.Boolean prettyPrint) { - return (EnableAgent) super.setPrettyPrint(prettyPrint); - } - - @Override - public EnableAgent setQuotaUser(java.lang.String quotaUser) { - return (EnableAgent) super.setQuotaUser(quotaUser); - } - - @Override - public EnableAgent setUploadType(java.lang.String uploadType) { - return (EnableAgent) super.setUploadType(uploadType); - } - - @Override - public EnableAgent setUploadProtocol(java.lang.String uploadProtocol) { - return (EnableAgent) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the Agent to enable. Format: `projects/{project}/locations/ - * {location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agent - * s/{agent}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the Agent to enable. Format: `projects/{project}/locations/{location}/collect - ions/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the Agent to enable. Format: `projects/{project}/locations/ - * {location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agent - * s/{agent}` - */ - public EnableAgent setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. The Revision ID of the Agent to enable. If not specified, the latest - * revision will be enabled. - */ - @com.google.api.client.util.Key - private java.lang.String revisionId; - - /** Optional. The Revision ID of the Agent to enable. If not specified, the latest revision will be - enabled. - */ - public java.lang.String getRevisionId() { - return revisionId; - } - - /** - * Optional. The Revision ID of the Agent to enable. If not specified, the latest - * revision will be enabled. - */ - public EnableAgent setRevisionId(java.lang.String revisionId) { - this.revisionId = revisionId; - return this; - } - - @Override - public EnableAgent set(String parameterName, Object value) { - return (EnableAgent) super.set(parameterName, value); - } - } /** * Gets an Agent. * @@ -28554,429 +28485,6 @@ public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } - /** - * Returns a AgentView for a given Agent, which contains additional information about the Agent. - * - * Create a request for the method "agents.getAgentView". - * - * This request holds the parameters needed by the discoveryengine server. After setting any - * optional parameters, call the {@link GetAgentView#execute()} method to invoke the remote - * operation. - * - * @param name Required. The name of the Agent to get. Format: `projects/{project}/locations/{location}/collections - * /{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` - * @return the request - */ - public GetAgentView getAgentView(java.lang.String name) throws java.io.IOException { - GetAgentView result = new GetAgentView(name); - initialize(result); - return result; - } - - public class GetAgentView extends DiscoveryEngineRequest{@link - * GetAgentView#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the Agent to get. Format: `projects/{project}/locations/{location}/collections - * /{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` - * @since 1.13 - */ - protected GetAgentView(java.lang.String name) { - super(DiscoveryEngine.this, "GET", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetAgentView set$Xgafv(java.lang.String $Xgafv) { - return (GetAgentView) super.set$Xgafv($Xgafv); - } - - @Override - public GetAgentView setAccessToken(java.lang.String accessToken) { - return (GetAgentView) super.setAccessToken(accessToken); - } - - @Override - public GetAgentView setAlt(java.lang.String alt) { - return (GetAgentView) super.setAlt(alt); - } - - @Override - public GetAgentView setCallback(java.lang.String callback) { - return (GetAgentView) super.setCallback(callback); - } - - @Override - public GetAgentView setFields(java.lang.String fields) { - return (GetAgentView) super.setFields(fields); - } - - @Override - public GetAgentView setKey(java.lang.String key) { - return (GetAgentView) super.setKey(key); - } - - @Override - public GetAgentView setOauthToken(java.lang.String oauthToken) { - return (GetAgentView) super.setOauthToken(oauthToken); - } - - @Override - public GetAgentView setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetAgentView) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetAgentView setQuotaUser(java.lang.String quotaUser) { - return (GetAgentView) super.setQuotaUser(quotaUser); - } - - @Override - public GetAgentView setUploadType(java.lang.String uploadType) { - return (GetAgentView) super.setUploadType(uploadType); - } - - @Override - public GetAgentView setUploadProtocol(java.lang.String uploadProtocol) { - return (GetAgentView) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the Agent to get. Format: `projects/{project}/locations/{lo - * cation}/collections/{collection}/engines/{engine}/assistants/{assistant}/agents/{ - * agent}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the Agent to get. Format: `projects/{project}/locations/{location}/collection - s/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the Agent to get. Format: `projects/{project}/locations/{lo - * cation}/collections/{collection}/engines/{engine}/assistants/{assistant}/agents/{ - * agent}` - */ - public GetAgentView setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. Indicates whether to consider if the caller is an admin. If set, and - * the caller is an admin, the response will consider admin-only permissions. - * Otherwise, a caller with admin permissions will get a response as an unprivileged - * user. - */ - @com.google.api.client.util.Key - private java.lang.Boolean adminView; - - /** Optional. Indicates whether to consider if the caller is an admin. If set, and the caller is an - admin, the response will consider admin-only permissions. Otherwise, a caller with admin - permissions will get a response as an unprivileged user. - */ - public java.lang.Boolean getAdminView() { - return adminView; - } - - /** - * Optional. Indicates whether to consider if the caller is an admin. If set, and - * the caller is an admin, the response will consider admin-only permissions. - * Otherwise, a caller with admin permissions will get a response as an unprivileged - * user. - */ - public GetAgentView setAdminView(java.lang.Boolean adminView) { - this.adminView = adminView; - return this; - } - - /** - * Optional. The UI language currently shown to the user. Specifying this field - * request that the texts in the AgentView in the response should be translated to - * this language. - */ - @com.google.api.client.util.Key - private java.lang.String languageCode; - - /** Optional. The UI language currently shown to the user. Specifying this field request that the texts - in the AgentView in the response should be translated to this language. - */ - public java.lang.String getLanguageCode() { - return languageCode; - } - - /** - * Optional. The UI language currently shown to the user. Specifying this field - * request that the texts in the AgentView in the response should be translated to - * this language. - */ - public GetAgentView setLanguageCode(java.lang.String languageCode) { - this.languageCode = languageCode; - return this; - } - - /** Optional. The maximum number of suggested prompts to return per agent. */ - @com.google.api.client.util.Key - private java.lang.Integer maxSuggestedPrompts; - - /** Optional. The maximum number of suggested prompts to return per agent. - */ - public java.lang.Integer getMaxSuggestedPrompts() { - return maxSuggestedPrompts; - } - - /** Optional. The maximum number of suggested prompts to return per agent. */ - public GetAgentView setMaxSuggestedPrompts(java.lang.Integer maxSuggestedPrompts) { - this.maxSuggestedPrompts = maxSuggestedPrompts; - return this; - } - - @Override - public GetAgentView set(String parameterName, Object value) { - return (GetAgentView) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for an agent resource. A `NOT_FOUND` error is returned if the - * resource does not exist. An empty policy is returned if the resource exists but does not have a - * policy set on it. - * - * Create a request for the method "agents.getIamPolicy". - * - * This request holds the parameters needed by the discoveryengine server. After setting any - * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote - * operation. - * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends DiscoveryEngineRequest{@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String resource) { - super(DiscoveryEngine.this, "GET", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate - * value for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate - * value for this field. - */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - } - this.resource = resource; - return this; - } - - /** - * Optional. The maximum policy version that will be used to format the policy. - * Valid values are 0, 1, and 3. Requests specifying an invalid value will be - * rejected. Requests for policies with any conditional role bindings must specify - * version 3. Policies with no conditional role bindings may specify any valid value - * or leave the field unset. The policy in the response might use the policy version - * that you specified, or it might use a lower policy version. For example, if you - * specify version 3, but the policy has no conditional role bindings, the response - * uses version 1. To learn which resources support conditions in their IAM - * policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, - and 3. Requests specifying an invalid value will be rejected. Requests for policies with any - conditional role bindings must specify version 3. Policies with no conditional role bindings may - specify any valid value or leave the field unset. The policy in the response might use the policy - version that you specified, or it might use a lower policy version. For example, if you specify - version 3, but the policy has no conditional role bindings, the response uses version 1. To learn - which resources support conditions in their IAM policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** - * Optional. The maximum policy version that will be used to format the policy. - * Valid values are 0, 1, and 3. Requests specifying an invalid value will be - * rejected. Requests for policies with any conditional role bindings must specify - * version 3. Policies with no conditional role bindings may specify any valid value - * or leave the field unset. The policy in the response might use the policy version - * that you specified, or it might use a lower policy version. For example, if you - * specify version 3, but the policy has no conditional role bindings, the response - * uses version 1. To learn which resources support conditions in their IAM - * policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } /** * Lists all Agents under an Assistant which were created by the caller. * @@ -29364,323 +28872,6 @@ public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } - /** - * Sets the access control policy for an agent resource. A `NOT_FOUND` error is returned if the - * resource does not exist. Policy can only contain `roles/discoveryengine.agentUser`, - * `roles/discoveryengine.agentViewer` and `roles/discoveryengine.agentEditor` roles. - * - * Create a request for the method "agents.setIamPolicy". - * - * This request holds the parameters needed by the discoveryengine server. After setting any - * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote - * operation. - * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleIamV1SetIamPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.discoveryengine.v1alpha.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends DiscoveryEngineRequest{@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleIamV1SetIamPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.discoveryengine.v1alpha.model.GoogleIamV1SetIamPolicyRequest content) { - super(DiscoveryEngine.this, "POST", REST_PATH, content, com.google.api.services.discoveryengine.v1alpha.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate - * value for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate - * value for this field. - */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Suspends an Agent. It is still available for viewing but not for use. The `state` of the Agent - * becomes `SUSPENDED`. Can be called on an Agent in the state `ENABLED`, otherwise it returns an - * error. - * - * Create a request for the method "agents.suspendAgent". - * - * This request holds the parameters needed by the discoveryengine server. After setting any - * optional parameters, call the {@link SuspendAgent#execute()} method to invoke the remote - * operation. - * - * @param name Required. The name of the Agent to suspend. Format: `projects/{project}/locations/{location}/collect - * ions/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` - * @return the request - */ - public SuspendAgent suspendAgent(java.lang.String name) throws java.io.IOException { - SuspendAgent result = new SuspendAgent(name); - initialize(result); - return result; - } - - public class SuspendAgent extends DiscoveryEngineRequest{@link - * SuspendAgent#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the Agent to suspend. Format: `projects/{project}/locations/{location}/collect - * ions/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` - * @since 1.13 - */ - protected SuspendAgent(java.lang.String name) { - super(DiscoveryEngine.this, "POST", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaAgent.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - } - } - - @Override - public SuspendAgent set$Xgafv(java.lang.String $Xgafv) { - return (SuspendAgent) super.set$Xgafv($Xgafv); - } - - @Override - public SuspendAgent setAccessToken(java.lang.String accessToken) { - return (SuspendAgent) super.setAccessToken(accessToken); - } - - @Override - public SuspendAgent setAlt(java.lang.String alt) { - return (SuspendAgent) super.setAlt(alt); - } - - @Override - public SuspendAgent setCallback(java.lang.String callback) { - return (SuspendAgent) super.setCallback(callback); - } - - @Override - public SuspendAgent setFields(java.lang.String fields) { - return (SuspendAgent) super.setFields(fields); - } - - @Override - public SuspendAgent setKey(java.lang.String key) { - return (SuspendAgent) super.setKey(key); - } - - @Override - public SuspendAgent setOauthToken(java.lang.String oauthToken) { - return (SuspendAgent) super.setOauthToken(oauthToken); - } - - @Override - public SuspendAgent setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SuspendAgent) super.setPrettyPrint(prettyPrint); - } - - @Override - public SuspendAgent setQuotaUser(java.lang.String quotaUser) { - return (SuspendAgent) super.setQuotaUser(quotaUser); - } - - @Override - public SuspendAgent setUploadType(java.lang.String uploadType) { - return (SuspendAgent) super.setUploadType(uploadType); - } - - @Override - public SuspendAgent setUploadProtocol(java.lang.String uploadProtocol) { - return (SuspendAgent) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the Agent to suspend. Format: `projects/{project}/locations - * /{location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agen - * ts/{agent}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the Agent to suspend. Format: `projects/{project}/locations/{location}/collec - tions/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the Agent to suspend. Format: `projects/{project}/locations - * /{location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agen - * ts/{agent}` - */ - public SuspendAgent setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Required. The reason for suspending the Agent. This will be shown to the users of - * the Agent. - */ - @com.google.api.client.util.Key - private java.lang.String suspensionReason; - - /** Required. The reason for suspending the Agent. This will be shown to the users of the Agent. - */ - public java.lang.String getSuspensionReason() { - return suspensionReason; - } - - /** - * Required. The reason for suspending the Agent. This will be shown to the users of - * the Agent. - */ - public SuspendAgent setSuspensionReason(java.lang.String suspensionReason) { - this.suspensionReason = suspensionReason; - return this; - } - - @Override - public SuspendAgent set(String parameterName, Object value) { - return (SuspendAgent) super.set(parameterName, value); - } - } /** * An accessor for creating requests from the Files collection. @@ -63345,8 +62536,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1ObservabilityConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean observabilityEnabled; + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean sensitiveLoggingEnabled; + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * @return value or {@code null} for none + */ + public java.lang.Boolean getObservabilityEnabled() { + return observabilityEnabled; + } + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * @param observabilityEnabled observabilityEnabled or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ObservabilityConfig setObservabilityEnabled(java.lang.Boolean observabilityEnabled) { + this.observabilityEnabled = observabilityEnabled; + return this; + } + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSensitiveLoggingEnabled() { + return sensitiveLoggingEnabled; + } + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * @param sensitiveLoggingEnabled sensitiveLoggingEnabled or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ObservabilityConfig setSensitiveLoggingEnabled(java.lang.Boolean sensitiveLoggingEnabled) { + this.sensitiveLoggingEnabled = sensitiveLoggingEnabled; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1ObservabilityConfig set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1ObservabilityConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1ObservabilityConfig clone() { + return (GoogleCloudDiscoveryengineV1ObservabilityConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig.java index 9cc5bbcc630..ddea9a7bd8d 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig extends com.google.api.client.json.GenericJson { + /** + * Optional. Specifies the data protection policy for NotebookLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy dataProtectionPolicy; + /** * Model Armor configuration to be used for sanitizing user prompts and LLM responses. * The value may be {@code null}. @@ -36,6 +43,13 @@ public final class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNote @com.google.api.client.util.Key private GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigModelArmorConfig modelArmorConfig; + /** + * Optional. Observability config for NotebookLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1ObservabilityConfig observabilityConfig; + /** * Optional. Whether to disable the notebook sharing feature for the project. Default to false if * not specified. @@ -44,6 +58,23 @@ public final class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNote @com.google.api.client.util.Key private java.lang.Boolean optOutNotebookSharing; + /** + * Optional. Specifies the data protection policy for NotebookLM. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy getDataProtectionPolicy() { + return dataProtectionPolicy; + } + + /** + * Optional. Specifies the data protection policy for NotebookLM. + * @param dataProtectionPolicy dataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig setDataProtectionPolicy(GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy dataProtectionPolicy) { + this.dataProtectionPolicy = dataProtectionPolicy; + return this; + } + /** * Model Armor configuration to be used for sanitizing user prompts and LLM responses. * @return value or {@code null} for none @@ -61,6 +92,23 @@ public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig return this; } + /** + * Optional. Observability config for NotebookLM. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ObservabilityConfig getObservabilityConfig() { + return observabilityConfig; + } + + /** + * Optional. Observability config for NotebookLM. + * @param observabilityConfig observabilityConfig or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig setObservabilityConfig(GoogleCloudDiscoveryengineV1ObservabilityConfig observabilityConfig) { + this.observabilityConfig = observabilityConfig; + return this; + } + /** * Optional. Whether to disable the notebook sharing feature for the project. Default to false if * not specified. diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java new file mode 100644 index 00000000000..d417dd3320d --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java @@ -0,0 +1,66 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Data protection policy config for NotebookLM. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The sensitive data protection policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy; + + /** + * Optional. The sensitive data protection policy. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy getSensitiveDataProtectionPolicy() { + return sensitiveDataProtectionPolicy; + } + + /** + * Optional. The sensitive data protection policy. + * @param sensitiveDataProtectionPolicy sensitiveDataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy setSensitiveDataProtectionPolicy(GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy) { + this.sensitiveDataProtectionPolicy = sensitiveDataProtectionPolicy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java new file mode 100644 index 00000000000..44f1d121eae --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java @@ -0,0 +1,67 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1alpha.model; + +/** + * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data- + * protection/docs/sensitive-data-protection-overview) policy. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The Sensitive Data Protection policy resource name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** + * Optional. The Sensitive Data Protection policy resource name. + * @return value or {@code null} for none + */ + public java.lang.String getPolicy() { + return policy; + } + + /** + * Optional. The Sensitive Data Protection policy resource name. + * @param policy policy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy setPolicy(java.lang.String policy) { + this.policy = policy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAgentView.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAgentView.java deleted file mode 100644 index bde5c1c2e1a..00000000000 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAgentView.java +++ /dev/null @@ -1,447 +0,0 @@ -/* - * 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 - * - * http://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. - */ -/* - * This code was generated by https://github.com/googleapis/google-api-java-client-services/ - * Modify at your own risk. - */ - -package com.google.api.services.discoveryengine.v1alpha.model; - -/** - * The data for displaying an Agent. - * - *This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: - * https://developers.google.com/api-client-library/java/google-http-java-client/json - *
- * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class GoogleCloudDiscoveryengineV1alphaAgentView extends com.google.api.client.json.GenericJson { - - /** - * Immutable. The origin of the Agent. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String agentOrigin; - - /** - * Output only. The sharing state of the agent. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String agentSharingState; - - /** - * Output only. The type of the agent. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String agentType; - - /** - * The custom placeholder text that appears in the text box before the user enters any text. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String customPlaceholderText; - - /** - * The reason why the agent deployment failed. Only set if the state is DEPLOYMENT_FAILED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String deploymentFailureReason; - - /** - * Required. Human-readable description of the agent. This might be used by an LLM to - * automatically select an agent to respond to a user query and to generate the first version of - * the steps for the agent that can be modified by the user. The language of this is either - * Agent.language_code, or ListAvailableAgentViewsRequest.language_code if translations are - * enabled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Required. Display name of the agent. The language of this is either Agent.language_code, or - * ListAvailableAgentViewsRequest.language_code if translations are enabled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * Optional. The icon that represents the agent on the UI. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDiscoveryengineV1alphaAgentImage icon; - - /** - * Resource name of the agent. Format: `projects/{project}/locations/{location}/collections/{colle - * ction}/engines/{engine}/assistants/{assistant}/agents/{agent}` - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The reason why the agent was rejected. Only set if the state is PRIVATE, and got there via - * rejection. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String rejectionReason; - - /** - * Output only. The state of the Agent. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Optional. The suggested prompts for the agent, to be shown on the agent landing page. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: - * https://developers.google.com/api-client-library/java/google-http-java-client/json - *
- * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions extends com.google.api.client.json.GenericJson { - - /** - * If the user can delete this Agent. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean canDelete; - - /** - * If the user can edit this Agent. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean canEdit; - - /** - * If the user can propose other users to share the Agent with. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean canProposeUsers; - - /** - * If the user can request a review for this Agent. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean canRequestReview; - - /** - * If the user can run this Agent. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean canRun; - - /** - * If the user can view the source of this Agent. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean canView; - - /** - * If the user can withdraw this Agent. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean canWithdraw; - - /** - * If the user can delete this Agent. - * @return value or {@code null} for none - */ - public java.lang.Boolean getCanDelete() { - return canDelete; - } - - /** - * If the user can delete this Agent. - * @param canDelete canDelete or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions setCanDelete(java.lang.Boolean canDelete) { - this.canDelete = canDelete; - return this; - } - - /** - * If the user can edit this Agent. - * @return value or {@code null} for none - */ - public java.lang.Boolean getCanEdit() { - return canEdit; - } - - /** - * If the user can edit this Agent. - * @param canEdit canEdit or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions setCanEdit(java.lang.Boolean canEdit) { - this.canEdit = canEdit; - return this; - } - - /** - * If the user can propose other users to share the Agent with. - * @return value or {@code null} for none - */ - public java.lang.Boolean getCanProposeUsers() { - return canProposeUsers; - } - - /** - * If the user can propose other users to share the Agent with. - * @param canProposeUsers canProposeUsers or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions setCanProposeUsers(java.lang.Boolean canProposeUsers) { - this.canProposeUsers = canProposeUsers; - return this; - } - - /** - * If the user can request a review for this Agent. - * @return value or {@code null} for none - */ - public java.lang.Boolean getCanRequestReview() { - return canRequestReview; - } - - /** - * If the user can request a review for this Agent. - * @param canRequestReview canRequestReview or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions setCanRequestReview(java.lang.Boolean canRequestReview) { - this.canRequestReview = canRequestReview; - return this; - } - - /** - * If the user can run this Agent. - * @return value or {@code null} for none - */ - public java.lang.Boolean getCanRun() { - return canRun; - } - - /** - * If the user can run this Agent. - * @param canRun canRun or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions setCanRun(java.lang.Boolean canRun) { - this.canRun = canRun; - return this; - } - - /** - * If the user can view the source of this Agent. - * @return value or {@code null} for none - */ - public java.lang.Boolean getCanView() { - return canView; - } - - /** - * If the user can view the source of this Agent. - * @param canView canView or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions setCanView(java.lang.Boolean canView) { - this.canView = canView; - return this; - } - - /** - * If the user can withdraw this Agent. - * @return value or {@code null} for none - */ - public java.lang.Boolean getCanWithdraw() { - return canWithdraw; - } - - /** - * If the user can withdraw this Agent. - * @param canWithdraw canWithdraw or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions setCanWithdraw(java.lang.Boolean canWithdraw) { - this.canWithdraw = canWithdraw; - return this; - } - - @Override - public GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions set(String fieldName, Object value) { - return (GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions) super.set(fieldName, value); - } - - @Override - public GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions clone() { - return (GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions) super.clone(); - } - -} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig.java index 9580c7909f4..19409c0cd4b 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig.java @@ -58,6 +58,13 @@ public final class GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig ex @com.google.api.client.util.Key private java.lang.String languageCode; + /** + * Optional. The region code used of the user that subscribed to the alert policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String regionCode; + /** * Optional. The enrollment state of each alert. * @return value or {@code null} for none @@ -126,6 +133,23 @@ public GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig setLanguageCod return this; } + /** + * Optional. The region code used of the user that subscribed to the alert policy. + * @return value or {@code null} for none + */ + public java.lang.String getRegionCode() { + return regionCode; + } + + /** + * Optional. The region code used of the user that subscribed to the alert policy. + * @param regionCode regionCode or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig setRegionCode(java.lang.String regionCode) { + this.regionCode = regionCode; + return this; + } + @Override public GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig set(String fieldName, Object value) { return (GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig) super.set(fieldName, value); diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBillingAccountLicenseConfig.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBillingAccountLicenseConfig.java index 9c2e2d6a94d..c5b364bf065 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBillingAccountLicenseConfig.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBillingAccountLicenseConfig.java @@ -36,6 +36,21 @@ public final class GoogleCloudDiscoveryengineV1alphaBillingAccountLicenseConfig @com.google.api.client.util.Key private java.lang.Boolean autoRenew; + /** + * Indication of whether the subscription is terminated earlier than the expiration date. This is + * usually terminated by pipeline once the subscription gets terminated from subsv3. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean earlyTerminated; + + /** + * The date when the subscription is terminated earlier than the expiration date. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeDate earlyTerminationDate; + /** * Optional. The planed subscription end date. * The value may be {@code null}. @@ -142,6 +157,42 @@ public GoogleCloudDiscoveryengineV1alphaBillingAccountLicenseConfig setAutoRenew return this; } + /** + * Indication of whether the subscription is terminated earlier than the expiration date. This is + * usually terminated by pipeline once the subscription gets terminated from subsv3. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEarlyTerminated() { + return earlyTerminated; + } + + /** + * Indication of whether the subscription is terminated earlier than the expiration date. This is + * usually terminated by pipeline once the subscription gets terminated from subsv3. + * @param earlyTerminated earlyTerminated or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaBillingAccountLicenseConfig setEarlyTerminated(java.lang.Boolean earlyTerminated) { + this.earlyTerminated = earlyTerminated; + return this; + } + + /** + * The date when the subscription is terminated earlier than the expiration date. + * @return value or {@code null} for none + */ + public GoogleTypeDate getEarlyTerminationDate() { + return earlyTerminationDate; + } + + /** + * The date when the subscription is terminated earlier than the expiration date. + * @param earlyTerminationDate earlyTerminationDate or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaBillingAccountLicenseConfig setEarlyTerminationDate(GoogleTypeDate earlyTerminationDate) { + this.earlyTerminationDate = earlyTerminationDate; + return this; + } + /** * Optional. The planed subscription end date. * @return value or {@code null} for none diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAgentViewSuggestedPrompt.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaCompleteExternalIdentitiesResponse.java similarity index 50% rename from clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAgentViewSuggestedPrompt.java rename to clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaCompleteExternalIdentitiesResponse.java index c48a9efc072..243d6bb8a3b 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAgentViewSuggestedPrompt.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaCompleteExternalIdentitiesResponse.java @@ -17,7 +17,7 @@ package com.google.api.services.discoveryengine.v1alpha.model; /** - * A suggested prompt for the agent, to be shown on the agent landing page. + * Response message for CompletionService.CompleteExternalIdentities. * * This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
@@ -27,43 +27,40 @@
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
-public final class GoogleCloudDiscoveryengineV1alphaAgentViewSuggestedPrompt extends com.google.api.client.json.GenericJson {
+public final class GoogleCloudDiscoveryengineV1alphaCompleteExternalIdentitiesResponse extends com.google.api.client.json.GenericJson {
/**
- * Required. The text of the suggested prompt. The language of this is either Agent.language_code,
- * or ListAvailableAgentViewsRequest.language_code if translations are enabled.
+ * The list of external identities that match the query.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
- private java.lang.String text;
+ private java.util.List This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
- * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
- * https://developers.google.com/api-client-library/java/google-http-java-client/json
- * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
@@ -27,40 +27,43 @@
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
-public final class GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse extends com.google.api.client.json.GenericJson {
+public final class GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec extends com.google.api.client.json.GenericJson {
/**
- * The data for displaying an Agent.
+ * Optional. If true, actions will not be served for the request. This only works for enterprise
+ * edition.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
- private GoogleCloudDiscoveryengineV1alphaAgentView agentView;
+ private java.lang.Boolean actionDisabled;
/**
- * The data for displaying an Agent.
+ * Optional. If true, actions will not be served for the request. This only works for enterprise
+ * edition.
* @return value or {@code null} for none
*/
- public GoogleCloudDiscoveryengineV1alphaAgentView getAgentView() {
- return agentView;
+ public java.lang.Boolean getActionDisabled() {
+ return actionDisabled;
}
/**
- * The data for displaying an Agent.
- * @param agentView agentView or {@code null} for none
+ * Optional. If true, actions will not be served for the request. This only works for enterprise
+ * edition.
+ * @param actionDisabled actionDisabled or {@code null} for none
*/
- public GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse setAgentView(GoogleCloudDiscoveryengineV1alphaAgentView agentView) {
- this.agentView = agentView;
+ public GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec setActionDisabled(java.lang.Boolean actionDisabled) {
+ this.actionDisabled = actionDisabled;
return this;
}
@Override
- public GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse set(String fieldName, Object value) {
- return (GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse) super.set(fieldName, value);
+ public GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec set(String fieldName, Object value) {
+ return (GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec) super.set(fieldName, value);
}
@Override
- public GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse clone() {
- return (GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse) super.clone();
+ public GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec clone() {
+ return (GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec) super.clone();
}
}
diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUserAnnotations.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUserAnnotations.java
deleted file mode 100644
index 7424ad91b0d..00000000000
--- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUserAnnotations.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * 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
- *
- * http://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.
- */
-/*
- * This code was generated by https://github.com/googleapis/google-api-java-client-services/
- * Modify at your own risk.
- */
-
-package com.google.api.services.discoveryengine.v1alpha.model;
-
-/**
- * Per-user annotations for an Agent, based on UserAnnotation.
- *
- * This is the Java data model class that specifies how to parse/serialize into the JSON that is
- * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
- * https://developers.google.com/api-client-library/java/google-http-java-client/json
- * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ *
{@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String resource) { + super(DiscoveryEngine.this, "GET", REST_PATH, null, com.google.api.services.discoveryengine.v1beta.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. + * Requests for policies with any conditional role bindings must specify version 3. + * Policies with no conditional role bindings may specify any valid value or leave the + * field unset. The policy in the response might use the policy version that you + * specified, or it might use a lower policy version. For example, if you specify + * version 3, but the policy has no conditional role bindings, the response uses version + * 1. To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. + * Requests for policies with any conditional role bindings must specify version 3. + * Policies with no conditional role bindings may specify any valid value or leave the + * field unset. The policy in the response might use the policy version that you + * specified, or it might use a lower policy version. For example, if you specify + * version 3, but the policy has no conditional role bindings, the response uses version + * 1. To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } /** * Lists all the Engines associated with the project. * @@ -18226,7 +18427,7 @@ public Patch set(String parameterName, Object value) { } } /** - * Pauses the training of an existing engine. Only applicable if SolutionType is + * Pauses the training of an existing Engine. Only applicable if SolutionType is * SOLUTION_TYPE_RECOMMENDATION. * * Create a request for the method "engines.pause". @@ -18253,7 +18454,7 @@ public class Pause extends DiscoveryEngineRequest{@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.discoveryengine.v1beta.model.GoogleIamV1SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.discoveryengine.v1beta.model.GoogleIamV1SetIamPolicyRequest content) { + super(DiscoveryEngine.this, "POST", REST_PATH, content, com.google.api.services.discoveryengine.v1beta.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value + * for this field. + */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Tunes an existing Engine. Only applicable if SolutionType is SOLUTION_TYPE_RECOMMENDATION. * * Create a request for the method "engines.tune". * @@ -18536,7 +18891,7 @@ public class Tune extends DiscoveryEngineRequestThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1ObservabilityConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean observabilityEnabled; + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean sensitiveLoggingEnabled; + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * @return value or {@code null} for none + */ + public java.lang.Boolean getObservabilityEnabled() { + return observabilityEnabled; + } + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * @param observabilityEnabled observabilityEnabled or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ObservabilityConfig setObservabilityEnabled(java.lang.Boolean observabilityEnabled) { + this.observabilityEnabled = observabilityEnabled; + return this; + } + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSensitiveLoggingEnabled() { + return sensitiveLoggingEnabled; + } + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * @param sensitiveLoggingEnabled sensitiveLoggingEnabled or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ObservabilityConfig setSensitiveLoggingEnabled(java.lang.Boolean sensitiveLoggingEnabled) { + this.sensitiveLoggingEnabled = sensitiveLoggingEnabled; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1ObservabilityConfig set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1ObservabilityConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1ObservabilityConfig clone() { + return (GoogleCloudDiscoveryengineV1ObservabilityConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig.java index 98048daa5ee..ab847679d0e 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig extends com.google.api.client.json.GenericJson { + /** + * Optional. Specifies the data protection policy for NotebookLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy dataProtectionPolicy; + /** * Model Armor configuration to be used for sanitizing user prompts and LLM responses. * The value may be {@code null}. @@ -36,6 +43,13 @@ public final class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNote @com.google.api.client.util.Key private GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigModelArmorConfig modelArmorConfig; + /** + * Optional. Observability config for NotebookLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1ObservabilityConfig observabilityConfig; + /** * Optional. Whether to disable the notebook sharing feature for the project. Default to false if * not specified. @@ -44,6 +58,23 @@ public final class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNote @com.google.api.client.util.Key private java.lang.Boolean optOutNotebookSharing; + /** + * Optional. Specifies the data protection policy for NotebookLM. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy getDataProtectionPolicy() { + return dataProtectionPolicy; + } + + /** + * Optional. Specifies the data protection policy for NotebookLM. + * @param dataProtectionPolicy dataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig setDataProtectionPolicy(GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy dataProtectionPolicy) { + this.dataProtectionPolicy = dataProtectionPolicy; + return this; + } + /** * Model Armor configuration to be used for sanitizing user prompts and LLM responses. * @return value or {@code null} for none @@ -61,6 +92,23 @@ public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig return this; } + /** + * Optional. Observability config for NotebookLM. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ObservabilityConfig getObservabilityConfig() { + return observabilityConfig; + } + + /** + * Optional. Observability config for NotebookLM. + * @param observabilityConfig observabilityConfig or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig setObservabilityConfig(GoogleCloudDiscoveryengineV1ObservabilityConfig observabilityConfig) { + this.observabilityConfig = observabilityConfig; + return this; + } + /** * Optional. Whether to disable the notebook sharing feature for the project. Default to false if * not specified. diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java new file mode 100644 index 00000000000..a56751e3c34 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java @@ -0,0 +1,66 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Data protection policy config for NotebookLM. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The sensitive data protection policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy; + + /** + * Optional. The sensitive data protection policy. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy getSensitiveDataProtectionPolicy() { + return sensitiveDataProtectionPolicy; + } + + /** + * Optional. The sensitive data protection policy. + * @param sensitiveDataProtectionPolicy sensitiveDataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy setSensitiveDataProtectionPolicy(GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy) { + this.sensitiveDataProtectionPolicy = sensitiveDataProtectionPolicy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java new file mode 100644 index 00000000000..2c57e8a3ff4 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java @@ -0,0 +1,67 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data- + * protection/docs/sensitive-data-protection-overview) policy. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The Sensitive Data Protection policy resource name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** + * Optional. The Sensitive Data Protection policy resource name. + * @return value or {@code null} for none + */ + public java.lang.String getPolicy() { + return policy; + } + + /** + * Optional. The Sensitive Data Protection policy resource name. + * @param policy policy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy setPolicy(java.lang.String policy) { + this.policy = policy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig.java index 5c213fb8ebd..a07f20da410 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig.java @@ -58,6 +58,13 @@ public final class GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig ex @com.google.api.client.util.Key private java.lang.String languageCode; + /** + * Optional. The region code used of the user that subscribed to the alert policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String regionCode; + /** * Optional. The enrollment state of each alert. * @return value or {@code null} for none @@ -126,6 +133,23 @@ public GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig setLanguageCod return this; } + /** + * Optional. The region code used of the user that subscribed to the alert policy. + * @return value or {@code null} for none + */ + public java.lang.String getRegionCode() { + return regionCode; + } + + /** + * Optional. The region code used of the user that subscribed to the alert policy. + * @param regionCode regionCode or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig setRegionCode(java.lang.String regionCode) { + this.regionCode = regionCode; + return this; + } + @Override public GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig set(String fieldName, Object value) { return (GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfig) super.set(fieldName, value); diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaDataConnector.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaDataConnector.java index 06ddaeb6ae8..75ebbc50d0f 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaDataConnector.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaDataConnector.java @@ -121,6 +121,13 @@ public final class GoogleCloudDiscoveryengineV1alphaDataConnector extends com.go @com.google.api.client.util.Key private String createTime; + /** + * Optional. Specifies the data protection policy for the connector. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy dataProtectionPolicy; + /** * Required. The name of the data source. Supported values: `salesforce`, `jira`, `confluence`, * `bigquery`. @@ -550,6 +557,23 @@ public GoogleCloudDiscoveryengineV1alphaDataConnector setCreateTime(String creat return this; } + /** + * Optional. Specifies the data protection policy for the connector. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy getDataProtectionPolicy() { + return dataProtectionPolicy; + } + + /** + * Optional. Specifies the data protection policy for the connector. + * @param dataProtectionPolicy dataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaDataConnector setDataProtectionPolicy(GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy dataProtectionPolicy) { + this.dataProtectionPolicy = dataProtectionPolicy; + return this; + } + /** * Required. The name of the data source. Supported values: `salesforce`, `jira`, `confluence`, * `bigquery`. diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy.java new file mode 100644 index 00000000000..8fe9ec823e6 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy.java @@ -0,0 +1,66 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Data protection policy config for a connector. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The sensitive data protection policy for the connector source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy; + + /** + * Optional. The sensitive data protection policy for the connector source. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy getSensitiveDataProtectionPolicy() { + return sensitiveDataProtectionPolicy; + } + + /** + * Optional. The sensitive data protection policy for the connector source. + * @param sensitiveDataProtectionPolicy sensitiveDataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy setSensitiveDataProtectionPolicy(GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy) { + this.sensitiveDataProtectionPolicy = sensitiveDataProtectionPolicy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy.java new file mode 100644 index 00000000000..723afda8e0f --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy.java @@ -0,0 +1,67 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data- + * protection/docs/sensitive-data-protection-overview) policy. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The Sensitive Data Protection content policy resource name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** + * Optional. The Sensitive Data Protection content policy resource name. + * @return value or {@code null} for none + */ + public java.lang.String getPolicy() { + return policy; + } + + /** + * Optional. The Sensitive Data Protection content policy resource name. + * @param policy policy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy setPolicy(java.lang.String policy) { + this.policy = policy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngine.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngine.java index 24e5c43c497..ee533d8f868 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngine.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngine.java @@ -167,6 +167,13 @@ public final class GoogleCloudDiscoveryengineV1alphaEngine extends com.google.ap @com.google.api.client.util.Key private java.lang.String name; + /** + * Optional. Observability config for the engine. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaObservabilityConfig observabilityConfig; + /** * Output only. Additional information of a recommendation engine. Only applicable if * solution_type is SOLUTION_TYPE_RECOMMENDATION. @@ -527,6 +534,23 @@ public GoogleCloudDiscoveryengineV1alphaEngine setName(java.lang.String name) { return this; } + /** + * Optional. Observability config for the engine. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaObservabilityConfig getObservabilityConfig() { + return observabilityConfig; + } + + /** + * Optional. Observability config for the engine. + * @param observabilityConfig observabilityConfig or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngine setObservabilityConfig(GoogleCloudDiscoveryengineV1alphaObservabilityConfig observabilityConfig) { + this.observabilityConfig = observabilityConfig; + return this; + } + /** * Output only. Additional information of a recommendation engine. Only applicable if * solution_type is SOLUTION_TYPE_RECOMMENDATION. diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaLicenseConfig.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaLicenseConfig.java index dbdc99ae481..a3796a0a88d 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaLicenseConfig.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaLicenseConfig.java @@ -43,6 +43,21 @@ public final class GoogleCloudDiscoveryengineV1alphaLicenseConfig extends com.go @com.google.api.client.util.Key private java.lang.Boolean autoRenew; + /** + * Output only. Indication of whether the subscription is terminated earlier than the expiration + * date. This is usually terminated by pipeline once the subscription gets terminated from subsv3. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean earlyTerminated; + + /** + * Output only. The date when the subscription is terminated earlier than the expiration date. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeDate earlyTerminationDate; + /** * Optional. The planed end date. * The value may be {@code null}. @@ -141,6 +156,42 @@ public GoogleCloudDiscoveryengineV1alphaLicenseConfig setAutoRenew(java.lang.Boo return this; } + /** + * Output only. Indication of whether the subscription is terminated earlier than the expiration + * date. This is usually terminated by pipeline once the subscription gets terminated from subsv3. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEarlyTerminated() { + return earlyTerminated; + } + + /** + * Output only. Indication of whether the subscription is terminated earlier than the expiration + * date. This is usually terminated by pipeline once the subscription gets terminated from subsv3. + * @param earlyTerminated earlyTerminated or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaLicenseConfig setEarlyTerminated(java.lang.Boolean earlyTerminated) { + this.earlyTerminated = earlyTerminated; + return this; + } + + /** + * Output only. The date when the subscription is terminated earlier than the expiration date. + * @return value or {@code null} for none + */ + public GoogleTypeDate getEarlyTerminationDate() { + return earlyTerminationDate; + } + + /** + * Output only. The date when the subscription is terminated earlier than the expiration date. + * @param earlyTerminationDate earlyTerminationDate or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaLicenseConfig setEarlyTerminationDate(GoogleTypeDate earlyTerminationDate) { + this.earlyTerminationDate = earlyTerminationDate; + return this; + } + /** * Optional. The planed end date. * @return value or {@code null} for none diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaObservabilityConfig.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaObservabilityConfig.java new file mode 100644 index 00000000000..19ce04537a2 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaObservabilityConfig.java @@ -0,0 +1,93 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Observability config for a resource. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaObservabilityConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean observabilityEnabled; + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean sensitiveLoggingEnabled; + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * @return value or {@code null} for none + */ + public java.lang.Boolean getObservabilityEnabled() { + return observabilityEnabled; + } + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * @param observabilityEnabled observabilityEnabled or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaObservabilityConfig setObservabilityEnabled(java.lang.Boolean observabilityEnabled) { + this.observabilityEnabled = observabilityEnabled; + return this; + } + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSensitiveLoggingEnabled() { + return sensitiveLoggingEnabled; + } + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * @param sensitiveLoggingEnabled sensitiveLoggingEnabled or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaObservabilityConfig setSensitiveLoggingEnabled(java.lang.Boolean sensitiveLoggingEnabled) { + this.sensitiveLoggingEnabled = sensitiveLoggingEnabled; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaObservabilityConfig set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaObservabilityConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaObservabilityConfig clone() { + return (GoogleCloudDiscoveryengineV1alphaObservabilityConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig.java index 0acb92b0f83..e3b08ecf056 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig extends com.google.api.client.json.GenericJson { + /** + * Optional. Specifies the data protection policy for NotebookLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy dataProtectionPolicy; + /** * Model Armor configuration to be used for sanitizing user prompts and LLM responses. * The value may be {@code null}. @@ -36,6 +43,13 @@ public final class GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfi @com.google.api.client.util.Key private GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigModelArmorConfig modelArmorConfig; + /** + * Optional. Observability config for NotebookLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaObservabilityConfig observabilityConfig; + /** * Optional. Whether to disable the notebook sharing feature for the project. Default to false if * not specified. @@ -44,6 +58,23 @@ public final class GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfi @com.google.api.client.util.Key private java.lang.Boolean optOutNotebookSharing; + /** + * Optional. Specifies the data protection policy for NotebookLM. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy getDataProtectionPolicy() { + return dataProtectionPolicy; + } + + /** + * Optional. Specifies the data protection policy for NotebookLM. + * @param dataProtectionPolicy dataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig setDataProtectionPolicy(GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy dataProtectionPolicy) { + this.dataProtectionPolicy = dataProtectionPolicy; + return this; + } + /** * Model Armor configuration to be used for sanitizing user prompts and LLM responses. * @return value or {@code null} for none @@ -61,6 +92,23 @@ public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmC return this; } + /** + * Optional. Observability config for NotebookLM. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaObservabilityConfig getObservabilityConfig() { + return observabilityConfig; + } + + /** + * Optional. Observability config for NotebookLM. + * @param observabilityConfig observabilityConfig or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig setObservabilityConfig(GoogleCloudDiscoveryengineV1alphaObservabilityConfig observabilityConfig) { + this.observabilityConfig = observabilityConfig; + return this; + } + /** * Optional. Whether to disable the notebook sharing feature for the project. Default to false if * not specified. diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java new file mode 100644 index 00000000000..7d953139d4c --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java @@ -0,0 +1,66 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Data protection policy config for NotebookLM. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The sensitive data protection policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy; + + /** + * Optional. The sensitive data protection policy. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy getSensitiveDataProtectionPolicy() { + return sensitiveDataProtectionPolicy; + } + + /** + * Optional. The sensitive data protection policy. + * @param sensitiveDataProtectionPolicy sensitiveDataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy setSensitiveDataProtectionPolicy(GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy) { + this.sensitiveDataProtectionPolicy = sensitiveDataProtectionPolicy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java new file mode 100644 index 00000000000..cd05acdaa77 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java @@ -0,0 +1,67 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data- + * protection/docs/sensitive-data-protection-overview) policy. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The Sensitive Data Protection policy resource name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** + * Optional. The Sensitive Data Protection policy resource name. + * @return value or {@code null} for none + */ + public java.lang.String getPolicy() { + return policy; + } + + /** + * Optional. The Sensitive Data Protection policy resource name. + * @param policy policy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy setPolicy(java.lang.String policy) { + this.policy = policy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQuery.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQuery.java index a6826dfbf69..6f81a1120bc 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQuery.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQuery.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudDiscoveryengineV1alphaQuery extends com.google.api.client.json.GenericJson { + /** + * Query content parts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaQueryPart extends com.google.api.client.json.GenericJson { + + /** + * Other VAIS Document references. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference documentReference; + + /** + * Reference to a Google Drive document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference driveDocumentReference; + + /** + * Optional. The IANA standard MIME type of the data. See https://www.iana.org/assignments/media- + * types/media-types.xhtml. This field is optional. If not set, the default assumed MIME type is + * "text/plain" for the "data" field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * Reference to a person. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference personReference; + + /** + * Text content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * This field is expected to be a ui message in JSON format. As of Q1 2026, ui_json_payload is + * only supported for A2UI messages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uiJsonPayload; + + /** + * Other VAIS Document references. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference getDocumentReference() { + return documentReference; + } + + /** + * Other VAIS Document references. + * @param documentReference documentReference or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPart setDocumentReference(GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference documentReference) { + this.documentReference = documentReference; + return this; + } + + /** + * Reference to a Google Drive document. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference getDriveDocumentReference() { + return driveDocumentReference; + } + + /** + * Reference to a Google Drive document. + * @param driveDocumentReference driveDocumentReference or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPart setDriveDocumentReference(GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference driveDocumentReference) { + this.driveDocumentReference = driveDocumentReference; + return this; + } + + /** + * Optional. The IANA standard MIME type of the data. See https://www.iana.org/assignments/media- + * types/media-types.xhtml. This field is optional. If not set, the default assumed MIME type is + * "text/plain" for the "data" field. + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * Optional. The IANA standard MIME type of the data. See https://www.iana.org/assignments/media- + * types/media-types.xhtml. This field is optional. If not set, the default assumed MIME type is + * "text/plain" for the "data" field. + * @param mimeType mimeType or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPart setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * Reference to a person. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference getPersonReference() { + return personReference; + } + + /** + * Reference to a person. + * @param personReference personReference or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPart setPersonReference(GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference personReference) { + this.personReference = personReference; + return this; + } + + /** + * Text content. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Text content. + * @param text text or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPart setText(java.lang.String text) { + this.text = text; + return this; + } + + /** + * This field is expected to be a ui message in JSON format. As of Q1 2026, ui_json_payload is + * only supported for A2UI messages. + * @return value or {@code null} for none + */ + public java.lang.String getUiJsonPayload() { + return uiJsonPayload; + } + + /** + * This field is expected to be a ui message in JSON format. As of Q1 2026, ui_json_payload is + * only supported for A2UI messages. + * @param uiJsonPayload uiJsonPayload or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPart setUiJsonPayload(java.lang.String uiJsonPayload) { + this.uiJsonPayload = uiJsonPayload; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPart set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaQueryPart) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPart clone() { + return (GoogleCloudDiscoveryengineV1alphaQueryPart) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference.java new file mode 100644 index 00000000000..497a313edb2 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference.java @@ -0,0 +1,189 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Represents a document reference. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference extends com.google.api.client.json.GenericJson { + + /** + * The destination uri of the reference. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destinationUri; + + /** + * The display title of the reference. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayTitle; + + /** + * The full resource name of the document. Format: `projects/{project}/locations/{location}/collec + * tions/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentName; + + /** + * Output only. The file id of the document data stored in the session context files. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fileId; + + /** + * The icon uri of the reference. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String iconUri; + + /** + * Input only. The url_for_connector of the document returned by Federated Search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String urlForConnector; + + /** + * The destination uri of the reference. + * @return value or {@code null} for none + */ + public java.lang.String getDestinationUri() { + return destinationUri; + } + + /** + * The destination uri of the reference. + * @param destinationUri destinationUri or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference setDestinationUri(java.lang.String destinationUri) { + this.destinationUri = destinationUri; + return this; + } + + /** + * The display title of the reference. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayTitle() { + return displayTitle; + } + + /** + * The display title of the reference. + * @param displayTitle displayTitle or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference setDisplayTitle(java.lang.String displayTitle) { + this.displayTitle = displayTitle; + return this; + } + + /** + * The full resource name of the document. Format: `projects/{project}/locations/{location}/collec + * tions/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentName() { + return documentName; + } + + /** + * The full resource name of the document. Format: `projects/{project}/locations/{location}/collec + * tions/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. + * @param documentName documentName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference setDocumentName(java.lang.String documentName) { + this.documentName = documentName; + return this; + } + + /** + * Output only. The file id of the document data stored in the session context files. + * @return value or {@code null} for none + */ + public java.lang.String getFileId() { + return fileId; + } + + /** + * Output only. The file id of the document data stored in the session context files. + * @param fileId fileId or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference setFileId(java.lang.String fileId) { + this.fileId = fileId; + return this; + } + + /** + * The icon uri of the reference. + * @return value or {@code null} for none + */ + public java.lang.String getIconUri() { + return iconUri; + } + + /** + * The icon uri of the reference. + * @param iconUri iconUri or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference setIconUri(java.lang.String iconUri) { + this.iconUri = iconUri; + return this; + } + + /** + * Input only. The url_for_connector of the document returned by Federated Search. + * @return value or {@code null} for none + */ + public java.lang.String getUrlForConnector() { + return urlForConnector; + } + + /** + * Input only. The url_for_connector of the document returned by Federated Search. + * @param urlForConnector urlForConnector or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference setUrlForConnector(java.lang.String urlForConnector) { + this.urlForConnector = urlForConnector; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference clone() { + return (GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference.java new file mode 100644 index 00000000000..04b279fa4ca --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference.java @@ -0,0 +1,189 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Represents a Google Drive document reference. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference extends com.google.api.client.json.GenericJson { + + /** + * The destination uri of the reference. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destinationUri; + + /** + * The display title of the reference. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayTitle; + + /** + * The full resource name of the document. Format: + * `projects/locations/collections/dataStores/branches/documents`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentName; + + /** + * The Drive id of the document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String driveId; + + /** + * Output only. The file id of the Drive document data stored in the session context files. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fileId; + + /** + * The icon uri of the Drive document reference. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String iconUri; + + /** + * The destination uri of the reference. + * @return value or {@code null} for none + */ + public java.lang.String getDestinationUri() { + return destinationUri; + } + + /** + * The destination uri of the reference. + * @param destinationUri destinationUri or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference setDestinationUri(java.lang.String destinationUri) { + this.destinationUri = destinationUri; + return this; + } + + /** + * The display title of the reference. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayTitle() { + return displayTitle; + } + + /** + * The display title of the reference. + * @param displayTitle displayTitle or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference setDisplayTitle(java.lang.String displayTitle) { + this.displayTitle = displayTitle; + return this; + } + + /** + * The full resource name of the document. Format: + * `projects/locations/collections/dataStores/branches/documents`. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentName() { + return documentName; + } + + /** + * The full resource name of the document. Format: + * `projects/locations/collections/dataStores/branches/documents`. + * @param documentName documentName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference setDocumentName(java.lang.String documentName) { + this.documentName = documentName; + return this; + } + + /** + * The Drive id of the document. + * @return value or {@code null} for none + */ + public java.lang.String getDriveId() { + return driveId; + } + + /** + * The Drive id of the document. + * @param driveId driveId or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference setDriveId(java.lang.String driveId) { + this.driveId = driveId; + return this; + } + + /** + * Output only. The file id of the Drive document data stored in the session context files. + * @return value or {@code null} for none + */ + public java.lang.String getFileId() { + return fileId; + } + + /** + * Output only. The file id of the Drive document data stored in the session context files. + * @param fileId fileId or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference setFileId(java.lang.String fileId) { + this.fileId = fileId; + return this; + } + + /** + * The icon uri of the Drive document reference. + * @return value or {@code null} for none + */ + public java.lang.String getIconUri() { + return iconUri; + } + + /** + * The icon uri of the Drive document reference. + * @param iconUri iconUri or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference setIconUri(java.lang.String iconUri) { + this.iconUri = iconUri; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference clone() { + return (GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference.java new file mode 100644 index 00000000000..82b238b72b4 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference.java @@ -0,0 +1,213 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Represents a person reference. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference extends com.google.api.client.json.GenericJson { + + /** + * The destination uri of the person. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destinationUri; + + /** + * The display name of the person. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * The display photo url of the person. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayPhotoUri; + + /** + * The full resource name of the person. Format: + * `projects/locations/collections/dataStores/branches/documents`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentName; + + /** + * The email of the person. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String email; + + /** + * Output only. The file id of the person data stored in the session context files. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fileId; + + /** + * The person id of the person. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String personId; + + /** + * The destination uri of the person. + * @return value or {@code null} for none + */ + public java.lang.String getDestinationUri() { + return destinationUri; + } + + /** + * The destination uri of the person. + * @param destinationUri destinationUri or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference setDestinationUri(java.lang.String destinationUri) { + this.destinationUri = destinationUri; + return this; + } + + /** + * The display name of the person. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The display name of the person. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The display photo url of the person. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayPhotoUri() { + return displayPhotoUri; + } + + /** + * The display photo url of the person. + * @param displayPhotoUri displayPhotoUri or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference setDisplayPhotoUri(java.lang.String displayPhotoUri) { + this.displayPhotoUri = displayPhotoUri; + return this; + } + + /** + * The full resource name of the person. Format: + * `projects/locations/collections/dataStores/branches/documents`. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentName() { + return documentName; + } + + /** + * The full resource name of the person. Format: + * `projects/locations/collections/dataStores/branches/documents`. + * @param documentName documentName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference setDocumentName(java.lang.String documentName) { + this.documentName = documentName; + return this; + } + + /** + * The email of the person. + * @return value or {@code null} for none + */ + public java.lang.String getEmail() { + return email; + } + + /** + * The email of the person. + * @param email email or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference setEmail(java.lang.String email) { + this.email = email; + return this; + } + + /** + * Output only. The file id of the person data stored in the session context files. + * @return value or {@code null} for none + */ + public java.lang.String getFileId() { + return fileId; + } + + /** + * Output only. The file id of the person data stored in the session context files. + * @param fileId fileId or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference setFileId(java.lang.String fileId) { + this.fileId = fileId; + return this; + } + + /** + * The person id of the person. + * @return value or {@code null} for none + */ + public java.lang.String getPersonId() { + return personId; + } + + /** + * The person id of the person. + * @param personId personId or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference setPersonId(java.lang.String personId) { + this.personId = personId; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference clone() { + return (GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaSearchRequest.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaSearchRequest.java index 8b13ab47c37..52b751f04be 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaSearchRequest.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaSearchRequest.java @@ -164,6 +164,15 @@ public final class GoogleCloudDiscoveryengineV1alphaSearchRequest extends com.go @com.google.api.client.util.Key private GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec naturalLanguageQueryUnderstandingSpec; + /** + * Optional. The maximum number of results to retrieve from each data store. If not specified, it + * will use the SearchRequest.data_store_specs.num_results if provided, otherwise there is no + * limit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer numResultsPerDataStore; + /** * A 0-indexed integer that specifies the current offset (that is, starting result location, * amongst the Documents deemed by the API as relevant) in search results. This field is only @@ -783,6 +792,27 @@ public GoogleCloudDiscoveryengineV1alphaSearchRequest setNaturalLanguageQueryUnd return this; } + /** + * Optional. The maximum number of results to retrieve from each data store. If not specified, it + * will use the SearchRequest.data_store_specs.num_results if provided, otherwise there is no + * limit. + * @return value or {@code null} for none + */ + public java.lang.Integer getNumResultsPerDataStore() { + return numResultsPerDataStore; + } + + /** + * Optional. The maximum number of results to retrieve from each data store. If not specified, it + * will use the SearchRequest.data_store_specs.num_results if provided, otherwise there is no + * limit. + * @param numResultsPerDataStore numResultsPerDataStore or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaSearchRequest setNumResultsPerDataStore(java.lang.Integer numResultsPerDataStore) { + this.numResultsPerDataStore = numResultsPerDataStore; + return this; + } + /** * A 0-indexed integer that specifies the current offset (that is, starting result location, * amongst the Documents deemed by the API as relevant) in search results. This field is only diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec.java index 6780e8a28d8..20534c24fa1 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec.java @@ -65,6 +65,16 @@ public final class GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec e @com.google.api.client.util.Key private java.lang.String filter; + /** + * Optional. The maximum number of results to retrieve from this data store. If not specified, it + * will use the SearchRequest.num_results_per_data_store if provided, otherwise there is no limit. + * If both this field and SearchRequest.num_results_per_data_store are specified, this field will + * be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer numResults; + /** * Optional. Boost specification to boost certain documents. For more information on boosting, see * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) @@ -147,6 +157,29 @@ public GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec setFilter(jav return this; } + /** + * Optional. The maximum number of results to retrieve from this data store. If not specified, it + * will use the SearchRequest.num_results_per_data_store if provided, otherwise there is no limit. + * If both this field and SearchRequest.num_results_per_data_store are specified, this field will + * be used. + * @return value or {@code null} for none + */ + public java.lang.Integer getNumResults() { + return numResults; + } + + /** + * Optional. The maximum number of results to retrieve from this data store. If not specified, it + * will use the SearchRequest.num_results_per_data_store if provided, otherwise there is no limit. + * If both this field and SearchRequest.num_results_per_data_store are specified, this field will + * be used. + * @param numResults numResults or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec setNumResults(java.lang.Integer numResults) { + this.numResults = numResults; + return this; + } + @Override public GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec set(String fieldName, Object value) { return (GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec) super.set(fieldName, value); diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngine.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngine.java index 6f8dcebf02b..88a19657270 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngine.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngine.java @@ -167,6 +167,13 @@ public final class GoogleCloudDiscoveryengineV1betaEngine extends com.google.api @com.google.api.client.util.Key private java.lang.String name; + /** + * Optional. Observability config for the engine. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1betaObservabilityConfig observabilityConfig; + /** * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH. * The value may be {@code null}. @@ -512,6 +519,23 @@ public GoogleCloudDiscoveryengineV1betaEngine setName(java.lang.String name) { return this; } + /** + * Optional. Observability config for the engine. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaObservabilityConfig getObservabilityConfig() { + return observabilityConfig; + } + + /** + * Optional. Observability config for the engine. + * @param observabilityConfig observabilityConfig or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngine setObservabilityConfig(GoogleCloudDiscoveryengineV1betaObservabilityConfig observabilityConfig) { + this.observabilityConfig = observabilityConfig; + return this; + } + /** * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH. * @return value or {@code null} for none diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaLicenseConfig.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaLicenseConfig.java index 46afc68ab27..ecc04e775f7 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaLicenseConfig.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaLicenseConfig.java @@ -36,6 +36,21 @@ public final class GoogleCloudDiscoveryengineV1betaLicenseConfig extends com.goo @com.google.api.client.util.Key private java.lang.Boolean autoRenew; + /** + * Output only. Indication of whether the subscription is terminated earlier than the expiration + * date. This is usually terminated by pipeline once the subscription gets terminated from subsv3. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean earlyTerminated; + + /** + * Output only. The date when the subscription is terminated earlier than the expiration date. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeDate earlyTerminationDate; + /** * Optional. The planed end date. * The value may be {@code null}. @@ -117,6 +132,42 @@ public GoogleCloudDiscoveryengineV1betaLicenseConfig setAutoRenew(java.lang.Bool return this; } + /** + * Output only. Indication of whether the subscription is terminated earlier than the expiration + * date. This is usually terminated by pipeline once the subscription gets terminated from subsv3. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEarlyTerminated() { + return earlyTerminated; + } + + /** + * Output only. Indication of whether the subscription is terminated earlier than the expiration + * date. This is usually terminated by pipeline once the subscription gets terminated from subsv3. + * @param earlyTerminated earlyTerminated or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaLicenseConfig setEarlyTerminated(java.lang.Boolean earlyTerminated) { + this.earlyTerminated = earlyTerminated; + return this; + } + + /** + * Output only. The date when the subscription is terminated earlier than the expiration date. + * @return value or {@code null} for none + */ + public GoogleTypeDate getEarlyTerminationDate() { + return earlyTerminationDate; + } + + /** + * Output only. The date when the subscription is terminated earlier than the expiration date. + * @param earlyTerminationDate earlyTerminationDate or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaLicenseConfig setEarlyTerminationDate(GoogleTypeDate earlyTerminationDate) { + this.earlyTerminationDate = earlyTerminationDate; + return this; + } + /** * Optional. The planed end date. * @return value or {@code null} for none diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaObservabilityConfig.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaObservabilityConfig.java new file mode 100644 index 00000000000..3dbffcd3446 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaObservabilityConfig.java @@ -0,0 +1,93 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Observability config for a resource. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1betaObservabilityConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean observabilityEnabled; + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean sensitiveLoggingEnabled; + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * @return value or {@code null} for none + */ + public java.lang.Boolean getObservabilityEnabled() { + return observabilityEnabled; + } + + /** + * Optional. Enables observability. If false, all other flags are ignored. + * @param observabilityEnabled observabilityEnabled or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaObservabilityConfig setObservabilityEnabled(java.lang.Boolean observabilityEnabled) { + this.observabilityEnabled = observabilityEnabled; + return this; + } + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSensitiveLoggingEnabled() { + return sensitiveLoggingEnabled; + } + + /** + * Optional. Enables sensitive logging. Sensitive logging includes customer core content (e.g. + * prompts, responses). If false, will sanitize all sensitive fields. + * @param sensitiveLoggingEnabled sensitiveLoggingEnabled or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaObservabilityConfig setSensitiveLoggingEnabled(java.lang.Boolean sensitiveLoggingEnabled) { + this.sensitiveLoggingEnabled = sensitiveLoggingEnabled; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1betaObservabilityConfig set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1betaObservabilityConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1betaObservabilityConfig clone() { + return (GoogleCloudDiscoveryengineV1betaObservabilityConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig.java index 1eb8d2f00d2..12977bc9a4f 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig extends com.google.api.client.json.GenericJson { + /** + * Optional. Specifies the data protection policy for NotebookLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy dataProtectionPolicy; + /** * Model Armor configuration to be used for sanitizing user prompts and LLM responses. * The value may be {@code null}. @@ -36,6 +43,13 @@ public final class GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfig @com.google.api.client.util.Key private GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigModelArmorConfig modelArmorConfig; + /** + * Optional. Observability config for NotebookLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1betaObservabilityConfig observabilityConfig; + /** * Optional. Whether to disable the notebook sharing feature for the project. Default to false if * not specified. @@ -44,6 +58,23 @@ public final class GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfig @com.google.api.client.util.Key private java.lang.Boolean optOutNotebookSharing; + /** + * Optional. Specifies the data protection policy for NotebookLM. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy getDataProtectionPolicy() { + return dataProtectionPolicy; + } + + /** + * Optional. Specifies the data protection policy for NotebookLM. + * @param dataProtectionPolicy dataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig setDataProtectionPolicy(GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy dataProtectionPolicy) { + this.dataProtectionPolicy = dataProtectionPolicy; + return this; + } + /** * Model Armor configuration to be used for sanitizing user prompts and LLM responses. * @return value or {@code null} for none @@ -61,6 +92,23 @@ public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmCo return this; } + /** + * Optional. Observability config for NotebookLM. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaObservabilityConfig getObservabilityConfig() { + return observabilityConfig; + } + + /** + * Optional. Observability config for NotebookLM. + * @param observabilityConfig observabilityConfig or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig setObservabilityConfig(GoogleCloudDiscoveryengineV1betaObservabilityConfig observabilityConfig) { + this.observabilityConfig = observabilityConfig; + return this; + } + /** * Optional. Whether to disable the notebook sharing feature for the project. Default to false if * not specified. diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java new file mode 100644 index 00000000000..ad689865ead --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java @@ -0,0 +1,66 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Data protection policy config for NotebookLM. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The sensitive data protection policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy; + + /** + * Optional. The sensitive data protection policy. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy getSensitiveDataProtectionPolicy() { + return sensitiveDataProtectionPolicy; + } + + /** + * Optional. The sensitive data protection policy. + * @param sensitiveDataProtectionPolicy sensitiveDataProtectionPolicy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy setSensitiveDataProtectionPolicy(GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy sensitiveDataProtectionPolicy) { + this.sensitiveDataProtectionPolicy = sensitiveDataProtectionPolicy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java new file mode 100644 index 00000000000..708b39d2753 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java @@ -0,0 +1,67 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data- + * protection/docs/sensitive-data-protection-overview) policy. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The Sensitive Data Protection policy resource name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** + * Optional. The Sensitive Data Protection policy resource name. + * @return value or {@code null} for none + */ + public java.lang.String getPolicy() { + return policy; + } + + /** + * Optional. The Sensitive Data Protection policy resource name. + * @param policy policy or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy setPolicy(java.lang.String policy) { + this.policy = policy; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy clone() { + return (GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaSearchRequest.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaSearchRequest.java index 5358e5ddd0a..755689972e9 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaSearchRequest.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaSearchRequest.java @@ -156,6 +156,15 @@ public final class GoogleCloudDiscoveryengineV1betaSearchRequest extends com.goo @com.google.api.client.util.Key private GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec naturalLanguageQueryUnderstandingSpec; + /** + * Optional. The maximum number of results to retrieve from each data store. If not specified, it + * will use the SearchRequest.data_store_specs.num_results if provided, otherwise there is no + * limit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer numResultsPerDataStore; + /** * A 0-indexed integer that specifies the current offset (that is, starting result location, * amongst the Documents deemed by the API as relevant) in search results. This field is only @@ -747,6 +756,27 @@ public GoogleCloudDiscoveryengineV1betaSearchRequest setNaturalLanguageQueryUnde return this; } + /** + * Optional. The maximum number of results to retrieve from each data store. If not specified, it + * will use the SearchRequest.data_store_specs.num_results if provided, otherwise there is no + * limit. + * @return value or {@code null} for none + */ + public java.lang.Integer getNumResultsPerDataStore() { + return numResultsPerDataStore; + } + + /** + * Optional. The maximum number of results to retrieve from each data store. If not specified, it + * will use the SearchRequest.data_store_specs.num_results if provided, otherwise there is no + * limit. + * @param numResultsPerDataStore numResultsPerDataStore or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaSearchRequest setNumResultsPerDataStore(java.lang.Integer numResultsPerDataStore) { + this.numResultsPerDataStore = numResultsPerDataStore; + return this; + } + /** * A 0-indexed integer that specifies the current offset (that is, starting result location, * amongst the Documents deemed by the API as relevant) in search results. This field is only diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec.java index eee0be10765..c3416ef2be7 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec.java @@ -65,6 +65,16 @@ public final class GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec ex @com.google.api.client.util.Key private java.lang.String filter; + /** + * Optional. The maximum number of results to retrieve from this data store. If not specified, it + * will use the SearchRequest.num_results_per_data_store if provided, otherwise there is no limit. + * If both this field and SearchRequest.num_results_per_data_store are specified, this field will + * be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer numResults; + /** * Optional. Boost specification to boost certain documents. For more information on boosting, see * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) @@ -147,6 +157,29 @@ public GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec setFilter(java return this; } + /** + * Optional. The maximum number of results to retrieve from this data store. If not specified, it + * will use the SearchRequest.num_results_per_data_store if provided, otherwise there is no limit. + * If both this field and SearchRequest.num_results_per_data_store are specified, this field will + * be used. + * @return value or {@code null} for none + */ + public java.lang.Integer getNumResults() { + return numResults; + } + + /** + * Optional. The maximum number of results to retrieve from this data store. If not specified, it + * will use the SearchRequest.num_results_per_data_store if provided, otherwise there is no limit. + * If both this field and SearchRequest.num_results_per_data_store are specified, this field will + * be used. + * @param numResults numResults or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec setNumResults(java.lang.Integer numResults) { + this.numResults = numResults; + return this; + } + @Override public GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec set(String fieldName, Object value) { return (GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec) super.set(fieldName, value); diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleIamV1Binding.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleIamV1Binding.java new file mode 100644 index 00000000000..b8bcbd7044e --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleIamV1Binding.java @@ -0,0 +1,270 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Associates `members`, or principals, with a `role`. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleIamV1Binding extends com.google.api.client.json.GenericJson { + + /** + * The condition that is associated with this binding. If the condition evaluates to `true`, then + * this binding applies to the current request. If the condition evaluates to `false`, then this + * binding does not apply to the current request. However, a different role binding might grant + * the same role to one or more of the principals in this binding. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeExpr condition; + + /** + * Specifies the principals requesting access for a Google Cloud resource. `members` can have the + * following values: * `allUsers`: A special identifier that represents anyone who is on the + * internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier + * that represents anyone who is authenticated with a Google account or a service account. Does + * not include identities that come from external identity providers (IdPs) through identity + * federation. * `user:{emailid}`: An email address that represents a specific Google account. For + * example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a + * Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * + * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a + * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes- + * service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + * `group:{emailid}`: An email address that represents a Google group. For example, + * `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis + * .com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workforce identity pool. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + * All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/work + * forcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities + * with a specific attribute value. * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All identities + * in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locat + * ions/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single + * identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_nu + * mber}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity + * pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/wor + * kloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a + * workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/ + * {project_number}/locations/global/workloadIdentityPools/{pool_id}`: All identities in a + * workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a user that has been recently deleted. For example, + * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to + * `user:{emailid}` and the recovered user retains the role in the binding. * + * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a service account that has been recently deleted. For example, `my-other- + * app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is + * undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account + * retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address + * (plus unique identifier) representing a Google group that has been recently deleted. For + * example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value + * reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `delete + * d:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_att + * ribute_value}`: Deleted single identity in a workforce identity pool. For example, + * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- + * subject-attribute-value`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleIamV1Policy extends com.google.api.client.json.GenericJson { + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a + * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` + * must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 + * principals; up to 250 of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 different roles to + * `user:alice@example.com`, and not to any other principal, then you can add another 1,450 + * principals to the `bindings` in the `Policy`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List+ * The value is encoded Base64 or {@code null} for none. + *
+ * + * @since 1.14 + */ + public GoogleIamV1Policy encodeEtag(byte[] etag) { + this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); + return this; + } + + /** + * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify + * an invalid value are rejected. Any operation that affects conditional role bindings must + * specify version `3`. This requirement applies to the following operations: * Getting a policy + * that includes a conditional role binding * Adding a conditional role binding to a policy * + * Changing a conditional role binding in a policy * Removing any role binding, with or without a + * condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you + * must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then + * IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the + * conditions in the version `3` policy are lost. If a policy does not include any conditions, + * operations on that policy may specify any valid version or leave the field unset. To learn + * which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @return value or {@code null} for none + */ + public java.lang.Integer getVersion() { + return version; + } + + /** + * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify + * an invalid value are rejected. Any operation that affects conditional role bindings must + * specify version `3`. This requirement applies to the following operations: * Getting a policy + * that includes a conditional role binding * Adding a conditional role binding to a policy * + * Changing a conditional role binding in a policy * Removing any role binding, with or without a + * condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you + * must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then + * IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the + * conditions in the version `3` policy are lost. If a policy does not include any conditions, + * operations on that policy may specify any valid version or leave the field unset. To learn + * which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @param version version or {@code null} for none + */ + public GoogleIamV1Policy setVersion(java.lang.Integer version) { + this.version = version; + return this; + } + + @Override + public GoogleIamV1Policy set(String fieldName, Object value) { + return (GoogleIamV1Policy) super.set(fieldName, value); + } + + @Override + public GoogleIamV1Policy clone() { + return (GoogleIamV1Policy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleIamV1SetIamPolicyRequest.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleIamV1SetIamPolicyRequest.java new file mode 100644 index 00000000000..a7069636966 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleIamV1SetIamPolicyRequest.java @@ -0,0 +1,72 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Request message for `SetIamPolicy` method. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleIamV1SetIamPolicyRequest extends com.google.api.client.json.GenericJson { + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is + * limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services + * (such as Projects) might reject them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleIamV1Policy policy; + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is + * limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services + * (such as Projects) might reject them. + * @return value or {@code null} for none + */ + public GoogleIamV1Policy getPolicy() { + return policy; + } + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is + * limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services + * (such as Projects) might reject them. + * @param policy policy or {@code null} for none + */ + public GoogleIamV1SetIamPolicyRequest setPolicy(GoogleIamV1Policy policy) { + this.policy = policy; + return this; + } + + @Override + public GoogleIamV1SetIamPolicyRequest set(String fieldName, Object value) { + return (GoogleIamV1SetIamPolicyRequest) super.set(fieldName, value); + } + + @Override + public GoogleIamV1SetIamPolicyRequest clone() { + return (GoogleIamV1SetIamPolicyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleTypeExpr.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleTypeExpr.java new file mode 100644 index 00000000000..c656e49dab3 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleTypeExpr.java @@ -0,0 +1,159 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1beta.model; + +/** + * Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like + * expression language. The syntax and semantics of CEL are documented at + * https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" + * description: "Determines if a summary is less than 100 chars" expression: + * "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: + * "Determines if requestor is the document owner" expression: "document.owner == + * request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine + * whether the document should be publicly visible" expression: "document.type != 'private' && + * document.type != 'internal'" Example (Data Manipulation): title: "Notification string" + * description: "Create a notification string with a timestamp." expression: "'New message received + * at ' + string(document.create_time)" The exact variables and functions that may be referenced + * within an expression are determined by the service that evaluates it. See the service + * documentation for additional information. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleTypeExpr extends com.google.api.client.json.GenericJson { + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Textual representation of an expression in Common Expression Language syntax. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expression; + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * @param description description or {@code null} for none + */ + public GoogleTypeExpr setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Textual representation of an expression in Common Expression Language syntax. + * @return value or {@code null} for none + */ + public java.lang.String getExpression() { + return expression; + } + + /** + * Textual representation of an expression in Common Expression Language syntax. + * @param expression expression or {@code null} for none + */ + public GoogleTypeExpr setExpression(java.lang.String expression) { + this.expression = expression; + return this; + } + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * @param location location or {@code null} for none + */ + public GoogleTypeExpr setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * @param title title or {@code null} for none + */ + public GoogleTypeExpr setTitle(java.lang.String title) { + this.title = title; + return this; + } + + @Override + public GoogleTypeExpr set(String fieldName, Object value) { + return (GoogleTypeExpr) super.set(fieldName, value); + } + + @Override + public GoogleTypeExpr clone() { + return (GoogleTypeExpr) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/pom.xml b/clients/google-api-services-discoveryengine/v1beta/2.0.0/pom.xml index 882a36a72f0..5d3ff13224f 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/pom.xml +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/pom.xml @@ -8,8 +8,8 @@