Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-discoveryengine</artifactId>
<version>v1-rev20261013-2.0.0</version>
<version>v1-rev20261022-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20261013-2.0.0'
implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20261022-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/*
* 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;

/**
* Profile describing the visibility restriction of an MCP tool. Key:
* "google.com/tool.profiles/visibility.restriction"
*
* <p> 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:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ApiservingMcpMcpToolVisibility extends com.google.api.client.json.GenericJson {

/**
* A list of field-level visibility restrictions.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<ApiservingMcpMcpToolVisibilityFieldVisibility> fieldVisibility;

/**
* The strategy used to enforce visibility restrictions. DO NOT USE. This field is not yet
* implemented.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String visibilityEnforcementStrategy;

/**
* The visibility restriction labels for the tool itself (e.g., "PRODUCER_DEFINED_PREVIEW").
* Multiple labels can be provided as a comma-separated string.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String visibilityRestriction;

/**
* A list of field-level visibility restrictions.
* @return value or {@code null} for none
*/
public java.util.List<ApiservingMcpMcpToolVisibilityFieldVisibility> getFieldVisibility() {
return fieldVisibility;
}

/**
* A list of field-level visibility restrictions.
* @param fieldVisibility fieldVisibility or {@code null} for none
*/
public ApiservingMcpMcpToolVisibility setFieldVisibility(java.util.List<ApiservingMcpMcpToolVisibilityFieldVisibility> fieldVisibility) {
this.fieldVisibility = fieldVisibility;
return this;
}

/**
* The strategy used to enforce visibility restrictions. DO NOT USE. This field is not yet
* implemented.
* @return value or {@code null} for none
*/
public java.lang.String getVisibilityEnforcementStrategy() {
return visibilityEnforcementStrategy;
}

/**
* The strategy used to enforce visibility restrictions. DO NOT USE. This field is not yet
* implemented.
* @param visibilityEnforcementStrategy visibilityEnforcementStrategy or {@code null} for none
*/
public ApiservingMcpMcpToolVisibility setVisibilityEnforcementStrategy(java.lang.String visibilityEnforcementStrategy) {
this.visibilityEnforcementStrategy = visibilityEnforcementStrategy;
return this;
}

/**
* The visibility restriction labels for the tool itself (e.g., "PRODUCER_DEFINED_PREVIEW").
* Multiple labels can be provided as a comma-separated string.
* @return value or {@code null} for none
*/
public java.lang.String getVisibilityRestriction() {
return visibilityRestriction;
}

/**
* The visibility restriction labels for the tool itself (e.g., "PRODUCER_DEFINED_PREVIEW").
* Multiple labels can be provided as a comma-separated string.
* @param visibilityRestriction visibilityRestriction or {@code null} for none
*/
public ApiservingMcpMcpToolVisibility setVisibilityRestriction(java.lang.String visibilityRestriction) {
this.visibilityRestriction = visibilityRestriction;
return this;
}

@Override
public ApiservingMcpMcpToolVisibility set(String fieldName, Object value) {
return (ApiservingMcpMcpToolVisibility) super.set(fieldName, value);
}

