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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,145 @@ public GetCmekConfig set(String parameterName, Object value) {
return (GetCmekConfig) super.set(parameterName, value);
}
}
/**
* Provisions the project resource. During the process, related systems will get prepared and
* initialized. Caller must read the [Terms for data use](https://cloud.google.com/retail/data-use-
* terms), and optionally specify in request to provide consent to that service terms.
*
* Create a request for the method "locations.provision".
*
* This request holds the parameters needed by the discoveryengine server. After setting any
* optional parameters, call the {@link Provision#execute()} method to invoke the remote operation.
*
* @param name Required. Full resource name of a Project, such as `projects/{project_id_or_number}`.
* @param content the {@link com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1ProvisionProjectRequest}
* @return the request
*/
public Provision provision(java.lang.String name, com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1ProvisionProjectRequest content) throws java.io.IOException {
Provision result = new Provision(name, content);
initialize(result);
return result;
}

public class Provision extends DiscoveryEngineRequest<com.google.api.services.discoveryengine.v1.model.GoogleLongrunningOperation> {

private static final String REST_PATH = "v1/{+name}:provision";

private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");

/**
* Provisions the project resource. During the process, related systems will get prepared and
* initialized. Caller must read the [Terms for data use](https://cloud.google.com/retail/data-
* use-terms), and optionally specify in request to provide consent to that service terms.
*
* Create a request for the method "locations.provision".
*
* This request holds the parameters needed by the the discoveryengine server. After setting any
* optional parameters, call the {@link Provision#execute()} method to invoke the remote
* operation. <p> {@link
* Provision#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor. </p>
*
* @param name Required. Full resource name of a Project, such as `projects/{project_id_or_number}`.
* @param content the {@link com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1ProvisionProjectRequest}
* @since 1.13
*/
protected Provision(java.lang.String name, com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1ProvisionProjectRequest content) {
super(DiscoveryEngine.this, "POST", REST_PATH, content, com.google.api.services.discoveryengine.v1.model.GoogleLongrunningOperation.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/[^/]+$");
}
}

@Override
public Provision set$Xgafv(java.lang.String $Xgafv) {
return (Provision) super.set$Xgafv($Xgafv);
}

@Override
public Provision setAccessToken(java.lang.String accessToken) {
return (Provision) super.setAccessToken(accessToken);
}

@Override
public Provision setAlt(java.lang.String alt) {
return (Provision) super.setAlt(alt);
}

@Override
public Provision setCallback(java.lang.String callback) {
return (Provision) super.setCallback(callback);
}

@Override
public Provision setFields(java.lang.String fields) {
return (Provision) super.setFields(fields);
}

@Override
public Provision setKey(java.lang.String key) {
return (Provision) super.setKey(key);
}

@Override
public Provision setOauthToken(java.lang.String oauthToken) {
return (Provision) super.setOauthToken(oauthToken);
}

@Override
public Provision setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Provision) super.setPrettyPrint(prettyPrint);
}

@Override
public Provision setQuotaUser(java.lang.String quotaUser) {
return (Provision) super.setQuotaUser(quotaUser);
}

@Override
public Provision setUploadType(java.lang.String uploadType) {
return (Provision) super.setUploadType(uploadType);
}

@Override
public Provision setUploadProtocol(java.lang.String uploadProtocol) {
return (Provision) super.setUploadProtocol(uploadProtocol);
}

/**
* Required. Full resource name of a Project, such as `projects/{project_id_or_number}`.
*/
@com.google.api.client.util.Key
private java.lang.String name;

/** Required. Full resource name of a Project, such as `projects/{project_id_or_number}`.
*/
public java.lang.String getName() {
return name;
}

/**
* Required. Full resource name of a Project, such as `projects/{project_id_or_number}`.
*/
public Provision 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/[^/]+$");
}
this.name = name;
return this;
}

