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
4 changes: 2 additions & 2 deletions clients/google-api-services-aiplatform/v1/2.0.0/README.md
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-aiplatform</artifactId>
<version>v1-rev20260725-2.0.0</version>
<version>v1-rev20260801-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260725-2.0.0'
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260801-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136196,6 +136196,154 @@ public AppendEvent set(String parameterName, Object value) {
return (AppendEvent) super.set(parameterName, value);
}
}
/**
* Compacts the event history of a given Session, which may run an LLM summarization call and
* rewrite the full event history. Compaction is a storage-side rewrite that can apply a stackable
* pipeline of rules (event-horizon preservation, tool-response truncation, thought stripping, and
* LLM summarization etc.)
*
* Create a request for the method "sessions.compact".
*
* This request holds the parameters needed by the aiplatform server. After setting any optional
* parameters, call the {@link Compact#execute()} method to invoke the remote operation.
*
* @param name Required. The resource name of the session to compact. Format:
* `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{ses
* sion}`
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1CompactSessionRequest}
* @return the request
*/
public Compact compact(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1CompactSessionRequest content) throws java.io.IOException {
Compact result = new Compact(name, content);
initialize(result);
return result;
}

public class Compact extends AiplatformRequest<com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation> {

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

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

/**
* Compacts the event history of a given Session, which may run an LLM summarization call and
* rewrite the full event history. Compaction is a storage-side rewrite that can apply a stackable
* pipeline of rules (event-horizon preservation, tool-response truncation, thought stripping, and
* LLM summarization etc.)
*
* Create a request for the method "sessions.compact".
*
* This request holds the parameters needed by the the aiplatform server. After setting any
* optional parameters, call the {@link Compact#execute()} method to invoke the remote operation.
* <p> {@link
* Compact#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor. </p>
*
* @param name Required. The resource name of the session to compact. Format:
* `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{ses
* sion}`
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1CompactSessionRequest}
* @since 1.13
*/
protected Compact(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1CompactSessionRequest content) {
super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.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/[^/]+/reasoningEngines/[^/]+/sessions/[^/]+$");
}
}

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

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

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

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

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

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

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

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

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

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

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

/**
* Required. The resource name of the session to compact. Format: `projects/{project}/lo
* cations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}`
*/
@com.google.api.client.util.Key
private java.lang.String name;

/** Required. The resource name of the session to compact. Format:
`projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}`
*/
public java.lang.String getName() {
return name;
}

/**
* Required. The resource name of the session to compact. Format: `projects/{project}/lo
* cations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}`
*/
public Compact 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/[^/]+/reasoningEngines/[^/]+/sessions/[^/]+$");
}
this.name = name;
return this;
}

@Override
public Compact set(String parameterName, Object value) {
return (Compact) super.set(parameterName, value);
}
}
/**
* Creates a new Session.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,24 @@ public final class GoogleCloudAiplatformV1AudioTranscriptionConfig extends com.g
private java.lang.Boolean diarization;

/**
* Optional. The model will detect the language automatically.
* Optional. Deprecated: Use top-level `language_codes` instead. The model will detect the
* language automatically.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudAiplatformV1AudioTranscriptionConfigLanguageAuto languageAuto;

/**
* Optional. Specifies one or more languages in the audio.
* Optional. BCP-47 language codes providing hints about the languages present in the audio. If
* omitted or empty, defaults to automatic language detection.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> languageCodes;

/**
* Optional. Deprecated: Use top-level `language_codes` instead. Specifies one or more languages
* in the audio.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -126,15 +136,17 @@ public GoogleCloudAiplatformV1AudioTranscriptionConfig setDiarization(java.lang.
}

/**
* Optional. The model will detect the language automatically.
* Optional. Deprecated: Use top-level `language_codes` instead. The model will detect the
* language automatically.
* @return value or {@code null} for none
*/
public GoogleCloudAiplatformV1AudioTranscriptionConfigLanguageAuto getLanguageAuto() {
return languageAuto;
}