@Override
public ApiservingMcpMcpToolVisibility clone() {
return (ApiservingMcpMcpToolVisibility) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
/*
* 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;

/**
* Visibility rules for individual tool parameters (fields). This allows producers to hide specific
* fields in tools/list and tools/call.
*
* <p> 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:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ApiservingMcpMcpToolVisibilityFieldVisibility extends com.google.api.client.json.GenericJson {

/**
* The visibility restriction labels for this field (comma-separated).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String restriction;

/**
* The name of the parameter in the input_schema or output_schema.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String selector;

/**
* The visibility restriction labels for this field (comma-separated).
* @return value or {@code null} for none
*/
public java.lang.String getRestriction() {
return restriction;
}

/**
* The visibility restriction labels for this field (comma-separated).
* @param restriction restriction or {@code null} for none
*/
public ApiservingMcpMcpToolVisibilityFieldVisibility setRestriction(java.lang.String restriction) {
this.restriction = restriction;
return this;
}

/**
* The name of the parameter in the input_schema or output_schema.
* @return value or {@code null} for none
*/
public java.lang.String getSelector() {
return selector;
}

/**
* The name of the parameter in the input_schema or output_schema.
* @param selector selector or {@code null} for none
*/
public ApiservingMcpMcpToolVisibilityFieldVisibility setSelector(java.lang.String selector) {
this.selector = selector;
return this;
}

@Override
public ApiservingMcpMcpToolVisibilityFieldVisibility set(String fieldName, Object value) {
return (ApiservingMcpMcpToolVisibilityFieldVisibility) super.set(fieldName, value);
}

@Override
public ApiservingMcpMcpToolVisibilityFieldVisibility clone() {
return (ApiservingMcpMcpToolVisibilityFieldVisibility) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ public final class GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforce
private java.util.List<GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultPolicyEnforcementResult> policyResults;

/**
* Final verdict of the customer policy enforcement. If only one policy blocked the processing,
* the verdict is BLOCK.
* Final verdict of the customer policy enforcement. If at least one policy blocked the
* processing, the verdict is BLOCK. If no policy blocked the processing but at least one flagged
* it, the verdict is FLAG.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -76,17 +77,19 @@ public GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult s
}

/**
* Final verdict of the customer policy enforcement. If only one policy blocked the processing,
* the verdict is BLOCK.
* Final verdict of the customer policy enforcement. If at least one policy blocked the
* processing, the verdict is BLOCK. If no policy blocked the processing but at least one flagged
* it, the verdict is FLAG.
* @return value or {@code null} for none
*/
public java.lang.String getVerdict() {
return verdict;
}

/**
* Final verdict of the customer policy enforcement. If only one policy blocked the processing,
* the verdict is BLOCK.
* Final verdict of the customer policy enforcement. If at least one policy blocked the
* processing, the verdict is BLOCK. If no policy blocked the processing but at least one flagged
* it, the verdict is FLAG.
* @param verdict verdict or {@code null} for none
*/
public GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult setVerdict(java.lang.String verdict) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ public final class GoogleCloudDiscoveryengineV1Assistant extends com.google.api.
private java.lang.String displayName;

/**
* Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this
* assistant. The keys are connector name, for example
* "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The
* values consist of admin enabled tools towards the connector instance. Admin can selectively
* enable multiple tools on any of the connector instances that they created in the project. For
* example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")],
* "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
* Optional. The enabled tools on this assistant. The keys are data connector resource names, in
* the format `projects/{project}/locations/{location}/collections/{collection}/dataConnector`.
* The values are the tools that the admin enabled on that connector. Admins can selectively
* enable tools on any of the connectors that they created in the project. For example: ``` {
* "projects/my-project/locations/global/collections/jira1/dataConnector": { "toolInfo": [ {
* "toolName": "create_jira_issue", "toolDisplayName": "Create Jira issue" }, { "toolName":
* "update_jira_issue", "toolDisplayName": "Update Jira issue" } ] } } ```
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -217,27 +217,27 @@ public GoogleCloudDiscoveryengineV1Assistant setDisplayName(java.lang.String dis
}

/**
* Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this
* assistant. The keys are connector name, for example
* "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The
* values consist of admin enabled tools towards the connector instance. Admin can selectively
* enable multiple tools on any of the connector instances that they created in the project. For
* example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")],
* "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
* Optional. The enabled tools on this assistant. The keys are data connector resource names, in
* the format `projects/{project}/locations/{location}/collections/{collection}/dataConnector`.
* The values are the tools that the admin enabled on that connector. Admins can selectively
* enable tools on any of the connectors that they created in the project. For example: ``` {
* "projects/my-project/locations/global/collections/jira1/dataConnector": { "toolInfo": [ {
* "toolName": "create_jira_issue", "toolDisplayName": "Create Jira issue" }, { "toolName":
* "update_jira_issue", "toolDisplayName": "Update Jira issue" } ] } } ```
* @return value or {@code null} for none
*/
public java.util.Map<String, GoogleCloudDiscoveryengineV1AssistantToolList> getEnabledTools() {
return enabledTools;
}

/**
* Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this
* assistant. The keys are connector name, for example
* "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The
* values consist of admin enabled tools towards the connector instance. Admin can selectively
* enable multiple tools on any of the connector instances that they created in the project. For
* example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")],
* "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
* Optional. The enabled tools on this assistant. The keys are data connector resource names, in
* the format `projects/{project}/locations/{location}/collections/{collection}/dataConnector`.
* The values are the tools that the admin enabled on that connector. Admins can selectively
* enable tools on any of the connectors that they created in the project. For example: ``` {
* "projects/my-project/locations/global/collections/jira1/dataConnector": { "toolInfo": [ {
* "toolName": "create_jira_issue", "toolDisplayName": "Create Jira issue" }, { "toolName":
* "update_jira_issue", "toolDisplayName": "Update Jira issue" } ] } } ```
* @param enabledTools enabledTools or {@code null} for none
*/
public GoogleCloudDiscoveryengineV1Assistant setEnabledTools(java.util.Map<String, GoogleCloudDiscoveryengineV1AssistantToolList> enabledTools) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public final class GoogleCloudDiscoveryengineV1Engine extends com.google.api.cli
* `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`
* * `in-app-notifications` * `code-extraction` * `remote-vm` * `license-tier-badge`
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -498,7 +498,7 @@ public GoogleCloudDiscoveryengineV1Engine setDisplayName(java.lang.String displa
* `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`
* * `in-app-notifications` * `code-extraction` * `remote-vm` * `license-tier-badge`
* @return value or {@code null} for none
*/
public java.util.Map<String, java.lang.String> getFeatures() {
Expand All @@ -517,7 +517,7 @@ public java.util.Map<String, java.lang.String> getFeatures() {
* `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`
* * `in-app-notifications` * `code-extraction` * `remote-vm` * `license-tier-badge`
* @param features features or {@code null} for none
*/
public GoogleCloudDiscoveryengineV1Engine setFeatures(java.util.Map<String, java.lang.String> features) {
Expand Down
Loading
Loading