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: com.google.apis google-api-services-discoveryengine - v1-rev20260125-2.0.0 + v1-rev20260209-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20260125-2.0.0' + implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20260209-2.0.0' } ``` diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/DiscoveryEngine.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/DiscoveryEngine.java index 545cf1e8015..623e36996eb 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/DiscoveryEngine.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/DiscoveryEngine.java @@ -103,7 +103,7 @@ public class DiscoveryEngine extends com.google.api.client.googleapis.services.j * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * * @param jsonFactory JSON factory, which may be: @@ -18158,7 +18158,7 @@ public Engines engines() { public class Engines { /** - * Creates a Engine. + * Creates an Engine. * * Create a request for the method "engines.create". * @@ -18184,7 +18184,7 @@ public class Create extends DiscoveryEngineRequest { + + private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + + /** + * Gets the IAM access control policy for an Engine. 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 "engines.getIamPolicy". + * + * This request holds the parameters needed by the the discoveryengine server. After setting any + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation.

    {@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 { + + private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + + /** + * 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 the discoveryengine server. After setting any + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation.

    {@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} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: * * @param jsonFactory JSON factory, which may be: @@ -1396,6 +1396,250 @@ public Locations locations() { */ public class Locations { + /** + * This method provides suggestions for users and groups managed in an external identity provider, + * based on the provided prefix. + * + * Create a request for the method "locations.completeExternalIdentities". + * + * This request holds the parameters needed by the discoveryengine server. After setting any + * optional parameters, call the {@link CompleteExternalIdentities#execute()} method to invoke the + * remote operation. + * + * @param parent Required. The parent location resource name, such as `projects/locations/global`. + * @return the request + */ + public CompleteExternalIdentities completeExternalIdentities(java.lang.String parent) throws java.io.IOException { + CompleteExternalIdentities result = new CompleteExternalIdentities(parent); + initialize(result); + return result; + } + + public class CompleteExternalIdentities extends DiscoveryEngineRequest { + + private static final String REST_PATH = "v1alpha/{+parent}:completeExternalIdentities"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * This method provides suggestions for users and groups managed in an external identity provider, + * based on the provided prefix. + * + * Create a request for the method "locations.completeExternalIdentities". + * + * This request holds the parameters needed by the the discoveryengine server. After setting any + * optional parameters, call the {@link CompleteExternalIdentities#execute()} method to invoke the + * remote operation.

    {@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 * - * @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} * @since 1.13 */ @@ -6310,13 +6554,13 @@ public StartConnectorRun setUploadProtocol(java.lang.String uploadProtocol) { /** * Required. Connector name of the form - * projects/{project}/locations/{location}/collections/ {collection_id}/dataConnector + * `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. Connector name of the form projects/{project}/locations/{location}/collections/ - {collection_id}/dataConnector + /** Required. Connector name of the form + `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector` */ public java.lang.String getParent() { return parent; @@ -6324,7 +6568,7 @@ public java.lang.String getParent() { /** * Required. Connector name of the form - * projects/{project}/locations/{location}/collections/ {collection_id}/dataConnector + * `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector` */ public StartConnectorRun setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -24536,7 +24780,7 @@ public Engines engines() { public class Engines { /** - * Creates a Engine. + * Creates an Engine. * * Create a request for the method "engines.create". * @@ -24562,7 +24806,7 @@ public class Create extends DiscoveryEngineRequest { + + private static final String REST_PATH = "v1alpha/{+resource}:getIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + + /** + * Gets the IAM access control policy for an Engine. 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 "engines.getIamPolicy". + * + * This request holds the parameters needed by the the discoveryengine server. After setting any + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation.

    {@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 { + + private static final String REST_PATH = "v1alpha/{+resource}:setIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + + /** + * 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 the discoveryengine server. After setting any + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation.

    {@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 { - - private static final String REST_PATH = "v1alpha/{+parent}:listAvailableAgentViews"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+$"); - - /** - * Lists the data for displaying the Agents under an Assistant which are available to the caller. - * - * Create a request for the method "assistants.listAvailableAgentViews". - * - * This request holds the parameters needed by the the discoveryengine server. After setting any - * optional parameters, call the {@link ListAvailableAgentViews#execute()} method to invoke the - * remote operation.

    {@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 { - - private static final String REST_PATH = "v1alpha/{+name}:disableAgent"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - - /** - * 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 the discoveryengine server. After setting any - * optional parameters, call the {@link DisableAgent#execute()} method to invoke the remote - * operation.

    {@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 { - - private static final String REST_PATH = "v1alpha/{+name}:enableAgent"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - - /** - * 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 the discoveryengine server. After setting any - * optional parameters, call the {@link EnableAgent#execute()} method to invoke the remote - * operation.

    {@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 { - - private static final String REST_PATH = "v1alpha/{+name}:getAgentView"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - - /** - * 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 the discoveryengine server. After setting any - * optional parameters, call the {@link GetAgentView#execute()} method to invoke the remote - * operation.

    {@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 { - - private static final String REST_PATH = "v1alpha/{+resource}:getIamPolicy"; - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - - /** - * 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 the discoveryengine server. After setting any - * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote - * operation.

    {@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 { - - private static final String REST_PATH = "v1alpha/{+resource}:setIamPolicy"; - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - - /** - * 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 the discoveryengine server. After setting any - * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote - * operation.

    {@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 { - - private static final String REST_PATH = "v1alpha/{+name}:suspendAgent"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+$"); - - /** - * 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 the discoveryengine server. After setting any - * optional parameters, call the {@link SuspendAgent#execute()} method to invoke the remote - * operation.

    {@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} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1Engine.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1Engine.java index 4c724ea62b3..15b54520c34 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1Engine.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1Engine.java @@ -167,6 +167,13 @@ public final class GoogleCloudDiscoveryengineV1Engine extends com.google.api.cli @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 GoogleCloudDiscoveryengineV1ObservabilityConfig 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 GoogleCloudDiscoveryengineV1Engine setName(java.lang.String name) { return this; } + /** + * Optional. Observability config for the engine. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ObservabilityConfig getObservabilityConfig() { + return observabilityConfig; + } + + /** + * Optional. Observability config for the engine. + * @param observabilityConfig observabilityConfig or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1Engine setObservabilityConfig(GoogleCloudDiscoveryengineV1ObservabilityConfig 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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1LicenseConfig.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1LicenseConfig.java index 1cab8629786..8884bfcda64 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1LicenseConfig.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1LicenseConfig.java @@ -36,6 +36,21 @@ public final class GoogleCloudDiscoveryengineV1LicenseConfig extends com.google. @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 GoogleCloudDiscoveryengineV1LicenseConfig setAutoRenew(java.lang.Boolean 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 GoogleCloudDiscoveryengineV1LicenseConfig 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 GoogleCloudDiscoveryengineV1LicenseConfig 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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ObservabilityConfig.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ObservabilityConfig.java new file mode 100644 index 00000000000..3d840d88dae --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1ObservabilityConfig.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.v1alpha.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 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.List suggestedPrompts; - - /** - * The reason why the agent was suspended. Only set if the state is SUSPENDED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String suspensionReason; - - /** - * Output only. The timestamp when the agent was last updated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String updateTime; - - /** - * Optional. Per-user annotations of the current caller for the agent. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDiscoveryengineV1alphaUserAnnotations userAnnotations; - - /** - * The permissions of the user for this Agent. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions userPermissions; - - /** - * Immutable. The origin of the Agent. - * @return value or {@code null} for none - */ - public java.lang.String getAgentOrigin() { - return agentOrigin; - } - - /** - * Immutable. The origin of the Agent. - * @param agentOrigin agentOrigin or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setAgentOrigin(java.lang.String agentOrigin) { - this.agentOrigin = agentOrigin; - return this; - } - - /** - * Output only. The sharing state of the agent. - * @return value or {@code null} for none - */ - public java.lang.String getAgentSharingState() { - return agentSharingState; - } - - /** - * Output only. The sharing state of the agent. - * @param agentSharingState agentSharingState or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setAgentSharingState(java.lang.String agentSharingState) { - this.agentSharingState = agentSharingState; - return this; - } - - /** - * Output only. The type of the agent. - * @return value or {@code null} for none - */ - public java.lang.String getAgentType() { - return agentType; - } - - /** - * Output only. The type of the agent. - * @param agentType agentType or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setAgentType(java.lang.String agentType) { - this.agentType = agentType; - return this; - } - - /** - * The custom placeholder text that appears in the text box before the user enters any text. - * @return value or {@code null} for none - */ - public java.lang.String getCustomPlaceholderText() { - return customPlaceholderText; - } - - /** - * The custom placeholder text that appears in the text box before the user enters any text. - * @param customPlaceholderText customPlaceholderText or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setCustomPlaceholderText(java.lang.String customPlaceholderText) { - this.customPlaceholderText = customPlaceholderText; - return this; - } - - /** - * The reason why the agent deployment failed. Only set if the state is DEPLOYMENT_FAILED. - * @return value or {@code null} for none - */ - public java.lang.String getDeploymentFailureReason() { - return deploymentFailureReason; - } - - /** - * The reason why the agent deployment failed. Only set if the state is DEPLOYMENT_FAILED. - * @param deploymentFailureReason deploymentFailureReason or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setDeploymentFailureReason(java.lang.String deploymentFailureReason) { - this.deploymentFailureReason = deploymentFailureReason; - return this; - } - - /** - * 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. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * 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. - * @param description description or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Required. Display name of the agent. The language of this is either Agent.language_code, or - * ListAvailableAgentViewsRequest.language_code if translations are enabled. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Required. Display name of the agent. The language of this is either Agent.language_code, or - * ListAvailableAgentViewsRequest.language_code if translations are enabled. - * @param displayName displayName or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Optional. The icon that represents the agent on the UI. - * @return value or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentImage getIcon() { - return icon; - } - - /** - * Optional. The icon that represents the agent on the UI. - * @param icon icon or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setIcon(GoogleCloudDiscoveryengineV1alphaAgentImage icon) { - this.icon = icon; - return this; - } - - /** - * Resource name of the agent. Format: `projects/{project}/locations/{location}/collections/{colle - * ction}/engines/{engine}/assistants/{assistant}/agents/{agent}` - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Resource name of the agent. Format: `projects/{project}/locations/{location}/collections/{colle - * ction}/engines/{engine}/assistants/{assistant}/agents/{agent}` - * @param name name or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The reason why the agent was rejected. Only set if the state is PRIVATE, and got there via - * rejection. - * @return value or {@code null} for none - */ - public java.lang.String getRejectionReason() { - return rejectionReason; - } - - /** - * The reason why the agent was rejected. Only set if the state is PRIVATE, and got there via - * rejection. - * @param rejectionReason rejectionReason or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setRejectionReason(java.lang.String rejectionReason) { - this.rejectionReason = rejectionReason; - return this; - } - - /** - * Output only. The state of the Agent. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. The state of the Agent. - * @param state state or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Optional. The suggested prompts for the agent, to be shown on the agent landing page. - * @return value or {@code null} for none - */ - public java.util.List getSuggestedPrompts() { - return suggestedPrompts; - } - - /** - * Optional. The suggested prompts for the agent, to be shown on the agent landing page. - * @param suggestedPrompts suggestedPrompts or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setSuggestedPrompts(java.util.List suggestedPrompts) { - this.suggestedPrompts = suggestedPrompts; - return this; - } - - /** - * The reason why the agent was suspended. Only set if the state is SUSPENDED. - * @return value or {@code null} for none - */ - public java.lang.String getSuspensionReason() { - return suspensionReason; - } - - /** - * The reason why the agent was suspended. Only set if the state is SUSPENDED. - * @param suspensionReason suspensionReason or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setSuspensionReason(java.lang.String suspensionReason) { - this.suspensionReason = suspensionReason; - return this; - } - - /** - * Output only. The timestamp when the agent was last updated. - * @return value or {@code null} for none - */ - public String getUpdateTime() { - return updateTime; - } - - /** - * Output only. The timestamp when the agent was last updated. - * @param updateTime updateTime or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setUpdateTime(String updateTime) { - this.updateTime = updateTime; - return this; - } - - /** - * Optional. Per-user annotations of the current caller for the agent. - * @return value or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaUserAnnotations getUserAnnotations() { - return userAnnotations; - } - - /** - * Optional. Per-user annotations of the current caller for the agent. - * @param userAnnotations userAnnotations or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setUserAnnotations(GoogleCloudDiscoveryengineV1alphaUserAnnotations userAnnotations) { - this.userAnnotations = userAnnotations; - return this; - } - - /** - * The permissions of the user for this Agent. - * @return value or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions getUserPermissions() { - return userPermissions; - } - - /** - * The permissions of the user for this Agent. - * @param userPermissions userPermissions or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaAgentView setUserPermissions(GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions userPermissions) { - this.userPermissions = userPermissions; - return this; - } - - @Override - public GoogleCloudDiscoveryengineV1alphaAgentView set(String fieldName, Object value) { - return (GoogleCloudDiscoveryengineV1alphaAgentView) super.set(fieldName, value); - } - - @Override - public GoogleCloudDiscoveryengineV1alphaAgentView clone() { - return (GoogleCloudDiscoveryengineV1alphaAgentView) super.clone(); - } - -} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions.java deleted file mode 100644 index d620f4a80f5..00000000000 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions.java +++ /dev/null @@ -1,210 +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 permissions of the user on 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 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 externalIdentities; /** - * 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. * @return value or {@code null} for none */ - public java.lang.String getText() { - return text; + public java.util.List getExternalIdentities() { + return externalIdentities; } /** - * Required. The text of the suggested prompt. The language of this is either Agent.language_code, - * or ListAvailableAgentViewsRequest.language_code if translations are enabled. - * @param text text or {@code null} for none + * The list of external identities that match the query. + * @param externalIdentities externalIdentities or {@code null} for none */ - public GoogleCloudDiscoveryengineV1alphaAgentViewSuggestedPrompt setText(java.lang.String text) { - this.text = text; + public GoogleCloudDiscoveryengineV1alphaCompleteExternalIdentitiesResponse setExternalIdentities(java.util.List externalIdentities) { + this.externalIdentities = externalIdentities; return this; } @Override - public GoogleCloudDiscoveryengineV1alphaAgentViewSuggestedPrompt set(String fieldName, Object value) { - return (GoogleCloudDiscoveryengineV1alphaAgentViewSuggestedPrompt) super.set(fieldName, value); + public GoogleCloudDiscoveryengineV1alphaCompleteExternalIdentitiesResponse set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaCompleteExternalIdentitiesResponse) super.set(fieldName, value); } @Override - public GoogleCloudDiscoveryengineV1alphaAgentViewSuggestedPrompt clone() { - return (GoogleCloudDiscoveryengineV1alphaAgentViewSuggestedPrompt) super.clone(); + public GoogleCloudDiscoveryengineV1alphaCompleteExternalIdentitiesResponse clone() { + return (GoogleCloudDiscoveryengineV1alphaCompleteExternalIdentitiesResponse) super.clone(); } } diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaDataConnector.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaDataConnector.java index bcff1611bf1..4f7c94de8a2 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaDataConnector.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicy.java new file mode 100644 index 00000000000..67c20905a66 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaDataProtectionPolicySensitiveDataProtectionPolicy.java new file mode 100644 index 00000000000..8be999150bb --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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.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 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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaEngine.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaEngine.java index 8e35c6a771d..55d67912f7e 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaEngine.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaExternalIdentity.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaExternalIdentity.java new file mode 100644 index 00000000000..ebaaf90879a --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaExternalIdentity.java @@ -0,0 +1,139 @@ +/* + * 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; + +/** + * External identity representing either a user or group. This user or group is from an external + * identity provider (IdP). + * + *

      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 GoogleCloudDiscoveryengineV1alphaExternalIdentity extends com.google.api.client.json.GenericJson { + + /** + * The display name of the user or group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * The unique 3P ID(external_id) of the entity (user or group). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String externalId; + + /** + * Metadata corresponding to the external user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaExternalIdentityGroupMetadata groupMetadata; + + /** + * Metadata corresponding to the external user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaExternalIdentityUserMetadata userMetadata; + + /** + * The display name of the user or group. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The display name of the user or group. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaExternalIdentity setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The unique 3P ID(external_id) of the entity (user or group). + * @return value or {@code null} for none + */ + public java.lang.String getExternalId() { + return externalId; + } + + /** + * The unique 3P ID(external_id) of the entity (user or group). + * @param externalId externalId or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaExternalIdentity setExternalId(java.lang.String externalId) { + this.externalId = externalId; + return this; + } + + /** + * Metadata corresponding to the external user. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaExternalIdentityGroupMetadata getGroupMetadata() { + return groupMetadata; + } + + /** + * Metadata corresponding to the external user. + * @param groupMetadata groupMetadata or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaExternalIdentity setGroupMetadata(GoogleCloudDiscoveryengineV1alphaExternalIdentityGroupMetadata groupMetadata) { + this.groupMetadata = groupMetadata; + return this; + } + + /** + * Metadata corresponding to the external user. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaExternalIdentityUserMetadata getUserMetadata() { + return userMetadata; + } + + /** + * Metadata corresponding to the external user. + * @param userMetadata userMetadata or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaExternalIdentity setUserMetadata(GoogleCloudDiscoveryengineV1alphaExternalIdentityUserMetadata userMetadata) { + this.userMetadata = userMetadata; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaExternalIdentity set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaExternalIdentity) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaExternalIdentity clone() { + return (GoogleCloudDiscoveryengineV1alphaExternalIdentity) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaExternalIdentityGroupMetadata.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaExternalIdentityGroupMetadata.java new file mode 100644 index 00000000000..d134ba07c81 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaExternalIdentityGroupMetadata.java @@ -0,0 +1,42 @@ +/* + * 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; + +/** + * Metadata corresponding to the external group. + * + *

      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 GoogleCloudDiscoveryengineV1alphaExternalIdentityGroupMetadata extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudDiscoveryengineV1alphaExternalIdentityGroupMetadata set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaExternalIdentityGroupMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaExternalIdentityGroupMetadata clone() { + return (GoogleCloudDiscoveryengineV1alphaExternalIdentityGroupMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaExternalIdentityUserMetadata.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaExternalIdentityUserMetadata.java new file mode 100644 index 00000000000..c97a00c7c70 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaExternalIdentityUserMetadata.java @@ -0,0 +1,114 @@ +/* + * 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; + +/** + * Metadata corresponding to the external user. + * + *

      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 GoogleCloudDiscoveryengineV1alphaExternalIdentityUserMetadata extends com.google.api.client.json.GenericJson { + + /** + * The user's family name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String familyName; + + /** + * The user's given name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String givenName; + + /** + * The user's primary email address. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String primaryEmail; + + /** + * The user's family name. + * @return value or {@code null} for none + */ + public java.lang.String getFamilyName() { + return familyName; + } + + /** + * The user's family name. + * @param familyName familyName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaExternalIdentityUserMetadata setFamilyName(java.lang.String familyName) { + this.familyName = familyName; + return this; + } + + /** + * The user's given name. + * @return value or {@code null} for none + */ + public java.lang.String getGivenName() { + return givenName; + } + + /** + * The user's given name. + * @param givenName givenName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaExternalIdentityUserMetadata setGivenName(java.lang.String givenName) { + this.givenName = givenName; + return this; + } + + /** + * The user's primary email address. + * @return value or {@code null} for none + */ + public java.lang.String getPrimaryEmail() { + return primaryEmail; + } + + /** + * The user's primary email address. + * @param primaryEmail primaryEmail or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaExternalIdentityUserMetadata setPrimaryEmail(java.lang.String primaryEmail) { + this.primaryEmail = primaryEmail; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaExternalIdentityUserMetadata set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaExternalIdentityUserMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaExternalIdentityUserMetadata clone() { + return (GoogleCloudDiscoveryengineV1alphaExternalIdentityUserMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaLicenseConfig.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaLicenseConfig.java index 63ebf19f8b3..346f46f9a7b 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaLicenseConfig.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse.java deleted file mode 100644 index 327f79fd816..00000000000 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse.java +++ /dev/null @@ -1,99 +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; - -/** - * Response message for the AgentService.ListAvailableAgentViews 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 GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse extends com.google.api.client.json.GenericJson { - - /** - * The agent sources visible to the caller under the parent Assistant. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List agentViews; - - static { - // hack to force ProGuard to consider GoogleCloudDiscoveryengineV1alphaAgentView used, since otherwise it would be stripped out - // see https://github.com/google/google-api-java-client/issues/543 - com.google.api.client.util.Data.nullOf(GoogleCloudDiscoveryengineV1alphaAgentView.class); - } - - /** - * A token that can be sent as ListAvailableAgentViewsRequest.page_token to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * The agent sources visible to the caller under the parent Assistant. - * @return value or {@code null} for none - */ - public java.util.List getAgentViews() { - return agentViews; - } - - /** - * The agent sources visible to the caller under the parent Assistant. - * @param agentViews agentViews or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse setAgentViews(java.util.List agentViews) { - this.agentViews = agentViews; - return this; - } - - /** - * A token that can be sent as ListAvailableAgentViewsRequest.page_token to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * A token that can be sent as ListAvailableAgentViewsRequest.page_token to retrieve the next - * page. If this field is omitted, there are no subsequent pages. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - @Override - public GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse set(String fieldName, Object value) { - return (GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse) super.set(fieldName, value); - } - - @Override - public GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse clone() { - return (GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaObservabilityConfig.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaObservabilityConfig.java new file mode 100644 index 00000000000..1ffef047c43 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig.java index 82bf1d00a49..dd227b74bfc 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java new file mode 100644 index 00000000000..39c65e85cdc --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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.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 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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java new file mode 100644 index 00000000000..41b04032540 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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.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 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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaQuery.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaQuery.java index ede70674d96..d58ff10c323 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaQuery.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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.List parts; + /** * Output only. Unique Id for the query. * The value may be {@code null}. @@ -43,6 +50,23 @@ public final class GoogleCloudDiscoveryengineV1alphaQuery extends com.google.api @com.google.api.client.util.Key private java.lang.String text; + /** + * Query content parts. + * @return value or {@code null} for none + */ + public java.util.List getParts() { + return parts; + } + + /** + * Query content parts. + * @param parts parts or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQuery setParts(java.util.List parts) { + this.parts = parts; + return this; + } + /** * Output only. Unique Id for the query. * @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/GoogleCloudDiscoveryengineV1alphaQueryPart.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaQueryPart.java new file mode 100644 index 00000000000..c1c0bb26064 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaQueryPart.java @@ -0,0 +1,196 @@ +/* + * 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; + +/** + * Represents a part or the whole of a content, used to represent a query. A query can be made up of + * multiple parts. + * + *

      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 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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaQueryPartDocumentReference.java new file mode 100644 index 00000000000..40ab3861931 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaQueryPartDriveDocumentReference.java new file mode 100644 index 00000000000..f804fce59cb --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaQueryPartPersonReference.java new file mode 100644 index 00000000000..c852e0efa40 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaSearchRequest.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaSearchRequest.java index 6d7379a8971..9c256835c6b 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaSearchRequest.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec.java index f4feae92366..57c8a96bfa3 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaStreamAssistRequest.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaStreamAssistRequest.java index edd59ac52e8..3ad3b5b8de9 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaStreamAssistRequest.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaStreamAssistRequest.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudDiscoveryengineV1alphaStreamAssistRequest extends com.google.api.client.json.GenericJson { + /** + * Optional. Specification of actions for the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec actionSpec; + /** * Optional. Specification of the generation configuration for the request. * The value may be {@code null}. @@ -69,6 +76,23 @@ public final class GoogleCloudDiscoveryengineV1alphaStreamAssistRequest extends @com.google.api.client.util.Key private GoogleCloudDiscoveryengineV1alphaAssistUserMetadata userMetadata; + /** + * Optional. Specification of actions for the request. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec getActionSpec() { + return actionSpec; + } + + /** + * Optional. Specification of actions for the request. + * @param actionSpec actionSpec or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaStreamAssistRequest setActionSpec(GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec actionSpec) { + this.actionSpec = actionSpec; + return this; + } + /** * Optional. Specification of the generation configuration for the request. * @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/GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec.java similarity index 53% rename from clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse.java rename to clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec.java index 7687330d111..9850a72a890 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec.java @@ -17,7 +17,7 @@ package com.google.api.services.discoveryengine.v1alpha.model; /** - * Response message for the AgentService.GetAgentView method. + * Specification of actions for the request. * *

      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 - *

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class GoogleCloudDiscoveryengineV1alphaUserAnnotations extends com.google.api.client.json.GenericJson { - - /** - * Optional. Whether the agent is pinned, pinned agent will be displayed on the top of the agent - * list. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean pinned; - - /** - * Optional. Whether the agent has been viewed by the user. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean viewed; - - /** - * Optional. Whether the agent is pinned, pinned agent will be displayed on the top of the agent - * list. - * @return value or {@code null} for none - */ - public java.lang.Boolean getPinned() { - return pinned; - } - - /** - * Optional. Whether the agent is pinned, pinned agent will be displayed on the top of the agent - * list. - * @param pinned pinned or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaUserAnnotations setPinned(java.lang.Boolean pinned) { - this.pinned = pinned; - return this; - } - - /** - * Optional. Whether the agent has been viewed by the user. - * @return value or {@code null} for none - */ - public java.lang.Boolean getViewed() { - return viewed; - } - - /** - * Optional. Whether the agent has been viewed by the user. - * @param viewed viewed or {@code null} for none - */ - public GoogleCloudDiscoveryengineV1alphaUserAnnotations setViewed(java.lang.Boolean viewed) { - this.viewed = viewed; - return this; - } - - @Override - public GoogleCloudDiscoveryengineV1alphaUserAnnotations set(String fieldName, Object value) { - return (GoogleCloudDiscoveryengineV1alphaUserAnnotations) super.set(fieldName, value); - } - - @Override - public GoogleCloudDiscoveryengineV1alphaUserAnnotations clone() { - return (GoogleCloudDiscoveryengineV1alphaUserAnnotations) super.clone(); - } - -} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaEngine.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaEngine.java index 87e9ec115a0..4ca5a2c932e 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaEngine.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaLicenseConfig.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaLicenseConfig.java index 33bdd18678c..25a01989d88 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaLicenseConfig.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaObservabilityConfig.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaObservabilityConfig.java new file mode 100644 index 00000000000..bf2b860147c --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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.v1alpha.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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig.java index 50572eb0ed7..17a3cc7fc57 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicy.java new file mode 100644 index 00000000000..a0405b8da58 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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.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 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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfigDataProtectionPolicySensitiveDataProtectionPolicy.java new file mode 100644 index 00000000000..1b2e1901456 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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.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 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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaSearchRequest.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaSearchRequest.java index e99611d9075..f68fccf7e15 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaSearchRequest.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec.java index 61dcd8e6fd6..eecc58d2224 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/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/v1alpha/2.0.0/pom.xml b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/pom.xml index 6da9ed5aae2..bc3af30abe4 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/pom.xml +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-discoveryengine - v1alpha-rev20260125-2.0.0 - Discovery Engine API v1alpha-rev20260125-2.0.0 + v1alpha-rev20260209-2.0.0 + Discovery Engine API v1alpha-rev20260209-2.0.0 jar 2011 diff --git a/clients/google-api-services-discoveryengine/v1alpha/README.md b/clients/google-api-services-discoveryengine/v1alpha/README.md index cf7aadb6c7b..9e98aabe76e 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/README.md +++ b/clients/google-api-services-discoveryengine/v1alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-discoveryengine - v1alpha-rev20260125-2.0.0 + v1alpha-rev20260209-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-discoveryengine:v1alpha-rev20260125-2.0.0' + implementation 'com.google.apis:google-api-services-discoveryengine:v1alpha-rev20260209-2.0.0' } ``` diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/README.md b/clients/google-api-services-discoveryengine/v1beta/2.0.0/README.md index 77eccd379c8..568e3600fdb 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/README.md +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-discoveryengine - v1beta-rev20260125-2.0.0 + v1beta-rev20260209-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-discoveryengine:v1beta-rev20260125-2.0.0' + implementation 'com.google.apis:google-api-services-discoveryengine:v1beta-rev20260209-2.0.0' } ``` diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/DiscoveryEngine.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/DiscoveryEngine.java index 3a90e9e0c34..d6b43d95f53 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/DiscoveryEngine.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/DiscoveryEngine.java @@ -103,7 +103,7 @@ public class DiscoveryEngine extends com.google.api.client.googleapis.services.j * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
    • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
    • - *
    • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
    • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
    • * *
    * @param jsonFactory JSON factory, which may be: @@ -17381,7 +17381,7 @@ public Engines engines() { public class Engines { /** - * Creates a Engine. + * Creates an Engine. * * Create a request for the method "engines.create". * @@ -17407,7 +17407,7 @@ public class Create extends DiscoveryEngineRequest { + + private static final String REST_PATH = "v1beta/{+resource}:getIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + + /** + * Gets the IAM access control policy for an Engine. 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 "engines.getIamPolicy". + * + * This request holds the parameters needed by the the discoveryengine server. After setting any + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation.

    {@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 { + + private static final String REST_PATH = "v1beta/{+resource}:setIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + + /** + * 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 the discoveryengine server. After setting any + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation.

    {@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 DiscoveryEngineRequest *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1Engine.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1Engine.java index e75d49e3f04..300810b4b95 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1Engine.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1Engine.java @@ -167,6 +167,13 @@ public final class GoogleCloudDiscoveryengineV1Engine extends com.google.api.cli @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 GoogleCloudDiscoveryengineV1ObservabilityConfig 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 GoogleCloudDiscoveryengineV1Engine setName(java.lang.String name) { return this; } + /** + * Optional. Observability config for the engine. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1ObservabilityConfig getObservabilityConfig() { + return observabilityConfig; + } + + /** + * Optional. Observability config for the engine. + * @param observabilityConfig observabilityConfig or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1Engine setObservabilityConfig(GoogleCloudDiscoveryengineV1ObservabilityConfig 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/GoogleCloudDiscoveryengineV1LicenseConfig.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1LicenseConfig.java index 53e6f4e7f13..26272ed8165 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1LicenseConfig.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1LicenseConfig.java @@ -36,6 +36,21 @@ public final class GoogleCloudDiscoveryengineV1LicenseConfig extends com.google. @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 GoogleCloudDiscoveryengineV1LicenseConfig setAutoRenew(java.lang.Boolean 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 GoogleCloudDiscoveryengineV1LicenseConfig 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 GoogleCloudDiscoveryengineV1LicenseConfig 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/GoogleCloudDiscoveryengineV1ObservabilityConfig.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1ObservabilityConfig.java new file mode 100644 index 00000000000..f7cce2eb7a3 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1ObservabilityConfig.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 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.List parts; + /** * Output only. Unique Id for the query. * The value may be {@code null}. @@ -43,6 +50,23 @@ public final class GoogleCloudDiscoveryengineV1alphaQuery extends com.google.api @com.google.api.client.util.Key private java.lang.String text; + /** + * Query content parts. + * @return value or {@code null} for none + */ + public java.util.List getParts() { + return parts; + } + + /** + * Query content parts. + * @param parts parts or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQuery setParts(java.util.List parts) { + this.parts = parts; + return this; + } + /** * Output only. Unique Id for the query. * @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/GoogleCloudDiscoveryengineV1alphaQueryPart.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQueryPart.java new file mode 100644 index 00000000000..5667cffafd3 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaQueryPart.java @@ -0,0 +1,196 @@ +/* + * 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 part or the whole of a content, used to represent a query. A query can be made up of + * multiple parts. + * + *

      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 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.List members; + + /** + * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the + * [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the + * available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String role; + + /** + * 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). + * @return value or {@code null} for none + */ + public GoogleTypeExpr getCondition() { + return condition; + } + + /** + * 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). + * @param condition condition or {@code null} for none + */ + public GoogleIamV1Binding setCondition(GoogleTypeExpr condition) { + this.condition = condition; + return this; + } + + /** + * 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`. + * @return value or {@code null} for none + */ + public java.util.List getMembers() { + return members; + } + + /** + * 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`. + * @param members members or {@code null} for none + */ + public GoogleIamV1Binding setMembers(java.util.List members) { + this.members = members; + return this; + } + + /** + * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the + * [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the + * available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + * @return value or {@code null} for none + */ + public java.lang.String getRole() { + return role; + } + + /** + * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the + * [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the + * available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + * @param role role or {@code null} for none + */ + public GoogleIamV1Binding setRole(java.lang.String role) { + this.role = role; + return this; + } + + @Override + public GoogleIamV1Binding set(String fieldName, Object value) { + return (GoogleIamV1Binding) super.set(fieldName, value); + } + + @Override + public GoogleIamV1Binding clone() { + return (GoogleIamV1Binding) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleIamV1Policy.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleIamV1Policy.java new file mode 100644 index 00000000000..15c6ce41ff4 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleIamV1Policy.java @@ -0,0 +1,261 @@ +/* + * 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; + +/** + * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud + * resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or + * principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, + * and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM + * predefined role or a user-created custom role. For some types of Google Cloud resources, a + * `binding` can also specify a `condition`, which is a logical expression that allows access to a + * resource only if the expression evaluates to `true`. A condition can add constraints based on + * attributes of the request, the resource, or both. To learn which resources support conditions in + * their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** + * ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ + * "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my- + * project-id@appspot.gserviceaccount.com" ] }, { "role": + * "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { + * "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": + * "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": + * 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - + * group:admins@example.com - domain:google.com - serviceAccount:my-project- + * id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - + * user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable + * access description: Does not grant access after Sep 2020 expression: request.time < + * timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM + * and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + * + *

      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 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 bindings; + + static { + // hack to force ProGuard to consider GoogleIamV1Binding used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleIamV1Binding.class); + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **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. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * 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). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer version; + + /** + * 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`. + * @return value or {@code null} for none + */ + public java.util.List getBindings() { + return bindings; + } + + /** + * 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`. + * @param bindings bindings or {@code null} for none + */ + public GoogleIamV1Policy setBindings(java.util.List bindings) { + this.bindings = bindings; + return this; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **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. + * @see #decodeEtag() + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **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. + * @see #getEtag() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeEtag() { + return com.google.api.client.util.Base64.decodeBase64(etag); + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **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. + * @see #encodeEtag() + * @param etag etag or {@code null} for none + */ + public GoogleIamV1Policy setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. **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. + * @see #setEtag() + * + *

      + * 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 @@ com.google.apis google-api-services-discoveryengine - v1beta-rev20260125-2.0.0 - Discovery Engine API v1beta-rev20260125-2.0.0 + v1beta-rev20260209-2.0.0 + Discovery Engine API v1beta-rev20260209-2.0.0 jar 2011 diff --git a/clients/google-api-services-discoveryengine/v1beta/README.md b/clients/google-api-services-discoveryengine/v1beta/README.md index 77eccd379c8..568e3600fdb 100644 --- a/clients/google-api-services-discoveryengine/v1beta/README.md +++ b/clients/google-api-services-discoveryengine/v1beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-discoveryengine - v1beta-rev20260125-2.0.0 + v1beta-rev20260209-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-discoveryengine:v1beta-rev20260125-2.0.0' + implementation 'com.google.apis:google-api-services-discoveryengine:v1beta-rev20260209-2.0.0' } ```