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-rev20251012-2.0.0</version>
<version>v1-rev20251017-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-rev20251012-2.0.0'
implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20251017-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ public class DiscoveryEngineScopes {
/** Search your organization's data in the Cloud Search index. */
public static final String CLOUD_SEARCH_QUERY = "https://www.googleapis.com/auth/cloud_search.query";

/** View your Agentspace chat history, including uploaded files and generated reports and visualizations, and interact with the Agentspace assistant on your behalf.. */
public static final String DISCOVERYENGINE_ASSIST_READWRITE = "https://www.googleapis.com/auth/discoveryengine.assist.readwrite";

/** View, edit, create, and delete all your data associated with any Discovery Engine API product, such as Agentspace, Vertex AI Search, or NotebookLM Enterprise, including both end user data and administration or configuration data.. */
public static final String DISCOVERYENGINE_READWRITE = "https://www.googleapis.com/auth/discoveryengine.readwrite";

/**
* Returns an unmodifiable set that contains all scopes declared by this class.
*
Expand All @@ -38,6 +44,8 @@ public static java.util.Set<String> all() {
java.util.Set<String> set = new java.util.HashSet<String>();
set.add(CLOUD_PLATFORM);
set.add(CLOUD_SEARCH_QUERY);
set.add(DISCOVERYENGINE_ASSIST_READWRITE);
set.add(DISCOVERYENGINE_READWRITE);
return java.util.Collections.unmodifiableSet(set);
}

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@
@SuppressWarnings("javadoc")
public final class GoogleCloudDiscoveryengineV1AssistantGroundedContent extends com.google.api.client.json.GenericJson {

/**
* Source attribution of the generated content. See also https://cloud.google.com/vertex-
* ai/generative-ai/docs/learn/overview#citation_check
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudDiscoveryengineV1CitationMetadata citationMetadata;

/**
* The content.
* The value may be {@code null}.
Expand All @@ -44,6 +52,25 @@ public final class GoogleCloudDiscoveryengineV1AssistantGroundedContent extends
@com.google.api.client.util.Key
private GoogleCloudDiscoveryengineV1AssistantGroundedContentTextGroundingMetadata textGroundingMetadata;

/**
* Source attribution of the generated content. See also https://cloud.google.com/vertex-
* ai/generative-ai/docs/learn/overview#citation_check
* @return value or {@code null} for none
*/
public GoogleCloudDiscoveryengineV1CitationMetadata getCitationMetadata() {
return citationMetadata;
}

/**
* Source attribution of the generated content. See also https://cloud.google.com/vertex-
* ai/generative-ai/docs/learn/overview#citation_check
* @param citationMetadata citationMetadata or {@code null} for none
*/
public GoogleCloudDiscoveryengineV1AssistantGroundedContent setCitationMetadata(GoogleCloudDiscoveryengineV1CitationMetadata citationMetadata) {
this.citationMetadata = citationMetadata;
return this;
}

/**
* The content.
* @return value or {@code null} for none
Expand Down
Loading