From 9263d37f884ff8c597f1ad3086085e256528c09c Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sat, 7 Nov 2026 16:51:28 -0800 Subject: [PATCH] chore: regenerate discoveryengine client --- .../v1/2.0.0/README.md | 4 +- .../GoogleCloudDiscoveryengineV1Engine.java | 60 +- ...dDiscoveryengineV1EngineFeaturePolicy.java | 114 +++ ...veryengineV1EngineFeaturePolicyMember.java | 156 ++++ ...scoveryengineV1WidgetConfigUiSettings.java | 30 +- ...ogleCloudDiscoveryengineV1alphaEngine.java | 60 +- ...overyengineV1alphaEngineFeaturePolicy.java | 114 +++ ...ngineV1alphaEngineFeaturePolicyMember.java | 156 ++++ ...oogleCloudDiscoveryengineV1betaEngine.java | 60 +- ...coveryengineV1betaEngineFeaturePolicy.java | 114 +++ ...engineV1betaEngineFeaturePolicyMember.java | 156 ++++ .../v1/2.0.0/pom.xml | 4 +- .../v1/README.md | 4 +- .../v1alpha/2.0.0/README.md | 4 +- .../v1alpha/DiscoveryEngine.java | 697 ++++++++++++++++++ .../GoogleCloudDiscoveryengineV1Engine.java | 60 +- ...dDiscoveryengineV1EngineFeaturePolicy.java | 114 +++ ...veryengineV1EngineFeaturePolicyMember.java | 156 ++++ ...aBatchUpdateUserAvailabilitiesRequest.java | 78 ++ ...BatchUpdateUserAvailabilitiesResponse.java | 66 ++ ...alphaCheckFeaturePolicyMembersRequest.java | 69 ++ ...lphaCheckFeaturePolicyMembersResponse.java | 93 +++ ...aturePolicyMembersResponseMemberCheck.java | 108 +++ ...ogleCloudDiscoveryengineV1alphaEngine.java | 60 +- ...overyengineV1alphaEngineFeaturePolicy.java | 114 +++ ...ngineV1alphaEngineFeaturePolicyMember.java | 156 ++++ ...V1alphaListUserAvailabilitiesResponse.java | 93 +++ ...eV1alphaUpdateUserAvailabilityRequest.java | 123 ++++ ...iscoveryengineV1alphaUserAvailability.java | 145 ++++ ...ryengineV1alphaWidgetConfigUiSettings.java | 30 +- ...oogleCloudDiscoveryengineV1betaEngine.java | 60 +- ...coveryengineV1betaEngineFeaturePolicy.java | 114 +++ ...engineV1betaEngineFeaturePolicyMember.java | 156 ++++ .../v1alpha/2.0.0/pom.xml | 4 +- .../v1alpha/README.md | 4 +- .../v1beta/2.0.0/README.md | 4 +- .../GoogleCloudDiscoveryengineV1Engine.java | 60 +- ...dDiscoveryengineV1EngineFeaturePolicy.java | 114 +++ ...veryengineV1EngineFeaturePolicyMember.java | 156 ++++ ...ogleCloudDiscoveryengineV1alphaEngine.java | 60 +- ...overyengineV1alphaEngineFeaturePolicy.java | 114 +++ ...ngineV1alphaEngineFeaturePolicyMember.java | 156 ++++ ...oogleCloudDiscoveryengineV1betaEngine.java | 60 +- ...coveryengineV1betaEngineFeaturePolicy.java | 114 +++ ...engineV1betaEngineFeaturePolicyMember.java | 156 ++++ .../v1beta/2.0.0/pom.xml | 4 +- .../v1beta/README.md | 4 +- 47 files changed, 4355 insertions(+), 183 deletions(-) create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicy.java create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember.java create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy.java create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember.java create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy.java create mode 100644 clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember.java create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicy.java create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember.java create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesRequest.java create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesResponse.java create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersRequest.java create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponse.java create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponseMemberCheck.java create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy.java create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember.java create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaListUserAvailabilitiesResponse.java create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest.java create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUserAvailability.java create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy.java create mode 100644 clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember.java create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicy.java create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember.java create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy.java create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember.java create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy.java create mode 100644 clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember.java diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/README.md b/clients/google-api-services-discoveryengine/v1/2.0.0/README.md index e6edd55e570..4f04e8e3d07 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-rev20261102-2.9.2 + v1-rev20261106-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20261102-2.9.2' + implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20261106-2.9.2' } ``` diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1Engine.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1Engine.java index c06e22aa0d1..e2f1fcbff6b 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1Engine.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1Engine.java @@ -146,6 +146,15 @@ public final class GoogleCloudDiscoveryengineV1Engine extends com.google.api.cli @com.google.api.client.util.Key private java.util.Map effectiveFeatures; + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map featurePolicies; + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -156,11 +165,11 @@ public final class GoogleCloudDiscoveryengineV1Engine extends com.google.api.cli * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -549,6 +558,27 @@ public GoogleCloudDiscoveryengineV1Engine setEffectiveFeatures(java.util.Map getFeaturePolicies() { + return featurePolicies; + } + + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * @param featurePolicies featurePolicies or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1Engine setFeaturePolicies(java.util.Map featurePolicies) { + this.featurePolicies = featurePolicies; + return this; + } + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -559,11 +589,11 @@ public GoogleCloudDiscoveryengineV1Engine setEffectiveFeatures(java.util.Map getFeatures() { @@ -580,11 +610,11 @@ public java.util.Map getFeatures() { * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @param features features or {@code null} for none */ public GoogleCloudDiscoveryengineV1Engine setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicy.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicy.java new file mode 100644 index 00000000000..5d9d0be2023 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicy.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.v1.model; + +/** + * Restricts which users may use a feature that is turned on in `features`. + * + *

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 GoogleCloudDiscoveryengineV1EngineFeaturePolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. Members who may use the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedMembers; + + /** + * Optional. Access for users who match neither list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultAccess; + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List deniedMembers; + + /** + * Optional. Members who may use the feature. + * @return value or {@code null} for none + */ + public java.util.List getAllowedMembers() { + return allowedMembers; + } + + /** + * Optional. Members who may use the feature. + * @param allowedMembers allowedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicy setAllowedMembers(java.util.List allowedMembers) { + this.allowedMembers = allowedMembers; + return this; + } + + /** + * Optional. Access for users who match neither list. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultAccess() { + return defaultAccess; + } + + /** + * Optional. Access for users who match neither list. + * @param defaultAccess defaultAccess or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicy setDefaultAccess(java.lang.String defaultAccess) { + this.defaultAccess = defaultAccess; + return this; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @return value or {@code null} for none + */ + public java.util.List getDeniedMembers() { + return deniedMembers; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @param deniedMembers deniedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicy setDeniedMembers(java.util.List deniedMembers) { + this.deniedMembers = deniedMembers; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1EngineFeaturePolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1EngineFeaturePolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1EngineFeaturePolicy clone() { + return (GoogleCloudDiscoveryengineV1EngineFeaturePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember.java new file mode 100644 index 00000000000..5e6ce6a0ddd --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember.java @@ -0,0 +1,156 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * A user or group the policy refers to. + * + *

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 GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember extends com.google.api.client.json.GenericJson { + + /** + * Optional. Label shown in the console. Never used for evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Required. Kind of member. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. Result of the server's directory check when the member was saved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verification; + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @param id id or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Required. Kind of member. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. Kind of member. + * @param type type or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @return value or {@code null} for none + */ + public java.lang.String getVerification() { + return verification; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @param verification verification or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember setVerification(java.lang.String verification) { + this.verification = verification; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember clone() { + return (GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1WidgetConfigUiSettings.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1WidgetConfigUiSettings.java index cfc7e184615..d13bf38ead7 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1WidgetConfigUiSettings.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1WidgetConfigUiSettings.java @@ -126,11 +126,11 @@ public final class GoogleCloudDiscoveryengineV1WidgetConfigUiSettings extends co * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -421,11 +421,11 @@ public GoogleCloudDiscoveryengineV1WidgetConfigUiSettings setFeatureToggleInfo(G * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @return value or {@code null} for none */ public java.util.Map getFeatures() { @@ -441,11 +441,11 @@ public java.util.Map getFeatures() { * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @param features features or {@code null} for none */ public GoogleCloudDiscoveryengineV1WidgetConfigUiSettings setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngine.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngine.java index cf9df976ebc..59310a9f5d0 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngine.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngine.java @@ -146,6 +146,15 @@ public final class GoogleCloudDiscoveryengineV1alphaEngine extends com.google.ap @com.google.api.client.util.Key private java.util.Map effectiveFeatures; + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map featurePolicies; + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -156,11 +165,11 @@ public final class GoogleCloudDiscoveryengineV1alphaEngine extends com.google.ap * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -564,6 +573,27 @@ public GoogleCloudDiscoveryengineV1alphaEngine setEffectiveFeatures(java.util.Ma return this; } + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * @return value or {@code null} for none + */ + public java.util.Map getFeaturePolicies() { + return featurePolicies; + } + + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * @param featurePolicies featurePolicies or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngine setFeaturePolicies(java.util.Map featurePolicies) { + this.featurePolicies = featurePolicies; + return this; + } + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -574,11 +604,11 @@ public GoogleCloudDiscoveryengineV1alphaEngine setEffectiveFeatures(java.util.Ma * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @return value or {@code null} for none */ public java.util.Map getFeatures() { @@ -595,11 +625,11 @@ public java.util.Map getFeatures() { * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @param features features or {@code null} for none */ public GoogleCloudDiscoveryengineV1alphaEngine setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy.java new file mode 100644 index 00000000000..044a00f35ef --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy.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.v1.model; + +/** + * Restricts which users may use a feature that is turned on in `features`. + * + *

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 GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. Members who may use the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedMembers; + + /** + * Optional. Access for users who match neither list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultAccess; + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List deniedMembers; + + /** + * Optional. Members who may use the feature. + * @return value or {@code null} for none + */ + public java.util.List getAllowedMembers() { + return allowedMembers; + } + + /** + * Optional. Members who may use the feature. + * @param allowedMembers allowedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy setAllowedMembers(java.util.List allowedMembers) { + this.allowedMembers = allowedMembers; + return this; + } + + /** + * Optional. Access for users who match neither list. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultAccess() { + return defaultAccess; + } + + /** + * Optional. Access for users who match neither list. + * @param defaultAccess defaultAccess or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy setDefaultAccess(java.lang.String defaultAccess) { + this.defaultAccess = defaultAccess; + return this; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @return value or {@code null} for none + */ + public java.util.List getDeniedMembers() { + return deniedMembers; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @param deniedMembers deniedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy setDeniedMembers(java.util.List deniedMembers) { + this.deniedMembers = deniedMembers; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy clone() { + return (GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember.java new file mode 100644 index 00000000000..b46307fb551 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember.java @@ -0,0 +1,156 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * A user or group the policy refers to. + * + *

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 GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember extends com.google.api.client.json.GenericJson { + + /** + * Optional. Label shown in the console. Never used for evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Required. Kind of member. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. Result of the server's directory check when the member was saved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verification; + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @param id id or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Required. Kind of member. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. Kind of member. + * @param type type or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @return value or {@code null} for none + */ + public java.lang.String getVerification() { + return verification; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @param verification verification or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember setVerification(java.lang.String verification) { + this.verification = verification; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember clone() { + return (GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngine.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngine.java index 4bf29212a10..b4d0f9b279b 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngine.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngine.java @@ -146,6 +146,15 @@ public final class GoogleCloudDiscoveryengineV1betaEngine extends com.google.api @com.google.api.client.util.Key private java.util.Map effectiveFeatures; + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map featurePolicies; + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -156,11 +165,11 @@ public final class GoogleCloudDiscoveryengineV1betaEngine extends com.google.api * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -549,6 +558,27 @@ public GoogleCloudDiscoveryengineV1betaEngine setEffectiveFeatures(java.util.Map return this; } + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * @return value or {@code null} for none + */ + public java.util.Map getFeaturePolicies() { + return featurePolicies; + } + + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * @param featurePolicies featurePolicies or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngine setFeaturePolicies(java.util.Map featurePolicies) { + this.featurePolicies = featurePolicies; + return this; + } + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -559,11 +589,11 @@ public GoogleCloudDiscoveryengineV1betaEngine setEffectiveFeatures(java.util.Map * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @return value or {@code null} for none */ public java.util.Map getFeatures() { @@ -580,11 +610,11 @@ public java.util.Map getFeatures() { * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @param features features or {@code null} for none */ public GoogleCloudDiscoveryengineV1betaEngine setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy.java new file mode 100644 index 00000000000..8703c4a38da --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy.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.v1.model; + +/** + * Restricts which users may use a feature that is turned on in `features`. + * + *

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 GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. Members who may use the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedMembers; + + /** + * Optional. Access for users who match neither list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultAccess; + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List deniedMembers; + + /** + * Optional. Members who may use the feature. + * @return value or {@code null} for none + */ + public java.util.List getAllowedMembers() { + return allowedMembers; + } + + /** + * Optional. Members who may use the feature. + * @param allowedMembers allowedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy setAllowedMembers(java.util.List allowedMembers) { + this.allowedMembers = allowedMembers; + return this; + } + + /** + * Optional. Access for users who match neither list. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultAccess() { + return defaultAccess; + } + + /** + * Optional. Access for users who match neither list. + * @param defaultAccess defaultAccess or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy setDefaultAccess(java.lang.String defaultAccess) { + this.defaultAccess = defaultAccess; + return this; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @return value or {@code null} for none + */ + public java.util.List getDeniedMembers() { + return deniedMembers; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @param deniedMembers deniedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy setDeniedMembers(java.util.List deniedMembers) { + this.deniedMembers = deniedMembers; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy clone() { + return (GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember.java new file mode 100644 index 00000000000..2abd9ad08ef --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember.java @@ -0,0 +1,156 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.discoveryengine.v1.model; + +/** + * A user or group the policy refers to. + * + *

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 GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember extends com.google.api.client.json.GenericJson { + + /** + * Optional. Label shown in the console. Never used for evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Required. Kind of member. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. Result of the server's directory check when the member was saved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verification; + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @param id id or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Required. Kind of member. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. Kind of member. + * @param type type or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @return value or {@code null} for none + */ + public java.lang.String getVerification() { + return verification; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @param verification verification or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember setVerification(java.lang.String verification) { + this.verification = verification; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember clone() { + return (GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/pom.xml b/clients/google-api-services-discoveryengine/v1/2.0.0/pom.xml index d1e2300c08c..61c8871d73e 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/pom.xml +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-discoveryengine - v1-rev20261102-2.9.2 - Discovery Engine API v1-rev20261102-2.9.2 + v1-rev20261106-2.9.2 + Discovery Engine API v1-rev20261106-2.9.2 jar 2011 diff --git a/clients/google-api-services-discoveryengine/v1/README.md b/clients/google-api-services-discoveryengine/v1/README.md index e6edd55e570..4f04e8e3d07 100644 --- a/clients/google-api-services-discoveryengine/v1/README.md +++ b/clients/google-api-services-discoveryengine/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-discoveryengine - v1-rev20261102-2.9.2 + v1-rev20261106-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20261102-2.9.2' + implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20261106-2.9.2' } ``` diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/README.md b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/README.md index 0c70ef06fb7..837a278fd45 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/README.md +++ b/clients/google-api-services-discoveryengine/v1alpha/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 - v1alpha-rev20261102-2.9.2 + v1alpha-rev20261106-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-discoveryengine:v1alpha-rev20261102-2.9.2' + implementation 'com.google.apis:google-api-services-discoveryengine:v1alpha-rev20261106-2.9.2' } ``` diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/DiscoveryEngine.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/DiscoveryEngine.java index d76a36a4237..38c98ff1c68 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/DiscoveryEngine.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/DiscoveryEngine.java @@ -26537,6 +26537,149 @@ public Engines engines() { */ public class Engines { + /** + * Checks members for Engine.feature_policies against the project's directory, as + * EngineService.UpdateEngine does when it saves them, and saves nothing. + * + * Create a request for the method "engines.checkFeaturePolicyMembers". + * + * This request holds the parameters needed by the discoveryengine server. After setting any + * optional parameters, call the {@link CheckFeaturePolicyMembers#execute()} method to invoke the + * remote operation. + * + * @param name Required. The engine resource name. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersRequest} + * @return the request + */ + public CheckFeaturePolicyMembers checkFeaturePolicyMembers(java.lang.String name, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersRequest content) throws java.io.IOException { + CheckFeaturePolicyMembers result = new CheckFeaturePolicyMembers(name, content); + initialize(result); + return result; + } + + public class CheckFeaturePolicyMembers extends DiscoveryEngineRequest { + + private static final String REST_PATH = "v1alpha/{+name}:checkFeaturePolicyMembers"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$"); + + /** + * Checks members for Engine.feature_policies against the project's directory, as + * EngineService.UpdateEngine does when it saves them, and saves nothing. + * + * Create a request for the method "engines.checkFeaturePolicyMembers". + * + * This request holds the parameters needed by the the discoveryengine server. After setting any + * optional parameters, call the {@link CheckFeaturePolicyMembers#execute()} method to invoke the + * remote operation.

{@link CheckFeaturePolicyMembers#initialize(com.google.api.client.googlea + * pis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.

+ * + * @param name Required. The engine resource name. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersRequest} + * @since 1.13 + */ + protected CheckFeaturePolicyMembers(java.lang.String name, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersRequest content) { + super(DiscoveryEngine.this, "POST", REST_PATH, content, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponse.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/[^/]+$"); + } + } + + @Override + public CheckFeaturePolicyMembers set$Xgafv(java.lang.String $Xgafv) { + return (CheckFeaturePolicyMembers) super.set$Xgafv($Xgafv); + } + + @Override + public CheckFeaturePolicyMembers setAccessToken(java.lang.String accessToken) { + return (CheckFeaturePolicyMembers) super.setAccessToken(accessToken); + } + + @Override + public CheckFeaturePolicyMembers setAlt(java.lang.String alt) { + return (CheckFeaturePolicyMembers) super.setAlt(alt); + } + + @Override + public CheckFeaturePolicyMembers setCallback(java.lang.String callback) { + return (CheckFeaturePolicyMembers) super.setCallback(callback); + } + + @Override + public CheckFeaturePolicyMembers setFields(java.lang.String fields) { + return (CheckFeaturePolicyMembers) super.setFields(fields); + } + + @Override + public CheckFeaturePolicyMembers setKey(java.lang.String key) { + return (CheckFeaturePolicyMembers) super.setKey(key); + } + + @Override + public CheckFeaturePolicyMembers setOauthToken(java.lang.String oauthToken) { + return (CheckFeaturePolicyMembers) super.setOauthToken(oauthToken); + } + + @Override + public CheckFeaturePolicyMembers setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CheckFeaturePolicyMembers) super.setPrettyPrint(prettyPrint); + } + + @Override + public CheckFeaturePolicyMembers setQuotaUser(java.lang.String quotaUser) { + return (CheckFeaturePolicyMembers) super.setQuotaUser(quotaUser); + } + + @Override + public CheckFeaturePolicyMembers setUploadType(java.lang.String uploadType) { + return (CheckFeaturePolicyMembers) super.setUploadType(uploadType); + } + + @Override + public CheckFeaturePolicyMembers setUploadProtocol(java.lang.String uploadProtocol) { + return (CheckFeaturePolicyMembers) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The engine resource name. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The engine resource name. Format: + `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The engine resource name. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + */ + public CheckFeaturePolicyMembers 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/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public CheckFeaturePolicyMembers set(String parameterName, Object value) { + return (CheckFeaturePolicyMembers) super.set(parameterName, value); + } + } /** * Creates an Engine. * @@ -66913,6 +67056,560 @@ public List set(String parameterName, Object value) { } } + } + /** + * An accessor for creating requests from the UserAvailabilities collection. + * + *

The typical use is:

+ *
+         *   {@code DiscoveryEngine discoveryengine = new DiscoveryEngine(...);}
+         *   {@code DiscoveryEngine.UserAvailabilities.List request = discoveryengine.userAvailabilities().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public UserAvailabilities userAvailabilities() { + return new UserAvailabilities(); + } + + /** + * The "userAvailabilities" collection of methods. + */ + public class UserAvailabilities { + + /** + * Updates multiple UserAvailabilitys. + * + * Create a request for the method "userAvailabilities.batchUpdate". + * + * This request holds the parameters needed by the discoveryengine server. After setting any + * optional parameters, call the {@link BatchUpdate#execute()} method to invoke the remote + * operation. + * + * @param parent Required. The parent UserStore resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesRequest} + * @return the request + */ + public BatchUpdate batchUpdate(java.lang.String parent, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesRequest content) throws java.io.IOException { + BatchUpdate result = new BatchUpdate(parent, content); + initialize(result); + return result; + } + + public class BatchUpdate extends DiscoveryEngineRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/userAvailabilities:batchUpdate"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/userStores/[^/]+$"); + + /** + * Updates multiple UserAvailabilitys. + * + * Create a request for the method "userAvailabilities.batchUpdate". + * + * This request holds the parameters needed by the the discoveryengine server. After setting any + * optional parameters, call the {@link BatchUpdate#execute()} method to invoke the remote + * operation.

{@link + * BatchUpdate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent UserStore resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesRequest} + * @since 1.13 + */ + protected BatchUpdate(java.lang.String parent, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesRequest content) { + super(DiscoveryEngine.this, "POST", REST_PATH, content, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesResponse.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/[^/]+/userStores/[^/]+$"); + } + } + + @Override + public BatchUpdate set$Xgafv(java.lang.String $Xgafv) { + return (BatchUpdate) super.set$Xgafv($Xgafv); + } + + @Override + public BatchUpdate setAccessToken(java.lang.String accessToken) { + return (BatchUpdate) super.setAccessToken(accessToken); + } + + @Override + public BatchUpdate setAlt(java.lang.String alt) { + return (BatchUpdate) super.setAlt(alt); + } + + @Override + public BatchUpdate setCallback(java.lang.String callback) { + return (BatchUpdate) super.setCallback(callback); + } + + @Override + public BatchUpdate setFields(java.lang.String fields) { + return (BatchUpdate) super.setFields(fields); + } + + @Override + public BatchUpdate setKey(java.lang.String key) { + return (BatchUpdate) super.setKey(key); + } + + @Override + public BatchUpdate setOauthToken(java.lang.String oauthToken) { + return (BatchUpdate) super.setOauthToken(oauthToken); + } + + @Override + public BatchUpdate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchUpdate) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchUpdate setQuotaUser(java.lang.String quotaUser) { + return (BatchUpdate) super.setQuotaUser(quotaUser); + } + + @Override + public BatchUpdate setUploadType(java.lang.String uploadType) { + return (BatchUpdate) super.setUploadType(uploadType); + } + + @Override + public BatchUpdate setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchUpdate) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent UserStore resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent UserStore resource name, format: + `projects/{project}/locations/{location}/userStores/{user_store_id}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent UserStore resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + */ + public BatchUpdate 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/[^/]+/userStores/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BatchUpdate set(String parameterName, Object value) { + return (BatchUpdate) super.set(parameterName, value); + } + } + /** + * Lists the UserAvailabilitys. + * + * Create a request for the method "userAvailabilities.list". + * + * This request holds the parameters needed by the discoveryengine server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent UserStore resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends DiscoveryEngineRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/userAvailabilities"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/userStores/[^/]+$"); + + /** + * Lists the UserAvailabilitys. + * + * Create a request for the method "userAvailabilities.list". + * + * This request holds the parameters needed by the the discoveryengine server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent UserStore resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(DiscoveryEngine.this, "GET", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaListUserAvailabilitiesResponse.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/[^/]+/userStores/[^/]+$"); + } + } + + @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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent UserStore resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent UserStore resource name, format: + `projects/{project}/locations/{location}/userStores/{user_store_id}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent UserStore resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + */ + public List 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/[^/]+/userStores/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter for the list request. Supported fields (only `user_principal` is + * supported for now): * `user_principal` (will be normalized for matching) Examples: * + * `user_principal = "user1@example.com"` to list user availability for + * `user1@example.com`. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter for the list request. Supported fields (only `user_principal` is supported for + now): * `user_principal` (will be normalized for matching) Examples: * `user_principal = + "user1@example.com"` to list user availability for `user1@example.com`. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter for the list request. Supported fields (only `user_principal` is + * supported for now): * `user_principal` (will be normalized for matching) Examples: * + * `user_principal = "user1@example.com"` to list user availability for + * `user1@example.com`. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, defaults to 100. The maximum value is 1000; values above 1000 will be + * coerced to 1000. If this field is negative, an INVALID_ARGUMENT error is returned. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, + defaults to 100. The maximum value is 1000; values above 1000 will be coerced to 1000. If this + field is negative, an INVALID_ARGUMENT error is returned. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, defaults to 100. The maximum value is 1000; values above 1000 will be + * coerced to 1000. If this field is negative, an INVALID_ARGUMENT error is returned. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListUserAvailabilities` call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListUserAvailabilities` must match the call that provided the page + * token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListUserAvailabilities` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListUserAvailabilities` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListUserAvailabilities` call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListUserAvailabilities` must match the call that provided the page + * token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the UserAvailability collection. + * + *

The typical use is:

+ *
+         *   {@code DiscoveryEngine discoveryengine = new DiscoveryEngine(...);}
+         *   {@code DiscoveryEngine.UserAvailability.List request = discoveryengine.userAvailability().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public UserAvailability userAvailability() { + return new UserAvailability(); + } + + /** + * The "userAvailability" collection of methods. + */ + public class UserAvailability { + + /** + * Updates a UserAvailability. + * + * Create a request for the method "userAvailability.update". + * + * This request holds the parameters needed by the discoveryengine server. After setting any + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param parent Optional. The parent UserStore resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest} + * @return the request + */ + public Update update(java.lang.String parent, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest content) throws java.io.IOException { + Update result = new Update(parent, content); + initialize(result); + return result; + } + + public class Update extends DiscoveryEngineRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/userAvailability:update"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/userStores/[^/]+$"); + + /** + * Updates a UserAvailability. + * + * Create a request for the method "userAvailability.update". + * + * This request holds the parameters needed by the the discoveryengine server. After setting any + * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + *

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Optional. The parent UserStore resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + * @param content the {@link com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest} + * @since 1.13 + */ + protected Update(java.lang.String parent, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest content) { + super(DiscoveryEngine.this, "POST", REST_PATH, content, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaUserAvailability.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/[^/]+/userStores/[^/]+$"); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + /** + * Optional. The parent UserStore resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Optional. The parent UserStore resource name, format: + `projects/{project}/locations/{location}/userStores/{user_store_id}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Optional. The parent UserStore resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + */ + public Update 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/[^/]+/userStores/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + } /** * An accessor for creating requests from the UserLicenses collection. 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 f9c5bcd9e0c..57c2ae85275 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 @@ -146,6 +146,15 @@ public final class GoogleCloudDiscoveryengineV1Engine extends com.google.api.cli @com.google.api.client.util.Key private java.util.Map effectiveFeatures; + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map featurePolicies; + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -156,11 +165,11 @@ public final class GoogleCloudDiscoveryengineV1Engine extends com.google.api.cli * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -549,6 +558,27 @@ public GoogleCloudDiscoveryengineV1Engine setEffectiveFeatures(java.util.Map getFeaturePolicies() { + return featurePolicies; + } + + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * @param featurePolicies featurePolicies or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1Engine setFeaturePolicies(java.util.Map featurePolicies) { + this.featurePolicies = featurePolicies; + return this; + } + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -559,11 +589,11 @@ public GoogleCloudDiscoveryengineV1Engine setEffectiveFeatures(java.util.Map getFeatures() { @@ -580,11 +610,11 @@ public java.util.Map getFeatures() { * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @param features features or {@code null} for none */ public GoogleCloudDiscoveryengineV1Engine setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicy.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicy.java new file mode 100644 index 00000000000..a95d47fca96 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicy.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; + +/** + * Restricts which users may use a feature that is turned on in `features`. + * + *

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 GoogleCloudDiscoveryengineV1EngineFeaturePolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. Members who may use the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedMembers; + + /** + * Optional. Access for users who match neither list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultAccess; + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List deniedMembers; + + /** + * Optional. Members who may use the feature. + * @return value or {@code null} for none + */ + public java.util.List getAllowedMembers() { + return allowedMembers; + } + + /** + * Optional. Members who may use the feature. + * @param allowedMembers allowedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicy setAllowedMembers(java.util.List allowedMembers) { + this.allowedMembers = allowedMembers; + return this; + } + + /** + * Optional. Access for users who match neither list. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultAccess() { + return defaultAccess; + } + + /** + * Optional. Access for users who match neither list. + * @param defaultAccess defaultAccess or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicy setDefaultAccess(java.lang.String defaultAccess) { + this.defaultAccess = defaultAccess; + return this; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @return value or {@code null} for none + */ + public java.util.List getDeniedMembers() { + return deniedMembers; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @param deniedMembers deniedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicy setDeniedMembers(java.util.List deniedMembers) { + this.deniedMembers = deniedMembers; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1EngineFeaturePolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1EngineFeaturePolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1EngineFeaturePolicy clone() { + return (GoogleCloudDiscoveryengineV1EngineFeaturePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember.java new file mode 100644 index 00000000000..c1a7fc8e0e8 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember.java @@ -0,0 +1,156 @@ +/* + * 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; + +/** + * A user or group the policy refers to. + * + *

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 GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember extends com.google.api.client.json.GenericJson { + + /** + * Optional. Label shown in the console. Never used for evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Required. Kind of member. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. Result of the server's directory check when the member was saved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verification; + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @param id id or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Required. Kind of member. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. Kind of member. + * @param type type or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @return value or {@code null} for none + */ + public java.lang.String getVerification() { + return verification; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @param verification verification or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember setVerification(java.lang.String verification) { + this.verification = verification; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember clone() { + return (GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesRequest.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesRequest.java new file mode 100644 index 00000000000..99f4ae8f042 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesRequest.java @@ -0,0 +1,78 @@ +/* + * 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; + +/** + * Request message for UserStoreService.BatchUpdateUserAvailabilities 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 GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The UserAvailabilitys to update. Maximum of 1000 at a time: if more are passed in, + * returns INVALID_ARGUMENT. Batch is all or nothing; either all updates succeed or none. The + * `parent` field in each child request must either be empty, or match the `parent` field in the + * batch request. If there is a mismatch, that will also result in an INVALID_ARGUMENT being + * returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requests; + + /** + * Required. The UserAvailabilitys to update. Maximum of 1000 at a time: if more are passed in, + * returns INVALID_ARGUMENT. Batch is all or nothing; either all updates succeed or none. The + * `parent` field in each child request must either be empty, or match the `parent` field in the + * batch request. If there is a mismatch, that will also result in an INVALID_ARGUMENT being + * returned. + * @return value or {@code null} for none + */ + public java.util.List getRequests() { + return requests; + } + + /** + * Required. The UserAvailabilitys to update. Maximum of 1000 at a time: if more are passed in, + * returns INVALID_ARGUMENT. Batch is all or nothing; either all updates succeed or none. The + * `parent` field in each child request must either be empty, or match the `parent` field in the + * batch request. If there is a mismatch, that will also result in an INVALID_ARGUMENT being + * returned. + * @param requests requests or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesRequest setRequests(java.util.List requests) { + this.requests = requests; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesRequest set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesRequest clone() { + return (GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesResponse.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesResponse.java new file mode 100644 index 00000000000..27e0464d43d --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesResponse.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; + +/** + * Response message for UserStoreService.BatchUpdateUserAvailabilities 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 GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesResponse extends com.google.api.client.json.GenericJson { + + /** + * The updated UserAvailabilitys. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userAvailabilities; + + /** + * The updated UserAvailabilitys. + * @return value or {@code null} for none + */ + public java.util.List getUserAvailabilities() { + return userAvailabilities; + } + + /** + * The updated UserAvailabilitys. + * @param userAvailabilities userAvailabilities or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesResponse setUserAvailabilities(java.util.List userAvailabilities) { + this.userAvailabilities = userAvailabilities; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesResponse set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesResponse clone() { + return (GoogleCloudDiscoveryengineV1alphaBatchUpdateUserAvailabilitiesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersRequest.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersRequest.java new file mode 100644 index 00000000000..42c3c213c49 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersRequest.java @@ -0,0 +1,69 @@ +/* + * 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; + +/** + * Request for EngineService.CheckFeaturePolicyMembers 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 GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The members to check, in the form a policy takes them. At least 1 and at most 100. + * `verification` is ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List members; + + /** + * Required. The members to check, in the form a policy takes them. At least 1 and at most 100. + * `verification` is ignored. + * @return value or {@code null} for none + */ + public java.util.List getMembers() { + return members; + } + + /** + * Required. The members to check, in the form a policy takes them. At least 1 and at most 100. + * `verification` is ignored. + * @param members members or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersRequest setMembers(java.util.List members) { + this.members = members; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersRequest set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersRequest clone() { + return (GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponse.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponse.java new file mode 100644 index 00000000000..d9f552e099f --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponse.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; + +/** + * Response for EngineService.CheckFeaturePolicyMembers 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 GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponse extends com.google.api.client.json.GenericJson { + + /** + * Where the project's groups are looked up. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String directorySource; + + /** + * One result per requested member, in request order. Members are checked independently, so two + * emails for the same Google group both pass. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List memberChecks; + + /** + * Where the project's groups are looked up. + * @return value or {@code null} for none + */ + public java.lang.String getDirectorySource() { + return directorySource; + } + + /** + * Where the project's groups are looked up. + * @param directorySource directorySource or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponse setDirectorySource(java.lang.String directorySource) { + this.directorySource = directorySource; + return this; + } + + /** + * One result per requested member, in request order. Members are checked independently, so two + * emails for the same Google group both pass. + * @return value or {@code null} for none + */ + public java.util.List getMemberChecks() { + return memberChecks; + } + + /** + * One result per requested member, in request order. Members are checked independently, so two + * emails for the same Google group both pass. + * @param memberChecks memberChecks or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponse setMemberChecks(java.util.List memberChecks) { + this.memberChecks = memberChecks; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponse set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponse clone() { + return (GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponseMemberCheck.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponseMemberCheck.java new file mode 100644 index 00000000000..fbfb58b9e14 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponseMemberCheck.java @@ -0,0 +1,108 @@ +/* + * 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 result for one requested member. + * + *

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 GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponseMemberCheck extends com.google.api.client.json.GenericJson { + + /** + * The member as EngineService.UpdateEngine would save it: `id` normalized, `display_name` taken + * from the directory when it has one, and `verification` set. Echoes the request's member when + * `status` is an INVALID_ARGUMENT from the member's format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember member; + + /** + * OK when the member is valid and, for a group, in the directory. Otherwise INVALID_ARGUMENT for + * a malformed member or a group the directory doesn't have, and UNAVAILABLE for a Google group + * the directory couldn't be asked about. EngineService.UpdateEngine fails on all of these, except + * that it leaves out an allowed group the directory doesn't have, saves the other members, and + * lists the group in Engine.feature_policy_rejections. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleRpcStatus status; + + /** + * The member as EngineService.UpdateEngine would save it: `id` normalized, `display_name` taken + * from the directory when it has one, and `verification` set. Echoes the request's member when + * `status` is an INVALID_ARGUMENT from the member's format. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember getMember() { + return member; + } + + /** + * The member as EngineService.UpdateEngine would save it: `id` normalized, `display_name` taken + * from the directory when it has one, and `verification` set. Echoes the request's member when + * `status` is an INVALID_ARGUMENT from the member's format. + * @param member member or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponseMemberCheck setMember(GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember member) { + this.member = member; + return this; + } + + /** + * OK when the member is valid and, for a group, in the directory. Otherwise INVALID_ARGUMENT for + * a malformed member or a group the directory doesn't have, and UNAVAILABLE for a Google group + * the directory couldn't be asked about. EngineService.UpdateEngine fails on all of these, except + * that it leaves out an allowed group the directory doesn't have, saves the other members, and + * lists the group in Engine.feature_policy_rejections. + * @return value or {@code null} for none + */ + public GoogleRpcStatus getStatus() { + return status; + } + + /** + * OK when the member is valid and, for a group, in the directory. Otherwise INVALID_ARGUMENT for + * a malformed member or a group the directory doesn't have, and UNAVAILABLE for a Google group + * the directory couldn't be asked about. EngineService.UpdateEngine fails on all of these, except + * that it leaves out an allowed group the directory doesn't have, saves the other members, and + * lists the group in Engine.feature_policy_rejections. + * @param status status or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponseMemberCheck setStatus(GoogleRpcStatus status) { + this.status = status; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponseMemberCheck set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponseMemberCheck) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponseMemberCheck clone() { + return (GoogleCloudDiscoveryengineV1alphaCheckFeaturePolicyMembersResponseMemberCheck) 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 63682ed00fd..3e527f9a151 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 @@ -146,6 +146,15 @@ public final class GoogleCloudDiscoveryengineV1alphaEngine extends com.google.ap @com.google.api.client.util.Key private java.util.Map effectiveFeatures; + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map featurePolicies; + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -156,11 +165,11 @@ public final class GoogleCloudDiscoveryengineV1alphaEngine extends com.google.ap * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -564,6 +573,27 @@ public GoogleCloudDiscoveryengineV1alphaEngine setEffectiveFeatures(java.util.Ma return this; } + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * @return value or {@code null} for none + */ + public java.util.Map getFeaturePolicies() { + return featurePolicies; + } + + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * @param featurePolicies featurePolicies or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngine setFeaturePolicies(java.util.Map featurePolicies) { + this.featurePolicies = featurePolicies; + return this; + } + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -574,11 +604,11 @@ public GoogleCloudDiscoveryengineV1alphaEngine setEffectiveFeatures(java.util.Ma * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @return value or {@code null} for none */ public java.util.Map getFeatures() { @@ -595,11 +625,11 @@ public java.util.Map getFeatures() { * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @param features features or {@code null} for none */ public GoogleCloudDiscoveryengineV1alphaEngine setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy.java new file mode 100644 index 00000000000..1b893981538 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy.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; + +/** + * Restricts which users may use a feature that is turned on in `features`. + * + *

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 GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. Members who may use the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedMembers; + + /** + * Optional. Access for users who match neither list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultAccess; + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List deniedMembers; + + /** + * Optional. Members who may use the feature. + * @return value or {@code null} for none + */ + public java.util.List getAllowedMembers() { + return allowedMembers; + } + + /** + * Optional. Members who may use the feature. + * @param allowedMembers allowedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy setAllowedMembers(java.util.List allowedMembers) { + this.allowedMembers = allowedMembers; + return this; + } + + /** + * Optional. Access for users who match neither list. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultAccess() { + return defaultAccess; + } + + /** + * Optional. Access for users who match neither list. + * @param defaultAccess defaultAccess or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy setDefaultAccess(java.lang.String defaultAccess) { + this.defaultAccess = defaultAccess; + return this; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @return value or {@code null} for none + */ + public java.util.List getDeniedMembers() { + return deniedMembers; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @param deniedMembers deniedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy setDeniedMembers(java.util.List deniedMembers) { + this.deniedMembers = deniedMembers; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy clone() { + return (GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember.java new file mode 100644 index 00000000000..8c538f1b45e --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember.java @@ -0,0 +1,156 @@ +/* + * 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; + +/** + * A user or group the policy refers to. + * + *

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 GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember extends com.google.api.client.json.GenericJson { + + /** + * Optional. Label shown in the console. Never used for evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Required. Kind of member. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. Result of the server's directory check when the member was saved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verification; + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @param id id or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Required. Kind of member. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. Kind of member. + * @param type type or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @return value or {@code null} for none + */ + public java.lang.String getVerification() { + return verification; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @param verification verification or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember setVerification(java.lang.String verification) { + this.verification = verification; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember clone() { + return (GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaListUserAvailabilitiesResponse.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaListUserAvailabilitiesResponse.java new file mode 100644 index 00000000000..7800757297f --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaListUserAvailabilitiesResponse.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; + +/** + * Response message for UserStoreService.ListUserAvailabilities 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 GoogleCloudDiscoveryengineV1alphaListUserAvailabilitiesResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `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 UserAvailabilitys matching the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userAvailabilities; + + /** + * A token, which can be sent as `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, which can be sent as `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 GoogleCloudDiscoveryengineV1alphaListUserAvailabilitiesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The UserAvailabilitys matching the request. + * @return value or {@code null} for none + */ + public java.util.List getUserAvailabilities() { + return userAvailabilities; + } + + /** + * The UserAvailabilitys matching the request. + * @param userAvailabilities userAvailabilities or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaListUserAvailabilitiesResponse setUserAvailabilities(java.util.List userAvailabilities) { + this.userAvailabilities = userAvailabilities; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaListUserAvailabilitiesResponse set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaListUserAvailabilitiesResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaListUserAvailabilitiesResponse clone() { + return (GoogleCloudDiscoveryengineV1alphaListUserAvailabilitiesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest.java new file mode 100644 index 00000000000..b131674a00f --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest.java @@ -0,0 +1,123 @@ +/* + * 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; + +/** + * Request message for UserStoreService.UpdateUserAvailability method. Also nested within + * BatchUpdateUserAvailabilityRequest for the UserStoreService.BatchUpdateUserAvailability method. + * `parent` is a required field when this message is used for a single Update, but is optional when + * used for a BatchUpdate. + * + *

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 GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The parent UserStore resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * Optional. The list of fields to update. Only 'state' is supported; if unset, defaults to + * 'state'. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** + * Required. The UserAvailability to update. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaUserAvailability userAvailability; + + /** + * Optional. The parent UserStore resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Optional. The parent UserStore resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + * @param parent parent or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + /** + * Optional. The list of fields to update. Only 'state' is supported; if unset, defaults to + * 'state'. + * @return value or {@code null} for none + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. The list of fields to update. Only 'state' is supported; if unset, defaults to + * 'state'. + * @param updateMask updateMask or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + /** + * Required. The UserAvailability to update. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaUserAvailability getUserAvailability() { + return userAvailability; + } + + /** + * Required. The UserAvailability to update. + * @param userAvailability userAvailability or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest setUserAvailability(GoogleCloudDiscoveryengineV1alphaUserAvailability userAvailability) { + this.userAvailability = userAvailability; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest clone() { + return (GoogleCloudDiscoveryengineV1alphaUpdateUserAvailabilityRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUserAvailability.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUserAvailability.java new file mode 100644 index 00000000000..71b775c93ee --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUserAvailability.java @@ -0,0 +1,145 @@ +/* + * 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; + +/** + * Tracks whether a resource is available for a given user (distinct from whether the user is + * allowed to use that resource by licensing, etc). + * + *

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 GoogleCloudDiscoveryengineV1alphaUserAvailability extends com.google.api.client.json.GenericJson { + + /** + * Optional. Deprecated: use `update_time` only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String observeTime; + + /** + * Optional. Whether the user can currently use the resource. Set by the caller on update. If + * unspecified, defaults to `ACTIVE`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. Timestamp when the most recent update to `state` was saved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. Immutable. User principal (IdP subject for Workforce Identity, email for Google sign- + * in). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userPrincipal; + + /** + * Optional. Deprecated: use `update_time` only. + * @return value or {@code null} for none + */ + public String getObserveTime() { + return observeTime; + } + + /** + * Optional. Deprecated: use `update_time` only. + * @param observeTime observeTime or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaUserAvailability setObserveTime(String observeTime) { + this.observeTime = observeTime; + return this; + } + + /** + * Optional. Whether the user can currently use the resource. Set by the caller on update. If + * unspecified, defaults to `ACTIVE`. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Optional. Whether the user can currently use the resource. Set by the caller on update. If + * unspecified, defaults to `ACTIVE`. + * @param state state or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaUserAvailability setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. Timestamp when the most recent update to `state` was saved. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the most recent update to `state` was saved. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaUserAvailability setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Required. Immutable. User principal (IdP subject for Workforce Identity, email for Google sign- + * in). + * @return value or {@code null} for none + */ + public java.lang.String getUserPrincipal() { + return userPrincipal; + } + + /** + * Required. Immutable. User principal (IdP subject for Workforce Identity, email for Google sign- + * in). + * @param userPrincipal userPrincipal or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaUserAvailability setUserPrincipal(java.lang.String userPrincipal) { + this.userPrincipal = userPrincipal; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaUserAvailability set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaUserAvailability) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaUserAvailability clone() { + return (GoogleCloudDiscoveryengineV1alphaUserAvailability) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings.java index bda70adc3d8..83cad52e509 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings.java @@ -126,11 +126,11 @@ public final class GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings exten * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -421,11 +421,11 @@ public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings setFeatureToggleI * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @return value or {@code null} for none */ public java.util.Map getFeatures() { @@ -441,11 +441,11 @@ public java.util.Map getFeatures() { * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @param features features or {@code null} for none */ public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings setFeatures(java.util.Map features) { 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 d566d240bd2..5b7be880f16 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 @@ -146,6 +146,15 @@ public final class GoogleCloudDiscoveryengineV1betaEngine extends com.google.api @com.google.api.client.util.Key private java.util.Map effectiveFeatures; + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map featurePolicies; + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -156,11 +165,11 @@ public final class GoogleCloudDiscoveryengineV1betaEngine extends com.google.api * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -549,6 +558,27 @@ public GoogleCloudDiscoveryengineV1betaEngine setEffectiveFeatures(java.util.Map return this; } + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * @return value or {@code null} for none + */ + public java.util.Map getFeaturePolicies() { + return featurePolicies; + } + + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * @param featurePolicies featurePolicies or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngine setFeaturePolicies(java.util.Map featurePolicies) { + this.featurePolicies = featurePolicies; + return this; + } + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -559,11 +589,11 @@ public GoogleCloudDiscoveryengineV1betaEngine setEffectiveFeatures(java.util.Map * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @return value or {@code null} for none */ public java.util.Map getFeatures() { @@ -580,11 +610,11 @@ public java.util.Map getFeatures() { * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @param features features or {@code null} for none */ public GoogleCloudDiscoveryengineV1betaEngine setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy.java new file mode 100644 index 00000000000..d8f19fc170d --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy.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; + +/** + * Restricts which users may use a feature that is turned on in `features`. + * + *

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 GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. Members who may use the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedMembers; + + /** + * Optional. Access for users who match neither list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultAccess; + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List deniedMembers; + + /** + * Optional. Members who may use the feature. + * @return value or {@code null} for none + */ + public java.util.List getAllowedMembers() { + return allowedMembers; + } + + /** + * Optional. Members who may use the feature. + * @param allowedMembers allowedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy setAllowedMembers(java.util.List allowedMembers) { + this.allowedMembers = allowedMembers; + return this; + } + + /** + * Optional. Access for users who match neither list. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultAccess() { + return defaultAccess; + } + + /** + * Optional. Access for users who match neither list. + * @param defaultAccess defaultAccess or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy setDefaultAccess(java.lang.String defaultAccess) { + this.defaultAccess = defaultAccess; + return this; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @return value or {@code null} for none + */ + public java.util.List getDeniedMembers() { + return deniedMembers; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @param deniedMembers deniedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy setDeniedMembers(java.util.List deniedMembers) { + this.deniedMembers = deniedMembers; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy clone() { + return (GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember.java new file mode 100644 index 00000000000..051c34e4e01 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember.java @@ -0,0 +1,156 @@ +/* + * 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; + +/** + * A user or group the policy refers to. + * + *

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 GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember extends com.google.api.client.json.GenericJson { + + /** + * Optional. Label shown in the console. Never used for evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Required. Kind of member. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. Result of the server's directory check when the member was saved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verification; + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @param id id or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Required. Kind of member. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. Kind of member. + * @param type type or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @return value or {@code null} for none + */ + public java.lang.String getVerification() { + return verification; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @param verification verification or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember setVerification(java.lang.String verification) { + this.verification = verification; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember clone() { + return (GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember) super.clone(); + } + +} 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 b9fe8b1c933..3a5eda20656 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-rev20261102-2.9.2 - Discovery Engine API v1alpha-rev20261102-2.9.2 + v1alpha-rev20261106-2.9.2 + Discovery Engine API v1alpha-rev20261106-2.9.2 jar 2011 diff --git a/clients/google-api-services-discoveryengine/v1alpha/README.md b/clients/google-api-services-discoveryengine/v1alpha/README.md index 0c70ef06fb7..837a278fd45 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-rev20261102-2.9.2 + v1alpha-rev20261106-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-discoveryengine:v1alpha-rev20261102-2.9.2' + implementation 'com.google.apis:google-api-services-discoveryengine:v1alpha-rev20261106-2.9.2' } ``` 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 535991d23c7..430299c5a32 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-rev20261102-2.9.2 + v1beta-rev20261106-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-discoveryengine:v1beta-rev20261102-2.9.2' + implementation 'com.google.apis:google-api-services-discoveryengine:v1beta-rev20261106-2.9.2' } ``` 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 0d613ffbb49..a6fd725ede2 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 @@ -146,6 +146,15 @@ public final class GoogleCloudDiscoveryengineV1Engine extends com.google.api.cli @com.google.api.client.util.Key private java.util.Map effectiveFeatures; + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map featurePolicies; + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -156,11 +165,11 @@ public final class GoogleCloudDiscoveryengineV1Engine extends com.google.api.cli * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -549,6 +558,27 @@ public GoogleCloudDiscoveryengineV1Engine setEffectiveFeatures(java.util.Map getFeaturePolicies() { + return featurePolicies; + } + + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * @param featurePolicies featurePolicies or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1Engine setFeaturePolicies(java.util.Map featurePolicies) { + this.featurePolicies = featurePolicies; + return this; + } + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -559,11 +589,11 @@ public GoogleCloudDiscoveryengineV1Engine setEffectiveFeatures(java.util.Map getFeatures() { @@ -580,11 +610,11 @@ public java.util.Map getFeatures() { * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @param features features or {@code null} for none */ public GoogleCloudDiscoveryengineV1Engine setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicy.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicy.java new file mode 100644 index 00000000000..6e076d759e6 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicy.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.v1beta.model; + +/** + * Restricts which users may use a feature that is turned on in `features`. + * + *

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 GoogleCloudDiscoveryengineV1EngineFeaturePolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. Members who may use the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedMembers; + + /** + * Optional. Access for users who match neither list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultAccess; + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List deniedMembers; + + /** + * Optional. Members who may use the feature. + * @return value or {@code null} for none + */ + public java.util.List getAllowedMembers() { + return allowedMembers; + } + + /** + * Optional. Members who may use the feature. + * @param allowedMembers allowedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicy setAllowedMembers(java.util.List allowedMembers) { + this.allowedMembers = allowedMembers; + return this; + } + + /** + * Optional. Access for users who match neither list. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultAccess() { + return defaultAccess; + } + + /** + * Optional. Access for users who match neither list. + * @param defaultAccess defaultAccess or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicy setDefaultAccess(java.lang.String defaultAccess) { + this.defaultAccess = defaultAccess; + return this; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @return value or {@code null} for none + */ + public java.util.List getDeniedMembers() { + return deniedMembers; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @param deniedMembers deniedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicy setDeniedMembers(java.util.List deniedMembers) { + this.deniedMembers = deniedMembers; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1EngineFeaturePolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1EngineFeaturePolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1EngineFeaturePolicy clone() { + return (GoogleCloudDiscoveryengineV1EngineFeaturePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember.java new file mode 100644 index 00000000000..dd2cd42f158 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember.java @@ -0,0 +1,156 @@ +/* + * 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; + +/** + * A user or group the policy refers to. + * + *

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 GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember extends com.google.api.client.json.GenericJson { + + /** + * Optional. Label shown in the console. Never used for evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Required. Kind of member. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. Result of the server's directory check when the member was saved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verification; + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @param id id or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Required. Kind of member. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. Kind of member. + * @param type type or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @return value or {@code null} for none + */ + public java.lang.String getVerification() { + return verification; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @param verification verification or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember setVerification(java.lang.String verification) { + this.verification = verification; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember clone() { + return (GoogleCloudDiscoveryengineV1EngineFeaturePolicyMember) 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 16b7d1d877d..0bdfd630f5c 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 @@ -146,6 +146,15 @@ public final class GoogleCloudDiscoveryengineV1alphaEngine extends com.google.ap @com.google.api.client.util.Key private java.util.Map effectiveFeatures; + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map featurePolicies; + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -156,11 +165,11 @@ public final class GoogleCloudDiscoveryengineV1alphaEngine extends com.google.ap * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -564,6 +573,27 @@ public GoogleCloudDiscoveryengineV1alphaEngine setEffectiveFeatures(java.util.Ma return this; } + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * @return value or {@code null} for none + */ + public java.util.Map getFeaturePolicies() { + return featurePolicies; + } + + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * @param featurePolicies featurePolicies or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngine setFeaturePolicies(java.util.Map featurePolicies) { + this.featurePolicies = featurePolicies; + return this; + } + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -574,11 +604,11 @@ public GoogleCloudDiscoveryengineV1alphaEngine setEffectiveFeatures(java.util.Ma * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @return value or {@code null} for none */ public java.util.Map getFeatures() { @@ -595,11 +625,11 @@ public java.util.Map getFeatures() { * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @param features features or {@code null} for none */ public GoogleCloudDiscoveryengineV1alphaEngine setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy.java new file mode 100644 index 00000000000..8eaa8506642 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy.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.v1beta.model; + +/** + * Restricts which users may use a feature that is turned on in `features`. + * + *

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 GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. Members who may use the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedMembers; + + /** + * Optional. Access for users who match neither list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultAccess; + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List deniedMembers; + + /** + * Optional. Members who may use the feature. + * @return value or {@code null} for none + */ + public java.util.List getAllowedMembers() { + return allowedMembers; + } + + /** + * Optional. Members who may use the feature. + * @param allowedMembers allowedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy setAllowedMembers(java.util.List allowedMembers) { + this.allowedMembers = allowedMembers; + return this; + } + + /** + * Optional. Access for users who match neither list. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultAccess() { + return defaultAccess; + } + + /** + * Optional. Access for users who match neither list. + * @param defaultAccess defaultAccess or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy setDefaultAccess(java.lang.String defaultAccess) { + this.defaultAccess = defaultAccess; + return this; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @return value or {@code null} for none + */ + public java.util.List getDeniedMembers() { + return deniedMembers; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @param deniedMembers deniedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy setDeniedMembers(java.util.List deniedMembers) { + this.deniedMembers = deniedMembers; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy clone() { + return (GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember.java new file mode 100644 index 00000000000..4a0d0809ca1 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember.java @@ -0,0 +1,156 @@ +/* + * 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; + +/** + * A user or group the policy refers to. + * + *

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 GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember extends com.google.api.client.json.GenericJson { + + /** + * Optional. Label shown in the console. Never used for evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Required. Kind of member. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. Result of the server's directory check when the member was saved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verification; + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @param id id or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Required. Kind of member. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. Kind of member. + * @param type type or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @return value or {@code null} for none + */ + public java.lang.String getVerification() { + return verification; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @param verification verification or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember setVerification(java.lang.String verification) { + this.verification = verification; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember clone() { + return (GoogleCloudDiscoveryengineV1alphaEngineFeaturePolicyMember) super.clone(); + } + +} 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 4783af79563..8dd3d7f2eb4 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 @@ -146,6 +146,15 @@ public final class GoogleCloudDiscoveryengineV1betaEngine extends com.google.api @com.google.api.client.util.Key private java.util.Map effectiveFeatures; + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map featurePolicies; + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -156,11 +165,11 @@ public final class GoogleCloudDiscoveryengineV1betaEngine extends com.google.api * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -549,6 +558,27 @@ public GoogleCloudDiscoveryengineV1betaEngine setEffectiveFeatures(java.util.Map return this; } + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * @return value or {@code null} for none + */ + public java.util.Map getFeaturePolicies() { + return featurePolicies; + } + + /** + * Optional. Per-feature access policies, keyed by feature toggle name (see `features`). A feature + * with no entry is available to every user when it is on. Only features that support access + * policies are accepted. + * @param featurePolicies featurePolicies or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngine setFeaturePolicies(java.util.Map featurePolicies) { + this.featurePolicies = featurePolicies; + return this; + } + /** * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * * `*`: all features, if it's present, all other feature state settings are ignored. * `agent- @@ -559,11 +589,11 @@ public GoogleCloudDiscoveryengineV1betaEngine setEffectiveFeatures(java.util.Map * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @return value or {@code null} for none */ public java.util.Map getFeatures() { @@ -580,11 +610,11 @@ public java.util.Map getFeatures() { * `disable-video-generation` * `music-generation` * `speech-generation` * `disable-onedrive- * upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * - * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user- - * sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross- - * product-intelligence` * `workflow-agents` * `in-app-notifications` * `code-extraction` * - * `remote-vm` * `license-tier-badge` * `agent-marketplace` * `agent-scheduling` * `preview- - * agents` + * `skill-sharing-without-admin-approval` * `skill-security-scan` * `disable-projects` * `sobi` * + * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent- + * orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications` * + * `code-extraction` * `remote-vm` * `license-tier-badge` * `canvas-app-sharing` * `agent- + * marketplace` * `agent-scheduling` * `preview-agents` * `plugins` * @param features features or {@code null} for none */ public GoogleCloudDiscoveryengineV1betaEngine setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy.java new file mode 100644 index 00000000000..fdbcc9b9e63 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy.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.v1beta.model; + +/** + * Restricts which users may use a feature that is turned on in `features`. + * + *

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 GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. Members who may use the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedMembers; + + /** + * Optional. Access for users who match neither list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultAccess; + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List deniedMembers; + + /** + * Optional. Members who may use the feature. + * @return value or {@code null} for none + */ + public java.util.List getAllowedMembers() { + return allowedMembers; + } + + /** + * Optional. Members who may use the feature. + * @param allowedMembers allowedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy setAllowedMembers(java.util.List allowedMembers) { + this.allowedMembers = allowedMembers; + return this; + } + + /** + * Optional. Access for users who match neither list. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultAccess() { + return defaultAccess; + } + + /** + * Optional. Access for users who match neither list. + * @param defaultAccess defaultAccess or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy setDefaultAccess(java.lang.String defaultAccess) { + this.defaultAccess = defaultAccess; + return this; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @return value or {@code null} for none + */ + public java.util.List getDeniedMembers() { + return deniedMembers; + } + + /** + * Optional. Members who may not use the feature. Takes precedence over `allowed_members`. + * @param deniedMembers deniedMembers or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy setDeniedMembers(java.util.List deniedMembers) { + this.deniedMembers = deniedMembers; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy clone() { + return (GoogleCloudDiscoveryengineV1betaEngineFeaturePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember.java new file mode 100644 index 00000000000..05d3f5c5a1b --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember.java @@ -0,0 +1,156 @@ +/* + * 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; + +/** + * A user or group the policy refers to. + * + *

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 GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember extends com.google.api.client.json.GenericJson { + + /** + * Optional. Label shown in the console. Never used for evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Required. Kind of member. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. Result of the server's directory check when the member was saved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verification; + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Label shown in the console. Never used for evaluation. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Required. Identifier evaluated at serving time. Its format depends on the project's identity + * provider: * Google identity (`GSUITE`): the group or user email. For groups, the server + * resolves the email to a group ID on write and returns the email on read. * Workforce Identity + * Federation (`THIRD_PARTY`), groups: the value the provider emits in `google.groups`. With SCIM + * this is the SCIM group ID; without SCIM and with the default Microsoft Entra mapping it is the + * Entra group object ID. * Workforce Identity Federation, users: the user's workforce identity + * subject. + * @param id id or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Required. Kind of member. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. Kind of member. + * @param type type or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @return value or {@code null} for none + */ + public java.lang.String getVerification() { + return verification; + } + + /** + * Output only. Result of the server's directory check when the member was saved. + * @param verification verification or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember setVerification(java.lang.String verification) { + this.verification = verification; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember clone() { + return (GoogleCloudDiscoveryengineV1betaEngineFeaturePolicyMember) 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 82c2fa765b1..841139f878c 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-rev20261102-2.9.2 - Discovery Engine API v1beta-rev20261102-2.9.2 + v1beta-rev20261106-2.9.2 + Discovery Engine API v1beta-rev20261106-2.9.2 jar 2011 diff --git a/clients/google-api-services-discoveryengine/v1beta/README.md b/clients/google-api-services-discoveryengine/v1beta/README.md index 535991d23c7..430299c5a32 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-rev20261102-2.9.2 + v1beta-rev20261106-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-discoveryengine:v1beta-rev20261102-2.9.2' + implementation 'com.google.apis:google-api-services-discoveryengine:v1beta-rev20261106-2.9.2' } ```