/**
* Optional. The model will detect the language automatically.
* Optional. Deprecated: Use top-level `language_codes` instead. The model will detect the
* language automatically.
* @param languageAuto languageAuto or {@code null} for none
*/
public GoogleCloudAiplatformV1AudioTranscriptionConfig setLanguageAuto(GoogleCloudAiplatformV1AudioTranscriptionConfigLanguageAuto languageAuto) {
Expand All @@ -143,15 +155,36 @@ public GoogleCloudAiplatformV1AudioTranscriptionConfig setLanguageAuto(GoogleClo
}

/**
* Optional. Specifies one or more languages in the audio.
* Optional. BCP-47 language codes providing hints about the languages present in the audio. If
* omitted or empty, defaults to automatic language detection.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getLanguageCodes() {
return languageCodes;
}

/**
* Optional. BCP-47 language codes providing hints about the languages present in the audio. If
* omitted or empty, defaults to automatic language detection.
* @param languageCodes languageCodes or {@code null} for none
*/
public GoogleCloudAiplatformV1AudioTranscriptionConfig setLanguageCodes(java.util.List<java.lang.String> languageCodes) {
this.languageCodes = languageCodes;
return this;
}

/**
* Optional. Deprecated: Use top-level `language_codes` instead. Specifies one or more languages
* in the audio.
* @return value or {@code null} for none
*/
public GoogleCloudAiplatformV1AudioTranscriptionConfigLanguageHints getLanguageHints() {
return languageHints;
}

/**
* Optional. Specifies one or more languages in the audio.
* Optional. Deprecated: Use top-level `language_codes` instead. Specifies one or more languages
* in the audio.
* @param languageHints languageHints or {@code null} for none
*/
public GoogleCloudAiplatformV1AudioTranscriptionConfig setLanguageHints(GoogleCloudAiplatformV1AudioTranscriptionConfigLanguageHints languageHints) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
package com.google.api.services.aiplatform.v1.model;

/**
* Indicates the language of the audio should be automatically detected.
* Deprecated: Use top-level `language_codes` instead. Indicates the language of the audio should be
* automatically detected.
*
* <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 Agent Platform API. For a detailed explanation see:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
package com.google.api.services.aiplatform.v1.model;

/**
* Provides hints to the model about possible languages present in the audio.
* Deprecated: Use top-level `language_codes` instead. Provides hints to the model about possible
* languages present in the audio.
*
* <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 Agent Platform API. For a detailed explanation see:
Expand All @@ -30,22 +31,25 @@
public final class GoogleCloudAiplatformV1AudioTranscriptionConfigLanguageHints extends com.google.api.client.json.GenericJson {

/**
* Required. BCP-47 language codes. At least one must be specified.
* Required. Deprecated: Use top-level `language_codes` instead. BCP-47 language codes. At least
* one must be specified.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> languageCodes;

/**
* Required. BCP-47 language codes. At least one must be specified.
* Required. Deprecated: Use top-level `language_codes` instead. BCP-47 language codes. At least
* one must be specified.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getLanguageCodes() {
return languageCodes;
}

/**
* Required. BCP-47 language codes. At least one must be specified.
* Required. Deprecated: Use top-level `language_codes` instead. BCP-47 language codes. At least
* one must be specified.
* @param languageCodes languageCodes or {@code null} for none
*/
public GoogleCloudAiplatformV1AudioTranscriptionConfigLanguageHints setLanguageCodes(java.util.List<java.lang.String> languageCodes) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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.aiplatform.v1.model;

/**
* Request message for SessionService.CompactSession.
*
* <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 Agent Platform 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 GoogleCloudAiplatformV1CompactSessionRequest extends com.google.api.client.json.GenericJson {

/**
* Required. The compaction configuration to apply. At least one compaction category
* (summarization or event editing) must be enabled within it.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudAiplatformV1CompactionConfig compaction;

/**
* Required. The compaction configuration to apply. At least one compaction category
* (summarization or event editing) must be enabled within it.
* @return value or {@code null} for none
*/
public GoogleCloudAiplatformV1CompactionConfig getCompaction() {
return compaction;
}

/**
* Required. The compaction configuration to apply. At least one compaction category
* (summarization or event editing) must be enabled within it.
* @param compaction compaction or {@code null} for none
*/
public GoogleCloudAiplatformV1CompactSessionRequest setCompaction(GoogleCloudAiplatformV1CompactionConfig compaction) {
this.compaction = compaction;
return this;
}

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

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

}
Loading
Loading