@Override
public Provision set(String parameterName, Object value) {
return (Provision) super.set(parameterName, value);
}
}
/**
* Creates a Collection and sets up the DataConnector for it. To stop a DataConnector after setup,
* use the CollectionService.DeleteCollection method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public final class GoogleCloudDiscoveryengineV1BatchUpdateUserLicensesRequest ex
private java.lang.Boolean deleteUnassignedUserLicenses;

/**
* The inline source for the input content for document embeddings.
* The inline source for the input content for license assignment.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand All @@ -64,15 +64,15 @@ public GoogleCloudDiscoveryengineV1BatchUpdateUserLicensesRequest setDeleteUnass
}

/**
* The inline source for the input content for document embeddings.
* The inline source for the input content for license assignment.
* @return value or {@code null} for none
*/
public GoogleCloudDiscoveryengineV1BatchUpdateUserLicensesRequestInlineSource getInlineSource() {
return inlineSource;
}

/**
* The inline source for the input content for document embeddings.
* The inline source for the input content for license assignment.
* @param inlineSource inlineSource or {@code null} for none
*/
public GoogleCloudDiscoveryengineV1BatchUpdateUserLicensesRequest setInlineSource(GoogleCloudDiscoveryengineV1BatchUpdateUserLicensesRequestInlineSource inlineSource) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/**
* User-facing metadata for the connector, shown on the connector detail page (title, description,
* short_description, author, authenticated_account, note).
* short_description, author, note).
*
* <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:
Expand All @@ -30,15 +30,6 @@
@SuppressWarnings("javadoc")
public final class GoogleCloudDiscoveryengineV1DataConnectorConnectorMetadata extends com.google.api.client.json.GenericJson {

/**
* Optional. The end user's account as authenticated to the connector, so the end user can see
* which account is connected. May be an email, a username, or any identifier the connector/third
* party provides.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String authenticatedAccount;

/**
* Optional. The party that authored the connector, e.g. "Google" or a third-party provider name.
* Lets end users see who authored a connector (future: third-party-authored connectors).
Expand Down Expand Up @@ -78,27 +69,6 @@ public final class GoogleCloudDiscoveryengineV1DataConnectorConnectorMetadata ex
@com.google.api.client.util.Key
private java.lang.String title;

/**
* Optional. The end user's account as authenticated to the connector, so the end user can see
* which account is connected. May be an email, a username, or any identifier the connector/third
* party provides.
* @return value or {@code null} for none
*/
public java.lang.String getAuthenticatedAccount() {
return authenticatedAccount;
}

/**
* Optional. The end user's account as authenticated to the connector, so the end user can see
* which account is connected. May be an email, a username, or any identifier the connector/third
* party provides.
* @param authenticatedAccount authenticatedAccount or {@code null} for none
*/
public GoogleCloudDiscoveryengineV1DataConnectorConnectorMetadata setAuthenticatedAccount(java.lang.String authenticatedAccount) {
this.authenticatedAccount = authenticatedAccount;
return this;
}

/**
* Optional. The party that authored the connector, e.g. "Google" or a third-party provider name.
* Lets end users see who authored a connector (future: third-party-authored connectors).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ public final class GoogleCloudDiscoveryengineV1Engine extends com.google.api.cli
* sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-
* access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` *
* `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` *
* `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `disable-skills` * `disable-
* projects` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-
* agent-orchestration` * `cross-product-intelligence`
* `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `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`
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -485,9 +486,10 @@ public GoogleCloudDiscoveryengineV1Engine setDisplayName(java.lang.String displa
* sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-
* access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` *
* `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` *
* `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `disable-skills` * `disable-
* projects` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-
* agent-orchestration` * `cross-product-intelligence`
* `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `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`
* @return value or {@code null} for none
*/
public java.util.Map<String, java.lang.String> getFeatures() {
Expand All @@ -502,9 +504,10 @@ public java.util.Map<String, java.lang.String> getFeatures() {
* sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-
* access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` *
* `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` *
* `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `disable-skills` * `disable-
* projects` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-
* agent-orchestration` * `cross-product-intelligence`
* `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `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`
* @param features features or {@code null} for none
*/
public GoogleCloudDiscoveryengineV1Engine setFeatures(java.util.Map<String, java.lang.String> features) {
Expand Down
Loading
Loading