diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/README.md b/clients/google-api-services-aiplatform/v1/2.0.0/README.md index af981e87997..40585776b31 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/README.md +++ b/clients/google-api-services-aiplatform/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-aiplatform - v1-rev20261007-2.0.0 + v1-rev20261012-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20261007-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20261012-2.0.0' } ``` diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java index 98f67150f07..c19b6deed4f 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java @@ -19160,6 +19160,514 @@ public Wait set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the Interactions collection. + * + *

The typical use is:

+ *
+   *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+   *   {@code Aiplatform.Interactions.List request = aiplatform.interactions().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Interactions interactions() { + return new Interactions(); + } + + /** + * The "interactions" collection of methods. + */ + public class Interactions { + + /** + * Cancels an interaction. + * + * Create a request for the method "interactions.cancel". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the interaction to cancel. Format: `interactions/{interaction}`. + * @return the request + */ + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; + } + + public class Cancel extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^interactions/[^/]+$"); + + /** + * Cancels an interaction. + * + * Create a request for the method "interactions.cancel". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The name of the interaction to cancel. Format: `interactions/{interaction}`. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GenaiVertexV1Interaction.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 " + + "^interactions/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the interaction to cancel. Format: `interactions/{interaction}`. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the interaction to cancel. Format: `interactions/{interaction}`. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the interaction to cancel. Format: `interactions/{interaction}`. */ + public Cancel 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 " + + "^interactions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Fully typed proto, unary version of GetInteraction that returns Interaction proto. + * + * Create a request for the method "interactions.getPoll". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link GetPoll#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the interaction to retrieve. Format: interactions/{interaction} + * @return the request + */ + public GetPoll getPoll(java.lang.String name) throws java.io.IOException { + GetPoll result = new GetPoll(name); + initialize(result); + return result; + } + + public class GetPoll extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}:poll"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^interactions/[^/]+$"); + + /** + * Fully typed proto, unary version of GetInteraction that returns Interaction proto. + * + * Create a request for the method "interactions.getPoll". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link GetPoll#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The name of the interaction to retrieve. Format: interactions/{interaction} + * @since 1.13 + */ + protected GetPoll(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GenaiVertexV1Interaction.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 " + + "^interactions/[^/]+$"); + } + } + + @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 GetPoll set$Xgafv(java.lang.String $Xgafv) { + return (GetPoll) super.set$Xgafv($Xgafv); + } + + @Override + public GetPoll setAccessToken(java.lang.String accessToken) { + return (GetPoll) super.setAccessToken(accessToken); + } + + @Override + public GetPoll setAlt(java.lang.String alt) { + return (GetPoll) super.setAlt(alt); + } + + @Override + public GetPoll setCallback(java.lang.String callback) { + return (GetPoll) super.setCallback(callback); + } + + @Override + public GetPoll setFields(java.lang.String fields) { + return (GetPoll) super.setFields(fields); + } + + @Override + public GetPoll setKey(java.lang.String key) { + return (GetPoll) super.setKey(key); + } + + @Override + public GetPoll setOauthToken(java.lang.String oauthToken) { + return (GetPoll) super.setOauthToken(oauthToken); + } + + @Override + public GetPoll setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetPoll) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetPoll setQuotaUser(java.lang.String quotaUser) { + return (GetPoll) super.setQuotaUser(quotaUser); + } + + @Override + public GetPoll setUploadType(java.lang.String uploadType) { + return (GetPoll) super.setUploadType(uploadType); + } + + @Override + public GetPoll setUploadProtocol(java.lang.String uploadProtocol) { + return (GetPoll) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the interaction to retrieve. Format: interactions/{interaction} */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the interaction to retrieve. Format: interactions/{interaction} + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the interaction to retrieve. Format: interactions/{interaction} */ + public GetPoll 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 " + + "^interactions/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * If set, resumes the interaction stream from the chunk after the event marked by the event + * id. Can only be used if `stream` is true. + */ + @com.google.api.client.util.Key + private java.lang.String lastEventId; + + /** If set, resumes the interaction stream from the chunk after the event marked by the event id. Can + only be used if `stream` is true. + */ + public java.lang.String getLastEventId() { + return lastEventId; + } + + /** + * If set, resumes the interaction stream from the chunk after the event marked by the event + * id. Can only be used if `stream` is true. + */ + public GetPoll setLastEventId(java.lang.String lastEventId) { + this.lastEventId = lastEventId; + return this; + } + + /** If true, streams the interaction events as Server-Sent Events. */ + @com.google.api.client.util.Key + private java.lang.Boolean stream; + + /** If true, streams the interaction events as Server-Sent Events. + */ + public java.lang.Boolean getStream() { + return stream; + } + + /** If true, streams the interaction events as Server-Sent Events. */ + public GetPoll setStream(java.lang.Boolean stream) { + this.stream = stream; + return this; + } + + @Override + public GetPoll set(String parameterName, Object value) { + return (GetPoll) super.set(parameterName, value); + } + } + /** + * Fully typed proto, streaming version of GetInteraction that returns Interaction proto. + * + * Create a request for the method "interactions.getStream". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link GetStream#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the interaction to retrieve. Format: interactions/{interaction} + * @return the request + */ + public GetStream getStream(java.lang.String name) throws java.io.IOException { + GetStream result = new GetStream(name); + initialize(result); + return result; + } + + public class GetStream extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}:stream"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^interactions/[^/]+$"); + + /** + * Fully typed proto, streaming version of GetInteraction that returns Interaction proto. + * + * Create a request for the method "interactions.getStream". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link GetStream#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Required. The name of the interaction to retrieve. Format: interactions/{interaction} + * @since 1.13 + */ + protected GetStream(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GenaiVertexV1InteractionStreamingEvent.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 " + + "^interactions/[^/]+$"); + } + } + + @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 GetStream set$Xgafv(java.lang.String $Xgafv) { + return (GetStream) super.set$Xgafv($Xgafv); + } + + @Override + public GetStream setAccessToken(java.lang.String accessToken) { + return (GetStream) super.setAccessToken(accessToken); + } + + @Override + public GetStream setAlt(java.lang.String alt) { + return (GetStream) super.setAlt(alt); + } + + @Override + public GetStream setCallback(java.lang.String callback) { + return (GetStream) super.setCallback(callback); + } + + @Override + public GetStream setFields(java.lang.String fields) { + return (GetStream) super.setFields(fields); + } + + @Override + public GetStream setKey(java.lang.String key) { + return (GetStream) super.setKey(key); + } + + @Override + public GetStream setOauthToken(java.lang.String oauthToken) { + return (GetStream) super.setOauthToken(oauthToken); + } + + @Override + public GetStream setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetStream) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetStream setQuotaUser(java.lang.String quotaUser) { + return (GetStream) super.setQuotaUser(quotaUser); + } + + @Override + public GetStream setUploadType(java.lang.String uploadType) { + return (GetStream) super.setUploadType(uploadType); + } + + @Override + public GetStream setUploadProtocol(java.lang.String uploadProtocol) { + return (GetStream) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the interaction to retrieve. Format: interactions/{interaction} */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the interaction to retrieve. Format: interactions/{interaction} + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the interaction to retrieve. Format: interactions/{interaction} */ + public GetStream 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 " + + "^interactions/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * If set, resumes the interaction stream from the chunk after the event marked by the event + * id. Can only be used if `stream` is true. + */ + @com.google.api.client.util.Key + private java.lang.String lastEventId; + + /** If set, resumes the interaction stream from the chunk after the event marked by the event id. Can + only be used if `stream` is true. + */ + public java.lang.String getLastEventId() { + return lastEventId; + } + + /** + * If set, resumes the interaction stream from the chunk after the event marked by the event + * id. Can only be used if `stream` is true. + */ + public GetStream setLastEventId(java.lang.String lastEventId) { + this.lastEventId = lastEventId; + return this; + } + + /** If true, streams the interaction events as Server-Sent Events. */ + @com.google.api.client.util.Key + private java.lang.Boolean stream; + + /** If true, streams the interaction events as Server-Sent Events. + */ + public java.lang.Boolean getStream() { + return stream; + } + + /** If true, streams the interaction events as Server-Sent Events. */ + public GetStream setStream(java.lang.Boolean stream) { + this.stream = stream; + return this; + } + + @Override + public GetStream set(String parameterName, Object value) { + return (GetStream) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the Media collection. * @@ -85770,6 +86278,909 @@ public Wait set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the Interactions collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.Interactions.List request = aiplatform.interactions().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Interactions interactions() { + return new Interactions(); + } + + /** + * The "interactions" collection of methods. + */ + public class Interactions { + + /** + * Creates an interaction. + * + * Create a request for the method "interactions.create". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param projectsId + * @param locationsId + * @param content the {@link com.google.api.services.aiplatform.v1.model.GenaiVertexV1CreateInteractionRequest} + * @return the request + */ + public Create create(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1.model.GenaiVertexV1CreateInteractionRequest content) throws java.io.IOException { + Create result = new Create(projectsId, locationsId, content); + initialize(result); + return result; + } + + public class Create extends AiplatformRequest { + + private static final String REST_PATH = "v1/projects/{projectsId}/locations/{locationsId}/interactions:create"; + + /** + * Creates an interaction. + * + * Create a request for the method "interactions.create". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

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

+ * + * @param projectsId + * @param locationsId + * @param content the {@link com.google.api.services.aiplatform.v1.model.GenaiVertexV1CreateInteractionRequest} + * @since 1.13 + */ + protected Create(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1.model.GenaiVertexV1CreateInteractionRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GenaiVertexV1Interaction.class); + this.projectsId = com.google.api.client.util.Preconditions.checkNotNull(projectsId, "Required parameter projectsId must be specified."); + this.locationsId = com.google.api.client.util.Preconditions.checkNotNull(locationsId, "Required parameter locationsId must be specified."); + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + @com.google.api.client.util.Key + private java.lang.String projectsId; + + /** + + */ + public java.lang.String getProjectsId() { + return projectsId; + } + + public Create setProjectsId(java.lang.String projectsId) { + this.projectsId = projectsId; + return this; + } + + @com.google.api.client.util.Key + private java.lang.String locationsId; + + /** + + */ + public java.lang.String getLocationsId() { + return locationsId; + } + + public Create setLocationsId(java.lang.String locationsId) { + this.locationsId = locationsId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Creates an interaction and streams the response. + * + * Create a request for the method "interactions.createStream". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link CreateStream#execute()} method to invoke the remote operation. + * + * @param projectsId + * @param locationsId + * @param content the {@link com.google.api.services.aiplatform.v1.model.GenaiVertexV1CreateInteractionRequest} + * @return the request + */ + public CreateStream createStream(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1.model.GenaiVertexV1CreateInteractionRequest content) throws java.io.IOException { + CreateStream result = new CreateStream(projectsId, locationsId, content); + initialize(result); + return result; + } + + public class CreateStream extends AiplatformRequest { + + private static final String REST_PATH = "v1/projects/{projectsId}/locations/{locationsId}/interactions:createStream"; + + /** + * Creates an interaction and streams the response. + * + * Create a request for the method "interactions.createStream". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link CreateStream#execute()} method to invoke the remote + * operation.

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

+ * + * @param projectsId + * @param locationsId + * @param content the {@link com.google.api.services.aiplatform.v1.model.GenaiVertexV1CreateInteractionRequest} + * @since 1.13 + */ + protected CreateStream(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1.model.GenaiVertexV1CreateInteractionRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GenaiVertexV1InteractionStreamingEvent.class); + this.projectsId = com.google.api.client.util.Preconditions.checkNotNull(projectsId, "Required parameter projectsId must be specified."); + this.locationsId = com.google.api.client.util.Preconditions.checkNotNull(locationsId, "Required parameter locationsId must be specified."); + } + + @Override + public CreateStream set$Xgafv(java.lang.String $Xgafv) { + return (CreateStream) super.set$Xgafv($Xgafv); + } + + @Override + public CreateStream setAccessToken(java.lang.String accessToken) { + return (CreateStream) super.setAccessToken(accessToken); + } + + @Override + public CreateStream setAlt(java.lang.String alt) { + return (CreateStream) super.setAlt(alt); + } + + @Override + public CreateStream setCallback(java.lang.String callback) { + return (CreateStream) super.setCallback(callback); + } + + @Override + public CreateStream setFields(java.lang.String fields) { + return (CreateStream) super.setFields(fields); + } + + @Override + public CreateStream setKey(java.lang.String key) { + return (CreateStream) super.setKey(key); + } + + @Override + public CreateStream setOauthToken(java.lang.String oauthToken) { + return (CreateStream) super.setOauthToken(oauthToken); + } + + @Override + public CreateStream setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateStream) super.setPrettyPrint(prettyPrint); + } + + @Override + public CreateStream setQuotaUser(java.lang.String quotaUser) { + return (CreateStream) super.setQuotaUser(quotaUser); + } + + @Override + public CreateStream setUploadType(java.lang.String uploadType) { + return (CreateStream) super.setUploadType(uploadType); + } + + @Override + public CreateStream setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateStream) super.setUploadProtocol(uploadProtocol); + } + + @com.google.api.client.util.Key + private java.lang.String projectsId; + + /** + + */ + public java.lang.String getProjectsId() { + return projectsId; + } + + public CreateStream setProjectsId(java.lang.String projectsId) { + this.projectsId = projectsId; + return this; + } + + @com.google.api.client.util.Key + private java.lang.String locationsId; + + /** + + */ + public java.lang.String getLocationsId() { + return locationsId; + } + + public CreateStream setLocationsId(java.lang.String locationsId) { + this.locationsId = locationsId; + return this; + } + + @Override + public CreateStream set(String parameterName, Object value) { + return (CreateStream) super.set(parameterName, value); + } + } + /** + * Deletes an interaction. + * + * Create a request for the method "interactions.delete". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the interaction to delete. Format: interactions/{interaction} + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/interactions/[^/]+$"); + + /** + * Deletes an interaction. + * + * Create a request for the method "interactions.delete". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The name of the interaction to delete. Format: interactions/{interaction} + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GenaiVertexV1DeleteInteractionResponse.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/[^/]+/interactions/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the interaction to delete. Format: interactions/{interaction} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the interaction to delete. Format: interactions/{interaction} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the interaction to delete. Format: interactions/{interaction} + */ + public Delete 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/[^/]+/interactions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the InteractionsHttp collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.InteractionsHttp.List request = aiplatform.interactionsHttp().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public InteractionsHttp interactionsHttp() { + return new InteractionsHttp(); + } + + /** + * The "interactionsHttp" collection of methods. + */ + public class InteractionsHttp { + + /** + * Cancels an interaction by id. This only applies to background interactions that are still + * running. + * + * Create a request for the method "interactionsHttp.cancel". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the interaction to cancel. Format: `interactions/{interaction}`. + * @return the request + */ + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; + } + + public class Cancel extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}/cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/interactionsHttp/[^/]+$"); + + /** + * Cancels an interaction by id. This only applies to background interactions that are still + * running. + * + * Create a request for the method "interactionsHttp.cancel". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The name of the interaction to cancel. Format: `interactions/{interaction}`. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody.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/[^/]+/interactionsHttp/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the interaction to cancel. Format: `interactions/{interaction}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the interaction to cancel. Format: `interactions/{interaction}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the interaction to cancel. Format: `interactions/{interaction}`. + */ + public Cancel 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/[^/]+/interactionsHttp/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Creates a new interaction. + * + * Create a request for the method "interactionsHttp.create". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where this interaction will be created. Format: + * `projects/{project}/locations/{location}` Supported only by the Vertex API only. + * @param content the {@link com.google.api.services.aiplatform.v1.model.GenaiVertexV1CreateInteractionHttpRequest} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GenaiVertexV1CreateInteractionHttpRequest content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+parent}/interactionsHttp"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a new interaction. + * + * Create a request for the method "interactionsHttp.create". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@link + * Create#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 resource where this interaction will be created. Format: + * `projects/{project}/locations/{location}` Supported only by the Vertex API only. + * @param content the {@link com.google.api.services.aiplatform.v1.model.GenaiVertexV1CreateInteractionHttpRequest} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1.model.GenaiVertexV1CreateInteractionHttpRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody.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/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where this interaction will be created. Format: + * `projects/{project}/locations/{location}` Supported only by the Vertex API only. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where this interaction will be created. Format: + `projects/{project}/locations/{location}` Supported only by the Vertex API only. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this interaction will be created. Format: + * `projects/{project}/locations/{location}` Supported only by the Vertex API only. + */ + public Create 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/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Retrieves the full details of a single interaction based on its `Interaction.id`. + * + * Create a request for the method "interactionsHttp.get". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the interaction to retrieve. Format: interactions/{interaction} + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/interactionsHttp/[^/]+$"); + + /** + * Retrieves the full details of a single interaction based on its `Interaction.id`. + * + * Create a request for the method "interactionsHttp.get". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The name of the interaction to retrieve. Format: interactions/{interaction} + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody.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/[^/]+/interactionsHttp/[^/]+$"); + } + } + + @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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the interaction to retrieve. Format: interactions/{interaction} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the interaction to retrieve. Format: interactions/{interaction} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the interaction to retrieve. Format: interactions/{interaction} + */ + public Get 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/[^/]+/interactionsHttp/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * If set, resumes the interaction stream from the chunk after the event marked by the + * event id. Can only be used if `stream` is true. + */ + @com.google.api.client.util.Key + private java.lang.String lastEventId; + + /** If set, resumes the interaction stream from the chunk after the event marked by the event id. Can + only be used if `stream` is true. + */ + public java.lang.String getLastEventId() { + return lastEventId; + } + + /** + * If set, resumes the interaction stream from the chunk after the event marked by the + * event id. Can only be used if `stream` is true. + */ + public Get setLastEventId(java.lang.String lastEventId) { + this.lastEventId = lastEventId; + return this; + } + + /** If true, streams the interaction events as Server-Sent Events. */ + @com.google.api.client.util.Key + private java.lang.Boolean stream; + + /** If true, streams the interaction events as Server-Sent Events. + */ + public java.lang.Boolean getStream() { + return stream; + } + + /** If true, streams the interaction events as Server-Sent Events. */ + public Get setStream(java.lang.Boolean stream) { + this.stream = stream; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + + } /** * An accessor for creating requests from the MemoryBanks collection. * diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig.java index 47f2ca9912f..96c683c59d6 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig.java @@ -36,6 +36,13 @@ public final class CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfi @com.google.api.client.util.Key private java.lang.String mode; + /** + * Smooths the seams between the tiles the model upscales separately. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean tileSmoothing; + /** * Super Res mode. Required. * @return value or {@code null} for none @@ -53,6 +60,23 @@ public CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig setMode(ja return this; } + /** + * Smooths the seams between the tiles the model upscales separately. + * @return value or {@code null} for none + */ + public java.lang.Boolean getTileSmoothing() { + return tileSmoothing; + } + + /** + * Smooths the seams between the tiles the model upscales separately. + * @param tileSmoothing tileSmoothing or {@code null} for none + */ + public CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig setTileSmoothing(java.lang.Boolean tileSmoothing) { + this.tileSmoothing = tileSmoothing; + return this; + } + @Override public CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig set(String fieldName, Object value) { return (CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig) super.set(fieldName, value); diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AgentInteraction.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AgentInteraction.java new file mode 100644 index 00000000000..429e91d52b1 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AgentInteraction.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.aiplatform.v1.model; + +/** + * Interaction for generating the completion using agents. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1AgentInteraction extends com.google.api.client.json.GenericJson { + + /** + * The name of the `Agent` used for generating the completion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agent; + + /** + * Antigravity agent configuration. This configuration is session-level settings that are passed + * to the agent runtime on a per-request basis. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1AntigravityAgentConfig antigravityConfig; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1CodeMenderAgentConfig codeMenderConfig; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1DeepResearchAgentConfig deepResearchConfig; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1DynamicAgentConfig dynamicConfig; + + /** + * The name of the `Agent` used for generating the completion. + * @return value or {@code null} for none + */ + public java.lang.String getAgent() { + return agent; + } + + /** + * The name of the `Agent` used for generating the completion. + * @param agent agent or {@code null} for none + */ + public GenaiVertexV1AgentInteraction setAgent(java.lang.String agent) { + this.agent = agent; + return this; + } + + /** + * Antigravity agent configuration. This configuration is session-level settings that are passed + * to the agent runtime on a per-request basis. + * @return value or {@code null} for none + */ + public GenaiVertexV1AntigravityAgentConfig getAntigravityConfig() { + return antigravityConfig; + } + + /** + * Antigravity agent configuration. This configuration is session-level settings that are passed + * to the agent runtime on a per-request basis. + * @param antigravityConfig antigravityConfig or {@code null} for none + */ + public GenaiVertexV1AgentInteraction setAntigravityConfig(GenaiVertexV1AntigravityAgentConfig antigravityConfig) { + this.antigravityConfig = antigravityConfig; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfig getCodeMenderConfig() { + return codeMenderConfig; + } + + /** + * @param codeMenderConfig codeMenderConfig or {@code null} for none + */ + public GenaiVertexV1AgentInteraction setCodeMenderConfig(GenaiVertexV1CodeMenderAgentConfig codeMenderConfig) { + this.codeMenderConfig = codeMenderConfig; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1DeepResearchAgentConfig getDeepResearchConfig() { + return deepResearchConfig; + } + + /** + * @param deepResearchConfig deepResearchConfig or {@code null} for none + */ + public GenaiVertexV1AgentInteraction setDeepResearchConfig(GenaiVertexV1DeepResearchAgentConfig deepResearchConfig) { + this.deepResearchConfig = deepResearchConfig; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1DynamicAgentConfig getDynamicConfig() { + return dynamicConfig; + } + + /** + * @param dynamicConfig dynamicConfig or {@code null} for none + */ + public GenaiVertexV1AgentInteraction setDynamicConfig(GenaiVertexV1DynamicAgentConfig dynamicConfig) { + this.dynamicConfig = dynamicConfig; + return this; + } + + @Override + public GenaiVertexV1AgentInteraction set(String fieldName, Object value) { + return (GenaiVertexV1AgentInteraction) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1AgentInteraction clone() { + return (GenaiVertexV1AgentInteraction) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AllowedTools.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AllowedTools.java new file mode 100644 index 00000000000..3d3074f39fe --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AllowedTools.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * The configuration for allowed tools. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1AllowedTools extends com.google.api.client.json.GenericJson { + + /** + * The mode of the tool choice. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * The names of the allowed tools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tools; + + /** + * The mode of the tool choice. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * The mode of the tool choice. + * @param mode mode or {@code null} for none + */ + public GenaiVertexV1AllowedTools setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + /** + * The names of the allowed tools. + * @return value or {@code null} for none + */ + public java.util.List getTools() { + return tools; + } + + /** + * The names of the allowed tools. + * @param tools tools or {@code null} for none + */ + public GenaiVertexV1AllowedTools setTools(java.util.List tools) { + this.tools = tools; + return this; + } + + @Override + public GenaiVertexV1AllowedTools set(String fieldName, Object value) { + return (GenaiVertexV1AllowedTools) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1AllowedTools clone() { + return (GenaiVertexV1AllowedTools) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AntigravityAgentConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AntigravityAgentConfig.java new file mode 100644 index 00000000000..678e7e0e2bb --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AntigravityAgentConfig.java @@ -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.aiplatform.v1.model; + +/** + * Configuration for the Antigravity agent runtime. Provides server-side control over the agent's + * execution environment and tool configuration. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1AntigravityAgentConfig extends com.google.api.client.json.GenericJson { + + /** + * Max total tokens for the agent run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxTotalTokens; + + /** + * The model to use for agent reasoning. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String model; + + /** + * Max total tokens for the agent run. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxTotalTokens() { + return maxTotalTokens; + } + + /** + * Max total tokens for the agent run. + * @param maxTotalTokens maxTotalTokens or {@code null} for none + */ + public GenaiVertexV1AntigravityAgentConfig setMaxTotalTokens(java.lang.Long maxTotalTokens) { + this.maxTotalTokens = maxTotalTokens; + return this; + } + + /** + * The model to use for agent reasoning. + * @return value or {@code null} for none + */ + public java.lang.String getModel() { + return model; + } + + /** + * The model to use for agent reasoning. + * @param model model or {@code null} for none + */ + public GenaiVertexV1AntigravityAgentConfig setModel(java.lang.String model) { + this.model = model; + return this; + } + + @Override + public GenaiVertexV1AntigravityAgentConfig set(String fieldName, Object value) { + return (GenaiVertexV1AntigravityAgentConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1AntigravityAgentConfig clone() { + return (GenaiVertexV1AntigravityAgentConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ArgumentsDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ArgumentsDelta.java new file mode 100644 index 00000000000..ed7a6bcb538 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ArgumentsDelta.java @@ -0,0 +1,63 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1ArgumentsDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ArgumentsDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String arguments; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getArguments() { + return arguments; + } + + /** + * @param arguments arguments or {@code null} for none + */ + public GenaiVertexV1ArgumentsDelta setArguments(java.lang.String arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiVertexV1ArgumentsDelta set(String fieldName, Object value) { + return (GenaiVertexV1ArgumentsDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ArgumentsDelta clone() { + return (GenaiVertexV1ArgumentsDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AudioContent.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AudioContent.java new file mode 100644 index 00000000000..d1a1b4102c4 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AudioContent.java @@ -0,0 +1,193 @@ +/* + * 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; + +/** + * An audio content block. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1AudioContent extends com.google.api.client.json.GenericJson { + + /** + * The number of audio channels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer channels; + + /** + * The audio content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * Flexible MIME type string of the audio, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeTypeString; + + /** + * The sample rate of the audio. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer sampleRate; + + /** + * The URI of the audio. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * The number of audio channels. + * @return value or {@code null} for none + */ + public java.lang.Integer getChannels() { + return channels; + } + + /** + * The number of audio channels. + * @param channels channels or {@code null} for none + */ + public GenaiVertexV1AudioContent setChannels(java.lang.Integer channels) { + this.channels = channels; + return this; + } + + /** + * The audio content. + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + * The audio content. + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * The audio content. + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiVertexV1AudioContent setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + * The audio content. + * @see #setData() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1AudioContent encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * Flexible MIME type string of the audio, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * @return value or {@code null} for none + */ + public java.lang.String getMimeTypeString() { + return mimeTypeString; + } + + /** + * Flexible MIME type string of the audio, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * @param mimeTypeString mimeTypeString or {@code null} for none + */ + public GenaiVertexV1AudioContent setMimeTypeString(java.lang.String mimeTypeString) { + this.mimeTypeString = mimeTypeString; + return this; + } + + /** + * The sample rate of the audio. + * @return value or {@code null} for none + */ + public java.lang.Integer getSampleRate() { + return sampleRate; + } + + /** + * The sample rate of the audio. + * @param sampleRate sampleRate or {@code null} for none + */ + public GenaiVertexV1AudioContent setSampleRate(java.lang.Integer sampleRate) { + this.sampleRate = sampleRate; + return this; + } + + /** + * The URI of the audio. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * The URI of the audio. + * @param uri uri or {@code null} for none + */ + public GenaiVertexV1AudioContent setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiVertexV1AudioContent set(String fieldName, Object value) { + return (GenaiVertexV1AudioContent) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1AudioContent clone() { + return (GenaiVertexV1AudioContent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AudioDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AudioDelta.java new file mode 100644 index 00000000000..c588e4e69d1 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AudioDelta.java @@ -0,0 +1,181 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1AudioDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1AudioDelta extends com.google.api.client.json.GenericJson { + + /** + * The number of audio channels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer channels; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * The sample rate of the audio. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer sampleRate; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * The number of audio channels. + * @return value or {@code null} for none + */ + public java.lang.Integer getChannels() { + return channels; + } + + /** + * The number of audio channels. + * @param channels channels or {@code null} for none + */ + public GenaiVertexV1AudioDelta setChannels(java.lang.Integer channels) { + this.channels = channels; + return this; + } + + /** + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiVertexV1AudioDelta setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + + * @see #setData() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1AudioDelta encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * @param mimeType mimeType or {@code null} for none + */ + public GenaiVertexV1AudioDelta setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * The sample rate of the audio. + * @return value or {@code null} for none + */ + public java.lang.Integer getSampleRate() { + return sampleRate; + } + + /** + * The sample rate of the audio. + * @param sampleRate sampleRate or {@code null} for none + */ + public GenaiVertexV1AudioDelta setSampleRate(java.lang.Integer sampleRate) { + this.sampleRate = sampleRate; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * @param uri uri or {@code null} for none + */ + public GenaiVertexV1AudioDelta setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiVertexV1AudioDelta set(String fieldName, Object value) { + return (GenaiVertexV1AudioDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1AudioDelta clone() { + return (GenaiVertexV1AudioDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AudioResponseFormat.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AudioResponseFormat.java new file mode 100644 index 00000000000..987534762d1 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1AudioResponseFormat.java @@ -0,0 +1,138 @@ +/* + * 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; + +/** + * Configuration for audio output format. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1AudioResponseFormat extends com.google.api.client.json.GenericJson { + + /** + * Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer bitRate; + + /** + * The delivery mode for the audio output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String delivery; + + /** + * The MIME type of the audio output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * Sample rate in Hz. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer sampleRate; + + /** + * Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). + * @return value or {@code null} for none + */ + public java.lang.Integer getBitRate() { + return bitRate; + } + + /** + * Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). + * @param bitRate bitRate or {@code null} for none + */ + public GenaiVertexV1AudioResponseFormat setBitRate(java.lang.Integer bitRate) { + this.bitRate = bitRate; + return this; + } + + /** + * The delivery mode for the audio output. + * @return value or {@code null} for none + */ + public java.lang.String getDelivery() { + return delivery; + } + + /** + * The delivery mode for the audio output. + * @param delivery delivery or {@code null} for none + */ + public GenaiVertexV1AudioResponseFormat setDelivery(java.lang.String delivery) { + this.delivery = delivery; + return this; + } + + /** + * The MIME type of the audio output. + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * The MIME type of the audio output. + * @param mimeType mimeType or {@code null} for none + */ + public GenaiVertexV1AudioResponseFormat setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * Sample rate in Hz. + * @return value or {@code null} for none + */ + public java.lang.Integer getSampleRate() { + return sampleRate; + } + + /** + * Sample rate in Hz. + * @param sampleRate sampleRate or {@code null} for none + */ + public GenaiVertexV1AudioResponseFormat setSampleRate(java.lang.Integer sampleRate) { + this.sampleRate = sampleRate; + return this; + } + + @Override + public GenaiVertexV1AudioResponseFormat set(String fieldName, Object value) { + return (GenaiVertexV1AudioResponseFormat) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1AudioResponseFormat clone() { + return (GenaiVertexV1AudioResponseFormat) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecution.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecution.java new file mode 100644 index 00000000000..b7fda1790eb --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecution.java @@ -0,0 +1,42 @@ +/* + * 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; + +/** + * A tool that can be used by the model to execute code. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1CodeExecution extends com.google.api.client.json.GenericJson { + + @Override + public GenaiVertexV1CodeExecution set(String fieldName, Object value) { + return (GenaiVertexV1CodeExecution) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1CodeExecution clone() { + return (GenaiVertexV1CodeExecution) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionCallContentCodeExecutionCallArguments.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionCallContentCodeExecutionCallArguments.java new file mode 100644 index 00000000000..e26b82500f5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionCallContentCodeExecutionCallArguments.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * The arguments to pass to the code execution. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1CodeExecutionCallContentCodeExecutionCallArguments extends com.google.api.client.json.GenericJson { + + /** + * The code to be executed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * Programming language of the `code`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String language; + + /** + * The code to be executed. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * The code to be executed. + * @param code code or {@code null} for none + */ + public GenaiVertexV1CodeExecutionCallContentCodeExecutionCallArguments setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * Programming language of the `code`. + * @return value or {@code null} for none + */ + public java.lang.String getLanguage() { + return language; + } + + /** + * Programming language of the `code`. + * @param language language or {@code null} for none + */ + public GenaiVertexV1CodeExecutionCallContentCodeExecutionCallArguments setLanguage(java.lang.String language) { + this.language = language; + return this; + } + + @Override + public GenaiVertexV1CodeExecutionCallContentCodeExecutionCallArguments set(String fieldName, Object value) { + return (GenaiVertexV1CodeExecutionCallContentCodeExecutionCallArguments) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1CodeExecutionCallContentCodeExecutionCallArguments clone() { + return (GenaiVertexV1CodeExecutionCallContentCodeExecutionCallArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionCallDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionCallDelta.java new file mode 100644 index 00000000000..a5033c5b1b4 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionCallDelta.java @@ -0,0 +1,63 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1CodeExecutionCallDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1CodeExecutionCallDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1CodeExecutionCallContentCodeExecutionCallArguments arguments; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1CodeExecutionCallContentCodeExecutionCallArguments getArguments() { + return arguments; + } + + /** + * @param arguments arguments or {@code null} for none + */ + public GenaiVertexV1CodeExecutionCallDelta setArguments(GenaiVertexV1CodeExecutionCallContentCodeExecutionCallArguments arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiVertexV1CodeExecutionCallDelta set(String fieldName, Object value) { + return (GenaiVertexV1CodeExecutionCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1CodeExecutionCallDelta clone() { + return (GenaiVertexV1CodeExecutionCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionCallStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionCallStep.java new file mode 100644 index 00000000000..52d9960d4e2 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionCallStep.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.aiplatform.v1.model; + +/** + * Code execution call step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1CodeExecutionCallStep extends com.google.api.client.json.GenericJson { + + /** + * Required. The arguments to pass to the code execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1CodeExecutionCallStepCodeExecutionCallStepArguments arguments; + + /** + * Required. The arguments to pass to the code execution. + * @return value or {@code null} for none + */ + public GenaiVertexV1CodeExecutionCallStepCodeExecutionCallStepArguments getArguments() { + return arguments; + } + + /** + * Required. The arguments to pass to the code execution. + * @param arguments arguments or {@code null} for none + */ + public GenaiVertexV1CodeExecutionCallStep setArguments(GenaiVertexV1CodeExecutionCallStepCodeExecutionCallStepArguments arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiVertexV1CodeExecutionCallStep set(String fieldName, Object value) { + return (GenaiVertexV1CodeExecutionCallStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1CodeExecutionCallStep clone() { + return (GenaiVertexV1CodeExecutionCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionCallStepCodeExecutionCallStepArguments.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionCallStepCodeExecutionCallStepArguments.java new file mode 100644 index 00000000000..4fd3aa8f4a5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionCallStepCodeExecutionCallStepArguments.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * The arguments to pass to the code execution. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1CodeExecutionCallStepCodeExecutionCallStepArguments extends com.google.api.client.json.GenericJson { + + /** + * The code to be executed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * Programming language of the `code`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String language; + + /** + * The code to be executed. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * The code to be executed. + * @param code code or {@code null} for none + */ + public GenaiVertexV1CodeExecutionCallStepCodeExecutionCallStepArguments setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * Programming language of the `code`. + * @return value or {@code null} for none + */ + public java.lang.String getLanguage() { + return language; + } + + /** + * Programming language of the `code`. + * @param language language or {@code null} for none + */ + public GenaiVertexV1CodeExecutionCallStepCodeExecutionCallStepArguments setLanguage(java.lang.String language) { + this.language = language; + return this; + } + + @Override + public GenaiVertexV1CodeExecutionCallStepCodeExecutionCallStepArguments set(String fieldName, Object value) { + return (GenaiVertexV1CodeExecutionCallStepCodeExecutionCallStepArguments) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1CodeExecutionCallStepCodeExecutionCallStepArguments clone() { + return (GenaiVertexV1CodeExecutionCallStepCodeExecutionCallStepArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionResultDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionResultDelta.java new file mode 100644 index 00000000000..097c25c7f3f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionResultDelta.java @@ -0,0 +1,84 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1CodeExecutionResultDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1CodeExecutionResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String result; + + /** + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * @param isError isError or {@code null} for none + */ + public GenaiVertexV1CodeExecutionResultDelta setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public GenaiVertexV1CodeExecutionResultDelta setResult(java.lang.String result) { + this.result = result; + return this; + } + + @Override + public GenaiVertexV1CodeExecutionResultDelta set(String fieldName, Object value) { + return (GenaiVertexV1CodeExecutionResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1CodeExecutionResultDelta clone() { + return (GenaiVertexV1CodeExecutionResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionResultStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionResultStep.java new file mode 100644 index 00000000000..0f2fc2ffb10 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeExecutionResultStep.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Code execution result step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1CodeExecutionResultStep extends com.google.api.client.json.GenericJson { + + /** + * Whether the code execution resulted in an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * Required. The output of the code execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String result; + + /** + * Whether the code execution resulted in an error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * Whether the code execution resulted in an error. + * @param isError isError or {@code null} for none + */ + public GenaiVertexV1CodeExecutionResultStep setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * Required. The output of the code execution. + * @return value or {@code null} for none + */ + public java.lang.String getResult() { + return result; + } + + /** + * Required. The output of the code execution. + * @param result result or {@code null} for none + */ + public GenaiVertexV1CodeExecutionResultStep setResult(java.lang.String result) { + this.result = result; + return this; + } + + @Override + public GenaiVertexV1CodeExecutionResultStep set(String fieldName, Object value) { + return (GenaiVertexV1CodeExecutionResultStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1CodeExecutionResultStep clone() { + return (GenaiVertexV1CodeExecutionResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeMenderAgentConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeMenderAgentConfig.java new file mode 100644 index 00000000000..6001fe20773 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeMenderAgentConfig.java @@ -0,0 +1,165 @@ +/* + * 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; + +/** + * Configuration for the CodeMender agent. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1CodeMenderAgentConfig extends com.google.api.client.json.GenericJson { + + /** + * Parameters for finding vulnerabilities. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1CodeMenderAgentConfigFindRequest findRequest; + + /** + * Parameters for fixing vulnerabilities. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1CodeMenderAgentConfigFixRequest fixRequest; + + /** + * The name of the model to use for the CodeMender agent. One CodeMender session will only use one + * model. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String model; + + /** + * Optional session-specific configurations to override default agent behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1CodeMenderAgentConfigSessionConfig sessionConfig; + + /** + * Parameter for grouping multiple interactions that belong to the same CodeMender session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sessionId; + + /** + * Parameters for finding vulnerabilities. + * @return value or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfigFindRequest getFindRequest() { + return findRequest; + } + + /** + * Parameters for finding vulnerabilities. + * @param findRequest findRequest or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfig setFindRequest(GenaiVertexV1CodeMenderAgentConfigFindRequest findRequest) { + this.findRequest = findRequest; + return this; + } + + /** + * Parameters for fixing vulnerabilities. + * @return value or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfigFixRequest getFixRequest() { + return fixRequest; + } + + /** + * Parameters for fixing vulnerabilities. + * @param fixRequest fixRequest or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfig setFixRequest(GenaiVertexV1CodeMenderAgentConfigFixRequest fixRequest) { + this.fixRequest = fixRequest; + return this; + } + + /** + * The name of the model to use for the CodeMender agent. One CodeMender session will only use one + * model. + * @return value or {@code null} for none + */ + public java.lang.String getModel() { + return model; + } + + /** + * The name of the model to use for the CodeMender agent. One CodeMender session will only use one + * model. + * @param model model or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfig setModel(java.lang.String model) { + this.model = model; + return this; + } + + /** + * Optional session-specific configurations to override default agent behavior. + * @return value or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfigSessionConfig getSessionConfig() { + return sessionConfig; + } + + /** + * Optional session-specific configurations to override default agent behavior. + * @param sessionConfig sessionConfig or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfig setSessionConfig(GenaiVertexV1CodeMenderAgentConfigSessionConfig sessionConfig) { + this.sessionConfig = sessionConfig; + return this; + } + + /** + * Parameter for grouping multiple interactions that belong to the same CodeMender session. + * @return value or {@code null} for none + */ + public java.lang.String getSessionId() { + return sessionId; + } + + /** + * Parameter for grouping multiple interactions that belong to the same CodeMender session. + * @param sessionId sessionId or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfig setSessionId(java.lang.String sessionId) { + this.sessionId = sessionId; + return this; + } + + @Override + public GenaiVertexV1CodeMenderAgentConfig set(String fieldName, Object value) { + return (GenaiVertexV1CodeMenderAgentConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1CodeMenderAgentConfig clone() { + return (GenaiVertexV1CodeMenderAgentConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeMenderAgentConfigFileContent.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeMenderAgentConfigFileContent.java new file mode 100644 index 00000000000..d10f98a0c71 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeMenderAgentConfigFileContent.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Content of a single file in the codebase. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1CodeMenderAgentConfigFileContent extends com.google.api.client.json.GenericJson { + + /** + * The UTF-8 encoded text content of the file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String content; + + /** + * The relative path of the file from the project root. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * The UTF-8 encoded text content of the file. + * @return value or {@code null} for none + */ + public java.lang.String getContent() { + return content; + } + + /** + * The UTF-8 encoded text content of the file. + * @param content content or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfigFileContent setContent(java.lang.String content) { + this.content = content; + return this; + } + + /** + * The relative path of the file from the project root. + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * The relative path of the file from the project root. + * @param path path or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfigFileContent setPath(java.lang.String path) { + this.path = path; + return this; + } + + @Override + public GenaiVertexV1CodeMenderAgentConfigFileContent set(String fieldName, Object value) { + return (GenaiVertexV1CodeMenderAgentConfigFileContent) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1CodeMenderAgentConfigFileContent clone() { + return (GenaiVertexV1CodeMenderAgentConfigFileContent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeMenderAgentConfigFindRequest.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeMenderAgentConfigFindRequest.java new file mode 100644 index 00000000000..35073b9ebb9 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeMenderAgentConfigFindRequest.java @@ -0,0 +1,150 @@ +/* + * 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 parameters specific to FIND sessions, used for discovering vulnerabilities in a codebase. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1CodeMenderAgentConfigFindRequest extends com.google.api.client.json.GenericJson { + + /** + * Additional context or custom instructions provided by the user to guide the vulnerability + * analysis. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The identifier of a specific finding to verify. This is primarily used in VERIFY mode to focus + * the agent's execution-based validation on a single vulnerability. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String findingId; + + /** + * The mode of the find session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * A list of source files to provide as context for the scan. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sourceFiles; + + static { + // hack to force ProGuard to consider GenaiVertexV1CodeMenderAgentConfigFileContent used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiVertexV1CodeMenderAgentConfigFileContent.class); + } + + /** + * Additional context or custom instructions provided by the user to guide the vulnerability + * analysis. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Additional context or custom instructions provided by the user to guide the vulnerability + * analysis. + * @param description description or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfigFindRequest setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The identifier of a specific finding to verify. This is primarily used in VERIFY mode to focus + * the agent's execution-based validation on a single vulnerability. + * @return value or {@code null} for none + */ + public java.lang.String getFindingId() { + return findingId; + } + + /** + * The identifier of a specific finding to verify. This is primarily used in VERIFY mode to focus + * the agent's execution-based validation on a single vulnerability. + * @param findingId findingId or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfigFindRequest setFindingId(java.lang.String findingId) { + this.findingId = findingId; + return this; + } + + /** + * The mode of the find session. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * The mode of the find session. + * @param mode mode or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfigFindRequest setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + /** + * A list of source files to provide as context for the scan. + * @return value or {@code null} for none + */ + public java.util.List getSourceFiles() { + return sourceFiles; + } + + /** + * A list of source files to provide as context for the scan. + * @param sourceFiles sourceFiles or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfigFindRequest setSourceFiles(java.util.List sourceFiles) { + this.sourceFiles = sourceFiles; + return this; + } + + @Override + public GenaiVertexV1CodeMenderAgentConfigFindRequest set(String fieldName, Object value) { + return (GenaiVertexV1CodeMenderAgentConfigFindRequest) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1CodeMenderAgentConfigFindRequest clone() { + return (GenaiVertexV1CodeMenderAgentConfigFindRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeMenderAgentConfigFixRequest.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeMenderAgentConfigFixRequest.java new file mode 100644 index 00000000000..35a86a6df9e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeMenderAgentConfigFixRequest.java @@ -0,0 +1,129 @@ +/* + * 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 parameters specific to FIX sessions, used for generating and validating security patches. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1CodeMenderAgentConfigFixRequest extends com.google.api.client.json.GenericJson { + + /** + * Additional context or custom instructions provided by the user to guide the patch generation + * process. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The identifier of the specific security finding to be remediated. This ID maps to a previously + * discovered vulnerability. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String findingId; + + /** + * A list of source files providing context for the remediation. These files are typically the + * ones containing the identified vulnerability. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sourceFiles; + + static { + // hack to force ProGuard to consider GenaiVertexV1CodeMenderAgentConfigFileContent used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiVertexV1CodeMenderAgentConfigFileContent.class); + } + + /** + * Additional context or custom instructions provided by the user to guide the patch generation + * process. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Additional context or custom instructions provided by the user to guide the patch generation + * process. + * @param description description or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfigFixRequest setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The identifier of the specific security finding to be remediated. This ID maps to a previously + * discovered vulnerability. + * @return value or {@code null} for none + */ + public java.lang.String getFindingId() { + return findingId; + } + + /** + * The identifier of the specific security finding to be remediated. This ID maps to a previously + * discovered vulnerability. + * @param findingId findingId or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfigFixRequest setFindingId(java.lang.String findingId) { + this.findingId = findingId; + return this; + } + + /** + * A list of source files providing context for the remediation. These files are typically the + * ones containing the identified vulnerability. + * @return value or {@code null} for none + */ + public java.util.List getSourceFiles() { + return sourceFiles; + } + + /** + * A list of source files providing context for the remediation. These files are typically the + * ones containing the identified vulnerability. + * @param sourceFiles sourceFiles or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfigFixRequest setSourceFiles(java.util.List sourceFiles) { + this.sourceFiles = sourceFiles; + return this; + } + + @Override + public GenaiVertexV1CodeMenderAgentConfigFixRequest set(String fieldName, Object value) { + return (GenaiVertexV1CodeMenderAgentConfigFixRequest) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1CodeMenderAgentConfigFixRequest clone() { + return (GenaiVertexV1CodeMenderAgentConfigFixRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeMenderAgentConfigSessionConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeMenderAgentConfigSessionConfig.java new file mode 100644 index 00000000000..fee0adb34ed --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CodeMenderAgentConfigSessionConfig.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.aiplatform.v1.model; + +/** + * The configuration of CodeMender sessions. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1CodeMenderAgentConfigSessionConfig extends com.google.api.client.json.GenericJson { + + /** + * The maximum number of interaction rounds the agent is allowed to perform before reaching a + * timeout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxRounds; + + /** + * The maximum number of interaction rounds the agent is allowed to perform before reaching a + * timeout. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxRounds() { + return maxRounds; + } + + /** + * The maximum number of interaction rounds the agent is allowed to perform before reaching a + * timeout. + * @param maxRounds maxRounds or {@code null} for none + */ + public GenaiVertexV1CodeMenderAgentConfigSessionConfig setMaxRounds(java.lang.Integer maxRounds) { + this.maxRounds = maxRounds; + return this; + } + + @Override + public GenaiVertexV1CodeMenderAgentConfigSessionConfig set(String fieldName, Object value) { + return (GenaiVertexV1CodeMenderAgentConfigSessionConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1CodeMenderAgentConfigSessionConfig clone() { + return (GenaiVertexV1CodeMenderAgentConfigSessionConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ComputerUse.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ComputerUse.java new file mode 100644 index 00000000000..43bb6db4bcc --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ComputerUse.java @@ -0,0 +1,138 @@ +/* + * 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; + +/** + * A tool that can be used by the model to interact with the computer. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ComputerUse extends com.google.api.client.json.GenericJson { + + /** + * Optional. Disabled safety policies for computer use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List disabledSafetyPolicies; + + /** + * Whether enable the prompt injection detection check on computer-use request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enablePromptInjectionDetection; + + /** + * The environment being operated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String environment; + + /** + * The list of predefined functions that are excluded from the model call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List excludedPredefinedFunctions; + + /** + * Optional. Disabled safety policies for computer use. + * @return value or {@code null} for none + */ + public java.util.List getDisabledSafetyPolicies() { + return disabledSafetyPolicies; + } + + /** + * Optional. Disabled safety policies for computer use. + * @param disabledSafetyPolicies disabledSafetyPolicies or {@code null} for none + */ + public GenaiVertexV1ComputerUse setDisabledSafetyPolicies(java.util.List disabledSafetyPolicies) { + this.disabledSafetyPolicies = disabledSafetyPolicies; + return this; + } + + /** + * Whether enable the prompt injection detection check on computer-use request. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnablePromptInjectionDetection() { + return enablePromptInjectionDetection; + } + + /** + * Whether enable the prompt injection detection check on computer-use request. + * @param enablePromptInjectionDetection enablePromptInjectionDetection or {@code null} for none + */ + public GenaiVertexV1ComputerUse setEnablePromptInjectionDetection(java.lang.Boolean enablePromptInjectionDetection) { + this.enablePromptInjectionDetection = enablePromptInjectionDetection; + return this; + } + + /** + * The environment being operated. + * @return value or {@code null} for none + */ + public java.lang.String getEnvironment() { + return environment; + } + + /** + * The environment being operated. + * @param environment environment or {@code null} for none + */ + public GenaiVertexV1ComputerUse setEnvironment(java.lang.String environment) { + this.environment = environment; + return this; + } + + /** + * The list of predefined functions that are excluded from the model call. + * @return value or {@code null} for none + */ + public java.util.List getExcludedPredefinedFunctions() { + return excludedPredefinedFunctions; + } + + /** + * The list of predefined functions that are excluded from the model call. + * @param excludedPredefinedFunctions excludedPredefinedFunctions or {@code null} for none + */ + public GenaiVertexV1ComputerUse setExcludedPredefinedFunctions(java.util.List excludedPredefinedFunctions) { + this.excludedPredefinedFunctions = excludedPredefinedFunctions; + return this; + } + + @Override + public GenaiVertexV1ComputerUse set(String fieldName, Object value) { + return (GenaiVertexV1ComputerUse) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ComputerUse clone() { + return (GenaiVertexV1ComputerUse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Content.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Content.java new file mode 100644 index 00000000000..7581e424678 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Content.java @@ -0,0 +1,147 @@ +/* + * 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; + +/** + * The content of the response. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1Content extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1AudioContent audio; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1DocumentContent document; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ImageContent image; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1TextContent text; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1VideoContent video; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1AudioContent getAudio() { + return audio; + } + + /** + * @param audio audio or {@code null} for none + */ + public GenaiVertexV1Content setAudio(GenaiVertexV1AudioContent audio) { + this.audio = audio; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1DocumentContent getDocument() { + return document; + } + + /** + * @param document document or {@code null} for none + */ + public GenaiVertexV1Content setDocument(GenaiVertexV1DocumentContent document) { + this.document = document; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ImageContent getImage() { + return image; + } + + /** + * @param image image or {@code null} for none + */ + public GenaiVertexV1Content setImage(GenaiVertexV1ImageContent image) { + this.image = image; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1TextContent getText() { + return text; + } + + /** + * @param text text or {@code null} for none + */ + public GenaiVertexV1Content setText(GenaiVertexV1TextContent text) { + this.text = text; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1VideoContent getVideo() { + return video; + } + + /** + * @param video video or {@code null} for none + */ + public GenaiVertexV1Content setVideo(GenaiVertexV1VideoContent video) { + this.video = video; + return this; + } + + @Override + public GenaiVertexV1Content set(String fieldName, Object value) { + return (GenaiVertexV1Content) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1Content clone() { + return (GenaiVertexV1Content) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ContentList.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ContentList.java new file mode 100644 index 00000000000..e6acfe29a29 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ContentList.java @@ -0,0 +1,72 @@ +/* + * 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; + +/** + * A list of Content. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ContentList extends com.google.api.client.json.GenericJson { + + /** + * The contents of the list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List contents; + + static { + // hack to force ProGuard to consider GenaiVertexV1Content used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiVertexV1Content.class); + } + + /** + * The contents of the list. + * @return value or {@code null} for none + */ + public java.util.List getContents() { + return contents; + } + + /** + * The contents of the list. + * @param contents contents or {@code null} for none + */ + public GenaiVertexV1ContentList setContents(java.util.List contents) { + this.contents = contents; + return this; + } + + @Override + public GenaiVertexV1ContentList set(String fieldName, Object value) { + return (GenaiVertexV1ContentList) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ContentList clone() { + return (GenaiVertexV1ContentList) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CreateInteractionHttpRequest.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CreateInteractionHttpRequest.java new file mode 100644 index 00000000000..84014e920d0 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CreateInteractionHttpRequest.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.aiplatform.v1.model; + +/** + * Request message for [InteractionsService.CreateInteractionHttp]. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1CreateInteractionHttpRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The interaction to create. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleApiHttpBody httpBody; + + /** + * Required. The interaction to create. + * @return value or {@code null} for none + */ + public GoogleApiHttpBody getHttpBody() { + return httpBody; + } + + /** + * Required. The interaction to create. + * @param httpBody httpBody or {@code null} for none + */ + public GenaiVertexV1CreateInteractionHttpRequest setHttpBody(GoogleApiHttpBody httpBody) { + this.httpBody = httpBody; + return this; + } + + @Override + public GenaiVertexV1CreateInteractionHttpRequest set(String fieldName, Object value) { + return (GenaiVertexV1CreateInteractionHttpRequest) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1CreateInteractionHttpRequest clone() { + return (GenaiVertexV1CreateInteractionHttpRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CreateInteractionRequest.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CreateInteractionRequest.java new file mode 100644 index 00000000000..77ac15d46f3 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1CreateInteractionRequest.java @@ -0,0 +1,138 @@ +/* + * 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; + +/** + * Configuration parameters for creating an interaction. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1CreateInteractionRequest extends com.google.api.client.json.GenericJson { + + /** + * Input only. Whether to run the model interaction in the background. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean background; + + /** + * The interaction to create. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Interaction interaction; + + /** + * Input only. Whether to store the response and request for later retrieval. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean store; + + /** + * Input only. Whether the interaction will be streamed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean stream; + + /** + * Input only. Whether to run the model interaction in the background. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBackground() { + return background; + } + + /** + * Input only. Whether to run the model interaction in the background. + * @param background background or {@code null} for none + */ + public GenaiVertexV1CreateInteractionRequest setBackground(java.lang.Boolean background) { + this.background = background; + return this; + } + + /** + * The interaction to create. + * @return value or {@code null} for none + */ + public GenaiVertexV1Interaction getInteraction() { + return interaction; + } + + /** + * The interaction to create. + * @param interaction interaction or {@code null} for none + */ + public GenaiVertexV1CreateInteractionRequest setInteraction(GenaiVertexV1Interaction interaction) { + this.interaction = interaction; + return this; + } + + /** + * Input only. Whether to store the response and request for later retrieval. + * @return value or {@code null} for none + */ + public java.lang.Boolean getStore() { + return store; + } + + /** + * Input only. Whether to store the response and request for later retrieval. + * @param store store or {@code null} for none + */ + public GenaiVertexV1CreateInteractionRequest setStore(java.lang.Boolean store) { + this.store = store; + return this; + } + + /** + * Input only. Whether the interaction will be streamed. + * @return value or {@code null} for none + */ + public java.lang.Boolean getStream() { + return stream; + } + + /** + * Input only. Whether the interaction will be streamed. + * @param stream stream or {@code null} for none + */ + public GenaiVertexV1CreateInteractionRequest setStream(java.lang.Boolean stream) { + this.stream = stream; + return this; + } + + @Override + public GenaiVertexV1CreateInteractionRequest set(String fieldName, Object value) { + return (GenaiVertexV1CreateInteractionRequest) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1CreateInteractionRequest clone() { + return (GenaiVertexV1CreateInteractionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1DeepResearchAgentConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1DeepResearchAgentConfig.java new file mode 100644 index 00000000000..87ed14d669f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1DeepResearchAgentConfig.java @@ -0,0 +1,144 @@ +/* + * 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; + +/** + * Configuration for the Deep Research agent. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1DeepResearchAgentConfig extends com.google.api.client.json.GenericJson { + + /** + * Enables human-in-the-loop planning for the Deep Research agent. If set to true, the Deep + * Research agent will provide a research plan in its response. The agent will then proceed only + * if the user confirms the plan in the next turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean collaborativePlanning; + + /** + * Enables bigquery tool for the Deep Research agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableBigqueryTool; + + /** + * Whether to include thought summaries in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String thinkingSummaries; + + /** + * Whether to include visualizations in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String visualization; + + /** + * Enables human-in-the-loop planning for the Deep Research agent. If set to true, the Deep + * Research agent will provide a research plan in its response. The agent will then proceed only + * if the user confirms the plan in the next turn. + * @return value or {@code null} for none + */ + public java.lang.Boolean getCollaborativePlanning() { + return collaborativePlanning; + } + + /** + * Enables human-in-the-loop planning for the Deep Research agent. If set to true, the Deep + * Research agent will provide a research plan in its response. The agent will then proceed only + * if the user confirms the plan in the next turn. + * @param collaborativePlanning collaborativePlanning or {@code null} for none + */ + public GenaiVertexV1DeepResearchAgentConfig setCollaborativePlanning(java.lang.Boolean collaborativePlanning) { + this.collaborativePlanning = collaborativePlanning; + return this; + } + + /** + * Enables bigquery tool for the Deep Research agent. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableBigqueryTool() { + return enableBigqueryTool; + } + + /** + * Enables bigquery tool for the Deep Research agent. + * @param enableBigqueryTool enableBigqueryTool or {@code null} for none + */ + public GenaiVertexV1DeepResearchAgentConfig setEnableBigqueryTool(java.lang.Boolean enableBigqueryTool) { + this.enableBigqueryTool = enableBigqueryTool; + return this; + } + + /** + * Whether to include thought summaries in the response. + * @return value or {@code null} for none + */ + public java.lang.String getThinkingSummaries() { + return thinkingSummaries; + } + + /** + * Whether to include thought summaries in the response. + * @param thinkingSummaries thinkingSummaries or {@code null} for none + */ + public GenaiVertexV1DeepResearchAgentConfig setThinkingSummaries(java.lang.String thinkingSummaries) { + this.thinkingSummaries = thinkingSummaries; + return this; + } + + /** + * Whether to include visualizations in the response. + * @return value or {@code null} for none + */ + public java.lang.String getVisualization() { + return visualization; + } + + /** + * Whether to include visualizations in the response. + * @param visualization visualization or {@code null} for none + */ + public GenaiVertexV1DeepResearchAgentConfig setVisualization(java.lang.String visualization) { + this.visualization = visualization; + return this; + } + + @Override + public GenaiVertexV1DeepResearchAgentConfig set(String fieldName, Object value) { + return (GenaiVertexV1DeepResearchAgentConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1DeepResearchAgentConfig clone() { + return (GenaiVertexV1DeepResearchAgentConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1DeleteInteractionResponse.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1DeleteInteractionResponse.java new file mode 100644 index 00000000000..fd17bfbe625 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1DeleteInteractionResponse.java @@ -0,0 +1,42 @@ +/* + * 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; + +/** + * Response for InteractionService.DeleteInteraction. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1DeleteInteractionResponse extends com.google.api.client.json.GenericJson { + + @Override + public GenaiVertexV1DeleteInteractionResponse set(String fieldName, Object value) { + return (GenaiVertexV1DeleteInteractionResponse) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1DeleteInteractionResponse clone() { + return (GenaiVertexV1DeleteInteractionResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1DocumentContent.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1DocumentContent.java new file mode 100644 index 00000000000..1e4db95362e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1DocumentContent.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.aiplatform.v1.model; + +/** + * A document content block. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1DocumentContent extends com.google.api.client.json.GenericJson { + + /** + * The document content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * Flexible MIME type string of the document, superseding mime_type = 1. Note: Bespoke logic in + * the GAOS parser/serializer maps this to the "mime_type" JSON key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeTypeString; + + /** + * The URI of the document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * The document content. + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + * The document content. + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * The document content. + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiVertexV1DocumentContent setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + * The document content. + * @see #setData() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1DocumentContent encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * Flexible MIME type string of the document, superseding mime_type = 1. Note: Bespoke logic in + * the GAOS parser/serializer maps this to the "mime_type" JSON key. + * @return value or {@code null} for none + */ + public java.lang.String getMimeTypeString() { + return mimeTypeString; + } + + /** + * Flexible MIME type string of the document, superseding mime_type = 1. Note: Bespoke logic in + * the GAOS parser/serializer maps this to the "mime_type" JSON key. + * @param mimeTypeString mimeTypeString or {@code null} for none + */ + public GenaiVertexV1DocumentContent setMimeTypeString(java.lang.String mimeTypeString) { + this.mimeTypeString = mimeTypeString; + return this; + } + + /** + * The URI of the document. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * The URI of the document. + * @param uri uri or {@code null} for none + */ + public GenaiVertexV1DocumentContent setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiVertexV1DocumentContent set(String fieldName, Object value) { + return (GenaiVertexV1DocumentContent) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1DocumentContent clone() { + return (GenaiVertexV1DocumentContent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1DocumentDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1DocumentDelta.java new file mode 100644 index 00000000000..0de3e68d4bc --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1DocumentDelta.java @@ -0,0 +1,133 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1DocumentDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1DocumentDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiVertexV1DocumentDelta setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + + * @see #setData() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1DocumentDelta encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * @param mimeType mimeType or {@code null} for none + */ + public GenaiVertexV1DocumentDelta setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * @param uri uri or {@code null} for none + */ + public GenaiVertexV1DocumentDelta setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiVertexV1DocumentDelta set(String fieldName, Object value) { + return (GenaiVertexV1DocumentDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1DocumentDelta clone() { + return (GenaiVertexV1DocumentDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1DynamicAgentConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1DynamicAgentConfig.java new file mode 100644 index 00000000000..a1777168f09 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1DynamicAgentConfig.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.aiplatform.v1.model; + +/** + * Configuration for dynamic agents. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1DynamicAgentConfig extends com.google.api.client.json.GenericJson { + + /** + * For agents that are not supported statically in the API definition. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Struct config; + + /** + * For agents that are not supported statically in the API definition. + * @return value or {@code null} for none + */ + public GenaiVertexV1Struct getConfig() { + return config; + } + + /** + * For agents that are not supported statically in the API definition. + * @param config config or {@code null} for none + */ + public GenaiVertexV1DynamicAgentConfig setConfig(GenaiVertexV1Struct config) { + this.config = config; + return this; + } + + @Override + public GenaiVertexV1DynamicAgentConfig set(String fieldName, Object value) { + return (GenaiVertexV1DynamicAgentConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1DynamicAgentConfig clone() { + return (GenaiVertexV1DynamicAgentConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Error.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Error.java new file mode 100644 index 00000000000..10e85856915 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Error.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Error message from an interaction. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1Error extends com.google.api.client.json.GenericJson { + + /** + * A URI that identifies the error type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * A human-readable error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * A URI that identifies the error type. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * A URI that identifies the error type. + * @param code code or {@code null} for none + */ + public GenaiVertexV1Error setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * A human-readable error message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * A human-readable error message. + * @param message message or {@code null} for none + */ + public GenaiVertexV1Error setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public GenaiVertexV1Error set(String fieldName, Object value) { + return (GenaiVertexV1Error) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1Error clone() { + return (GenaiVertexV1Error) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ErrorEvent.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ErrorEvent.java new file mode 100644 index 00000000000..af997dd9ddc --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ErrorEvent.java @@ -0,0 +1,63 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1ErrorEvent. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ErrorEvent extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Error error; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1Error getError() { + return error; + } + + /** + * @param error error or {@code null} for none + */ + public GenaiVertexV1ErrorEvent setError(GenaiVertexV1Error error) { + this.error = error; + return this; + } + + @Override + public GenaiVertexV1ErrorEvent set(String fieldName, Object value) { + return (GenaiVertexV1ErrorEvent) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ErrorEvent clone() { + return (GenaiVertexV1ErrorEvent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ExaAISearchConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ExaAISearchConfig.java new file mode 100644 index 00000000000..3c86ad8a08b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ExaAISearchConfig.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Used to specify configuration for ExaAISearch. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ExaAISearchConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The API key for ExaAiSearch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiKey; + + /** + * Optional. This field can be used to pass any parameter from the Exa.ai Search API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map customConfig; + + /** + * Required. The API key for ExaAiSearch. + * @return value or {@code null} for none + */ + public java.lang.String getApiKey() { + return apiKey; + } + + /** + * Required. The API key for ExaAiSearch. + * @param apiKey apiKey or {@code null} for none + */ + public GenaiVertexV1ExaAISearchConfig setApiKey(java.lang.String apiKey) { + this.apiKey = apiKey; + return this; + } + + /** + * Optional. This field can be used to pass any parameter from the Exa.ai Search API. + * @return value or {@code null} for none + */ + public java.util.Map getCustomConfig() { + return customConfig; + } + + /** + * Optional. This field can be used to pass any parameter from the Exa.ai Search API. + * @param customConfig customConfig or {@code null} for none + */ + public GenaiVertexV1ExaAISearchConfig setCustomConfig(java.util.Map customConfig) { + this.customConfig = customConfig; + return this; + } + + @Override + public GenaiVertexV1ExaAISearchConfig set(String fieldName, Object value) { + return (GenaiVertexV1ExaAISearchConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ExaAISearchConfig clone() { + return (GenaiVertexV1ExaAISearchConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Field.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Field.java new file mode 100644 index 00000000000..2dc2c90e3f5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Field.java @@ -0,0 +1,84 @@ +/* + * 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; + +/** + * Represents a single field in a struct. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1Field extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Value value; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * @param name name or {@code null} for none + */ + public GenaiVertexV1Field setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1Value getValue() { + return value; + } + + /** + * @param value value or {@code null} for none + */ + public GenaiVertexV1Field setValue(GenaiVertexV1Value value) { + this.value = value; + return this; + } + + @Override + public GenaiVertexV1Field set(String fieldName, Object value) { + return (GenaiVertexV1Field) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1Field clone() { + return (GenaiVertexV1Field) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileCitation.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileCitation.java new file mode 100644 index 00000000000..8de0f5835a1 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileCitation.java @@ -0,0 +1,186 @@ +/* + * 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; + +/** + * A file citation annotation. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1FileCitation extends com.google.api.client.json.GenericJson { + + /** + * User provided metadata about the retrieved context. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map customMetadata; + + /** + * The URI of the file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentUri; + + /** + * The name of the file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fileName; + + /** + * Media ID in-case of image citations, if applicable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mediaId; + + /** + * Page number of the cited document, if applicable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageNumber; + + /** + * Source attributed for a portion of the text. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * User provided metadata about the retrieved context. + * @return value or {@code null} for none + */ + public java.util.Map getCustomMetadata() { + return customMetadata; + } + + /** + * User provided metadata about the retrieved context. + * @param customMetadata customMetadata or {@code null} for none + */ + public GenaiVertexV1FileCitation setCustomMetadata(java.util.Map customMetadata) { + this.customMetadata = customMetadata; + return this; + } + + /** + * The URI of the file. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentUri() { + return documentUri; + } + + /** + * The URI of the file. + * @param documentUri documentUri or {@code null} for none + */ + public GenaiVertexV1FileCitation setDocumentUri(java.lang.String documentUri) { + this.documentUri = documentUri; + return this; + } + + /** + * The name of the file. + * @return value or {@code null} for none + */ + public java.lang.String getFileName() { + return fileName; + } + + /** + * The name of the file. + * @param fileName fileName or {@code null} for none + */ + public GenaiVertexV1FileCitation setFileName(java.lang.String fileName) { + this.fileName = fileName; + return this; + } + + /** + * Media ID in-case of image citations, if applicable. + * @return value or {@code null} for none + */ + public java.lang.String getMediaId() { + return mediaId; + } + + /** + * Media ID in-case of image citations, if applicable. + * @param mediaId mediaId or {@code null} for none + */ + public GenaiVertexV1FileCitation setMediaId(java.lang.String mediaId) { + this.mediaId = mediaId; + return this; + } + + /** + * Page number of the cited document, if applicable. + * @return value or {@code null} for none + */ + public java.lang.Integer getPageNumber() { + return pageNumber; + } + + /** + * Page number of the cited document, if applicable. + * @param pageNumber pageNumber or {@code null} for none + */ + public GenaiVertexV1FileCitation setPageNumber(java.lang.Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Source attributed for a portion of the text. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Source attributed for a portion of the text. + * @param source source or {@code null} for none + */ + public GenaiVertexV1FileCitation setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public GenaiVertexV1FileCitation set(String fieldName, Object value) { + return (GenaiVertexV1FileCitation) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1FileCitation clone() { + return (GenaiVertexV1FileCitation) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearch.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearch.java new file mode 100644 index 00000000000..667b72728c8 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearch.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.aiplatform.v1.model; + +/** + * A tool that can be used by the model to search files. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1FileSearch extends com.google.api.client.json.GenericJson { + + /** + * The file search store names to search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List fileSearchStoreNames; + + /** + * Metadata filter to apply to the semantic retrieval documents and chunks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metadataFilter; + + /** + * The number of semantic retrieval chunks to retrieve. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer topK; + + /** + * The file search store names to search. + * @return value or {@code null} for none + */ + public java.util.List getFileSearchStoreNames() { + return fileSearchStoreNames; + } + + /** + * The file search store names to search. + * @param fileSearchStoreNames fileSearchStoreNames or {@code null} for none + */ + public GenaiVertexV1FileSearch setFileSearchStoreNames(java.util.List fileSearchStoreNames) { + this.fileSearchStoreNames = fileSearchStoreNames; + return this; + } + + /** + * Metadata filter to apply to the semantic retrieval documents and chunks. + * @return value or {@code null} for none + */ + public java.lang.String getMetadataFilter() { + return metadataFilter; + } + + /** + * Metadata filter to apply to the semantic retrieval documents and chunks. + * @param metadataFilter metadataFilter or {@code null} for none + */ + public GenaiVertexV1FileSearch setMetadataFilter(java.lang.String metadataFilter) { + this.metadataFilter = metadataFilter; + return this; + } + + /** + * The number of semantic retrieval chunks to retrieve. + * @return value or {@code null} for none + */ + public java.lang.Integer getTopK() { + return topK; + } + + /** + * The number of semantic retrieval chunks to retrieve. + * @param topK topK or {@code null} for none + */ + public GenaiVertexV1FileSearch setTopK(java.lang.Integer topK) { + this.topK = topK; + return this; + } + + @Override + public GenaiVertexV1FileSearch set(String fieldName, Object value) { + return (GenaiVertexV1FileSearch) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1FileSearch clone() { + return (GenaiVertexV1FileSearch) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearchCallDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearchCallDelta.java new file mode 100644 index 00000000000..4a08b539a68 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearchCallDelta.java @@ -0,0 +1,42 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1FileSearchCallDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1FileSearchCallDelta extends com.google.api.client.json.GenericJson { + + @Override + public GenaiVertexV1FileSearchCallDelta set(String fieldName, Object value) { + return (GenaiVertexV1FileSearchCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1FileSearchCallDelta clone() { + return (GenaiVertexV1FileSearchCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearchCallStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearchCallStep.java new file mode 100644 index 00000000000..9991ff78a54 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearchCallStep.java @@ -0,0 +1,42 @@ +/* + * 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; + +/** + * File Search call step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1FileSearchCallStep extends com.google.api.client.json.GenericJson { + + @Override + public GenaiVertexV1FileSearchCallStep set(String fieldName, Object value) { + return (GenaiVertexV1FileSearchCallStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1FileSearchCallStep clone() { + return (GenaiVertexV1FileSearchCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearchResultContentFileSearchResult.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearchResultContentFileSearchResult.java new file mode 100644 index 00000000000..a638d5fdec0 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearchResultContentFileSearchResult.java @@ -0,0 +1,42 @@ +/* + * 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; + +/** + * The result of the File Search. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1FileSearchResultContentFileSearchResult extends com.google.api.client.json.GenericJson { + + @Override + public GenaiVertexV1FileSearchResultContentFileSearchResult set(String fieldName, Object value) { + return (GenaiVertexV1FileSearchResultContentFileSearchResult) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1FileSearchResultContentFileSearchResult clone() { + return (GenaiVertexV1FileSearchResultContentFileSearchResult) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearchResultDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearchResultDelta.java new file mode 100644 index 00000000000..86d4367d2c1 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearchResultDelta.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.aiplatform.v1.model; + +/** + * Model definition for GenaiVertexV1FileSearchResultDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1FileSearchResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + static { + // hack to force ProGuard to consider GenaiVertexV1FileSearchResultContentFileSearchResult used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiVertexV1FileSearchResultContentFileSearchResult.class); + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public GenaiVertexV1FileSearchResultDelta setResult(java.util.List result) { + this.result = result; + return this; + } + + @Override + public GenaiVertexV1FileSearchResultDelta set(String fieldName, Object value) { + return (GenaiVertexV1FileSearchResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1FileSearchResultDelta clone() { + return (GenaiVertexV1FileSearchResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearchResultStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearchResultStep.java new file mode 100644 index 00000000000..2f723ca7bc8 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FileSearchResultStep.java @@ -0,0 +1,42 @@ +/* + * 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; + +/** + * File Search result step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1FileSearchResultStep extends com.google.api.client.json.GenericJson { + + @Override + public GenaiVertexV1FileSearchResultStep set(String fieldName, Object value) { + return (GenaiVertexV1FileSearchResultStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1FileSearchResultStep clone() { + return (GenaiVertexV1FileSearchResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Function.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Function.java new file mode 100644 index 00000000000..0099121903e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Function.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.aiplatform.v1.model; + +/** + * A tool that can be used by the model. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1Function extends com.google.api.client.json.GenericJson { + + /** + * A description of the function. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The name of the function. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The JSON Schema for the function's parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Value parameters; + + /** + * A description of the function. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * A description of the function. + * @param description description or {@code null} for none + */ + public GenaiVertexV1Function setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The name of the function. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the function. + * @param name name or {@code null} for none + */ + public GenaiVertexV1Function setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The JSON Schema for the function's parameters. + * @return value or {@code null} for none + */ + public GenaiVertexV1Value getParameters() { + return parameters; + } + + /** + * The JSON Schema for the function's parameters. + * @param parameters parameters or {@code null} for none + */ + public GenaiVertexV1Function setParameters(GenaiVertexV1Value parameters) { + this.parameters = parameters; + return this; + } + + @Override + public GenaiVertexV1Function set(String fieldName, Object value) { + return (GenaiVertexV1Function) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1Function clone() { + return (GenaiVertexV1Function) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FunctionCallStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FunctionCallStep.java new file mode 100644 index 00000000000..b95d8322220 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FunctionCallStep.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * A function tool call step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1FunctionCallStep extends com.google.api.client.json.GenericJson { + + /** + * Required. The arguments to pass to the function. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Struct arguments; + + /** + * Required. The name of the tool to call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The arguments to pass to the function. + * @return value or {@code null} for none + */ + public GenaiVertexV1Struct getArguments() { + return arguments; + } + + /** + * Required. The arguments to pass to the function. + * @param arguments arguments or {@code null} for none + */ + public GenaiVertexV1FunctionCallStep setArguments(GenaiVertexV1Struct arguments) { + this.arguments = arguments; + return this; + } + + /** + * Required. The name of the tool to call. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the tool to call. + * @param name name or {@code null} for none + */ + public GenaiVertexV1FunctionCallStep setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GenaiVertexV1FunctionCallStep set(String fieldName, Object value) { + return (GenaiVertexV1FunctionCallStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1FunctionCallStep clone() { + return (GenaiVertexV1FunctionCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FunctionResultDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FunctionResultDelta.java new file mode 100644 index 00000000000..0e32502bac4 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FunctionResultDelta.java @@ -0,0 +1,105 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1FunctionResultDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1FunctionResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Value result; + + /** + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * @param isError isError or {@code null} for none + */ + public GenaiVertexV1FunctionResultDelta setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * @param name name or {@code null} for none + */ + public GenaiVertexV1FunctionResultDelta setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1Value getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public GenaiVertexV1FunctionResultDelta setResult(GenaiVertexV1Value result) { + this.result = result; + return this; + } + + @Override + public GenaiVertexV1FunctionResultDelta set(String fieldName, Object value) { + return (GenaiVertexV1FunctionResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1FunctionResultDelta clone() { + return (GenaiVertexV1FunctionResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FunctionResultStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FunctionResultStep.java new file mode 100644 index 00000000000..827532c9d96 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1FunctionResultStep.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.aiplatform.v1.model; + +/** + * Result of a function tool call. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1FunctionResultStep extends com.google.api.client.json.GenericJson { + + /** + * Whether the tool call resulted in an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * The name of the tool that was called. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The result of the tool call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Value result; + + /** + * Whether the tool call resulted in an error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * Whether the tool call resulted in an error. + * @param isError isError or {@code null} for none + */ + public GenaiVertexV1FunctionResultStep setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * The name of the tool that was called. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the tool that was called. + * @param name name or {@code null} for none + */ + public GenaiVertexV1FunctionResultStep setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The result of the tool call. + * @return value or {@code null} for none + */ + public GenaiVertexV1Value getResult() { + return result; + } + + /** + * Required. The result of the tool call. + * @param result result or {@code null} for none + */ + public GenaiVertexV1FunctionResultStep setResult(GenaiVertexV1Value result) { + this.result = result; + return this; + } + + @Override + public GenaiVertexV1FunctionResultStep set(String fieldName, Object value) { + return (GenaiVertexV1FunctionResultStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1FunctionResultStep clone() { + return (GenaiVertexV1FunctionResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GenerationConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GenerationConfig.java new file mode 100644 index 00000000000..a4a176c71e6 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GenerationConfig.java @@ -0,0 +1,330 @@ +/* + * 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; + +/** + * Configuration parameters for model interactions. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GenerationConfig extends com.google.api.client.json.GenericJson { + + /** + * The maximum number of tokens to include in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxOutputTokens; + + /** + * Seed used in decoding for reproducibility. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer seed; + + /** + * A list of character sequences that will stop output interaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List stopSequences; + + /** + * Speech and multi-speaker configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1SpeakerConfig structuredSpeechConfig; + + /** + * Controls the randomness of the output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float temperature; + + /** + * The level of thought tokens that the model should generate. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String thinkingLevel; + + /** + * Whether to include thought summaries in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String thinkingSummaries; + + /** + * The config for the tool choice. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ToolChoiceConfig toolChoiceConfig; + + /** + * The mode of the tool choice. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String toolChoiceMode; + + /** + * The maximum cumulative probability of tokens to consider when sampling. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float topP; + + /** + * Optional. Configuration for speech recognition (transcription). If present, ASR is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1TranscriptionConfig transcriptionConfig; + + /** + * Configuration for video generation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1VideoConfig videoConfig; + + /** + * The maximum number of tokens to include in the response. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxOutputTokens() { + return maxOutputTokens; + } + + /** + * The maximum number of tokens to include in the response. + * @param maxOutputTokens maxOutputTokens or {@code null} for none + */ + public GenaiVertexV1GenerationConfig setMaxOutputTokens(java.lang.Integer maxOutputTokens) { + this.maxOutputTokens = maxOutputTokens; + return this; + } + + /** + * Seed used in decoding for reproducibility. + * @return value or {@code null} for none + */ + public java.lang.Integer getSeed() { + return seed; + } + + /** + * Seed used in decoding for reproducibility. + * @param seed seed or {@code null} for none + */ + public GenaiVertexV1GenerationConfig setSeed(java.lang.Integer seed) { + this.seed = seed; + return this; + } + + /** + * A list of character sequences that will stop output interaction. + * @return value or {@code null} for none + */ + public java.util.List getStopSequences() { + return stopSequences; + } + + /** + * A list of character sequences that will stop output interaction. + * @param stopSequences stopSequences or {@code null} for none + */ + public GenaiVertexV1GenerationConfig setStopSequences(java.util.List stopSequences) { + this.stopSequences = stopSequences; + return this; + } + + /** + * Speech and multi-speaker configuration. + * @return value or {@code null} for none + */ + public GenaiVertexV1SpeakerConfig getStructuredSpeechConfig() { + return structuredSpeechConfig; + } + + /** + * Speech and multi-speaker configuration. + * @param structuredSpeechConfig structuredSpeechConfig or {@code null} for none + */ + public GenaiVertexV1GenerationConfig setStructuredSpeechConfig(GenaiVertexV1SpeakerConfig structuredSpeechConfig) { + this.structuredSpeechConfig = structuredSpeechConfig; + return this; + } + + /** + * Controls the randomness of the output. + * @return value or {@code null} for none + */ + public java.lang.Float getTemperature() { + return temperature; + } + + /** + * Controls the randomness of the output. + * @param temperature temperature or {@code null} for none + */ + public GenaiVertexV1GenerationConfig setTemperature(java.lang.Float temperature) { + this.temperature = temperature; + return this; + } + + /** + * The level of thought tokens that the model should generate. + * @return value or {@code null} for none + */ + public java.lang.String getThinkingLevel() { + return thinkingLevel; + } + + /** + * The level of thought tokens that the model should generate. + * @param thinkingLevel thinkingLevel or {@code null} for none + */ + public GenaiVertexV1GenerationConfig setThinkingLevel(java.lang.String thinkingLevel) { + this.thinkingLevel = thinkingLevel; + return this; + } + + /** + * Whether to include thought summaries in the response. + * @return value or {@code null} for none + */ + public java.lang.String getThinkingSummaries() { + return thinkingSummaries; + } + + /** + * Whether to include thought summaries in the response. + * @param thinkingSummaries thinkingSummaries or {@code null} for none + */ + public GenaiVertexV1GenerationConfig setThinkingSummaries(java.lang.String thinkingSummaries) { + this.thinkingSummaries = thinkingSummaries; + return this; + } + + /** + * The config for the tool choice. + * @return value or {@code null} for none + */ + public GenaiVertexV1ToolChoiceConfig getToolChoiceConfig() { + return toolChoiceConfig; + } + + /** + * The config for the tool choice. + * @param toolChoiceConfig toolChoiceConfig or {@code null} for none + */ + public GenaiVertexV1GenerationConfig setToolChoiceConfig(GenaiVertexV1ToolChoiceConfig toolChoiceConfig) { + this.toolChoiceConfig = toolChoiceConfig; + return this; + } + + /** + * The mode of the tool choice. + * @return value or {@code null} for none + */ + public java.lang.String getToolChoiceMode() { + return toolChoiceMode; + } + + /** + * The mode of the tool choice. + * @param toolChoiceMode toolChoiceMode or {@code null} for none + */ + public GenaiVertexV1GenerationConfig setToolChoiceMode(java.lang.String toolChoiceMode) { + this.toolChoiceMode = toolChoiceMode; + return this; + } + + /** + * The maximum cumulative probability of tokens to consider when sampling. + * @return value or {@code null} for none + */ + public java.lang.Float getTopP() { + return topP; + } + + /** + * The maximum cumulative probability of tokens to consider when sampling. + * @param topP topP or {@code null} for none + */ + public GenaiVertexV1GenerationConfig setTopP(java.lang.Float topP) { + this.topP = topP; + return this; + } + + /** + * Optional. Configuration for speech recognition (transcription). If present, ASR is enabled. + * @return value or {@code null} for none + */ + public GenaiVertexV1TranscriptionConfig getTranscriptionConfig() { + return transcriptionConfig; + } + + /** + * Optional. Configuration for speech recognition (transcription). If present, ASR is enabled. + * @param transcriptionConfig transcriptionConfig or {@code null} for none + */ + public GenaiVertexV1GenerationConfig setTranscriptionConfig(GenaiVertexV1TranscriptionConfig transcriptionConfig) { + this.transcriptionConfig = transcriptionConfig; + return this; + } + + /** + * Configuration for video generation. + * @return value or {@code null} for none + */ + public GenaiVertexV1VideoConfig getVideoConfig() { + return videoConfig; + } + + /** + * Configuration for video generation. + * @param videoConfig videoConfig or {@code null} for none + */ + public GenaiVertexV1GenerationConfig setVideoConfig(GenaiVertexV1VideoConfig videoConfig) { + this.videoConfig = videoConfig; + return this; + } + + @Override + public GenaiVertexV1GenerationConfig set(String fieldName, Object value) { + return (GenaiVertexV1GenerationConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GenerationConfig clone() { + return (GenaiVertexV1GenerationConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMaps.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMaps.java new file mode 100644 index 00000000000..152a2a3b622 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMaps.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.aiplatform.v1.model; + +/** + * A tool that can be used by the model to call Google Maps. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleMaps extends com.google.api.client.json.GenericJson { + + /** + * Whether to return a widget context token in the tool call result of the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableWidget; + + /** + * The latitude of the user's location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double latitude; + + /** + * The longitude of the user's location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double longitude; + + /** + * Whether to return a widget context token in the tool call result of the response. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableWidget() { + return enableWidget; + } + + /** + * Whether to return a widget context token in the tool call result of the response. + * @param enableWidget enableWidget or {@code null} for none + */ + public GenaiVertexV1GoogleMaps setEnableWidget(java.lang.Boolean enableWidget) { + this.enableWidget = enableWidget; + return this; + } + + /** + * The latitude of the user's location. + * @return value or {@code null} for none + */ + public java.lang.Double getLatitude() { + return latitude; + } + + /** + * The latitude of the user's location. + * @param latitude latitude or {@code null} for none + */ + public GenaiVertexV1GoogleMaps setLatitude(java.lang.Double latitude) { + this.latitude = latitude; + return this; + } + + /** + * The longitude of the user's location. + * @return value or {@code null} for none + */ + public java.lang.Double getLongitude() { + return longitude; + } + + /** + * The longitude of the user's location. + * @param longitude longitude or {@code null} for none + */ + public GenaiVertexV1GoogleMaps setLongitude(java.lang.Double longitude) { + this.longitude = longitude; + return this; + } + + @Override + public GenaiVertexV1GoogleMaps set(String fieldName, Object value) { + return (GenaiVertexV1GoogleMaps) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleMaps clone() { + return (GenaiVertexV1GoogleMaps) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsCallContentGoogleMapsCallArguments.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsCallContentGoogleMapsCallArguments.java new file mode 100644 index 00000000000..362d56bff60 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsCallContentGoogleMapsCallArguments.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.aiplatform.v1.model; + +/** + * The arguments to pass to the Google Maps tool. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleMapsCallContentGoogleMapsCallArguments extends com.google.api.client.json.GenericJson { + + /** + * The queries to be executed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List queries; + + /** + * The queries to be executed. + * @return value or {@code null} for none + */ + public java.util.List getQueries() { + return queries; + } + + /** + * The queries to be executed. + * @param queries queries or {@code null} for none + */ + public GenaiVertexV1GoogleMapsCallContentGoogleMapsCallArguments setQueries(java.util.List queries) { + this.queries = queries; + return this; + } + + @Override + public GenaiVertexV1GoogleMapsCallContentGoogleMapsCallArguments set(String fieldName, Object value) { + return (GenaiVertexV1GoogleMapsCallContentGoogleMapsCallArguments) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleMapsCallContentGoogleMapsCallArguments clone() { + return (GenaiVertexV1GoogleMapsCallContentGoogleMapsCallArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsCallDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsCallDelta.java new file mode 100644 index 00000000000..83f3d59fd4c --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsCallDelta.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.aiplatform.v1.model; + +/** + * Model definition for GenaiVertexV1GoogleMapsCallDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleMapsCallDelta extends com.google.api.client.json.GenericJson { + + /** + * The arguments to pass to the Google Maps tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1GoogleMapsCallContentGoogleMapsCallArguments arguments; + + /** + * The arguments to pass to the Google Maps tool. + * @return value or {@code null} for none + */ + public GenaiVertexV1GoogleMapsCallContentGoogleMapsCallArguments getArguments() { + return arguments; + } + + /** + * The arguments to pass to the Google Maps tool. + * @param arguments arguments or {@code null} for none + */ + public GenaiVertexV1GoogleMapsCallDelta setArguments(GenaiVertexV1GoogleMapsCallContentGoogleMapsCallArguments arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiVertexV1GoogleMapsCallDelta set(String fieldName, Object value) { + return (GenaiVertexV1GoogleMapsCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleMapsCallDelta clone() { + return (GenaiVertexV1GoogleMapsCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsCallStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsCallStep.java new file mode 100644 index 00000000000..4e68de5e52d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsCallStep.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.aiplatform.v1.model; + +/** + * Google Maps call step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleMapsCallStep extends com.google.api.client.json.GenericJson { + + /** + * The arguments to pass to the Google Maps tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1GoogleMapsCallStepGoogleMapsCallStepArguments arguments; + + /** + * The arguments to pass to the Google Maps tool. + * @return value or {@code null} for none + */ + public GenaiVertexV1GoogleMapsCallStepGoogleMapsCallStepArguments getArguments() { + return arguments; + } + + /** + * The arguments to pass to the Google Maps tool. + * @param arguments arguments or {@code null} for none + */ + public GenaiVertexV1GoogleMapsCallStep setArguments(GenaiVertexV1GoogleMapsCallStepGoogleMapsCallStepArguments arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiVertexV1GoogleMapsCallStep set(String fieldName, Object value) { + return (GenaiVertexV1GoogleMapsCallStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleMapsCallStep clone() { + return (GenaiVertexV1GoogleMapsCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsCallStepGoogleMapsCallStepArguments.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsCallStepGoogleMapsCallStepArguments.java new file mode 100644 index 00000000000..87d29a51d8f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsCallStepGoogleMapsCallStepArguments.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.aiplatform.v1.model; + +/** + * The arguments to pass to the Google Maps tool. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleMapsCallStepGoogleMapsCallStepArguments extends com.google.api.client.json.GenericJson { + + /** + * The queries to be executed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List queries; + + /** + * The queries to be executed. + * @return value or {@code null} for none + */ + public java.util.List getQueries() { + return queries; + } + + /** + * The queries to be executed. + * @param queries queries or {@code null} for none + */ + public GenaiVertexV1GoogleMapsCallStepGoogleMapsCallStepArguments setQueries(java.util.List queries) { + this.queries = queries; + return this; + } + + @Override + public GenaiVertexV1GoogleMapsCallStepGoogleMapsCallStepArguments set(String fieldName, Object value) { + return (GenaiVertexV1GoogleMapsCallStepGoogleMapsCallStepArguments) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleMapsCallStepGoogleMapsCallStepArguments clone() { + return (GenaiVertexV1GoogleMapsCallStepGoogleMapsCallStepArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultContentGoogleMapsResult.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultContentGoogleMapsResult.java new file mode 100644 index 00000000000..57ba712a486 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultContentGoogleMapsResult.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * The result of the Google Maps. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleMapsResultContentGoogleMapsResult extends com.google.api.client.json.GenericJson { + + /** + * The places that were found. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List places; + + /** + * Resource name of the Google Maps widget context token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String widgetContextToken; + + /** + * The places that were found. + * @return value or {@code null} for none + */ + public java.util.List getPlaces() { + return places; + } + + /** + * The places that were found. + * @param places places or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultContentGoogleMapsResult setPlaces(java.util.List places) { + this.places = places; + return this; + } + + /** + * Resource name of the Google Maps widget context token. + * @return value or {@code null} for none + */ + public java.lang.String getWidgetContextToken() { + return widgetContextToken; + } + + /** + * Resource name of the Google Maps widget context token. + * @param widgetContextToken widgetContextToken or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultContentGoogleMapsResult setWidgetContextToken(java.lang.String widgetContextToken) { + this.widgetContextToken = widgetContextToken; + return this; + } + + @Override + public GenaiVertexV1GoogleMapsResultContentGoogleMapsResult set(String fieldName, Object value) { + return (GenaiVertexV1GoogleMapsResultContentGoogleMapsResult) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleMapsResultContentGoogleMapsResult clone() { + return (GenaiVertexV1GoogleMapsResultContentGoogleMapsResult) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultContentGoogleMapsResultPlaces.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultContentGoogleMapsResultPlaces.java new file mode 100644 index 00000000000..c91621ab063 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultContentGoogleMapsResultPlaces.java @@ -0,0 +1,141 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1GoogleMapsResultContentGoogleMapsResultPlaces. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleMapsResultContentGoogleMapsResultPlaces extends com.google.api.client.json.GenericJson { + + /** + * Title of the place. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The ID of the place, in `places/{place_id}` format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String placeId; + + /** + * Snippets of reviews that are used to generate answers about the features of a given place in + * Google Maps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reviewSnippets; + + /** + * URI reference of the place. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Title of the place. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Title of the place. + * @param name name or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultContentGoogleMapsResultPlaces setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The ID of the place, in `places/{place_id}` format. + * @return value or {@code null} for none + */ + public java.lang.String getPlaceId() { + return placeId; + } + + /** + * The ID of the place, in `places/{place_id}` format. + * @param placeId placeId or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultContentGoogleMapsResultPlaces setPlaceId(java.lang.String placeId) { + this.placeId = placeId; + return this; + } + + /** + * Snippets of reviews that are used to generate answers about the features of a given place in + * Google Maps. + * @return value or {@code null} for none + */ + public java.util.List getReviewSnippets() { + return reviewSnippets; + } + + /** + * Snippets of reviews that are used to generate answers about the features of a given place in + * Google Maps. + * @param reviewSnippets reviewSnippets or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultContentGoogleMapsResultPlaces setReviewSnippets(java.util.List reviewSnippets) { + this.reviewSnippets = reviewSnippets; + return this; + } + + /** + * URI reference of the place. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * URI reference of the place. + * @param url url or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultContentGoogleMapsResultPlaces setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GenaiVertexV1GoogleMapsResultContentGoogleMapsResultPlaces set(String fieldName, Object value) { + return (GenaiVertexV1GoogleMapsResultContentGoogleMapsResultPlaces) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleMapsResultContentGoogleMapsResultPlaces clone() { + return (GenaiVertexV1GoogleMapsResultContentGoogleMapsResultPlaces) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultDelta.java new file mode 100644 index 00000000000..f6a787cb112 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultDelta.java @@ -0,0 +1,72 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1GoogleMapsResultDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleMapsResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The results of the Google Maps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + static { + // hack to force ProGuard to consider GenaiVertexV1GoogleMapsResultContentGoogleMapsResult used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiVertexV1GoogleMapsResultContentGoogleMapsResult.class); + } + + /** + * The results of the Google Maps. + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * The results of the Google Maps. + * @param result result or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultDelta setResult(java.util.List result) { + this.result = result; + return this; + } + + @Override + public GenaiVertexV1GoogleMapsResultDelta set(String fieldName, Object value) { + return (GenaiVertexV1GoogleMapsResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleMapsResultDelta clone() { + return (GenaiVertexV1GoogleMapsResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultStep.java new file mode 100644 index 00000000000..631fb5268a5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultStep.java @@ -0,0 +1,63 @@ +/* + * 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; + +/** + * Google Maps result step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleMapsResultStep extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + /** + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultStep setResult(java.util.List result) { + this.result = result; + return this; + } + + @Override + public GenaiVertexV1GoogleMapsResultStep set(String fieldName, Object value) { + return (GenaiVertexV1GoogleMapsResultStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleMapsResultStep clone() { + return (GenaiVertexV1GoogleMapsResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItem.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItem.java new file mode 100644 index 00000000000..796dcf49eaa --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItem.java @@ -0,0 +1,84 @@ +/* + * 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; + +/** + * The result of the Google Maps. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItem extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List places; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String widgetContextToken; + + /** + * @return value or {@code null} for none + */ + public java.util.List getPlaces() { + return places; + } + + /** + * @param places places or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItem setPlaces(java.util.List places) { + this.places = places; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getWidgetContextToken() { + return widgetContextToken; + } + + /** + * @param widgetContextToken widgetContextToken or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItem setWidgetContextToken(java.lang.String widgetContextToken) { + this.widgetContextToken = widgetContextToken; + return this; + } + + @Override + public GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItem set(String fieldName, Object value) { + return (GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItem) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItem clone() { + return (GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItem) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces.java new file mode 100644 index 00000000000..152a2190f24 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces.java @@ -0,0 +1,126 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String placeId; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reviewSnippets; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * @param name name or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getPlaceId() { + return placeId; + } + + /** + * @param placeId placeId or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces setPlaceId(java.lang.String placeId) { + this.placeId = placeId; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getReviewSnippets() { + return reviewSnippets; + } + + /** + * @param reviewSnippets reviewSnippets or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces setReviewSnippets(java.util.List reviewSnippets) { + this.reviewSnippets = reviewSnippets; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * @param url url or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces set(String fieldName, Object value) { + return (GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces clone() { + return (GenaiVertexV1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearch.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearch.java new file mode 100644 index 00000000000..9cb3e37867e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearch.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.aiplatform.v1.model; + +/** + * A tool that can be used by the model to search Google. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleSearch extends com.google.api.client.json.GenericJson { + + /** + * The types of search grounding to enable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List searchTypes; + + /** + * The types of search grounding to enable. + * @return value or {@code null} for none + */ + public java.util.List getSearchTypes() { + return searchTypes; + } + + /** + * The types of search grounding to enable. + * @param searchTypes searchTypes or {@code null} for none + */ + public GenaiVertexV1GoogleSearch setSearchTypes(java.util.List searchTypes) { + this.searchTypes = searchTypes; + return this; + } + + @Override + public GenaiVertexV1GoogleSearch set(String fieldName, Object value) { + return (GenaiVertexV1GoogleSearch) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleSearch clone() { + return (GenaiVertexV1GoogleSearch) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchCallContentGoogleSearchCallArguments.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchCallContentGoogleSearchCallArguments.java new file mode 100644 index 00000000000..10e8e824eb1 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchCallContentGoogleSearchCallArguments.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.aiplatform.v1.model; + +/** + * The arguments to pass to Google Search. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleSearchCallContentGoogleSearchCallArguments extends com.google.api.client.json.GenericJson { + + /** + * Web search queries for the following-up web search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List queries; + + /** + * Web search queries for the following-up web search. + * @return value or {@code null} for none + */ + public java.util.List getQueries() { + return queries; + } + + /** + * Web search queries for the following-up web search. + * @param queries queries or {@code null} for none + */ + public GenaiVertexV1GoogleSearchCallContentGoogleSearchCallArguments setQueries(java.util.List queries) { + this.queries = queries; + return this; + } + + @Override + public GenaiVertexV1GoogleSearchCallContentGoogleSearchCallArguments set(String fieldName, Object value) { + return (GenaiVertexV1GoogleSearchCallContentGoogleSearchCallArguments) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleSearchCallContentGoogleSearchCallArguments clone() { + return (GenaiVertexV1GoogleSearchCallContentGoogleSearchCallArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchCallDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchCallDelta.java new file mode 100644 index 00000000000..859f320832b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchCallDelta.java @@ -0,0 +1,63 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1GoogleSearchCallDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleSearchCallDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1GoogleSearchCallContentGoogleSearchCallArguments arguments; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1GoogleSearchCallContentGoogleSearchCallArguments getArguments() { + return arguments; + } + + /** + * @param arguments arguments or {@code null} for none + */ + public GenaiVertexV1GoogleSearchCallDelta setArguments(GenaiVertexV1GoogleSearchCallContentGoogleSearchCallArguments arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiVertexV1GoogleSearchCallDelta set(String fieldName, Object value) { + return (GenaiVertexV1GoogleSearchCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleSearchCallDelta clone() { + return (GenaiVertexV1GoogleSearchCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchCallStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchCallStep.java new file mode 100644 index 00000000000..e93e7cad2e0 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchCallStep.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Google Search call step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleSearchCallStep extends com.google.api.client.json.GenericJson { + + /** + * Required. The arguments to pass to Google Search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1GoogleSearchCallStepGoogleSearchCallStepArguments arguments; + + /** + * The type of search grounding enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String searchType; + + /** + * Required. The arguments to pass to Google Search. + * @return value or {@code null} for none + */ + public GenaiVertexV1GoogleSearchCallStepGoogleSearchCallStepArguments getArguments() { + return arguments; + } + + /** + * Required. The arguments to pass to Google Search. + * @param arguments arguments or {@code null} for none + */ + public GenaiVertexV1GoogleSearchCallStep setArguments(GenaiVertexV1GoogleSearchCallStepGoogleSearchCallStepArguments arguments) { + this.arguments = arguments; + return this; + } + + /** + * The type of search grounding enabled. + * @return value or {@code null} for none + */ + public java.lang.String getSearchType() { + return searchType; + } + + /** + * The type of search grounding enabled. + * @param searchType searchType or {@code null} for none + */ + public GenaiVertexV1GoogleSearchCallStep setSearchType(java.lang.String searchType) { + this.searchType = searchType; + return this; + } + + @Override + public GenaiVertexV1GoogleSearchCallStep set(String fieldName, Object value) { + return (GenaiVertexV1GoogleSearchCallStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleSearchCallStep clone() { + return (GenaiVertexV1GoogleSearchCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchCallStepGoogleSearchCallStepArguments.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchCallStepGoogleSearchCallStepArguments.java new file mode 100644 index 00000000000..11cb8182876 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchCallStepGoogleSearchCallStepArguments.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.aiplatform.v1.model; + +/** + * The arguments to pass to Google Search. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleSearchCallStepGoogleSearchCallStepArguments extends com.google.api.client.json.GenericJson { + + /** + * Web search queries for the following-up web search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List queries; + + /** + * Web search queries for the following-up web search. + * @return value or {@code null} for none + */ + public java.util.List getQueries() { + return queries; + } + + /** + * Web search queries for the following-up web search. + * @param queries queries or {@code null} for none + */ + public GenaiVertexV1GoogleSearchCallStepGoogleSearchCallStepArguments setQueries(java.util.List queries) { + this.queries = queries; + return this; + } + + @Override + public GenaiVertexV1GoogleSearchCallStepGoogleSearchCallStepArguments set(String fieldName, Object value) { + return (GenaiVertexV1GoogleSearchCallStepGoogleSearchCallStepArguments) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleSearchCallStepGoogleSearchCallStepArguments clone() { + return (GenaiVertexV1GoogleSearchCallStepGoogleSearchCallStepArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchResultContentGoogleSearchResult.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchResultContentGoogleSearchResult.java new file mode 100644 index 00000000000..3b1a2d68285 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchResultContentGoogleSearchResult.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.aiplatform.v1.model; + +/** + * The result of the Google Search. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleSearchResultContentGoogleSearchResult extends com.google.api.client.json.GenericJson { + + /** + * Web content snippet that can be embedded in a web page or an app webview. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String searchSuggestions; + + /** + * Web content snippet that can be embedded in a web page or an app webview. + * @return value or {@code null} for none + */ + public java.lang.String getSearchSuggestions() { + return searchSuggestions; + } + + /** + * Web content snippet that can be embedded in a web page or an app webview. + * @param searchSuggestions searchSuggestions or {@code null} for none + */ + public GenaiVertexV1GoogleSearchResultContentGoogleSearchResult setSearchSuggestions(java.lang.String searchSuggestions) { + this.searchSuggestions = searchSuggestions; + return this; + } + + @Override + public GenaiVertexV1GoogleSearchResultContentGoogleSearchResult set(String fieldName, Object value) { + return (GenaiVertexV1GoogleSearchResultContentGoogleSearchResult) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleSearchResultContentGoogleSearchResult clone() { + return (GenaiVertexV1GoogleSearchResultContentGoogleSearchResult) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchResultDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchResultDelta.java new file mode 100644 index 00000000000..9507ef881a5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchResultDelta.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1GoogleSearchResultDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleSearchResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + static { + // hack to force ProGuard to consider GenaiVertexV1GoogleSearchResultContentGoogleSearchResult used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiVertexV1GoogleSearchResultContentGoogleSearchResult.class); + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * @param isError isError or {@code null} for none + */ + public GenaiVertexV1GoogleSearchResultDelta setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public GenaiVertexV1GoogleSearchResultDelta setResult(java.util.List result) { + this.result = result; + return this; + } + + @Override + public GenaiVertexV1GoogleSearchResultDelta set(String fieldName, Object value) { + return (GenaiVertexV1GoogleSearchResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleSearchResultDelta clone() { + return (GenaiVertexV1GoogleSearchResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchResultStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchResultStep.java new file mode 100644 index 00000000000..b483f66b3e2 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchResultStep.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Google Search result step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleSearchResultStep extends com.google.api.client.json.GenericJson { + + /** + * Whether the Google Search resulted in an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * Required. The results of the Google Search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + /** + * Whether the Google Search resulted in an error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * Whether the Google Search resulted in an error. + * @param isError isError or {@code null} for none + */ + public GenaiVertexV1GoogleSearchResultStep setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * Required. The results of the Google Search. + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * Required. The results of the Google Search. + * @param result result or {@code null} for none + */ + public GenaiVertexV1GoogleSearchResultStep setResult(java.util.List result) { + this.result = result; + return this; + } + + @Override + public GenaiVertexV1GoogleSearchResultStep set(String fieldName, Object value) { + return (GenaiVertexV1GoogleSearchResultStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleSearchResultStep clone() { + return (GenaiVertexV1GoogleSearchResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchResultStepGoogleSearchResultItem.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchResultStepGoogleSearchResultItem.java new file mode 100644 index 00000000000..ed5299ab8eb --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1GoogleSearchResultStepGoogleSearchResultItem.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.aiplatform.v1.model; + +/** + * The result of the Google Search. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1GoogleSearchResultStepGoogleSearchResultItem extends com.google.api.client.json.GenericJson { + + /** + * Web content snippet that can be embedded in a web page or an app webview. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String searchSuggestions; + + /** + * Web content snippet that can be embedded in a web page or an app webview. + * @return value or {@code null} for none + */ + public java.lang.String getSearchSuggestions() { + return searchSuggestions; + } + + /** + * Web content snippet that can be embedded in a web page or an app webview. + * @param searchSuggestions searchSuggestions or {@code null} for none + */ + public GenaiVertexV1GoogleSearchResultStepGoogleSearchResultItem setSearchSuggestions(java.lang.String searchSuggestions) { + this.searchSuggestions = searchSuggestions; + return this; + } + + @Override + public GenaiVertexV1GoogleSearchResultStepGoogleSearchResultItem set(String fieldName, Object value) { + return (GenaiVertexV1GoogleSearchResultStepGoogleSearchResultItem) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1GoogleSearchResultStepGoogleSearchResultItem clone() { + return (GenaiVertexV1GoogleSearchResultStepGoogleSearchResultItem) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ImageContent.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ImageContent.java new file mode 100644 index 00000000000..10db19ec194 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ImageContent.java @@ -0,0 +1,169 @@ +/* + * 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; + +/** + * An image content block. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ImageContent extends com.google.api.client.json.GenericJson { + + /** + * The image content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * Flexible MIME type string of the image, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeTypeString; + + /** + * The resolution of the media. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resolution; + + /** + * The URI of the image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * The image content. + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + * The image content. + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * The image content. + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiVertexV1ImageContent setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + * The image content. + * @see #setData() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1ImageContent encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * Flexible MIME type string of the image, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * @return value or {@code null} for none + */ + public java.lang.String getMimeTypeString() { + return mimeTypeString; + } + + /** + * Flexible MIME type string of the image, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * @param mimeTypeString mimeTypeString or {@code null} for none + */ + public GenaiVertexV1ImageContent setMimeTypeString(java.lang.String mimeTypeString) { + this.mimeTypeString = mimeTypeString; + return this; + } + + /** + * The resolution of the media. + * @return value or {@code null} for none + */ + public java.lang.String getResolution() { + return resolution; + } + + /** + * The resolution of the media. + * @param resolution resolution or {@code null} for none + */ + public GenaiVertexV1ImageContent setResolution(java.lang.String resolution) { + this.resolution = resolution; + return this; + } + + /** + * The URI of the image. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * The URI of the image. + * @param uri uri or {@code null} for none + */ + public GenaiVertexV1ImageContent setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiVertexV1ImageContent set(String fieldName, Object value) { + return (GenaiVertexV1ImageContent) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ImageContent clone() { + return (GenaiVertexV1ImageContent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ImageDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ImageDelta.java new file mode 100644 index 00000000000..694436665b5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ImageDelta.java @@ -0,0 +1,157 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1ImageDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ImageDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * The resolution of the media. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resolution; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiVertexV1ImageDelta setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + + * @see #setData() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1ImageDelta encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * @param mimeType mimeType or {@code null} for none + */ + public GenaiVertexV1ImageDelta setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * The resolution of the media. + * @return value or {@code null} for none + */ + public java.lang.String getResolution() { + return resolution; + } + + /** + * The resolution of the media. + * @param resolution resolution or {@code null} for none + */ + public GenaiVertexV1ImageDelta setResolution(java.lang.String resolution) { + this.resolution = resolution; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * @param uri uri or {@code null} for none + */ + public GenaiVertexV1ImageDelta setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiVertexV1ImageDelta set(String fieldName, Object value) { + return (GenaiVertexV1ImageDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ImageDelta clone() { + return (GenaiVertexV1ImageDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ImageResponseFormat.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ImageResponseFormat.java new file mode 100644 index 00000000000..e8600591853 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ImageResponseFormat.java @@ -0,0 +1,138 @@ +/* + * 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; + +/** + * Configuration for image output format. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ImageResponseFormat extends com.google.api.client.json.GenericJson { + + /** + * The aspect ratio for the image output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String aspectRatio; + + /** + * The delivery mode for the image output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String delivery; + + /** + * The size of the image output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String imageSize; + + /** + * The MIME type of the image output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * The aspect ratio for the image output. + * @return value or {@code null} for none + */ + public java.lang.String getAspectRatio() { + return aspectRatio; + } + + /** + * The aspect ratio for the image output. + * @param aspectRatio aspectRatio or {@code null} for none + */ + public GenaiVertexV1ImageResponseFormat setAspectRatio(java.lang.String aspectRatio) { + this.aspectRatio = aspectRatio; + return this; + } + + /** + * The delivery mode for the image output. + * @return value or {@code null} for none + */ + public java.lang.String getDelivery() { + return delivery; + } + + /** + * The delivery mode for the image output. + * @param delivery delivery or {@code null} for none + */ + public GenaiVertexV1ImageResponseFormat setDelivery(java.lang.String delivery) { + this.delivery = delivery; + return this; + } + + /** + * The size of the image output. + * @return value or {@code null} for none + */ + public java.lang.String getImageSize() { + return imageSize; + } + + /** + * The size of the image output. + * @param imageSize imageSize or {@code null} for none + */ + public GenaiVertexV1ImageResponseFormat setImageSize(java.lang.String imageSize) { + this.imageSize = imageSize; + return this; + } + + /** + * The MIME type of the image output. + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * The MIME type of the image output. + * @param mimeType mimeType or {@code null} for none + */ + public GenaiVertexV1ImageResponseFormat setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + @Override + public GenaiVertexV1ImageResponseFormat set(String fieldName, Object value) { + return (GenaiVertexV1ImageResponseFormat) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ImageResponseFormat clone() { + return (GenaiVertexV1ImageResponseFormat) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Interaction.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Interaction.java new file mode 100644 index 00000000000..9c8796f1180 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Interaction.java @@ -0,0 +1,588 @@ +/* + * 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; + +/** + * Response for InteractionService.CreateInteraction. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1Interaction extends com.google.api.client.json.GenericJson { + + /** + * Interaction for generating the completion using agents. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1AgentInteraction agentInteraction; + + /** + * The content for the interaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Content content; + + /** + * Required. Output only. The time at which the response was created in ISO 8601 format (YYYY-MM- + * DDThh:mm:ssZ). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String created; + + /** + * The environment ID for the interaction. Can be 'remote' for default environment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String envId; + + /** + * Output only. The environment ID for the interaction. Only populated if environment config is + * set in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String environmentId; + + /** + * Output only. Diagnostic faults / platform errors recorded on the interaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errors; + + static { + // hack to force ProGuard to consider GenaiVertexV1Error used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiVertexV1Error.class); + } + + /** + * Required. Output only. A unique identifier for the interaction completion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * The labels with user-defined metadata for the request. Label keys and values can be no longer + * than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. Label values are + * optional. Label keys must start with a letter. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Interaction for generating the completion using models. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ModelInteraction modelInteraction; + + /** + * The ID of the previous interaction, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String previousInteractionId; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ResponseFormatList responseFormatList; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ResponseFormat responseFormatSingleton; + + /** + * Safety settings for the interaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List safetySettings; + + /** + * The service tier for the interaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceTier; + + /** + * Required. Output only. The status of the interaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Input only. The steps for the interaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1StepList stepList; + + /** + * Required. Output only. The steps that make up the interaction, when included in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List steps; + + /** + * A string input for the interaction, it will be processed as a single text input. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stringContent; + + /** + * System instruction for the interaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String systemInstruction; + + /** + * A list of tool declarations the model may call during interaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tools; + + /** + * Required. Output only. The time at which the response was last updated in ISO 8601 format + * (YYYY-MM-DDThh:mm:ssZ). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updated; + + /** + * Output only. Statistics on the interaction request's token usage. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1InteractionUsage usage; + + /** + * Interaction for generating the completion using agents. + * @return value or {@code null} for none + */ + public GenaiVertexV1AgentInteraction getAgentInteraction() { + return agentInteraction; + } + + /** + * Interaction for generating the completion using agents. + * @param agentInteraction agentInteraction or {@code null} for none + */ + public GenaiVertexV1Interaction setAgentInteraction(GenaiVertexV1AgentInteraction agentInteraction) { + this.agentInteraction = agentInteraction; + return this; + } + + /** + * The content for the interaction. + * @return value or {@code null} for none + */ + public GenaiVertexV1Content getContent() { + return content; + } + + /** + * The content for the interaction. + * @param content content or {@code null} for none + */ + public GenaiVertexV1Interaction setContent(GenaiVertexV1Content content) { + this.content = content; + return this; + } + + /** + * Required. Output only. The time at which the response was created in ISO 8601 format (YYYY-MM- + * DDThh:mm:ssZ). + * @return value or {@code null} for none + */ + public java.lang.String getCreated() { + return created; + } + + /** + * Required. Output only. The time at which the response was created in ISO 8601 format (YYYY-MM- + * DDThh:mm:ssZ). + * @param created created or {@code null} for none + */ + public GenaiVertexV1Interaction setCreated(java.lang.String created) { + this.created = created; + return this; + } + + /** + * The environment ID for the interaction. Can be 'remote' for default environment. + * @return value or {@code null} for none + */ + public java.lang.String getEnvId() { + return envId; + } + + /** + * The environment ID for the interaction. Can be 'remote' for default environment. + * @param envId envId or {@code null} for none + */ + public GenaiVertexV1Interaction setEnvId(java.lang.String envId) { + this.envId = envId; + return this; + } + + /** + * Output only. The environment ID for the interaction. Only populated if environment config is + * set in the request. + * @return value or {@code null} for none + */ + public java.lang.String getEnvironmentId() { + return environmentId; + } + + /** + * Output only. The environment ID for the interaction. Only populated if environment config is + * set in the request. + * @param environmentId environmentId or {@code null} for none + */ + public GenaiVertexV1Interaction setEnvironmentId(java.lang.String environmentId) { + this.environmentId = environmentId; + return this; + } + + /** + * Output only. Diagnostic faults / platform errors recorded on the interaction. + * @return value or {@code null} for none + */ + public java.util.List getErrors() { + return errors; + } + + /** + * Output only. Diagnostic faults / platform errors recorded on the interaction. + * @param errors errors or {@code null} for none + */ + public GenaiVertexV1Interaction setErrors(java.util.List errors) { + this.errors = errors; + return this; + } + + /** + * Required. Output only. A unique identifier for the interaction completion. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Required. Output only. A unique identifier for the interaction completion. + * @param id id or {@code null} for none + */ + public GenaiVertexV1Interaction setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * The labels with user-defined metadata for the request. Label keys and values can be no longer + * than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. Label values are + * optional. Label keys must start with a letter. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * The labels with user-defined metadata for the request. Label keys and values can be no longer + * than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. Label values are + * optional. Label keys must start with a letter. + * @param labels labels or {@code null} for none + */ + public GenaiVertexV1Interaction setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Interaction for generating the completion using models. + * @return value or {@code null} for none + */ + public GenaiVertexV1ModelInteraction getModelInteraction() { + return modelInteraction; + } + + /** + * Interaction for generating the completion using models. + * @param modelInteraction modelInteraction or {@code null} for none + */ + public GenaiVertexV1Interaction setModelInteraction(GenaiVertexV1ModelInteraction modelInteraction) { + this.modelInteraction = modelInteraction; + return this; + } + + /** + * The ID of the previous interaction, if any. + * @return value or {@code null} for none + */ + public java.lang.String getPreviousInteractionId() { + return previousInteractionId; + } + + /** + * The ID of the previous interaction, if any. + * @param previousInteractionId previousInteractionId or {@code null} for none + */ + public GenaiVertexV1Interaction setPreviousInteractionId(java.lang.String previousInteractionId) { + this.previousInteractionId = previousInteractionId; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ResponseFormatList getResponseFormatList() { + return responseFormatList; + } + + /** + * @param responseFormatList responseFormatList or {@code null} for none + */ + public GenaiVertexV1Interaction setResponseFormatList(GenaiVertexV1ResponseFormatList responseFormatList) { + this.responseFormatList = responseFormatList; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ResponseFormat getResponseFormatSingleton() { + return responseFormatSingleton; + } + + /** + * @param responseFormatSingleton responseFormatSingleton or {@code null} for none + */ + public GenaiVertexV1Interaction setResponseFormatSingleton(GenaiVertexV1ResponseFormat responseFormatSingleton) { + this.responseFormatSingleton = responseFormatSingleton; + return this; + } + + /** + * Safety settings for the interaction. + * @return value or {@code null} for none + */ + public java.util.List getSafetySettings() { + return safetySettings; + } + + /** + * Safety settings for the interaction. + * @param safetySettings safetySettings or {@code null} for none + */ + public GenaiVertexV1Interaction setSafetySettings(java.util.List safetySettings) { + this.safetySettings = safetySettings; + return this; + } + + /** + * The service tier for the interaction. + * @return value or {@code null} for none + */ + public java.lang.String getServiceTier() { + return serviceTier; + } + + /** + * The service tier for the interaction. + * @param serviceTier serviceTier or {@code null} for none + */ + public GenaiVertexV1Interaction setServiceTier(java.lang.String serviceTier) { + this.serviceTier = serviceTier; + return this; + } + + /** + * Required. Output only. The status of the interaction. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Required. Output only. The status of the interaction. + * @param status status or {@code null} for none + */ + public GenaiVertexV1Interaction setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Input only. The steps for the interaction. + * @return value or {@code null} for none + */ + public GenaiVertexV1StepList getStepList() { + return stepList; + } + + /** + * Input only. The steps for the interaction. + * @param stepList stepList or {@code null} for none + */ + public GenaiVertexV1Interaction setStepList(GenaiVertexV1StepList stepList) { + this.stepList = stepList; + return this; + } + + /** + * Required. Output only. The steps that make up the interaction, when included in the response. + * @return value or {@code null} for none + */ + public java.util.List getSteps() { + return steps; + } + + /** + * Required. Output only. The steps that make up the interaction, when included in the response. + * @param steps steps or {@code null} for none + */ + public GenaiVertexV1Interaction setSteps(java.util.List steps) { + this.steps = steps; + return this; + } + + /** + * A string input for the interaction, it will be processed as a single text input. + * @return value or {@code null} for none + */ + public java.lang.String getStringContent() { + return stringContent; + } + + /** + * A string input for the interaction, it will be processed as a single text input. + * @param stringContent stringContent or {@code null} for none + */ + public GenaiVertexV1Interaction setStringContent(java.lang.String stringContent) { + this.stringContent = stringContent; + return this; + } + + /** + * System instruction for the interaction. + * @return value or {@code null} for none + */ + public java.lang.String getSystemInstruction() { + return systemInstruction; + } + + /** + * System instruction for the interaction. + * @param systemInstruction systemInstruction or {@code null} for none + */ + public GenaiVertexV1Interaction setSystemInstruction(java.lang.String systemInstruction) { + this.systemInstruction = systemInstruction; + return this; + } + + /** + * A list of tool declarations the model may call during interaction. + * @return value or {@code null} for none + */ + public java.util.List getTools() { + return tools; + } + + /** + * A list of tool declarations the model may call during interaction. + * @param tools tools or {@code null} for none + */ + public GenaiVertexV1Interaction setTools(java.util.List tools) { + this.tools = tools; + return this; + } + + /** + * Required. Output only. The time at which the response was last updated in ISO 8601 format + * (YYYY-MM-DDThh:mm:ssZ). + * @return value or {@code null} for none + */ + public java.lang.String getUpdated() { + return updated; + } + + /** + * Required. Output only. The time at which the response was last updated in ISO 8601 format + * (YYYY-MM-DDThh:mm:ssZ). + * @param updated updated or {@code null} for none + */ + public GenaiVertexV1Interaction setUpdated(java.lang.String updated) { + this.updated = updated; + return this; + } + + /** + * Output only. Statistics on the interaction request's token usage. + * @return value or {@code null} for none + */ + public GenaiVertexV1InteractionUsage getUsage() { + return usage; + } + + /** + * Output only. Statistics on the interaction request's token usage. + * @param usage usage or {@code null} for none + */ + public GenaiVertexV1Interaction setUsage(GenaiVertexV1InteractionUsage usage) { + this.usage = usage; + return this; + } + + @Override + public GenaiVertexV1Interaction set(String fieldName, Object value) { + return (GenaiVertexV1Interaction) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1Interaction clone() { + return (GenaiVertexV1Interaction) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionCompletedSseEvent.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionCompletedSseEvent.java new file mode 100644 index 00000000000..64e11c78d1e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionCompletedSseEvent.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Signals that the Interaction completed. Sent when the Interaction receives Complete/Cancel or + * naturally terminates. No more input can be sent to the Interaction after this. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1InteractionCompletedSseEvent extends com.google.api.client.json.GenericJson { + + /** + * Required. Partial completed interaction resource emitted at the end of the stream. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Interaction interaction; + + /** + * Required. Partial completed interaction resource emitted at the end of the stream. + * @return value or {@code null} for none + */ + public GenaiVertexV1Interaction getInteraction() { + return interaction; + } + + /** + * Required. Partial completed interaction resource emitted at the end of the stream. + * @param interaction interaction or {@code null} for none + */ + public GenaiVertexV1InteractionCompletedSseEvent setInteraction(GenaiVertexV1Interaction interaction) { + this.interaction = interaction; + return this; + } + + @Override + public GenaiVertexV1InteractionCompletedSseEvent set(String fieldName, Object value) { + return (GenaiVertexV1InteractionCompletedSseEvent) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1InteractionCompletedSseEvent clone() { + return (GenaiVertexV1InteractionCompletedSseEvent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionCreatedSseEvent.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionCreatedSseEvent.java new file mode 100644 index 00000000000..de643fd76bc --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionCreatedSseEvent.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.aiplatform.v1.model; + +/** + * Server response confirming that a new interaction was created. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1InteractionCreatedSseEvent extends com.google.api.client.json.GenericJson { + + /** + * Required. Partial interaction resource emitted when the stream is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Interaction interaction; + + /** + * Required. Partial interaction resource emitted when the stream is created. + * @return value or {@code null} for none + */ + public GenaiVertexV1Interaction getInteraction() { + return interaction; + } + + /** + * Required. Partial interaction resource emitted when the stream is created. + * @param interaction interaction or {@code null} for none + */ + public GenaiVertexV1InteractionCreatedSseEvent setInteraction(GenaiVertexV1Interaction interaction) { + this.interaction = interaction; + return this; + } + + @Override + public GenaiVertexV1InteractionCreatedSseEvent set(String fieldName, Object value) { + return (GenaiVertexV1InteractionCreatedSseEvent) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1InteractionCreatedSseEvent clone() { + return (GenaiVertexV1InteractionCreatedSseEvent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionStatusUpdate.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionStatusUpdate.java new file mode 100644 index 00000000000..87c826985f8 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionStatusUpdate.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.aiplatform.v1.model; + +/** + * Model definition for GenaiVertexV1InteractionStatusUpdate. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1InteractionStatusUpdate extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interactionId; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Model usage statistics up to this checkpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1InteractionUsage usage; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getInteractionId() { + return interactionId; + } + + /** + * @param interactionId interactionId or {@code null} for none + */ + public GenaiVertexV1InteractionStatusUpdate setInteractionId(java.lang.String interactionId) { + this.interactionId = interactionId; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * @param status status or {@code null} for none + */ + public GenaiVertexV1InteractionStatusUpdate setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Model usage statistics up to this checkpoint. + * @return value or {@code null} for none + */ + public GenaiVertexV1InteractionUsage getUsage() { + return usage; + } + + /** + * Model usage statistics up to this checkpoint. + * @param usage usage or {@code null} for none + */ + public GenaiVertexV1InteractionStatusUpdate setUsage(GenaiVertexV1InteractionUsage usage) { + this.usage = usage; + return this; + } + + @Override + public GenaiVertexV1InteractionStatusUpdate set(String fieldName, Object value) { + return (GenaiVertexV1InteractionStatusUpdate) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1InteractionStatusUpdate clone() { + return (GenaiVertexV1InteractionStatusUpdate) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionStreamingEvent.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionStreamingEvent.java new file mode 100644 index 00000000000..4f7986d3c29 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionStreamingEvent.java @@ -0,0 +1,243 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1InteractionStreamingEvent. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1InteractionStreamingEvent extends com.google.api.client.json.GenericJson { + + /** + * The error event data, used for error events. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ErrorEvent errorEvent; + + /** + * The event_id token to be used to resume the interaction stream, from this event. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String eventId; + + /** + * The interaction data, used for interaction.completed events. Used when steps are enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1InteractionCompletedSseEvent interactionCompletedEvent; + + /** + * The interaction data, used for interaction.created events. Used when steps are enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1InteractionCreatedSseEvent interactionCreatedEvent; + + /** + * The interaction status data, used for interaction.status_update events. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1InteractionStatusUpdate interactionStatusUpdate; + + /** + * The step delta data, used for step.delta events. Step-based streaming event, used when steps + * are enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1StepDelta stepDelta; + + /** + * The step start data, used for step.start events. Step-based streaming event, used when steps + * are enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1StepStart stepStart; + + /** + * The step stop data, used for step.stop events. Step-based streaming event, used when steps are + * enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1StepStop stepStop; + + /** + * The error event data, used for error events. + * @return value or {@code null} for none + */ + public GenaiVertexV1ErrorEvent getErrorEvent() { + return errorEvent; + } + + /** + * The error event data, used for error events. + * @param errorEvent errorEvent or {@code null} for none + */ + public GenaiVertexV1InteractionStreamingEvent setErrorEvent(GenaiVertexV1ErrorEvent errorEvent) { + this.errorEvent = errorEvent; + return this; + } + + /** + * The event_id token to be used to resume the interaction stream, from this event. + * @return value or {@code null} for none + */ + public java.lang.String getEventId() { + return eventId; + } + + /** + * The event_id token to be used to resume the interaction stream, from this event. + * @param eventId eventId or {@code null} for none + */ + public GenaiVertexV1InteractionStreamingEvent setEventId(java.lang.String eventId) { + this.eventId = eventId; + return this; + } + + /** + * The interaction data, used for interaction.completed events. Used when steps are enabled. + * @return value or {@code null} for none + */ + public GenaiVertexV1InteractionCompletedSseEvent getInteractionCompletedEvent() { + return interactionCompletedEvent; + } + + /** + * The interaction data, used for interaction.completed events. Used when steps are enabled. + * @param interactionCompletedEvent interactionCompletedEvent or {@code null} for none + */ + public GenaiVertexV1InteractionStreamingEvent setInteractionCompletedEvent(GenaiVertexV1InteractionCompletedSseEvent interactionCompletedEvent) { + this.interactionCompletedEvent = interactionCompletedEvent; + return this; + } + + /** + * The interaction data, used for interaction.created events. Used when steps are enabled. + * @return value or {@code null} for none + */ + public GenaiVertexV1InteractionCreatedSseEvent getInteractionCreatedEvent() { + return interactionCreatedEvent; + } + + /** + * The interaction data, used for interaction.created events. Used when steps are enabled. + * @param interactionCreatedEvent interactionCreatedEvent or {@code null} for none + */ + public GenaiVertexV1InteractionStreamingEvent setInteractionCreatedEvent(GenaiVertexV1InteractionCreatedSseEvent interactionCreatedEvent) { + this.interactionCreatedEvent = interactionCreatedEvent; + return this; + } + + /** + * The interaction status data, used for interaction.status_update events. + * @return value or {@code null} for none + */ + public GenaiVertexV1InteractionStatusUpdate getInteractionStatusUpdate() { + return interactionStatusUpdate; + } + + /** + * The interaction status data, used for interaction.status_update events. + * @param interactionStatusUpdate interactionStatusUpdate or {@code null} for none + */ + public GenaiVertexV1InteractionStreamingEvent setInteractionStatusUpdate(GenaiVertexV1InteractionStatusUpdate interactionStatusUpdate) { + this.interactionStatusUpdate = interactionStatusUpdate; + return this; + } + + /** + * The step delta data, used for step.delta events. Step-based streaming event, used when steps + * are enabled. + * @return value or {@code null} for none + */ + public GenaiVertexV1StepDelta getStepDelta() { + return stepDelta; + } + + /** + * The step delta data, used for step.delta events. Step-based streaming event, used when steps + * are enabled. + * @param stepDelta stepDelta or {@code null} for none + */ + public GenaiVertexV1InteractionStreamingEvent setStepDelta(GenaiVertexV1StepDelta stepDelta) { + this.stepDelta = stepDelta; + return this; + } + + /** + * The step start data, used for step.start events. Step-based streaming event, used when steps + * are enabled. + * @return value or {@code null} for none + */ + public GenaiVertexV1StepStart getStepStart() { + return stepStart; + } + + /** + * The step start data, used for step.start events. Step-based streaming event, used when steps + * are enabled. + * @param stepStart stepStart or {@code null} for none + */ + public GenaiVertexV1InteractionStreamingEvent setStepStart(GenaiVertexV1StepStart stepStart) { + this.stepStart = stepStart; + return this; + } + + /** + * The step stop data, used for step.stop events. Step-based streaming event, used when steps are + * enabled. + * @return value or {@code null} for none + */ + public GenaiVertexV1StepStop getStepStop() { + return stepStop; + } + + /** + * The step stop data, used for step.stop events. Step-based streaming event, used when steps are + * enabled. + * @param stepStop stepStop or {@code null} for none + */ + public GenaiVertexV1InteractionStreamingEvent setStepStop(GenaiVertexV1StepStop stepStop) { + this.stepStop = stepStop; + return this; + } + + @Override + public GenaiVertexV1InteractionStreamingEvent set(String fieldName, Object value) { + return (GenaiVertexV1InteractionStreamingEvent) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1InteractionStreamingEvent clone() { + return (GenaiVertexV1InteractionStreamingEvent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionUsage.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionUsage.java new file mode 100644 index 00000000000..ae1b2d128af --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionUsage.java @@ -0,0 +1,306 @@ +/* + * 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; + +/** + * Statistics on the interaction request's token usage. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1InteractionUsage extends com.google.api.client.json.GenericJson { + + /** + * A breakdown of cached token usage by modality. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List cachedTokensByModality; + + /** + * Grounding tool count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List groundingToolCount; + + /** + * A breakdown of input token usage by modality. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List inputTokensByModality; + + /** + * A breakdown of output token usage by modality. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List outputTokensByModality; + + /** + * A breakdown of tool-use token usage by modality. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolUseTokensByModality; + + /** + * Number of tokens in the cached part of the prompt (the cached content). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalCachedTokens; + + /** + * Number of tokens in the prompt (context). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalInputTokens; + + /** + * Total number of tokens across all the generated responses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalOutputTokens; + + /** + * Number of tokens of thoughts for thinking models. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalThoughtTokens; + + /** + * Total token count for the interaction request (prompt + responses + other internal tokens). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalTokens; + + /** + * Number of tokens present in tool-use prompt(s). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalToolUseTokens; + + /** + * A breakdown of cached token usage by modality. + * @return value or {@code null} for none + */ + public java.util.List getCachedTokensByModality() { + return cachedTokensByModality; + } + + /** + * A breakdown of cached token usage by modality. + * @param cachedTokensByModality cachedTokensByModality or {@code null} for none + */ + public GenaiVertexV1InteractionUsage setCachedTokensByModality(java.util.List cachedTokensByModality) { + this.cachedTokensByModality = cachedTokensByModality; + return this; + } + + /** + * Grounding tool count. + * @return value or {@code null} for none + */ + public java.util.List getGroundingToolCount() { + return groundingToolCount; + } + + /** + * Grounding tool count. + * @param groundingToolCount groundingToolCount or {@code null} for none + */ + public GenaiVertexV1InteractionUsage setGroundingToolCount(java.util.List groundingToolCount) { + this.groundingToolCount = groundingToolCount; + return this; + } + + /** + * A breakdown of input token usage by modality. + * @return value or {@code null} for none + */ + public java.util.List getInputTokensByModality() { + return inputTokensByModality; + } + + /** + * A breakdown of input token usage by modality. + * @param inputTokensByModality inputTokensByModality or {@code null} for none + */ + public GenaiVertexV1InteractionUsage setInputTokensByModality(java.util.List inputTokensByModality) { + this.inputTokensByModality = inputTokensByModality; + return this; + } + + /** + * A breakdown of output token usage by modality. + * @return value or {@code null} for none + */ + public java.util.List getOutputTokensByModality() { + return outputTokensByModality; + } + + /** + * A breakdown of output token usage by modality. + * @param outputTokensByModality outputTokensByModality or {@code null} for none + */ + public GenaiVertexV1InteractionUsage setOutputTokensByModality(java.util.List outputTokensByModality) { + this.outputTokensByModality = outputTokensByModality; + return this; + } + + /** + * A breakdown of tool-use token usage by modality. + * @return value or {@code null} for none + */ + public java.util.List getToolUseTokensByModality() { + return toolUseTokensByModality; + } + + /** + * A breakdown of tool-use token usage by modality. + * @param toolUseTokensByModality toolUseTokensByModality or {@code null} for none + */ + public GenaiVertexV1InteractionUsage setToolUseTokensByModality(java.util.List toolUseTokensByModality) { + this.toolUseTokensByModality = toolUseTokensByModality; + return this; + } + + /** + * Number of tokens in the cached part of the prompt (the cached content). + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalCachedTokens() { + return totalCachedTokens; + } + + /** + * Number of tokens in the cached part of the prompt (the cached content). + * @param totalCachedTokens totalCachedTokens or {@code null} for none + */ + public GenaiVertexV1InteractionUsage setTotalCachedTokens(java.lang.Integer totalCachedTokens) { + this.totalCachedTokens = totalCachedTokens; + return this; + } + + /** + * Number of tokens in the prompt (context). + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalInputTokens() { + return totalInputTokens; + } + + /** + * Number of tokens in the prompt (context). + * @param totalInputTokens totalInputTokens or {@code null} for none + */ + public GenaiVertexV1InteractionUsage setTotalInputTokens(java.lang.Integer totalInputTokens) { + this.totalInputTokens = totalInputTokens; + return this; + } + + /** + * Total number of tokens across all the generated responses. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalOutputTokens() { + return totalOutputTokens; + } + + /** + * Total number of tokens across all the generated responses. + * @param totalOutputTokens totalOutputTokens or {@code null} for none + */ + public GenaiVertexV1InteractionUsage setTotalOutputTokens(java.lang.Integer totalOutputTokens) { + this.totalOutputTokens = totalOutputTokens; + return this; + } + + /** + * Number of tokens of thoughts for thinking models. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalThoughtTokens() { + return totalThoughtTokens; + } + + /** + * Number of tokens of thoughts for thinking models. + * @param totalThoughtTokens totalThoughtTokens or {@code null} for none + */ + public GenaiVertexV1InteractionUsage setTotalThoughtTokens(java.lang.Integer totalThoughtTokens) { + this.totalThoughtTokens = totalThoughtTokens; + return this; + } + + /** + * Total token count for the interaction request (prompt + responses + other internal tokens). + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalTokens() { + return totalTokens; + } + + /** + * Total token count for the interaction request (prompt + responses + other internal tokens). + * @param totalTokens totalTokens or {@code null} for none + */ + public GenaiVertexV1InteractionUsage setTotalTokens(java.lang.Integer totalTokens) { + this.totalTokens = totalTokens; + return this; + } + + /** + * Number of tokens present in tool-use prompt(s). + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalToolUseTokens() { + return totalToolUseTokens; + } + + /** + * Number of tokens present in tool-use prompt(s). + * @param totalToolUseTokens totalToolUseTokens or {@code null} for none + */ + public GenaiVertexV1InteractionUsage setTotalToolUseTokens(java.lang.Integer totalToolUseTokens) { + this.totalToolUseTokens = totalToolUseTokens; + return this; + } + + @Override + public GenaiVertexV1InteractionUsage set(String fieldName, Object value) { + return (GenaiVertexV1InteractionUsage) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1InteractionUsage clone() { + return (GenaiVertexV1InteractionUsage) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionUsageGroundingToolCount.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionUsageGroundingToolCount.java new file mode 100644 index 00000000000..dc1d7608815 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionUsageGroundingToolCount.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * The number of grounding tool counts. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1InteractionUsageGroundingToolCount extends com.google.api.client.json.GenericJson { + + /** + * The number of grounding tool counts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer count; + + /** + * The grounding tool type associated with the count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The number of grounding tool counts. + * @return value or {@code null} for none + */ + public java.lang.Integer getCount() { + return count; + } + + /** + * The number of grounding tool counts. + * @param count count or {@code null} for none + */ + public GenaiVertexV1InteractionUsageGroundingToolCount setCount(java.lang.Integer count) { + this.count = count; + return this; + } + + /** + * The grounding tool type associated with the count. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The grounding tool type associated with the count. + * @param type type or {@code null} for none + */ + public GenaiVertexV1InteractionUsageGroundingToolCount setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public GenaiVertexV1InteractionUsageGroundingToolCount set(String fieldName, Object value) { + return (GenaiVertexV1InteractionUsageGroundingToolCount) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1InteractionUsageGroundingToolCount clone() { + return (GenaiVertexV1InteractionUsageGroundingToolCount) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionUsageModalityTokens.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionUsageModalityTokens.java new file mode 100644 index 00000000000..dde414fa096 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1InteractionUsageModalityTokens.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * The token count for a single response modality. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1InteractionUsageModalityTokens extends com.google.api.client.json.GenericJson { + + /** + * The modality associated with the token count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String modality; + + /** + * Number of tokens for the modality. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer tokens; + + /** + * The modality associated with the token count. + * @return value or {@code null} for none + */ + public java.lang.String getModality() { + return modality; + } + + /** + * The modality associated with the token count. + * @param modality modality or {@code null} for none + */ + public GenaiVertexV1InteractionUsageModalityTokens setModality(java.lang.String modality) { + this.modality = modality; + return this; + } + + /** + * Number of tokens for the modality. + * @return value or {@code null} for none + */ + public java.lang.Integer getTokens() { + return tokens; + } + + /** + * Number of tokens for the modality. + * @param tokens tokens or {@code null} for none + */ + public GenaiVertexV1InteractionUsageModalityTokens setTokens(java.lang.Integer tokens) { + this.tokens = tokens; + return this; + } + + @Override + public GenaiVertexV1InteractionUsageModalityTokens set(String fieldName, Object value) { + return (GenaiVertexV1InteractionUsageModalityTokens) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1InteractionUsageModalityTokens clone() { + return (GenaiVertexV1InteractionUsageModalityTokens) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ListValue.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ListValue.java new file mode 100644 index 00000000000..2068aafa5d6 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ListValue.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.aiplatform.v1.model; + +/** + * `ListValue` is a wrapper around a repeated field of values. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ListValue extends com.google.api.client.json.GenericJson { + + /** + * Repeated field of dynamically typed values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * Repeated field of dynamically typed values. + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * Repeated field of dynamically typed values. + * @param values values or {@code null} for none + */ + public GenaiVertexV1ListValue setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public GenaiVertexV1ListValue set(String fieldName, Object value) { + return (GenaiVertexV1ListValue) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ListValue clone() { + return (GenaiVertexV1ListValue) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1McpServer.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1McpServer.java new file mode 100644 index 00000000000..ee6d7a4f1a2 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1McpServer.java @@ -0,0 +1,144 @@ +/* + * 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; + +/** + * A MCPServer is a server that can be called by the model to perform actions. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1McpServer extends com.google.api.client.json.GenericJson { + + /** + * The allowed tools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedTools; + + static { + // hack to force ProGuard to consider GenaiVertexV1AllowedTools used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiVertexV1AllowedTools.class); + } + + /** + * Optional: Fields for authentication headers, timeouts, etc., if needed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map headers; + + /** + * The name of the MCPServer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * The allowed tools. + * @return value or {@code null} for none + */ + public java.util.List getAllowedTools() { + return allowedTools; + } + + /** + * The allowed tools. + * @param allowedTools allowedTools or {@code null} for none + */ + public GenaiVertexV1McpServer setAllowedTools(java.util.List allowedTools) { + this.allowedTools = allowedTools; + return this; + } + + /** + * Optional: Fields for authentication headers, timeouts, etc., if needed. + * @return value or {@code null} for none + */ + public java.util.Map getHeaders() { + return headers; + } + + /** + * Optional: Fields for authentication headers, timeouts, etc., if needed. + * @param headers headers or {@code null} for none + */ + public GenaiVertexV1McpServer setHeaders(java.util.Map headers) { + this.headers = headers; + return this; + } + + /** + * The name of the MCPServer. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the MCPServer. + * @param name name or {@code null} for none + */ + public GenaiVertexV1McpServer setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp" + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp" + * @param url url or {@code null} for none + */ + public GenaiVertexV1McpServer setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GenaiVertexV1McpServer set(String fieldName, Object value) { + return (GenaiVertexV1McpServer) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1McpServer clone() { + return (GenaiVertexV1McpServer) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ModelInteraction.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ModelInteraction.java new file mode 100644 index 00000000000..98497d1de2d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ModelInteraction.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Interaction for generating the completion using models. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ModelInteraction extends com.google.api.client.json.GenericJson { + + /** + * Input only. Configuration parameters for the model interaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1GenerationConfig generationConfig; + + /** + * The name of the `Model` used for generating the completion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String model; + + /** + * Input only. Configuration parameters for the model interaction. + * @return value or {@code null} for none + */ + public GenaiVertexV1GenerationConfig getGenerationConfig() { + return generationConfig; + } + + /** + * Input only. Configuration parameters for the model interaction. + * @param generationConfig generationConfig or {@code null} for none + */ + public GenaiVertexV1ModelInteraction setGenerationConfig(GenaiVertexV1GenerationConfig generationConfig) { + this.generationConfig = generationConfig; + return this; + } + + /** + * The name of the `Model` used for generating the completion. + * @return value or {@code null} for none + */ + public java.lang.String getModel() { + return model; + } + + /** + * The name of the `Model` used for generating the completion. + * @param model model or {@code null} for none + */ + public GenaiVertexV1ModelInteraction setModel(java.lang.String model) { + this.model = model; + return this; + } + + @Override + public GenaiVertexV1ModelInteraction set(String fieldName, Object value) { + return (GenaiVertexV1ModelInteraction) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ModelInteraction clone() { + return (GenaiVertexV1ModelInteraction) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ModelOutputStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ModelOutputStep.java new file mode 100644 index 00000000000..f4eef012014 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ModelOutputStep.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.aiplatform.v1.model; + +/** + * Output generated by the model. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ModelOutputStep extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List content; + + static { + // hack to force ProGuard to consider GenaiVertexV1Content used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiVertexV1Content.class); + } + + /** + * The error result of the operation in case of failure or cancellation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleRpcStatus error; + + /** + * @return value or {@code null} for none + */ + public java.util.List getContent() { + return content; + } + + /** + * @param content content or {@code null} for none + */ + public GenaiVertexV1ModelOutputStep setContent(java.util.List content) { + this.content = content; + return this; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @return value or {@code null} for none + */ + public GoogleRpcStatus getError() { + return error; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @param error error or {@code null} for none + */ + public GenaiVertexV1ModelOutputStep setError(GoogleRpcStatus error) { + this.error = error; + return this; + } + + @Override + public GenaiVertexV1ModelOutputStep set(String fieldName, Object value) { + return (GenaiVertexV1ModelOutputStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ModelOutputStep clone() { + return (GenaiVertexV1ModelOutputStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ParallelAISearchConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ParallelAISearchConfig.java new file mode 100644 index 00000000000..37786578e34 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ParallelAISearchConfig.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Used to specify configuration for ParallelAISearch. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ParallelAISearchConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The API key for ParallelAiSearch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiKey; + + /** + * Optional. Custom configs for ParallelAiSearch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map customConfig; + + /** + * Optional. The API key for ParallelAiSearch. + * @return value or {@code null} for none + */ + public java.lang.String getApiKey() { + return apiKey; + } + + /** + * Optional. The API key for ParallelAiSearch. + * @param apiKey apiKey or {@code null} for none + */ + public GenaiVertexV1ParallelAISearchConfig setApiKey(java.lang.String apiKey) { + this.apiKey = apiKey; + return this; + } + + /** + * Optional. Custom configs for ParallelAiSearch. + * @return value or {@code null} for none + */ + public java.util.Map getCustomConfig() { + return customConfig; + } + + /** + * Optional. Custom configs for ParallelAiSearch. + * @param customConfig customConfig or {@code null} for none + */ + public GenaiVertexV1ParallelAISearchConfig setCustomConfig(java.util.Map customConfig) { + this.customConfig = customConfig; + return this; + } + + @Override + public GenaiVertexV1ParallelAISearchConfig set(String fieldName, Object value) { + return (GenaiVertexV1ParallelAISearchConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ParallelAISearchConfig clone() { + return (GenaiVertexV1ParallelAISearchConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1PlaceCitation.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1PlaceCitation.java new file mode 100644 index 00000000000..56a849e0fdc --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1PlaceCitation.java @@ -0,0 +1,141 @@ +/* + * 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; + +/** + * A place citation annotation. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1PlaceCitation extends com.google.api.client.json.GenericJson { + + /** + * Title of the place. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The ID of the place, in `places/{place_id}` format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String placeId; + + /** + * Snippets of reviews that are used to generate answers about the features of a given place in + * Google Maps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reviewSnippets; + + /** + * URI reference of the place. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Title of the place. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Title of the place. + * @param name name or {@code null} for none + */ + public GenaiVertexV1PlaceCitation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The ID of the place, in `places/{place_id}` format. + * @return value or {@code null} for none + */ + public java.lang.String getPlaceId() { + return placeId; + } + + /** + * The ID of the place, in `places/{place_id}` format. + * @param placeId placeId or {@code null} for none + */ + public GenaiVertexV1PlaceCitation setPlaceId(java.lang.String placeId) { + this.placeId = placeId; + return this; + } + + /** + * Snippets of reviews that are used to generate answers about the features of a given place in + * Google Maps. + * @return value or {@code null} for none + */ + public java.util.List getReviewSnippets() { + return reviewSnippets; + } + + /** + * Snippets of reviews that are used to generate answers about the features of a given place in + * Google Maps. + * @param reviewSnippets reviewSnippets or {@code null} for none + */ + public GenaiVertexV1PlaceCitation setReviewSnippets(java.util.List reviewSnippets) { + this.reviewSnippets = reviewSnippets; + return this; + } + + /** + * URI reference of the place. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * URI reference of the place. + * @param url url or {@code null} for none + */ + public GenaiVertexV1PlaceCitation setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GenaiVertexV1PlaceCitation set(String fieldName, Object value) { + return (GenaiVertexV1PlaceCitation) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1PlaceCitation clone() { + return (GenaiVertexV1PlaceCitation) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ProcessingCallDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ProcessingCallDelta.java new file mode 100644 index 00000000000..5262e27cc9d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ProcessingCallDelta.java @@ -0,0 +1,42 @@ +/* + * 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; + +/** + * Streaming delta for a server-initiated media processing step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ProcessingCallDelta extends com.google.api.client.json.GenericJson { + + @Override + public GenaiVertexV1ProcessingCallDelta set(String fieldName, Object value) { + return (GenaiVertexV1ProcessingCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ProcessingCallDelta clone() { + return (GenaiVertexV1ProcessingCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ProcessingCallStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ProcessingCallStep.java new file mode 100644 index 00000000000..b7cb5d24233 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ProcessingCallStep.java @@ -0,0 +1,42 @@ +/* + * 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; + +/** + * A server-initiated processing step for media analysis (e.g. video understanding). + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ProcessingCallStep extends com.google.api.client.json.GenericJson { + + @Override + public GenaiVertexV1ProcessingCallStep set(String fieldName, Object value) { + return (GenaiVertexV1ProcessingCallStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ProcessingCallStep clone() { + return (GenaiVertexV1ProcessingCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ProcessingResultDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ProcessingResultDelta.java new file mode 100644 index 00000000000..50d9d43d2d4 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ProcessingResultDelta.java @@ -0,0 +1,42 @@ +/* + * 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; + +/** + * Streaming delta for the result of a server-initiated media processing step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ProcessingResultDelta extends com.google.api.client.json.GenericJson { + + @Override + public GenaiVertexV1ProcessingResultDelta set(String fieldName, Object value) { + return (GenaiVertexV1ProcessingResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ProcessingResultDelta clone() { + return (GenaiVertexV1ProcessingResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ProcessingResultStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ProcessingResultStep.java new file mode 100644 index 00000000000..be16e3591d0 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ProcessingResultStep.java @@ -0,0 +1,42 @@ +/* + * 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; + +/** + * The result of a server-initiated media processing step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ProcessingResultStep extends com.google.api.client.json.GenericJson { + + @Override + public GenaiVertexV1ProcessingResultStep set(String fieldName, Object value) { + return (GenaiVertexV1ProcessingResultStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ProcessingResultStep clone() { + return (GenaiVertexV1ProcessingResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfig.java new file mode 100644 index 00000000000..679ca818ed2 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfig.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Use to specify configuration for RAG Store. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1RagStoreConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The representation of the rag source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ragResources; + + /** + * Optional. The retrieval config for the Rag query. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1RagStoreConfigRagRetrievalConfig ragRetrievalConfig; + + /** + * Optional. The representation of the rag source. + * @return value or {@code null} for none + */ + public java.util.List getRagResources() { + return ragResources; + } + + /** + * Optional. The representation of the rag source. + * @param ragResources ragResources or {@code null} for none + */ + public GenaiVertexV1RagStoreConfig setRagResources(java.util.List ragResources) { + this.ragResources = ragResources; + return this; + } + + /** + * Optional. The retrieval config for the Rag query. + * @return value or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagRetrievalConfig getRagRetrievalConfig() { + return ragRetrievalConfig; + } + + /** + * Optional. The retrieval config for the Rag query. + * @param ragRetrievalConfig ragRetrievalConfig or {@code null} for none + */ + public GenaiVertexV1RagStoreConfig setRagRetrievalConfig(GenaiVertexV1RagStoreConfigRagRetrievalConfig ragRetrievalConfig) { + this.ragRetrievalConfig = ragRetrievalConfig; + return this; + } + + @Override + public GenaiVertexV1RagStoreConfig set(String fieldName, Object value) { + return (GenaiVertexV1RagStoreConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1RagStoreConfig clone() { + return (GenaiVertexV1RagStoreConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagResource.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagResource.java new file mode 100644 index 00000000000..aec3a6df78f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagResource.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * The definition of the Rag resource. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1RagStoreConfigRagResource extends com.google.api.client.json.GenericJson { + + /** + * Optional. RagCorpora resource name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ragCorpus; + + /** + * Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ragFileIds; + + /** + * Optional. RagCorpora resource name. + * @return value or {@code null} for none + */ + public java.lang.String getRagCorpus() { + return ragCorpus; + } + + /** + * Optional. RagCorpora resource name. + * @param ragCorpus ragCorpus or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagResource setRagCorpus(java.lang.String ragCorpus) { + this.ragCorpus = ragCorpus; + return this; + } + + /** + * Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field. + * @return value or {@code null} for none + */ + public java.util.List getRagFileIds() { + return ragFileIds; + } + + /** + * Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field. + * @param ragFileIds ragFileIds or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagResource setRagFileIds(java.util.List ragFileIds) { + this.ragFileIds = ragFileIds; + return this; + } + + @Override + public GenaiVertexV1RagStoreConfigRagResource set(String fieldName, Object value) { + return (GenaiVertexV1RagStoreConfigRagResource) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1RagStoreConfigRagResource clone() { + return (GenaiVertexV1RagStoreConfigRagResource) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagRetrievalConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagRetrievalConfig.java new file mode 100644 index 00000000000..72de9f44c85 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagRetrievalConfig.java @@ -0,0 +1,138 @@ +/* + * 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; + +/** + * Specifies the context retrieval config. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1RagStoreConfigRagRetrievalConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Config for filters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1RagStoreConfigRagRetrievalConfigFilter filter; + + /** + * Optional. Config for Hybrid Search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1RagStoreConfigRagRetrievalConfigHybridSearch hybridSearch; + + /** + * Optional. Config for ranking and reranking. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1RagStoreConfigRagRetrievalConfigRanking ranking; + + /** + * Optional. The number of contexts to retrieve. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer topK; + + /** + * Optional. Config for filters. + * @return value or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagRetrievalConfigFilter getFilter() { + return filter; + } + + /** + * Optional. Config for filters. + * @param filter filter or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagRetrievalConfig setFilter(GenaiVertexV1RagStoreConfigRagRetrievalConfigFilter filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Config for Hybrid Search. + * @return value or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagRetrievalConfigHybridSearch getHybridSearch() { + return hybridSearch; + } + + /** + * Optional. Config for Hybrid Search. + * @param hybridSearch hybridSearch or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagRetrievalConfig setHybridSearch(GenaiVertexV1RagStoreConfigRagRetrievalConfigHybridSearch hybridSearch) { + this.hybridSearch = hybridSearch; + return this; + } + + /** + * Optional. Config for ranking and reranking. + * @return value or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagRetrievalConfigRanking getRanking() { + return ranking; + } + + /** + * Optional. Config for ranking and reranking. + * @param ranking ranking or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagRetrievalConfig setRanking(GenaiVertexV1RagStoreConfigRagRetrievalConfigRanking ranking) { + this.ranking = ranking; + return this; + } + + /** + * Optional. The number of contexts to retrieve. + * @return value or {@code null} for none + */ + public java.lang.Integer getTopK() { + return topK; + } + + /** + * Optional. The number of contexts to retrieve. + * @param topK topK or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagRetrievalConfig setTopK(java.lang.Integer topK) { + this.topK = topK; + return this; + } + + @Override + public GenaiVertexV1RagStoreConfigRagRetrievalConfig set(String fieldName, Object value) { + return (GenaiVertexV1RagStoreConfigRagRetrievalConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1RagStoreConfigRagRetrievalConfig clone() { + return (GenaiVertexV1RagStoreConfigRagRetrievalConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagRetrievalConfigFilter.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagRetrievalConfigFilter.java new file mode 100644 index 00000000000..5a8f50ee04d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagRetrievalConfigFilter.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.aiplatform.v1.model; + +/** + * Config for filters. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1RagStoreConfigRagRetrievalConfigFilter extends com.google.api.client.json.GenericJson { + + /** + * Optional. String for metadata filtering. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metadataFilter; + + /** + * Optional. Only returns contexts with vector distance smaller than the threshold. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double vectorDistanceThreshold; + + /** + * Optional. Only returns contexts with vector similarity larger than the threshold. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double vectorSimilarityThreshold; + + /** + * Optional. String for metadata filtering. + * @return value or {@code null} for none + */ + public java.lang.String getMetadataFilter() { + return metadataFilter; + } + + /** + * Optional. String for metadata filtering. + * @param metadataFilter metadataFilter or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagRetrievalConfigFilter setMetadataFilter(java.lang.String metadataFilter) { + this.metadataFilter = metadataFilter; + return this; + } + + /** + * Optional. Only returns contexts with vector distance smaller than the threshold. + * @return value or {@code null} for none + */ + public java.lang.Double getVectorDistanceThreshold() { + return vectorDistanceThreshold; + } + + /** + * Optional. Only returns contexts with vector distance smaller than the threshold. + * @param vectorDistanceThreshold vectorDistanceThreshold or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagRetrievalConfigFilter setVectorDistanceThreshold(java.lang.Double vectorDistanceThreshold) { + this.vectorDistanceThreshold = vectorDistanceThreshold; + return this; + } + + /** + * Optional. Only returns contexts with vector similarity larger than the threshold. + * @return value or {@code null} for none + */ + public java.lang.Double getVectorSimilarityThreshold() { + return vectorSimilarityThreshold; + } + + /** + * Optional. Only returns contexts with vector similarity larger than the threshold. + * @param vectorSimilarityThreshold vectorSimilarityThreshold or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagRetrievalConfigFilter setVectorSimilarityThreshold(java.lang.Double vectorSimilarityThreshold) { + this.vectorSimilarityThreshold = vectorSimilarityThreshold; + return this; + } + + @Override + public GenaiVertexV1RagStoreConfigRagRetrievalConfigFilter set(String fieldName, Object value) { + return (GenaiVertexV1RagStoreConfigRagRetrievalConfigFilter) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1RagStoreConfigRagRetrievalConfigFilter clone() { + return (GenaiVertexV1RagStoreConfigRagRetrievalConfigFilter) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagRetrievalConfigHybridSearch.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagRetrievalConfigHybridSearch.java new file mode 100644 index 00000000000..0b6ceab6044 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagRetrievalConfigHybridSearch.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.aiplatform.v1.model; + +/** + * Config for Hybrid Search. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1RagStoreConfigRagRetrievalConfigHybridSearch extends com.google.api.client.json.GenericJson { + + /** + * Optional. Alpha value controls the weight between dense and sparse vector search results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float alpha; + + /** + * Optional. Alpha value controls the weight between dense and sparse vector search results. + * @return value or {@code null} for none + */ + public java.lang.Float getAlpha() { + return alpha; + } + + /** + * Optional. Alpha value controls the weight between dense and sparse vector search results. + * @param alpha alpha or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagRetrievalConfigHybridSearch setAlpha(java.lang.Float alpha) { + this.alpha = alpha; + return this; + } + + @Override + public GenaiVertexV1RagStoreConfigRagRetrievalConfigHybridSearch set(String fieldName, Object value) { + return (GenaiVertexV1RagStoreConfigRagRetrievalConfigHybridSearch) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1RagStoreConfigRagRetrievalConfigHybridSearch clone() { + return (GenaiVertexV1RagStoreConfigRagRetrievalConfigHybridSearch) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagRetrievalConfigRanking.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagRetrievalConfigRanking.java new file mode 100644 index 00000000000..ac71e401825 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagRetrievalConfigRanking.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.aiplatform.v1.model; + +/** + * Config for ranking and reranking. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1RagStoreConfigRagRetrievalConfigRanking extends com.google.api.client.json.GenericJson { + + /** + * Config for Rank Service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1RagStoreConfigRagRetrievalConfigRankingRankService rankService; + + /** + * Config for Rank Service. + * @return value or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagRetrievalConfigRankingRankService getRankService() { + return rankService; + } + + /** + * Config for Rank Service. + * @param rankService rankService or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagRetrievalConfigRanking setRankService(GenaiVertexV1RagStoreConfigRagRetrievalConfigRankingRankService rankService) { + this.rankService = rankService; + return this; + } + + @Override + public GenaiVertexV1RagStoreConfigRagRetrievalConfigRanking set(String fieldName, Object value) { + return (GenaiVertexV1RagStoreConfigRagRetrievalConfigRanking) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1RagStoreConfigRagRetrievalConfigRanking clone() { + return (GenaiVertexV1RagStoreConfigRagRetrievalConfigRanking) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagRetrievalConfigRankingRankService.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagRetrievalConfigRankingRankService.java new file mode 100644 index 00000000000..ceba5f4485a --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RagStoreConfigRagRetrievalConfigRankingRankService.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.aiplatform.v1.model; + +/** + * Config for Rank Service. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1RagStoreConfigRagRetrievalConfigRankingRankService extends com.google.api.client.json.GenericJson { + + /** + * Optional. The model name of the rank service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String modelName; + + /** + * Optional. The model name of the rank service. + * @return value or {@code null} for none + */ + public java.lang.String getModelName() { + return modelName; + } + + /** + * Optional. The model name of the rank service. + * @param modelName modelName or {@code null} for none + */ + public GenaiVertexV1RagStoreConfigRagRetrievalConfigRankingRankService setModelName(java.lang.String modelName) { + this.modelName = modelName; + return this; + } + + @Override + public GenaiVertexV1RagStoreConfigRagRetrievalConfigRankingRankService set(String fieldName, Object value) { + return (GenaiVertexV1RagStoreConfigRagRetrievalConfigRankingRankService) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1RagStoreConfigRagRetrievalConfigRankingRankService clone() { + return (GenaiVertexV1RagStoreConfigRagRetrievalConfigRankingRankService) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ResponseFormat.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ResponseFormat.java new file mode 100644 index 00000000000..2d6ae7cd97f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ResponseFormat.java @@ -0,0 +1,150 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1ResponseFormat. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ResponseFormat extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1AudioResponseFormat audio; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ImageResponseFormat image; + + /** + * Multi-discriminator values is already enabled in GAOS + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Struct structValue; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1TextResponseFormat text; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1VideoResponseFormat video; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1AudioResponseFormat getAudio() { + return audio; + } + + /** + * @param audio audio or {@code null} for none + */ + public GenaiVertexV1ResponseFormat setAudio(GenaiVertexV1AudioResponseFormat audio) { + this.audio = audio; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ImageResponseFormat getImage() { + return image; + } + + /** + * @param image image or {@code null} for none + */ + public GenaiVertexV1ResponseFormat setImage(GenaiVertexV1ImageResponseFormat image) { + this.image = image; + return this; + } + + /** + * Multi-discriminator values is already enabled in GAOS + * @return value or {@code null} for none + */ + public GenaiVertexV1Struct getStructValue() { + return structValue; + } + + /** + * Multi-discriminator values is already enabled in GAOS + * @param structValue structValue or {@code null} for none + */ + public GenaiVertexV1ResponseFormat setStructValue(GenaiVertexV1Struct structValue) { + this.structValue = structValue; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1TextResponseFormat getText() { + return text; + } + + /** + * @param text text or {@code null} for none + */ + public GenaiVertexV1ResponseFormat setText(GenaiVertexV1TextResponseFormat text) { + this.text = text; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1VideoResponseFormat getVideo() { + return video; + } + + /** + * @param video video or {@code null} for none + */ + public GenaiVertexV1ResponseFormat setVideo(GenaiVertexV1VideoResponseFormat video) { + this.video = video; + return this; + } + + @Override + public GenaiVertexV1ResponseFormat set(String fieldName, Object value) { + return (GenaiVertexV1ResponseFormat) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ResponseFormat clone() { + return (GenaiVertexV1ResponseFormat) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ResponseFormatList.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ResponseFormatList.java new file mode 100644 index 00000000000..4c6c6322cf0 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ResponseFormatList.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.aiplatform.v1.model; + +/** + * Model definition for GenaiVertexV1ResponseFormatList. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ResponseFormatList extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List responseFormats; + + static { + // hack to force ProGuard to consider GenaiVertexV1ResponseFormat used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiVertexV1ResponseFormat.class); + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getResponseFormats() { + return responseFormats; + } + + /** + * @param responseFormats responseFormats or {@code null} for none + */ + public GenaiVertexV1ResponseFormatList setResponseFormats(java.util.List responseFormats) { + this.responseFormats = responseFormats; + return this; + } + + @Override + public GenaiVertexV1ResponseFormatList set(String fieldName, Object value) { + return (GenaiVertexV1ResponseFormatList) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ResponseFormatList clone() { + return (GenaiVertexV1ResponseFormatList) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Retrieval.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Retrieval.java new file mode 100644 index 00000000000..e0b3b9784ae --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Retrieval.java @@ -0,0 +1,162 @@ +/* + * 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; + +/** + * A tool that can be used by the model to retrieve files. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1Retrieval extends com.google.api.client.json.GenericJson { + + /** + * Used to specify configuration for ExaAISearch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ExaAISearchConfig exaAiSearchConfig; + + /** + * Used to specify configuration for ParallelAISearch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ParallelAISearchConfig parallelAiSearchConfig; + + /** + * Used to specify configuration for RagStore. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1RagStoreConfig ragStoreConfig; + + /** + * The types of file retrieval to enable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List retrievalTypes; + + /** + * Used to specify configuration for VertexAISearch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1VertexAISearchConfig vertexAiSearchConfig; + + /** + * Used to specify configuration for ExaAISearch. + * @return value or {@code null} for none + */ + public GenaiVertexV1ExaAISearchConfig getExaAiSearchConfig() { + return exaAiSearchConfig; + } + + /** + * Used to specify configuration for ExaAISearch. + * @param exaAiSearchConfig exaAiSearchConfig or {@code null} for none + */ + public GenaiVertexV1Retrieval setExaAiSearchConfig(GenaiVertexV1ExaAISearchConfig exaAiSearchConfig) { + this.exaAiSearchConfig = exaAiSearchConfig; + return this; + } + + /** + * Used to specify configuration for ParallelAISearch. + * @return value or {@code null} for none + */ + public GenaiVertexV1ParallelAISearchConfig getParallelAiSearchConfig() { + return parallelAiSearchConfig; + } + + /** + * Used to specify configuration for ParallelAISearch. + * @param parallelAiSearchConfig parallelAiSearchConfig or {@code null} for none + */ + public GenaiVertexV1Retrieval setParallelAiSearchConfig(GenaiVertexV1ParallelAISearchConfig parallelAiSearchConfig) { + this.parallelAiSearchConfig = parallelAiSearchConfig; + return this; + } + + /** + * Used to specify configuration for RagStore. + * @return value or {@code null} for none + */ + public GenaiVertexV1RagStoreConfig getRagStoreConfig() { + return ragStoreConfig; + } + + /** + * Used to specify configuration for RagStore. + * @param ragStoreConfig ragStoreConfig or {@code null} for none + */ + public GenaiVertexV1Retrieval setRagStoreConfig(GenaiVertexV1RagStoreConfig ragStoreConfig) { + this.ragStoreConfig = ragStoreConfig; + return this; + } + + /** + * The types of file retrieval to enable. + * @return value or {@code null} for none + */ + public java.util.List getRetrievalTypes() { + return retrievalTypes; + } + + /** + * The types of file retrieval to enable. + * @param retrievalTypes retrievalTypes or {@code null} for none + */ + public GenaiVertexV1Retrieval setRetrievalTypes(java.util.List retrievalTypes) { + this.retrievalTypes = retrievalTypes; + return this; + } + + /** + * Used to specify configuration for VertexAISearch. + * @return value or {@code null} for none + */ + public GenaiVertexV1VertexAISearchConfig getVertexAiSearchConfig() { + return vertexAiSearchConfig; + } + + /** + * Used to specify configuration for VertexAISearch. + * @param vertexAiSearchConfig vertexAiSearchConfig or {@code null} for none + */ + public GenaiVertexV1Retrieval setVertexAiSearchConfig(GenaiVertexV1VertexAISearchConfig vertexAiSearchConfig) { + this.vertexAiSearchConfig = vertexAiSearchConfig; + return this; + } + + @Override + public GenaiVertexV1Retrieval set(String fieldName, Object value) { + return (GenaiVertexV1Retrieval) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1Retrieval clone() { + return (GenaiVertexV1Retrieval) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RetrievalCallDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RetrievalCallDelta.java new file mode 100644 index 00000000000..5629f9588d3 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RetrievalCallDelta.java @@ -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.aiplatform.v1.model; + +/** + * Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search, etc. RetrievalType + * decides which tool is used. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1RetrievalCallDelta extends com.google.api.client.json.GenericJson { + + /** + * Required. The arguments to pass to the Retrieval tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1RetrievalCallStepRetrievalStepArguments arguments; + + /** + * The type of retrieval tools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String retrievalType; + + /** + * Required. The arguments to pass to the Retrieval tool. + * @return value or {@code null} for none + */ + public GenaiVertexV1RetrievalCallStepRetrievalStepArguments getArguments() { + return arguments; + } + + /** + * Required. The arguments to pass to the Retrieval tool. + * @param arguments arguments or {@code null} for none + */ + public GenaiVertexV1RetrievalCallDelta setArguments(GenaiVertexV1RetrievalCallStepRetrievalStepArguments arguments) { + this.arguments = arguments; + return this; + } + + /** + * The type of retrieval tools. + * @return value or {@code null} for none + */ + public java.lang.String getRetrievalType() { + return retrievalType; + } + + /** + * The type of retrieval tools. + * @param retrievalType retrievalType or {@code null} for none + */ + public GenaiVertexV1RetrievalCallDelta setRetrievalType(java.lang.String retrievalType) { + this.retrievalType = retrievalType; + return this; + } + + @Override + public GenaiVertexV1RetrievalCallDelta set(String fieldName, Object value) { + return (GenaiVertexV1RetrievalCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1RetrievalCallDelta clone() { + return (GenaiVertexV1RetrievalCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RetrievalCallStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RetrievalCallStep.java new file mode 100644 index 00000000000..826c04e6462 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RetrievalCallStep.java @@ -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.aiplatform.v1.model; + +/** + * Retrieval call step. Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI + * Search, etc. RetrievalType decides which tool is used. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1RetrievalCallStep extends com.google.api.client.json.GenericJson { + + /** + * Required. The arguments to pass to the retrieval tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1RetrievalCallStepRetrievalStepArguments arguments; + + /** + * The type of retrieval tools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String retrievalType; + + /** + * Required. The arguments to pass to the retrieval tool. + * @return value or {@code null} for none + */ + public GenaiVertexV1RetrievalCallStepRetrievalStepArguments getArguments() { + return arguments; + } + + /** + * Required. The arguments to pass to the retrieval tool. + * @param arguments arguments or {@code null} for none + */ + public GenaiVertexV1RetrievalCallStep setArguments(GenaiVertexV1RetrievalCallStepRetrievalStepArguments arguments) { + this.arguments = arguments; + return this; + } + + /** + * The type of retrieval tools. + * @return value or {@code null} for none + */ + public java.lang.String getRetrievalType() { + return retrievalType; + } + + /** + * The type of retrieval tools. + * @param retrievalType retrievalType or {@code null} for none + */ + public GenaiVertexV1RetrievalCallStep setRetrievalType(java.lang.String retrievalType) { + this.retrievalType = retrievalType; + return this; + } + + @Override + public GenaiVertexV1RetrievalCallStep set(String fieldName, Object value) { + return (GenaiVertexV1RetrievalCallStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1RetrievalCallStep clone() { + return (GenaiVertexV1RetrievalCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RetrievalCallStepRetrievalStepArguments.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RetrievalCallStepRetrievalStepArguments.java new file mode 100644 index 00000000000..9a7dcb94898 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RetrievalCallStepRetrievalStepArguments.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.aiplatform.v1.model; + +/** + * The arguments to pass to Retrieval tools. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1RetrievalCallStepRetrievalStepArguments extends com.google.api.client.json.GenericJson { + + /** + * Queries for Retrieval information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List queries; + + /** + * Queries for Retrieval information. + * @return value or {@code null} for none + */ + public java.util.List getQueries() { + return queries; + } + + /** + * Queries for Retrieval information. + * @param queries queries or {@code null} for none + */ + public GenaiVertexV1RetrievalCallStepRetrievalStepArguments setQueries(java.util.List queries) { + this.queries = queries; + return this; + } + + @Override + public GenaiVertexV1RetrievalCallStepRetrievalStepArguments set(String fieldName, Object value) { + return (GenaiVertexV1RetrievalCallStepRetrievalStepArguments) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1RetrievalCallStepRetrievalStepArguments clone() { + return (GenaiVertexV1RetrievalCallStepRetrievalStepArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RetrievalResultDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RetrievalResultDelta.java new file mode 100644 index 00000000000..0b5bb0ec628 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RetrievalResultDelta.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search, etc. + * ToolResultDelta.type + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1RetrievalResultDelta extends com.google.api.client.json.GenericJson { + + /** + * Whether the retrieval resulted in an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * Whether the retrieval resulted in an error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * Whether the retrieval resulted in an error. + * @param isError isError or {@code null} for none + */ + public GenaiVertexV1RetrievalResultDelta setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + @Override + public GenaiVertexV1RetrievalResultDelta set(String fieldName, Object value) { + return (GenaiVertexV1RetrievalResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1RetrievalResultDelta clone() { + return (GenaiVertexV1RetrievalResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RetrievalResultStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RetrievalResultStep.java new file mode 100644 index 00000000000..539af0a3797 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1RetrievalResultStep.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Vertex Retrieval result step. Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex + * AI Search, 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 Agent Platform 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 GenaiVertexV1RetrievalResultStep extends com.google.api.client.json.GenericJson { + + /** + * Whether the retrieval resulted in an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * Whether the retrieval resulted in an error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * Whether the retrieval resulted in an error. + * @param isError isError or {@code null} for none + */ + public GenaiVertexV1RetrievalResultStep setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + @Override + public GenaiVertexV1RetrievalResultStep set(String fieldName, Object value) { + return (GenaiVertexV1RetrievalResultStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1RetrievalResultStep clone() { + return (GenaiVertexV1RetrievalResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ReviewSnippet.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ReviewSnippet.java new file mode 100644 index 00000000000..73c3831946f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ReviewSnippet.java @@ -0,0 +1,115 @@ +/* + * 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; + +/** + * Encapsulates a snippet of a user review that answers a question about the features of a specific + * place in Google Maps. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ReviewSnippet extends com.google.api.client.json.GenericJson { + + /** + * The ID of the review snippet. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reviewId; + + /** + * Title of the review. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * A link that corresponds to the user review on Google Maps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * The ID of the review snippet. + * @return value or {@code null} for none + */ + public java.lang.String getReviewId() { + return reviewId; + } + + /** + * The ID of the review snippet. + * @param reviewId reviewId or {@code null} for none + */ + public GenaiVertexV1ReviewSnippet setReviewId(java.lang.String reviewId) { + this.reviewId = reviewId; + return this; + } + + /** + * Title of the review. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Title of the review. + * @param title title or {@code null} for none + */ + public GenaiVertexV1ReviewSnippet setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * A link that corresponds to the user review on Google Maps. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * A link that corresponds to the user review on Google Maps. + * @param url url or {@code null} for none + */ + public GenaiVertexV1ReviewSnippet setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GenaiVertexV1ReviewSnippet set(String fieldName, Object value) { + return (GenaiVertexV1ReviewSnippet) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ReviewSnippet clone() { + return (GenaiVertexV1ReviewSnippet) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1SafetySetting.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1SafetySetting.java new file mode 100644 index 00000000000..20b56a568e5 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1SafetySetting.java @@ -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.aiplatform.v1.model; + +/** + * A safety setting that affects the safety-blocking behavior. A SafetySetting consists of a harm + * category and a threshold for that category. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1SafetySetting extends com.google.api.client.json.GenericJson { + + /** + * Optional. The method for blocking content. If not specified, the default behavior is to use the + * probability score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String method; + + /** + * Required. The threshold for blocking content. If the harm probability exceeds this threshold, + * the content will be blocked. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String threshold; + + /** + * Required. The type of harm category to be blocked. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Optional. The method for blocking content. If not specified, the default behavior is to use the + * probability score. + * @return value or {@code null} for none + */ + public java.lang.String getMethod() { + return method; + } + + /** + * Optional. The method for blocking content. If not specified, the default behavior is to use the + * probability score. + * @param method method or {@code null} for none + */ + public GenaiVertexV1SafetySetting setMethod(java.lang.String method) { + this.method = method; + return this; + } + + /** + * Required. The threshold for blocking content. If the harm probability exceeds this threshold, + * the content will be blocked. + * @return value or {@code null} for none + */ + public java.lang.String getThreshold() { + return threshold; + } + + /** + * Required. The threshold for blocking content. If the harm probability exceeds this threshold, + * the content will be blocked. + * @param threshold threshold or {@code null} for none + */ + public GenaiVertexV1SafetySetting setThreshold(java.lang.String threshold) { + this.threshold = threshold; + return this; + } + + /** + * Required. The type of harm category to be blocked. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. The type of harm category to be blocked. + * @param type type or {@code null} for none + */ + public GenaiVertexV1SafetySetting setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public GenaiVertexV1SafetySetting set(String fieldName, Object value) { + return (GenaiVertexV1SafetySetting) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1SafetySetting clone() { + return (GenaiVertexV1SafetySetting) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ServerToolCallDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ServerToolCallDelta.java new file mode 100644 index 00000000000..e16c075d614 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ServerToolCallDelta.java @@ -0,0 +1,241 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1ServerToolCallDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ServerToolCallDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1CodeExecutionCallDelta codeExecutionCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1FileSearchCallDelta fileSearchCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1GoogleMapsCallDelta googleMapsCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1GoogleSearchCallDelta googleSearchCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ProcessingCallDelta processingCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1RetrievalCallDelta retrievalCall; + + /** + * A signature hash for backend validation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signature; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1UrlContextCallDelta urlContextCall; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1CodeExecutionCallDelta getCodeExecutionCall() { + return codeExecutionCall; + } + + /** + * @param codeExecutionCall codeExecutionCall or {@code null} for none + */ + public GenaiVertexV1ServerToolCallDelta setCodeExecutionCall(GenaiVertexV1CodeExecutionCallDelta codeExecutionCall) { + this.codeExecutionCall = codeExecutionCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1FileSearchCallDelta getFileSearchCall() { + return fileSearchCall; + } + + /** + * @param fileSearchCall fileSearchCall or {@code null} for none + */ + public GenaiVertexV1ServerToolCallDelta setFileSearchCall(GenaiVertexV1FileSearchCallDelta fileSearchCall) { + this.fileSearchCall = fileSearchCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1GoogleMapsCallDelta getGoogleMapsCall() { + return googleMapsCall; + } + + /** + * @param googleMapsCall googleMapsCall or {@code null} for none + */ + public GenaiVertexV1ServerToolCallDelta setGoogleMapsCall(GenaiVertexV1GoogleMapsCallDelta googleMapsCall) { + this.googleMapsCall = googleMapsCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1GoogleSearchCallDelta getGoogleSearchCall() { + return googleSearchCall; + } + + /** + * @param googleSearchCall googleSearchCall or {@code null} for none + */ + public GenaiVertexV1ServerToolCallDelta setGoogleSearchCall(GenaiVertexV1GoogleSearchCallDelta googleSearchCall) { + this.googleSearchCall = googleSearchCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ProcessingCallDelta getProcessingCall() { + return processingCall; + } + + /** + * @param processingCall processingCall or {@code null} for none + */ + public GenaiVertexV1ServerToolCallDelta setProcessingCall(GenaiVertexV1ProcessingCallDelta processingCall) { + this.processingCall = processingCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1RetrievalCallDelta getRetrievalCall() { + return retrievalCall; + } + + /** + * @param retrievalCall retrievalCall or {@code null} for none + */ + public GenaiVertexV1ServerToolCallDelta setRetrievalCall(GenaiVertexV1RetrievalCallDelta retrievalCall) { + this.retrievalCall = retrievalCall; + return this; + } + + /** + * A signature hash for backend validation. + * @see #decodeSignature() + * @return value or {@code null} for none + */ + public java.lang.String getSignature() { + return signature; + } + + /** + * A signature hash for backend validation. + * @see #getSignature() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignature() { + return com.google.api.client.util.Base64.decodeBase64(signature); + } + + /** + * A signature hash for backend validation. + * @see #encodeSignature() + * @param signature signature or {@code null} for none + */ + public GenaiVertexV1ServerToolCallDelta setSignature(java.lang.String signature) { + this.signature = signature; + return this; + } + + /** + * A signature hash for backend validation. + * @see #setSignature() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1ServerToolCallDelta encodeSignature(byte[] signature) { + this.signature = com.google.api.client.util.Base64.encodeBase64URLSafeString(signature); + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1UrlContextCallDelta getUrlContextCall() { + return urlContextCall; + } + + /** + * @param urlContextCall urlContextCall or {@code null} for none + */ + public GenaiVertexV1ServerToolCallDelta setUrlContextCall(GenaiVertexV1UrlContextCallDelta urlContextCall) { + this.urlContextCall = urlContextCall; + return this; + } + + @Override + public GenaiVertexV1ServerToolCallDelta set(String fieldName, Object value) { + return (GenaiVertexV1ServerToolCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ServerToolCallDelta clone() { + return (GenaiVertexV1ServerToolCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ServerToolResultDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ServerToolResultDelta.java new file mode 100644 index 00000000000..0725ee85179 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ServerToolResultDelta.java @@ -0,0 +1,241 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1ServerToolResultDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ServerToolResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1CodeExecutionResultDelta codeExecutionResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1FileSearchResultDelta fileSearchResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1GoogleMapsResultDelta googleMapsResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1GoogleSearchResultDelta googleSearchResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ProcessingResultDelta processingResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1RetrievalResultDelta retrievalResult; + + /** + * A signature hash for backend validation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signature; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1UrlContextResultDelta urlContextResult; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1CodeExecutionResultDelta getCodeExecutionResult() { + return codeExecutionResult; + } + + /** + * @param codeExecutionResult codeExecutionResult or {@code null} for none + */ + public GenaiVertexV1ServerToolResultDelta setCodeExecutionResult(GenaiVertexV1CodeExecutionResultDelta codeExecutionResult) { + this.codeExecutionResult = codeExecutionResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1FileSearchResultDelta getFileSearchResult() { + return fileSearchResult; + } + + /** + * @param fileSearchResult fileSearchResult or {@code null} for none + */ + public GenaiVertexV1ServerToolResultDelta setFileSearchResult(GenaiVertexV1FileSearchResultDelta fileSearchResult) { + this.fileSearchResult = fileSearchResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultDelta getGoogleMapsResult() { + return googleMapsResult; + } + + /** + * @param googleMapsResult googleMapsResult or {@code null} for none + */ + public GenaiVertexV1ServerToolResultDelta setGoogleMapsResult(GenaiVertexV1GoogleMapsResultDelta googleMapsResult) { + this.googleMapsResult = googleMapsResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1GoogleSearchResultDelta getGoogleSearchResult() { + return googleSearchResult; + } + + /** + * @param googleSearchResult googleSearchResult or {@code null} for none + */ + public GenaiVertexV1ServerToolResultDelta setGoogleSearchResult(GenaiVertexV1GoogleSearchResultDelta googleSearchResult) { + this.googleSearchResult = googleSearchResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ProcessingResultDelta getProcessingResult() { + return processingResult; + } + + /** + * @param processingResult processingResult or {@code null} for none + */ + public GenaiVertexV1ServerToolResultDelta setProcessingResult(GenaiVertexV1ProcessingResultDelta processingResult) { + this.processingResult = processingResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1RetrievalResultDelta getRetrievalResult() { + return retrievalResult; + } + + /** + * @param retrievalResult retrievalResult or {@code null} for none + */ + public GenaiVertexV1ServerToolResultDelta setRetrievalResult(GenaiVertexV1RetrievalResultDelta retrievalResult) { + this.retrievalResult = retrievalResult; + return this; + } + + /** + * A signature hash for backend validation. + * @see #decodeSignature() + * @return value or {@code null} for none + */ + public java.lang.String getSignature() { + return signature; + } + + /** + * A signature hash for backend validation. + * @see #getSignature() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignature() { + return com.google.api.client.util.Base64.decodeBase64(signature); + } + + /** + * A signature hash for backend validation. + * @see #encodeSignature() + * @param signature signature or {@code null} for none + */ + public GenaiVertexV1ServerToolResultDelta setSignature(java.lang.String signature) { + this.signature = signature; + return this; + } + + /** + * A signature hash for backend validation. + * @see #setSignature() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1ServerToolResultDelta encodeSignature(byte[] signature) { + this.signature = com.google.api.client.util.Base64.encodeBase64URLSafeString(signature); + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1UrlContextResultDelta getUrlContextResult() { + return urlContextResult; + } + + /** + * @param urlContextResult urlContextResult or {@code null} for none + */ + public GenaiVertexV1ServerToolResultDelta setUrlContextResult(GenaiVertexV1UrlContextResultDelta urlContextResult) { + this.urlContextResult = urlContextResult; + return this; + } + + @Override + public GenaiVertexV1ServerToolResultDelta set(String fieldName, Object value) { + return (GenaiVertexV1ServerToolResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ServerToolResultDelta clone() { + return (GenaiVertexV1ServerToolResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1SpeakerConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1SpeakerConfig.java new file mode 100644 index 00000000000..cc30ef125b7 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1SpeakerConfig.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.aiplatform.v1.model; + +/** + * Configuration for multi-speaker and speech generation. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1SpeakerConfig extends com.google.api.client.json.GenericJson { + + /** + * Individual speaker configurations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List speakers; + + /** + * Individual speaker configurations. + * @return value or {@code null} for none + */ + public java.util.List getSpeakers() { + return speakers; + } + + /** + * Individual speaker configurations. + * @param speakers speakers or {@code null} for none + */ + public GenaiVertexV1SpeakerConfig setSpeakers(java.util.List speakers) { + this.speakers = speakers; + return this; + } + + @Override + public GenaiVertexV1SpeakerConfig set(String fieldName, Object value) { + return (GenaiVertexV1SpeakerConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1SpeakerConfig clone() { + return (GenaiVertexV1SpeakerConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1SpeechAnnotation.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1SpeechAnnotation.java new file mode 100644 index 00000000000..bc74ff0290b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1SpeechAnnotation.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Speech annotation for text content. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1SpeechAnnotation extends com.google.api.client.json.GenericJson { + + /** + * The speaker to associate with this turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String speaker; + + /** + * Style instruction for the speech synthesis. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String style; + + /** + * The speaker to associate with this turn. + * @return value or {@code null} for none + */ + public java.lang.String getSpeaker() { + return speaker; + } + + /** + * The speaker to associate with this turn. + * @param speaker speaker or {@code null} for none + */ + public GenaiVertexV1SpeechAnnotation setSpeaker(java.lang.String speaker) { + this.speaker = speaker; + return this; + } + + /** + * Style instruction for the speech synthesis. + * @return value or {@code null} for none + */ + public java.lang.String getStyle() { + return style; + } + + /** + * Style instruction for the speech synthesis. + * @param style style or {@code null} for none + */ + public GenaiVertexV1SpeechAnnotation setStyle(java.lang.String style) { + this.style = style; + return this; + } + + @Override + public GenaiVertexV1SpeechAnnotation set(String fieldName, Object value) { + return (GenaiVertexV1SpeechAnnotation) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1SpeechAnnotation clone() { + return (GenaiVertexV1SpeechAnnotation) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1SpeechConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1SpeechConfig.java new file mode 100644 index 00000000000..7925f666052 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1SpeechConfig.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.aiplatform.v1.model; + +/** + * The configuration for speech interaction. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1SpeechConfig extends com.google.api.client.json.GenericJson { + + /** + * The language of the speech. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String language; + + /** + * The speaker's name, it should match the speaker name given in the prompt. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String speaker; + + /** + * The voice of the speaker. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String voice; + + /** + * The language of the speech. + * @return value or {@code null} for none + */ + public java.lang.String getLanguage() { + return language; + } + + /** + * The language of the speech. + * @param language language or {@code null} for none + */ + public GenaiVertexV1SpeechConfig setLanguage(java.lang.String language) { + this.language = language; + return this; + } + + /** + * The speaker's name, it should match the speaker name given in the prompt. + * @return value or {@code null} for none + */ + public java.lang.String getSpeaker() { + return speaker; + } + + /** + * The speaker's name, it should match the speaker name given in the prompt. + * @param speaker speaker or {@code null} for none + */ + public GenaiVertexV1SpeechConfig setSpeaker(java.lang.String speaker) { + this.speaker = speaker; + return this; + } + + /** + * The voice of the speaker. + * @return value or {@code null} for none + */ + public java.lang.String getVoice() { + return voice; + } + + /** + * The voice of the speaker. + * @param voice voice or {@code null} for none + */ + public GenaiVertexV1SpeechConfig setVoice(java.lang.String voice) { + this.voice = voice; + return this; + } + + @Override + public GenaiVertexV1SpeechConfig set(String fieldName, Object value) { + return (GenaiVertexV1SpeechConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1SpeechConfig clone() { + return (GenaiVertexV1SpeechConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Step.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Step.java new file mode 100644 index 00000000000..a537c6a3096 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Step.java @@ -0,0 +1,150 @@ +/* + * 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; + +/** + * A step in the interaction. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1Step extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ModelOutputStep modelOutput; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ThoughtStep thought; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ToolCallStep toolCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ToolResultStep toolResult; + + /** + * DO NOT USE -- These are for 3P JSON only + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1UserInputStep userInput; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ModelOutputStep getModelOutput() { + return modelOutput; + } + + /** + * @param modelOutput modelOutput or {@code null} for none + */ + public GenaiVertexV1Step setModelOutput(GenaiVertexV1ModelOutputStep modelOutput) { + this.modelOutput = modelOutput; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ThoughtStep getThought() { + return thought; + } + + /** + * @param thought thought or {@code null} for none + */ + public GenaiVertexV1Step setThought(GenaiVertexV1ThoughtStep thought) { + this.thought = thought; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ToolCallStep getToolCall() { + return toolCall; + } + + /** + * @param toolCall toolCall or {@code null} for none + */ + public GenaiVertexV1Step setToolCall(GenaiVertexV1ToolCallStep toolCall) { + this.toolCall = toolCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ToolResultStep getToolResult() { + return toolResult; + } + + /** + * @param toolResult toolResult or {@code null} for none + */ + public GenaiVertexV1Step setToolResult(GenaiVertexV1ToolResultStep toolResult) { + this.toolResult = toolResult; + return this; + } + + /** + * DO NOT USE -- These are for 3P JSON only + * @return value or {@code null} for none + */ + public GenaiVertexV1UserInputStep getUserInput() { + return userInput; + } + + /** + * DO NOT USE -- These are for 3P JSON only + * @param userInput userInput or {@code null} for none + */ + public GenaiVertexV1Step setUserInput(GenaiVertexV1UserInputStep userInput) { + this.userInput = userInput; + return this; + } + + @Override + public GenaiVertexV1Step set(String fieldName, Object value) { + return (GenaiVertexV1Step) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1Step clone() { + return (GenaiVertexV1Step) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1StepDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1StepDelta.java new file mode 100644 index 00000000000..88d033bf4b2 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1StepDelta.java @@ -0,0 +1,84 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1StepDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1StepDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1StepDeltaData delta; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer index; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1StepDeltaData getDelta() { + return delta; + } + + /** + * @param delta delta or {@code null} for none + */ + public GenaiVertexV1StepDelta setDelta(GenaiVertexV1StepDeltaData delta) { + this.delta = delta; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Integer getIndex() { + return index; + } + + /** + * @param index index or {@code null} for none + */ + public GenaiVertexV1StepDelta setIndex(java.lang.Integer index) { + this.index = index; + return this; + } + + @Override + public GenaiVertexV1StepDelta set(String fieldName, Object value) { + return (GenaiVertexV1StepDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1StepDelta clone() { + return (GenaiVertexV1StepDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1StepDeltaData.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1StepDeltaData.java new file mode 100644 index 00000000000..fb7af08b701 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1StepDeltaData.java @@ -0,0 +1,294 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1StepDeltaData. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1StepDeltaData extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ArgumentsDelta argumentsDelta; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1AudioDelta audio; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1DocumentDelta document; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1FunctionResultDelta functionResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ImageDelta image; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ServerToolCallDelta serverToolCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ServerToolResultDelta serverToolResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1TextDelta text; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1TextAnnotationDelta textAnnotationDelta; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ThoughtSignatureDelta thoughtSignature; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ThoughtSummaryDelta thoughtSummary; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1VideoDelta video; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ArgumentsDelta getArgumentsDelta() { + return argumentsDelta; + } + + /** + * @param argumentsDelta argumentsDelta or {@code null} for none + */ + public GenaiVertexV1StepDeltaData setArgumentsDelta(GenaiVertexV1ArgumentsDelta argumentsDelta) { + this.argumentsDelta = argumentsDelta; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1AudioDelta getAudio() { + return audio; + } + + /** + * @param audio audio or {@code null} for none + */ + public GenaiVertexV1StepDeltaData setAudio(GenaiVertexV1AudioDelta audio) { + this.audio = audio; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1DocumentDelta getDocument() { + return document; + } + + /** + * @param document document or {@code null} for none + */ + public GenaiVertexV1StepDeltaData setDocument(GenaiVertexV1DocumentDelta document) { + this.document = document; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1FunctionResultDelta getFunctionResult() { + return functionResult; + } + + /** + * @param functionResult functionResult or {@code null} for none + */ + public GenaiVertexV1StepDeltaData setFunctionResult(GenaiVertexV1FunctionResultDelta functionResult) { + this.functionResult = functionResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ImageDelta getImage() { + return image; + } + + /** + * @param image image or {@code null} for none + */ + public GenaiVertexV1StepDeltaData setImage(GenaiVertexV1ImageDelta image) { + this.image = image; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ServerToolCallDelta getServerToolCall() { + return serverToolCall; + } + + /** + * @param serverToolCall serverToolCall or {@code null} for none + */ + public GenaiVertexV1StepDeltaData setServerToolCall(GenaiVertexV1ServerToolCallDelta serverToolCall) { + this.serverToolCall = serverToolCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ServerToolResultDelta getServerToolResult() { + return serverToolResult; + } + + /** + * @param serverToolResult serverToolResult or {@code null} for none + */ + public GenaiVertexV1StepDeltaData setServerToolResult(GenaiVertexV1ServerToolResultDelta serverToolResult) { + this.serverToolResult = serverToolResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1TextDelta getText() { + return text; + } + + /** + * @param text text or {@code null} for none + */ + public GenaiVertexV1StepDeltaData setText(GenaiVertexV1TextDelta text) { + this.text = text; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1TextAnnotationDelta getTextAnnotationDelta() { + return textAnnotationDelta; + } + + /** + * @param textAnnotationDelta textAnnotationDelta or {@code null} for none + */ + public GenaiVertexV1StepDeltaData setTextAnnotationDelta(GenaiVertexV1TextAnnotationDelta textAnnotationDelta) { + this.textAnnotationDelta = textAnnotationDelta; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ThoughtSignatureDelta getThoughtSignature() { + return thoughtSignature; + } + + /** + * @param thoughtSignature thoughtSignature or {@code null} for none + */ + public GenaiVertexV1StepDeltaData setThoughtSignature(GenaiVertexV1ThoughtSignatureDelta thoughtSignature) { + this.thoughtSignature = thoughtSignature; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ThoughtSummaryDelta getThoughtSummary() { + return thoughtSummary; + } + + /** + * @param thoughtSummary thoughtSummary or {@code null} for none + */ + public GenaiVertexV1StepDeltaData setThoughtSummary(GenaiVertexV1ThoughtSummaryDelta thoughtSummary) { + this.thoughtSummary = thoughtSummary; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1VideoDelta getVideo() { + return video; + } + + /** + * @param video video or {@code null} for none + */ + public GenaiVertexV1StepDeltaData setVideo(GenaiVertexV1VideoDelta video) { + this.video = video; + return this; + } + + @Override + public GenaiVertexV1StepDeltaData set(String fieldName, Object value) { + return (GenaiVertexV1StepDeltaData) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1StepDeltaData clone() { + return (GenaiVertexV1StepDeltaData) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1StepList.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1StepList.java new file mode 100644 index 00000000000..9b631c697e9 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1StepList.java @@ -0,0 +1,72 @@ +/* + * 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; + +/** + * A list of Steps. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1StepList extends com.google.api.client.json.GenericJson { + + /** + * The steps of the list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List steps; + + static { + // hack to force ProGuard to consider GenaiVertexV1Step used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiVertexV1Step.class); + } + + /** + * The steps of the list. + * @return value or {@code null} for none + */ + public java.util.List getSteps() { + return steps; + } + + /** + * The steps of the list. + * @param steps steps or {@code null} for none + */ + public GenaiVertexV1StepList setSteps(java.util.List steps) { + this.steps = steps; + return this; + } + + @Override + public GenaiVertexV1StepList set(String fieldName, Object value) { + return (GenaiVertexV1StepList) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1StepList clone() { + return (GenaiVertexV1StepList) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1StepStart.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1StepStart.java new file mode 100644 index 00000000000..5ebbfcf3e2c --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1StepStart.java @@ -0,0 +1,84 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1StepStart. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1StepStart extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer index; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Step step; + + /** + * @return value or {@code null} for none + */ + public java.lang.Integer getIndex() { + return index; + } + + /** + * @param index index or {@code null} for none + */ + public GenaiVertexV1StepStart setIndex(java.lang.Integer index) { + this.index = index; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1Step getStep() { + return step; + } + + /** + * @param step step or {@code null} for none + */ + public GenaiVertexV1StepStart setStep(GenaiVertexV1Step step) { + this.step = step; + return this; + } + + @Override + public GenaiVertexV1StepStart set(String fieldName, Object value) { + return (GenaiVertexV1StepStart) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1StepStart clone() { + return (GenaiVertexV1StepStart) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1StepStop.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1StepStop.java new file mode 100644 index 00000000000..fa34ed2561b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1StepStop.java @@ -0,0 +1,111 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1StepStop. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1StepStop extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer index; + + /** + * Model usage stats for this specific step. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1InteractionUsage stepUsage; + + /** + * Cumulative model usage stats from the start of the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1InteractionUsage usage; + + /** + * @return value or {@code null} for none + */ + public java.lang.Integer getIndex() { + return index; + } + + /** + * @param index index or {@code null} for none + */ + public GenaiVertexV1StepStop setIndex(java.lang.Integer index) { + this.index = index; + return this; + } + + /** + * Model usage stats for this specific step. + * @return value or {@code null} for none + */ + public GenaiVertexV1InteractionUsage getStepUsage() { + return stepUsage; + } + + /** + * Model usage stats for this specific step. + * @param stepUsage stepUsage or {@code null} for none + */ + public GenaiVertexV1StepStop setStepUsage(GenaiVertexV1InteractionUsage stepUsage) { + this.stepUsage = stepUsage; + return this; + } + + /** + * Cumulative model usage stats from the start of the session. + * @return value or {@code null} for none + */ + public GenaiVertexV1InteractionUsage getUsage() { + return usage; + } + + /** + * Cumulative model usage stats from the start of the session. + * @param usage usage or {@code null} for none + */ + public GenaiVertexV1StepStop setUsage(GenaiVertexV1InteractionUsage usage) { + this.usage = usage; + return this; + } + + @Override + public GenaiVertexV1StepStop set(String fieldName, Object value) { + return (GenaiVertexV1StepStop) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1StepStop clone() { + return (GenaiVertexV1StepStop) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Struct.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Struct.java new file mode 100644 index 00000000000..bf2aadcc2d7 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Struct.java @@ -0,0 +1,76 @@ +/* + * 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; + +/** + * `Struct` represents a structured data value, consisting of fields which map to dynamically typed + * values. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1Struct extends com.google.api.client.json.GenericJson { + + /** + * Dynamically typed fields. List instead of map because LLMs are sensitive to ordering, and we + * want to give users full control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List fields; + + static { + // hack to force ProGuard to consider GenaiVertexV1Field used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiVertexV1Field.class); + } + + /** + * Dynamically typed fields. List instead of map because LLMs are sensitive to ordering, and we + * want to give users full control. + * @return value or {@code null} for none + */ + public java.util.List getFields() { + return fields; + } + + /** + * Dynamically typed fields. List instead of map because LLMs are sensitive to ordering, and we + * want to give users full control. + * @param fields fields or {@code null} for none + */ + public GenaiVertexV1Struct setFields(java.util.List fields) { + this.fields = fields; + return this; + } + + @Override + public GenaiVertexV1Struct set(String fieldName, Object value) { + return (GenaiVertexV1Struct) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1Struct clone() { + return (GenaiVertexV1Struct) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TextAnnotationDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TextAnnotationDelta.java new file mode 100644 index 00000000000..3f95875a8da --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TextAnnotationDelta.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.aiplatform.v1.model; + +/** + * Model definition for GenaiVertexV1TextAnnotationDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1TextAnnotationDelta extends com.google.api.client.json.GenericJson { + + /** + * Citation information for model-generated content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List annotations; + + /** + * Citation information for model-generated content. + * @return value or {@code null} for none + */ + public java.util.List getAnnotations() { + return annotations; + } + + /** + * Citation information for model-generated content. + * @param annotations annotations or {@code null} for none + */ + public GenaiVertexV1TextAnnotationDelta setAnnotations(java.util.List annotations) { + this.annotations = annotations; + return this; + } + + @Override + public GenaiVertexV1TextAnnotationDelta set(String fieldName, Object value) { + return (GenaiVertexV1TextAnnotationDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1TextAnnotationDelta clone() { + return (GenaiVertexV1TextAnnotationDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TextContent.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TextContent.java new file mode 100644 index 00000000000..1f85235c94c --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TextContent.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * A text content block. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1TextContent extends com.google.api.client.json.GenericJson { + + /** + * Citation information for model-generated content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List annotations; + + /** + * Required. The text content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Citation information for model-generated content. + * @return value or {@code null} for none + */ + public java.util.List getAnnotations() { + return annotations; + } + + /** + * Citation information for model-generated content. + * @param annotations annotations or {@code null} for none + */ + public GenaiVertexV1TextContent setAnnotations(java.util.List annotations) { + this.annotations = annotations; + return this; + } + + /** + * Required. The text content. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Required. The text content. + * @param text text or {@code null} for none + */ + public GenaiVertexV1TextContent setText(java.lang.String text) { + this.text = text; + return this; + } + + @Override + public GenaiVertexV1TextContent set(String fieldName, Object value) { + return (GenaiVertexV1TextContent) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1TextContent clone() { + return (GenaiVertexV1TextContent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TextContentAnnotation.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TextContentAnnotation.java new file mode 100644 index 00000000000..3e8913e5394 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TextContentAnnotation.java @@ -0,0 +1,216 @@ +/* + * 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; + +/** + * Citation information for model-generated content. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1TextContentAnnotation extends com.google.api.client.json.GenericJson { + + /** + * End of the attributed segment, exclusive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer endIndex; + + /** + * A file citation annotation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1FileCitation fileCitation; + + /** + * A place citation annotation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1PlaceCitation placeCitation; + + /** + * Speech annotation for text content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1SpeechAnnotation speechMetadata; + + /** + * Start of segment of the response that is attributed to this source. Index indicates the start + * of the segment, measured in bytes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer startIndex; + + /** + * NOTE: We use these instead of the Citation message for historical reasons. A URL citation + * annotation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1UrlCitation urlCitation; + + /** + * Word-level ASR annotation with timing and speaker info. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1WordInfo wordInfo; + + /** + * End of the attributed segment, exclusive. + * @return value or {@code null} for none + */ + public java.lang.Integer getEndIndex() { + return endIndex; + } + + /** + * End of the attributed segment, exclusive. + * @param endIndex endIndex or {@code null} for none + */ + public GenaiVertexV1TextContentAnnotation setEndIndex(java.lang.Integer endIndex) { + this.endIndex = endIndex; + return this; + } + + /** + * A file citation annotation. + * @return value or {@code null} for none + */ + public GenaiVertexV1FileCitation getFileCitation() { + return fileCitation; + } + + /** + * A file citation annotation. + * @param fileCitation fileCitation or {@code null} for none + */ + public GenaiVertexV1TextContentAnnotation setFileCitation(GenaiVertexV1FileCitation fileCitation) { + this.fileCitation = fileCitation; + return this; + } + + /** + * A place citation annotation. + * @return value or {@code null} for none + */ + public GenaiVertexV1PlaceCitation getPlaceCitation() { + return placeCitation; + } + + /** + * A place citation annotation. + * @param placeCitation placeCitation or {@code null} for none + */ + public GenaiVertexV1TextContentAnnotation setPlaceCitation(GenaiVertexV1PlaceCitation placeCitation) { + this.placeCitation = placeCitation; + return this; + } + + /** + * Speech annotation for text content. + * @return value or {@code null} for none + */ + public GenaiVertexV1SpeechAnnotation getSpeechMetadata() { + return speechMetadata; + } + + /** + * Speech annotation for text content. + * @param speechMetadata speechMetadata or {@code null} for none + */ + public GenaiVertexV1TextContentAnnotation setSpeechMetadata(GenaiVertexV1SpeechAnnotation speechMetadata) { + this.speechMetadata = speechMetadata; + return this; + } + + /** + * Start of segment of the response that is attributed to this source. Index indicates the start + * of the segment, measured in bytes. + * @return value or {@code null} for none + */ + public java.lang.Integer getStartIndex() { + return startIndex; + } + + /** + * Start of segment of the response that is attributed to this source. Index indicates the start + * of the segment, measured in bytes. + * @param startIndex startIndex or {@code null} for none + */ + public GenaiVertexV1TextContentAnnotation setStartIndex(java.lang.Integer startIndex) { + this.startIndex = startIndex; + return this; + } + + /** + * NOTE: We use these instead of the Citation message for historical reasons. A URL citation + * annotation. + * @return value or {@code null} for none + */ + public GenaiVertexV1UrlCitation getUrlCitation() { + return urlCitation; + } + + /** + * NOTE: We use these instead of the Citation message for historical reasons. A URL citation + * annotation. + * @param urlCitation urlCitation or {@code null} for none + */ + public GenaiVertexV1TextContentAnnotation setUrlCitation(GenaiVertexV1UrlCitation urlCitation) { + this.urlCitation = urlCitation; + return this; + } + + /** + * Word-level ASR annotation with timing and speaker info. + * @return value or {@code null} for none + */ + public GenaiVertexV1WordInfo getWordInfo() { + return wordInfo; + } + + /** + * Word-level ASR annotation with timing and speaker info. + * @param wordInfo wordInfo or {@code null} for none + */ + public GenaiVertexV1TextContentAnnotation setWordInfo(GenaiVertexV1WordInfo wordInfo) { + this.wordInfo = wordInfo; + return this; + } + + @Override + public GenaiVertexV1TextContentAnnotation set(String fieldName, Object value) { + return (GenaiVertexV1TextContentAnnotation) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1TextContentAnnotation clone() { + return (GenaiVertexV1TextContentAnnotation) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TextDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TextDelta.java new file mode 100644 index 00000000000..21af9eb904a --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TextDelta.java @@ -0,0 +1,63 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1TextDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1TextDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * @param text text or {@code null} for none + */ + public GenaiVertexV1TextDelta setText(java.lang.String text) { + this.text = text; + return this; + } + + @Override + public GenaiVertexV1TextDelta set(String fieldName, Object value) { + return (GenaiVertexV1TextDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1TextDelta clone() { + return (GenaiVertexV1TextDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TextResponseFormat.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TextResponseFormat.java new file mode 100644 index 00000000000..52d7cc4c059 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TextResponseFormat.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.aiplatform.v1.model; + +/** + * Configuration for text output format. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1TextResponseFormat extends com.google.api.client.json.GenericJson { + + /** + * The MIME type of the text output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * The JSON schema that the output should conform to. Only applicable when mime_type is + * application/json. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Struct schema; + + /** + * The MIME type of the text output. + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * The MIME type of the text output. + * @param mimeType mimeType or {@code null} for none + */ + public GenaiVertexV1TextResponseFormat setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * The JSON schema that the output should conform to. Only applicable when mime_type is + * application/json. + * @return value or {@code null} for none + */ + public GenaiVertexV1Struct getSchema() { + return schema; + } + + /** + * The JSON schema that the output should conform to. Only applicable when mime_type is + * application/json. + * @param schema schema or {@code null} for none + */ + public GenaiVertexV1TextResponseFormat setSchema(GenaiVertexV1Struct schema) { + this.schema = schema; + return this; + } + + @Override + public GenaiVertexV1TextResponseFormat set(String fieldName, Object value) { + return (GenaiVertexV1TextResponseFormat) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1TextResponseFormat clone() { + return (GenaiVertexV1TextResponseFormat) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ThoughtSignatureDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ThoughtSignatureDelta.java new file mode 100644 index 00000000000..836647449e7 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ThoughtSignatureDelta.java @@ -0,0 +1,94 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1ThoughtSignatureDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ThoughtSignatureDelta extends com.google.api.client.json.GenericJson { + + /** + * Signature to match the backend source to be part of the generation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signature; + + /** + * Signature to match the backend source to be part of the generation. + * @see #decodeSignature() + * @return value or {@code null} for none + */ + public java.lang.String getSignature() { + return signature; + } + + /** + * Signature to match the backend source to be part of the generation. + * @see #getSignature() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignature() { + return com.google.api.client.util.Base64.decodeBase64(signature); + } + + /** + * Signature to match the backend source to be part of the generation. + * @see #encodeSignature() + * @param signature signature or {@code null} for none + */ + public GenaiVertexV1ThoughtSignatureDelta setSignature(java.lang.String signature) { + this.signature = signature; + return this; + } + + /** + * Signature to match the backend source to be part of the generation. + * @see #setSignature() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1ThoughtSignatureDelta encodeSignature(byte[] signature) { + this.signature = com.google.api.client.util.Base64.encodeBase64URLSafeString(signature); + return this; + } + + @Override + public GenaiVertexV1ThoughtSignatureDelta set(String fieldName, Object value) { + return (GenaiVertexV1ThoughtSignatureDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ThoughtSignatureDelta clone() { + return (GenaiVertexV1ThoughtSignatureDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ThoughtStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ThoughtStep.java new file mode 100644 index 00000000000..d4d2639597f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ThoughtStep.java @@ -0,0 +1,124 @@ +/* + * 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; + +/** + * A thought step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ThoughtStep extends com.google.api.client.json.GenericJson { + + /** + * A signature hash for backend validation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signature; + + /** + * A summary of the thought. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List summary; + + static { + // hack to force ProGuard to consider GenaiVertexV1Content used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiVertexV1Content.class); + } + + /** + * A signature hash for backend validation. + * @see #decodeSignature() + * @return value or {@code null} for none + */ + public java.lang.String getSignature() { + return signature; + } + + /** + * A signature hash for backend validation. + * @see #getSignature() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignature() { + return com.google.api.client.util.Base64.decodeBase64(signature); + } + + /** + * A signature hash for backend validation. + * @see #encodeSignature() + * @param signature signature or {@code null} for none + */ + public GenaiVertexV1ThoughtStep setSignature(java.lang.String signature) { + this.signature = signature; + return this; + } + + /** + * A signature hash for backend validation. + * @see #setSignature() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1ThoughtStep encodeSignature(byte[] signature) { + this.signature = com.google.api.client.util.Base64.encodeBase64URLSafeString(signature); + return this; + } + + /** + * A summary of the thought. + * @return value or {@code null} for none + */ + public java.util.List getSummary() { + return summary; + } + + /** + * A summary of the thought. + * @param summary summary or {@code null} for none + */ + public GenaiVertexV1ThoughtStep setSummary(java.util.List summary) { + this.summary = summary; + return this; + } + + @Override + public GenaiVertexV1ThoughtStep set(String fieldName, Object value) { + return (GenaiVertexV1ThoughtStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ThoughtStep clone() { + return (GenaiVertexV1ThoughtStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ThoughtSummaryDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ThoughtSummaryDelta.java new file mode 100644 index 00000000000..7266260a6c6 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ThoughtSummaryDelta.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.aiplatform.v1.model; + +/** + * Model definition for GenaiVertexV1ThoughtSummaryDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ThoughtSummaryDelta extends com.google.api.client.json.GenericJson { + + /** + * A new summary item to be added to the thought. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Content content; + + /** + * A new summary item to be added to the thought. + * @return value or {@code null} for none + */ + public GenaiVertexV1Content getContent() { + return content; + } + + /** + * A new summary item to be added to the thought. + * @param content content or {@code null} for none + */ + public GenaiVertexV1ThoughtSummaryDelta setContent(GenaiVertexV1Content content) { + this.content = content; + return this; + } + + @Override + public GenaiVertexV1ThoughtSummaryDelta set(String fieldName, Object value) { + return (GenaiVertexV1ThoughtSummaryDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ThoughtSummaryDelta clone() { + return (GenaiVertexV1ThoughtSummaryDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Tool.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Tool.java new file mode 100644 index 00000000000..4de787632e0 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Tool.java @@ -0,0 +1,258 @@ +/* + * 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; + +/** + * A tool that can be used by the model. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1Tool extends com.google.api.client.json.GenericJson { + + /** + * A tool that can be used by the model to execute code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1CodeExecution codeExecution; + + /** + * Tool to support the model interacting directly with the computer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ComputerUse computerUse; + + /** + * A tool that can be used by the model to search files. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1FileSearch fileSearch; + + /** + * A function that can be used by the model. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Function function; + + /** + * A tool that can be used by the model to search Google Maps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1GoogleMaps googleMaps; + + /** + * A tool that can be used by the model to search Google. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1GoogleSearch googleSearch; + + /** + * A MCPServer is a server that can be called by the model to perform actions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1McpServer mcpServer; + + /** + * A tool that can be used by the model to retrieve files. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Retrieval retrieval; + + /** + * A tool that can be used by the model to fetch URL context. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1UrlContext urlContext; + + /** + * A tool that can be used by the model to execute code. + * @return value or {@code null} for none + */ + public GenaiVertexV1CodeExecution getCodeExecution() { + return codeExecution; + } + + /** + * A tool that can be used by the model to execute code. + * @param codeExecution codeExecution or {@code null} for none + */ + public GenaiVertexV1Tool setCodeExecution(GenaiVertexV1CodeExecution codeExecution) { + this.codeExecution = codeExecution; + return this; + } + + /** + * Tool to support the model interacting directly with the computer. + * @return value or {@code null} for none + */ + public GenaiVertexV1ComputerUse getComputerUse() { + return computerUse; + } + + /** + * Tool to support the model interacting directly with the computer. + * @param computerUse computerUse or {@code null} for none + */ + public GenaiVertexV1Tool setComputerUse(GenaiVertexV1ComputerUse computerUse) { + this.computerUse = computerUse; + return this; + } + + /** + * A tool that can be used by the model to search files. + * @return value or {@code null} for none + */ + public GenaiVertexV1FileSearch getFileSearch() { + return fileSearch; + } + + /** + * A tool that can be used by the model to search files. + * @param fileSearch fileSearch or {@code null} for none + */ + public GenaiVertexV1Tool setFileSearch(GenaiVertexV1FileSearch fileSearch) { + this.fileSearch = fileSearch; + return this; + } + + /** + * A function that can be used by the model. + * @return value or {@code null} for none + */ + public GenaiVertexV1Function getFunction() { + return function; + } + + /** + * A function that can be used by the model. + * @param function function or {@code null} for none + */ + public GenaiVertexV1Tool setFunction(GenaiVertexV1Function function) { + this.function = function; + return this; + } + + /** + * A tool that can be used by the model to search Google Maps. + * @return value or {@code null} for none + */ + public GenaiVertexV1GoogleMaps getGoogleMaps() { + return googleMaps; + } + + /** + * A tool that can be used by the model to search Google Maps. + * @param googleMaps googleMaps or {@code null} for none + */ + public GenaiVertexV1Tool setGoogleMaps(GenaiVertexV1GoogleMaps googleMaps) { + this.googleMaps = googleMaps; + return this; + } + + /** + * A tool that can be used by the model to search Google. + * @return value or {@code null} for none + */ + public GenaiVertexV1GoogleSearch getGoogleSearch() { + return googleSearch; + } + + /** + * A tool that can be used by the model to search Google. + * @param googleSearch googleSearch or {@code null} for none + */ + public GenaiVertexV1Tool setGoogleSearch(GenaiVertexV1GoogleSearch googleSearch) { + this.googleSearch = googleSearch; + return this; + } + + /** + * A MCPServer is a server that can be called by the model to perform actions. + * @return value or {@code null} for none + */ + public GenaiVertexV1McpServer getMcpServer() { + return mcpServer; + } + + /** + * A MCPServer is a server that can be called by the model to perform actions. + * @param mcpServer mcpServer or {@code null} for none + */ + public GenaiVertexV1Tool setMcpServer(GenaiVertexV1McpServer mcpServer) { + this.mcpServer = mcpServer; + return this; + } + + /** + * A tool that can be used by the model to retrieve files. + * @return value or {@code null} for none + */ + public GenaiVertexV1Retrieval getRetrieval() { + return retrieval; + } + + /** + * A tool that can be used by the model to retrieve files. + * @param retrieval retrieval or {@code null} for none + */ + public GenaiVertexV1Tool setRetrieval(GenaiVertexV1Retrieval retrieval) { + this.retrieval = retrieval; + return this; + } + + /** + * A tool that can be used by the model to fetch URL context. + * @return value or {@code null} for none + */ + public GenaiVertexV1UrlContext getUrlContext() { + return urlContext; + } + + /** + * A tool that can be used by the model to fetch URL context. + * @param urlContext urlContext or {@code null} for none + */ + public GenaiVertexV1Tool setUrlContext(GenaiVertexV1UrlContext urlContext) { + this.urlContext = urlContext; + return this; + } + + @Override + public GenaiVertexV1Tool set(String fieldName, Object value) { + return (GenaiVertexV1Tool) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1Tool clone() { + return (GenaiVertexV1Tool) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ToolCallStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ToolCallStep.java new file mode 100644 index 00000000000..e463abdee6d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ToolCallStep.java @@ -0,0 +1,286 @@ +/* + * 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; + +/** + * Tool call step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ToolCallStep extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1CodeExecutionCallStep codeExecutionCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1FileSearchCallStep fileSearchCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1FunctionCallStep functionCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1GoogleMapsCallStep googleMapsCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1GoogleSearchCallStep googleSearchCall; + + /** + * Required. A unique ID for this specific tool call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ProcessingCallStep processingCall; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1RetrievalCallStep retrievalCall; + + /** + * A signature hash for backend validation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signature; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1UrlContextCallStep urlContextCall; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1CodeExecutionCallStep getCodeExecutionCall() { + return codeExecutionCall; + } + + /** + * @param codeExecutionCall codeExecutionCall or {@code null} for none + */ + public GenaiVertexV1ToolCallStep setCodeExecutionCall(GenaiVertexV1CodeExecutionCallStep codeExecutionCall) { + this.codeExecutionCall = codeExecutionCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1FileSearchCallStep getFileSearchCall() { + return fileSearchCall; + } + + /** + * @param fileSearchCall fileSearchCall or {@code null} for none + */ + public GenaiVertexV1ToolCallStep setFileSearchCall(GenaiVertexV1FileSearchCallStep fileSearchCall) { + this.fileSearchCall = fileSearchCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1FunctionCallStep getFunctionCall() { + return functionCall; + } + + /** + * @param functionCall functionCall or {@code null} for none + */ + public GenaiVertexV1ToolCallStep setFunctionCall(GenaiVertexV1FunctionCallStep functionCall) { + this.functionCall = functionCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1GoogleMapsCallStep getGoogleMapsCall() { + return googleMapsCall; + } + + /** + * @param googleMapsCall googleMapsCall or {@code null} for none + */ + public GenaiVertexV1ToolCallStep setGoogleMapsCall(GenaiVertexV1GoogleMapsCallStep googleMapsCall) { + this.googleMapsCall = googleMapsCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1GoogleSearchCallStep getGoogleSearchCall() { + return googleSearchCall; + } + + /** + * @param googleSearchCall googleSearchCall or {@code null} for none + */ + public GenaiVertexV1ToolCallStep setGoogleSearchCall(GenaiVertexV1GoogleSearchCallStep googleSearchCall) { + this.googleSearchCall = googleSearchCall; + return this; + } + + /** + * Required. A unique ID for this specific tool call. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Required. A unique ID for this specific tool call. + * @param id id or {@code null} for none + */ + public GenaiVertexV1ToolCallStep setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ProcessingCallStep getProcessingCall() { + return processingCall; + } + + /** + * @param processingCall processingCall or {@code null} for none + */ + public GenaiVertexV1ToolCallStep setProcessingCall(GenaiVertexV1ProcessingCallStep processingCall) { + this.processingCall = processingCall; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1RetrievalCallStep getRetrievalCall() { + return retrievalCall; + } + + /** + * @param retrievalCall retrievalCall or {@code null} for none + */ + public GenaiVertexV1ToolCallStep setRetrievalCall(GenaiVertexV1RetrievalCallStep retrievalCall) { + this.retrievalCall = retrievalCall; + return this; + } + + /** + * A signature hash for backend validation. + * @see #decodeSignature() + * @return value or {@code null} for none + */ + public java.lang.String getSignature() { + return signature; + } + + /** + * A signature hash for backend validation. + * @see #getSignature() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignature() { + return com.google.api.client.util.Base64.decodeBase64(signature); + } + + /** + * A signature hash for backend validation. + * @see #encodeSignature() + * @param signature signature or {@code null} for none + */ + public GenaiVertexV1ToolCallStep setSignature(java.lang.String signature) { + this.signature = signature; + return this; + } + + /** + * A signature hash for backend validation. + * @see #setSignature() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1ToolCallStep encodeSignature(byte[] signature) { + this.signature = com.google.api.client.util.Base64.encodeBase64URLSafeString(signature); + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1UrlContextCallStep getUrlContextCall() { + return urlContextCall; + } + + /** + * @param urlContextCall urlContextCall or {@code null} for none + */ + public GenaiVertexV1ToolCallStep setUrlContextCall(GenaiVertexV1UrlContextCallStep urlContextCall) { + this.urlContextCall = urlContextCall; + return this; + } + + @Override + public GenaiVertexV1ToolCallStep set(String fieldName, Object value) { + return (GenaiVertexV1ToolCallStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ToolCallStep clone() { + return (GenaiVertexV1ToolCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ToolChoiceConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ToolChoiceConfig.java new file mode 100644 index 00000000000..560efd559fe --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ToolChoiceConfig.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.aiplatform.v1.model; + +/** + * The tool choice configuration containing allowed tools. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ToolChoiceConfig extends com.google.api.client.json.GenericJson { + + /** + * The allowed tools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1AllowedTools allowedTools; + + /** + * The allowed tools. + * @return value or {@code null} for none + */ + public GenaiVertexV1AllowedTools getAllowedTools() { + return allowedTools; + } + + /** + * The allowed tools. + * @param allowedTools allowedTools or {@code null} for none + */ + public GenaiVertexV1ToolChoiceConfig setAllowedTools(GenaiVertexV1AllowedTools allowedTools) { + this.allowedTools = allowedTools; + return this; + } + + @Override + public GenaiVertexV1ToolChoiceConfig set(String fieldName, Object value) { + return (GenaiVertexV1ToolChoiceConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ToolChoiceConfig clone() { + return (GenaiVertexV1ToolChoiceConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ToolResultStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ToolResultStep.java new file mode 100644 index 00000000000..47a9490639e --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1ToolResultStep.java @@ -0,0 +1,286 @@ +/* + * 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; + +/** + * Tool result step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1ToolResultStep extends com.google.api.client.json.GenericJson { + + /** + * Required. ID to match the ID from the function call block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String callId; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1CodeExecutionResultStep codeExecutionResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1FileSearchResultStep fileSearchResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1FunctionResultStep functionResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1GoogleMapsResultStep googleMapsResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1GoogleSearchResultStep googleSearchResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ProcessingResultStep processingResult; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1RetrievalResultStep retrievalResult; + + /** + * A signature hash for backend validation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signature; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1UrlContextResultStep urlContextResult; + + /** + * Required. ID to match the ID from the function call block. + * @return value or {@code null} for none + */ + public java.lang.String getCallId() { + return callId; + } + + /** + * Required. ID to match the ID from the function call block. + * @param callId callId or {@code null} for none + */ + public GenaiVertexV1ToolResultStep setCallId(java.lang.String callId) { + this.callId = callId; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1CodeExecutionResultStep getCodeExecutionResult() { + return codeExecutionResult; + } + + /** + * @param codeExecutionResult codeExecutionResult or {@code null} for none + */ + public GenaiVertexV1ToolResultStep setCodeExecutionResult(GenaiVertexV1CodeExecutionResultStep codeExecutionResult) { + this.codeExecutionResult = codeExecutionResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1FileSearchResultStep getFileSearchResult() { + return fileSearchResult; + } + + /** + * @param fileSearchResult fileSearchResult or {@code null} for none + */ + public GenaiVertexV1ToolResultStep setFileSearchResult(GenaiVertexV1FileSearchResultStep fileSearchResult) { + this.fileSearchResult = fileSearchResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1FunctionResultStep getFunctionResult() { + return functionResult; + } + + /** + * @param functionResult functionResult or {@code null} for none + */ + public GenaiVertexV1ToolResultStep setFunctionResult(GenaiVertexV1FunctionResultStep functionResult) { + this.functionResult = functionResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1GoogleMapsResultStep getGoogleMapsResult() { + return googleMapsResult; + } + + /** + * @param googleMapsResult googleMapsResult or {@code null} for none + */ + public GenaiVertexV1ToolResultStep setGoogleMapsResult(GenaiVertexV1GoogleMapsResultStep googleMapsResult) { + this.googleMapsResult = googleMapsResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1GoogleSearchResultStep getGoogleSearchResult() { + return googleSearchResult; + } + + /** + * @param googleSearchResult googleSearchResult or {@code null} for none + */ + public GenaiVertexV1ToolResultStep setGoogleSearchResult(GenaiVertexV1GoogleSearchResultStep googleSearchResult) { + this.googleSearchResult = googleSearchResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1ProcessingResultStep getProcessingResult() { + return processingResult; + } + + /** + * @param processingResult processingResult or {@code null} for none + */ + public GenaiVertexV1ToolResultStep setProcessingResult(GenaiVertexV1ProcessingResultStep processingResult) { + this.processingResult = processingResult; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1RetrievalResultStep getRetrievalResult() { + return retrievalResult; + } + + /** + * @param retrievalResult retrievalResult or {@code null} for none + */ + public GenaiVertexV1ToolResultStep setRetrievalResult(GenaiVertexV1RetrievalResultStep retrievalResult) { + this.retrievalResult = retrievalResult; + return this; + } + + /** + * A signature hash for backend validation. + * @see #decodeSignature() + * @return value or {@code null} for none + */ + public java.lang.String getSignature() { + return signature; + } + + /** + * A signature hash for backend validation. + * @see #getSignature() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignature() { + return com.google.api.client.util.Base64.decodeBase64(signature); + } + + /** + * A signature hash for backend validation. + * @see #encodeSignature() + * @param signature signature or {@code null} for none + */ + public GenaiVertexV1ToolResultStep setSignature(java.lang.String signature) { + this.signature = signature; + return this; + } + + /** + * A signature hash for backend validation. + * @see #setSignature() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1ToolResultStep encodeSignature(byte[] signature) { + this.signature = com.google.api.client.util.Base64.encodeBase64URLSafeString(signature); + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1UrlContextResultStep getUrlContextResult() { + return urlContextResult; + } + + /** + * @param urlContextResult urlContextResult or {@code null} for none + */ + public GenaiVertexV1ToolResultStep setUrlContextResult(GenaiVertexV1UrlContextResultStep urlContextResult) { + this.urlContextResult = urlContextResult; + return this; + } + + @Override + public GenaiVertexV1ToolResultStep set(String fieldName, Object value) { + return (GenaiVertexV1ToolResultStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1ToolResultStep clone() { + return (GenaiVertexV1ToolResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TranscriptionConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TranscriptionConfig.java new file mode 100644 index 00000000000..c7610e5a05b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1TranscriptionConfig.java @@ -0,0 +1,171 @@ +/* + * 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; + +/** + * Configuration for speech recognition (transcription). + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1TranscriptionConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. A list of phrases to bias the ASR model towards. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List adaptationPhrases; + + /** + * Optional. A list of custom vocabulary phrases to bias the speech recognition model toward + * recognizing specific terms. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List customVocabulary; + + /** + * Optional. Configures speaker diarization. Supported values: "speaker". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String diarizationMode; + + /** + * 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 languageCodes; + + /** + * Optional. The granularity of timestamps to include in the transcription output. Supported + * values: "word". If empty, no timestamps are generated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List timestampGranularities; + + /** + * Optional. A list of phrases to bias the ASR model towards. + * @return value or {@code null} for none + */ + public java.util.List getAdaptationPhrases() { + return adaptationPhrases; + } + + /** + * Optional. A list of phrases to bias the ASR model towards. + * @param adaptationPhrases adaptationPhrases or {@code null} for none + */ + public GenaiVertexV1TranscriptionConfig setAdaptationPhrases(java.util.List adaptationPhrases) { + this.adaptationPhrases = adaptationPhrases; + return this; + } + + /** + * Optional. A list of custom vocabulary phrases to bias the speech recognition model toward + * recognizing specific terms. + * @return value or {@code null} for none + */ + public java.util.List getCustomVocabulary() { + return customVocabulary; + } + + /** + * Optional. A list of custom vocabulary phrases to bias the speech recognition model toward + * recognizing specific terms. + * @param customVocabulary customVocabulary or {@code null} for none + */ + public GenaiVertexV1TranscriptionConfig setCustomVocabulary(java.util.List customVocabulary) { + this.customVocabulary = customVocabulary; + return this; + } + + /** + * Optional. Configures speaker diarization. Supported values: "speaker". + * @return value or {@code null} for none + */ + public java.lang.String getDiarizationMode() { + return diarizationMode; + } + + /** + * Optional. Configures speaker diarization. Supported values: "speaker". + * @param diarizationMode diarizationMode or {@code null} for none + */ + public GenaiVertexV1TranscriptionConfig setDiarizationMode(java.lang.String diarizationMode) { + this.diarizationMode = diarizationMode; + return this; + } + + /** + * 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 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 GenaiVertexV1TranscriptionConfig setLanguageCodes(java.util.List languageCodes) { + this.languageCodes = languageCodes; + return this; + } + + /** + * Optional. The granularity of timestamps to include in the transcription output. Supported + * values: "word". If empty, no timestamps are generated. + * @return value or {@code null} for none + */ + public java.util.List getTimestampGranularities() { + return timestampGranularities; + } + + /** + * Optional. The granularity of timestamps to include in the transcription output. Supported + * values: "word". If empty, no timestamps are generated. + * @param timestampGranularities timestampGranularities or {@code null} for none + */ + public GenaiVertexV1TranscriptionConfig setTimestampGranularities(java.util.List timestampGranularities) { + this.timestampGranularities = timestampGranularities; + return this; + } + + @Override + public GenaiVertexV1TranscriptionConfig set(String fieldName, Object value) { + return (GenaiVertexV1TranscriptionConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1TranscriptionConfig clone() { + return (GenaiVertexV1TranscriptionConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlCitation.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlCitation.java new file mode 100644 index 00000000000..7ab2688ce24 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlCitation.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * A URL citation annotation. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1UrlCitation extends com.google.api.client.json.GenericJson { + + /** + * The title of the URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * The URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * The title of the URL. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * The title of the URL. + * @param title title or {@code null} for none + */ + public GenaiVertexV1UrlCitation setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * The URL. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * The URL. + * @param url url or {@code null} for none + */ + public GenaiVertexV1UrlCitation setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GenaiVertexV1UrlCitation set(String fieldName, Object value) { + return (GenaiVertexV1UrlCitation) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1UrlCitation clone() { + return (GenaiVertexV1UrlCitation) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContext.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContext.java new file mode 100644 index 00000000000..0ccdb24f698 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContext.java @@ -0,0 +1,42 @@ +/* + * 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; + +/** + * A tool that can be used by the model to fetch URL context. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1UrlContext extends com.google.api.client.json.GenericJson { + + @Override + public GenaiVertexV1UrlContext set(String fieldName, Object value) { + return (GenaiVertexV1UrlContext) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1UrlContext clone() { + return (GenaiVertexV1UrlContext) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextCallContentUrlContextCallArguments.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextCallContentUrlContextCallArguments.java new file mode 100644 index 00000000000..20f6913ae39 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextCallContentUrlContextCallArguments.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.aiplatform.v1.model; + +/** + * The arguments to pass to the URL context. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1UrlContextCallContentUrlContextCallArguments extends com.google.api.client.json.GenericJson { + + /** + * The URLs to fetch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List urls; + + /** + * The URLs to fetch. + * @return value or {@code null} for none + */ + public java.util.List getUrls() { + return urls; + } + + /** + * The URLs to fetch. + * @param urls urls or {@code null} for none + */ + public GenaiVertexV1UrlContextCallContentUrlContextCallArguments setUrls(java.util.List urls) { + this.urls = urls; + return this; + } + + @Override + public GenaiVertexV1UrlContextCallContentUrlContextCallArguments set(String fieldName, Object value) { + return (GenaiVertexV1UrlContextCallContentUrlContextCallArguments) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1UrlContextCallContentUrlContextCallArguments clone() { + return (GenaiVertexV1UrlContextCallContentUrlContextCallArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextCallDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextCallDelta.java new file mode 100644 index 00000000000..878fdb9cb2d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextCallDelta.java @@ -0,0 +1,63 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1UrlContextCallDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1UrlContextCallDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1UrlContextCallContentUrlContextCallArguments arguments; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1UrlContextCallContentUrlContextCallArguments getArguments() { + return arguments; + } + + /** + * @param arguments arguments or {@code null} for none + */ + public GenaiVertexV1UrlContextCallDelta setArguments(GenaiVertexV1UrlContextCallContentUrlContextCallArguments arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiVertexV1UrlContextCallDelta set(String fieldName, Object value) { + return (GenaiVertexV1UrlContextCallDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1UrlContextCallDelta clone() { + return (GenaiVertexV1UrlContextCallDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextCallStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextCallStep.java new file mode 100644 index 00000000000..d1693fd3222 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextCallStep.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.aiplatform.v1.model; + +/** + * URL context call step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1UrlContextCallStep extends com.google.api.client.json.GenericJson { + + /** + * Required. The arguments to pass to the URL context. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1UrlContextCallStepUrlContextCallStepArguments arguments; + + /** + * Required. The arguments to pass to the URL context. + * @return value or {@code null} for none + */ + public GenaiVertexV1UrlContextCallStepUrlContextCallStepArguments getArguments() { + return arguments; + } + + /** + * Required. The arguments to pass to the URL context. + * @param arguments arguments or {@code null} for none + */ + public GenaiVertexV1UrlContextCallStep setArguments(GenaiVertexV1UrlContextCallStepUrlContextCallStepArguments arguments) { + this.arguments = arguments; + return this; + } + + @Override + public GenaiVertexV1UrlContextCallStep set(String fieldName, Object value) { + return (GenaiVertexV1UrlContextCallStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1UrlContextCallStep clone() { + return (GenaiVertexV1UrlContextCallStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextCallStepUrlContextCallStepArguments.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextCallStepUrlContextCallStepArguments.java new file mode 100644 index 00000000000..bd9c3d58f2b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextCallStepUrlContextCallStepArguments.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.aiplatform.v1.model; + +/** + * The arguments to pass to the URL context. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1UrlContextCallStepUrlContextCallStepArguments extends com.google.api.client.json.GenericJson { + + /** + * The URLs to fetch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List urls; + + /** + * The URLs to fetch. + * @return value or {@code null} for none + */ + public java.util.List getUrls() { + return urls; + } + + /** + * The URLs to fetch. + * @param urls urls or {@code null} for none + */ + public GenaiVertexV1UrlContextCallStepUrlContextCallStepArguments setUrls(java.util.List urls) { + this.urls = urls; + return this; + } + + @Override + public GenaiVertexV1UrlContextCallStepUrlContextCallStepArguments set(String fieldName, Object value) { + return (GenaiVertexV1UrlContextCallStepUrlContextCallStepArguments) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1UrlContextCallStepUrlContextCallStepArguments clone() { + return (GenaiVertexV1UrlContextCallStepUrlContextCallStepArguments) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextResultContentUrlContextResult.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextResultContentUrlContextResult.java new file mode 100644 index 00000000000..a335e8ff46d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextResultContentUrlContextResult.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * The result of the URL context. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1UrlContextResultContentUrlContextResult extends com.google.api.client.json.GenericJson { + + /** + * The status of the URL retrieval. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * The URL that was fetched. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * The status of the URL retrieval. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * The status of the URL retrieval. + * @param status status or {@code null} for none + */ + public GenaiVertexV1UrlContextResultContentUrlContextResult setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * The URL that was fetched. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * The URL that was fetched. + * @param url url or {@code null} for none + */ + public GenaiVertexV1UrlContextResultContentUrlContextResult setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GenaiVertexV1UrlContextResultContentUrlContextResult set(String fieldName, Object value) { + return (GenaiVertexV1UrlContextResultContentUrlContextResult) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1UrlContextResultContentUrlContextResult clone() { + return (GenaiVertexV1UrlContextResultContentUrlContextResult) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextResultDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextResultDelta.java new file mode 100644 index 00000000000..49688d0f198 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextResultDelta.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1UrlContextResultDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1UrlContextResultDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + static { + // hack to force ProGuard to consider GenaiVertexV1UrlContextResultContentUrlContextResult used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GenaiVertexV1UrlContextResultContentUrlContextResult.class); + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * @param isError isError or {@code null} for none + */ + public GenaiVertexV1UrlContextResultDelta setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public GenaiVertexV1UrlContextResultDelta setResult(java.util.List result) { + this.result = result; + return this; + } + + @Override + public GenaiVertexV1UrlContextResultDelta set(String fieldName, Object value) { + return (GenaiVertexV1UrlContextResultDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1UrlContextResultDelta clone() { + return (GenaiVertexV1UrlContextResultDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextResultStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextResultStep.java new file mode 100644 index 00000000000..9a0af6463e2 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextResultStep.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * URL context result step. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1UrlContextResultStep extends com.google.api.client.json.GenericJson { + + /** + * Whether the URL context resulted in an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isError; + + /** + * Required. The results of the URL context. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + /** + * Whether the URL context resulted in an error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsError() { + return isError; + } + + /** + * Whether the URL context resulted in an error. + * @param isError isError or {@code null} for none + */ + public GenaiVertexV1UrlContextResultStep setIsError(java.lang.Boolean isError) { + this.isError = isError; + return this; + } + + /** + * Required. The results of the URL context. + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * Required. The results of the URL context. + * @param result result or {@code null} for none + */ + public GenaiVertexV1UrlContextResultStep setResult(java.util.List result) { + this.result = result; + return this; + } + + @Override + public GenaiVertexV1UrlContextResultStep set(String fieldName, Object value) { + return (GenaiVertexV1UrlContextResultStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1UrlContextResultStep clone() { + return (GenaiVertexV1UrlContextResultStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextResultStepUrlContextResultItem.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextResultStepUrlContextResultItem.java new file mode 100644 index 00000000000..51a27dccc82 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UrlContextResultStepUrlContextResultItem.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * The result of the URL context. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1UrlContextResultStepUrlContextResultItem extends com.google.api.client.json.GenericJson { + + /** + * The status of the URL retrieval. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * The URL that was fetched. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * The status of the URL retrieval. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * The status of the URL retrieval. + * @param status status or {@code null} for none + */ + public GenaiVertexV1UrlContextResultStepUrlContextResultItem setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * The URL that was fetched. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * The URL that was fetched. + * @param url url or {@code null} for none + */ + public GenaiVertexV1UrlContextResultStepUrlContextResultItem setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public GenaiVertexV1UrlContextResultStepUrlContextResultItem set(String fieldName, Object value) { + return (GenaiVertexV1UrlContextResultStepUrlContextResultItem) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1UrlContextResultStepUrlContextResultItem clone() { + return (GenaiVertexV1UrlContextResultStepUrlContextResultItem) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UserInputStep.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UserInputStep.java new file mode 100644 index 00000000000..1306aefa888 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1UserInputStep.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Input provided by the user. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1UserInputStep extends com.google.api.client.json.GenericJson { + + /** + * The content of the step. An array of Content objects. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ContentList contentList; + + /** + * The content of the step. A single string. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String contentString; + + /** + * The content of the step. An array of Content objects. + * @return value or {@code null} for none + */ + public GenaiVertexV1ContentList getContentList() { + return contentList; + } + + /** + * The content of the step. An array of Content objects. + * @param contentList contentList or {@code null} for none + */ + public GenaiVertexV1UserInputStep setContentList(GenaiVertexV1ContentList contentList) { + this.contentList = contentList; + return this; + } + + /** + * The content of the step. A single string. + * @return value or {@code null} for none + */ + public java.lang.String getContentString() { + return contentString; + } + + /** + * The content of the step. A single string. + * @param contentString contentString or {@code null} for none + */ + public GenaiVertexV1UserInputStep setContentString(java.lang.String contentString) { + this.contentString = contentString; + return this; + } + + @Override + public GenaiVertexV1UserInputStep set(String fieldName, Object value) { + return (GenaiVertexV1UserInputStep) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1UserInputStep clone() { + return (GenaiVertexV1UserInputStep) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Value.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Value.java new file mode 100644 index 00000000000..e403a71be5a --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1Value.java @@ -0,0 +1,212 @@ +/* + * 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; + +/** + * `Value` represents a dynamically typed value which can be either null, a number, a string, a + * boolean, a recursive struct value, or a list of values. A producer of value is expected to set + * one of these variants. Absence of any variant indicates an error. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1Value extends com.google.api.client.json.GenericJson { + + /** + * Represents a boolean value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean boolValue; + + /** + * Represents rich content (text, image, etc.). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Content contentValue; + + /** + * Represents a repeated `Value`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1ListValue listValue; + + /** + * Represents a null value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nullValue; + + /** + * Represents a double value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double numberValue; + + /** + * Represents a string value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stringValue; + + /** + * Represents a structured value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1Struct structValue; + + /** + * Represents a boolean value. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBoolValue() { + return boolValue; + } + + /** + * Represents a boolean value. + * @param boolValue boolValue or {@code null} for none + */ + public GenaiVertexV1Value setBoolValue(java.lang.Boolean boolValue) { + this.boolValue = boolValue; + return this; + } + + /** + * Represents rich content (text, image, etc.). + * @return value or {@code null} for none + */ + public GenaiVertexV1Content getContentValue() { + return contentValue; + } + + /** + * Represents rich content (text, image, etc.). + * @param contentValue contentValue or {@code null} for none + */ + public GenaiVertexV1Value setContentValue(GenaiVertexV1Content contentValue) { + this.contentValue = contentValue; + return this; + } + + /** + * Represents a repeated `Value`. + * @return value or {@code null} for none + */ + public GenaiVertexV1ListValue getListValue() { + return listValue; + } + + /** + * Represents a repeated `Value`. + * @param listValue listValue or {@code null} for none + */ + public GenaiVertexV1Value setListValue(GenaiVertexV1ListValue listValue) { + this.listValue = listValue; + return this; + } + + /** + * Represents a null value. + * @return value or {@code null} for none + */ + public java.lang.String getNullValue() { + return nullValue; + } + + /** + * Represents a null value. + * @param nullValue nullValue or {@code null} for none + */ + public GenaiVertexV1Value setNullValue(java.lang.String nullValue) { + this.nullValue = nullValue; + return this; + } + + /** + * Represents a double value. + * @return value or {@code null} for none + */ + public java.lang.Double getNumberValue() { + return numberValue; + } + + /** + * Represents a double value. + * @param numberValue numberValue or {@code null} for none + */ + public GenaiVertexV1Value setNumberValue(java.lang.Double numberValue) { + this.numberValue = numberValue; + return this; + } + + /** + * Represents a string value. + * @return value or {@code null} for none + */ + public java.lang.String getStringValue() { + return stringValue; + } + + /** + * Represents a string value. + * @param stringValue stringValue or {@code null} for none + */ + public GenaiVertexV1Value setStringValue(java.lang.String stringValue) { + this.stringValue = stringValue; + return this; + } + + /** + * Represents a structured value. + * @return value or {@code null} for none + */ + public GenaiVertexV1Struct getStructValue() { + return structValue; + } + + /** + * Represents a structured value. + * @param structValue structValue or {@code null} for none + */ + public GenaiVertexV1Value setStructValue(GenaiVertexV1Struct structValue) { + this.structValue = structValue; + return this; + } + + @Override + public GenaiVertexV1Value set(String fieldName, Object value) { + return (GenaiVertexV1Value) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1Value clone() { + return (GenaiVertexV1Value) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VertexAISearchConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VertexAISearchConfig.java new file mode 100644 index 00000000000..a8dc0ef8ed2 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VertexAISearchConfig.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Used to specify configuration for VertexAISearch. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1VertexAISearchConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Used to specify Vertex AI Search datastores. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List datastores; + + /** + * Optional. Used to specify Vertex AI Search engine. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String engine; + + /** + * Optional. Used to specify Vertex AI Search datastores. + * @return value or {@code null} for none + */ + public java.util.List getDatastores() { + return datastores; + } + + /** + * Optional. Used to specify Vertex AI Search datastores. + * @param datastores datastores or {@code null} for none + */ + public GenaiVertexV1VertexAISearchConfig setDatastores(java.util.List datastores) { + this.datastores = datastores; + return this; + } + + /** + * Optional. Used to specify Vertex AI Search engine. + * @return value or {@code null} for none + */ + public java.lang.String getEngine() { + return engine; + } + + /** + * Optional. Used to specify Vertex AI Search engine. + * @param engine engine or {@code null} for none + */ + public GenaiVertexV1VertexAISearchConfig setEngine(java.lang.String engine) { + this.engine = engine; + return this; + } + + @Override + public GenaiVertexV1VertexAISearchConfig set(String fieldName, Object value) { + return (GenaiVertexV1VertexAISearchConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1VertexAISearchConfig clone() { + return (GenaiVertexV1VertexAISearchConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoConfig.java new file mode 100644 index 00000000000..ba72164ba92 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoConfig.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.aiplatform.v1.model; + +/** + * Configuration options for video generation. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1VideoConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional task mode for video generation. If not specified, the model automatically determines + * the appropriate mode based on the provided text prompt and input media. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String task; + + /** + * Optional task mode for video generation. If not specified, the model automatically determines + * the appropriate mode based on the provided text prompt and input media. + * @return value or {@code null} for none + */ + public java.lang.String getTask() { + return task; + } + + /** + * Optional task mode for video generation. If not specified, the model automatically determines + * the appropriate mode based on the provided text prompt and input media. + * @param task task or {@code null} for none + */ + public GenaiVertexV1VideoConfig setTask(java.lang.String task) { + this.task = task; + return this; + } + + @Override + public GenaiVertexV1VideoConfig set(String fieldName, Object value) { + return (GenaiVertexV1VideoConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1VideoConfig clone() { + return (GenaiVertexV1VideoConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoContent.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoContent.java new file mode 100644 index 00000000000..7ebf366253d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoContent.java @@ -0,0 +1,238 @@ +/* + * 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; + +/** + * A video content block. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1VideoContent extends com.google.api.client.json.GenericJson { + + /** + * The video content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * Flexible MIME type string of the video, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeTypeString; + + /** + * A user-defined name for this content block. Can be referenced by the model in the final + * response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1VideoContentMediaProcessing processingConfig; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String processingType; + + /** + * The resolution of the media. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resolution; + + /** + * The URI of the video. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * The video content. + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + * The video content. + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * The video content. + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiVertexV1VideoContent setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + * The video content. + * @see #setData() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1VideoContent encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * Flexible MIME type string of the video, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * @return value or {@code null} for none + */ + public java.lang.String getMimeTypeString() { + return mimeTypeString; + } + + /** + * Flexible MIME type string of the video, superseding mime_type = 1. Note: Bespoke logic in the + * GAOS parser/serializer maps this to the "mime_type" JSON key. + * @param mimeTypeString mimeTypeString or {@code null} for none + */ + public GenaiVertexV1VideoContent setMimeTypeString(java.lang.String mimeTypeString) { + this.mimeTypeString = mimeTypeString; + return this; + } + + /** + * A user-defined name for this content block. Can be referenced by the model in the final + * response. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * A user-defined name for this content block. Can be referenced by the model in the final + * response. + * @param name name or {@code null} for none + */ + public GenaiVertexV1VideoContent setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1VideoContentMediaProcessing getProcessingConfig() { + return processingConfig; + } + + /** + * @param processingConfig processingConfig or {@code null} for none + */ + public GenaiVertexV1VideoContent setProcessingConfig(GenaiVertexV1VideoContentMediaProcessing processingConfig) { + this.processingConfig = processingConfig; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getProcessingType() { + return processingType; + } + + /** + * @param processingType processingType or {@code null} for none + */ + public GenaiVertexV1VideoContent setProcessingType(java.lang.String processingType) { + this.processingType = processingType; + return this; + } + + /** + * The resolution of the media. + * @return value or {@code null} for none + */ + public java.lang.String getResolution() { + return resolution; + } + + /** + * The resolution of the media. + * @param resolution resolution or {@code null} for none + */ + public GenaiVertexV1VideoContent setResolution(java.lang.String resolution) { + this.resolution = resolution; + return this; + } + + /** + * The URI of the video. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * The URI of the video. + * @param uri uri or {@code null} for none + */ + public GenaiVertexV1VideoContent setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiVertexV1VideoContent set(String fieldName, Object value) { + return (GenaiVertexV1VideoContent) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1VideoContent clone() { + return (GenaiVertexV1VideoContent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoContentMediaProcessing.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoContentMediaProcessing.java new file mode 100644 index 00000000000..2a03f1faf73 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoContentMediaProcessing.java @@ -0,0 +1,63 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1VideoContentMediaProcessing. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1VideoContentMediaProcessing extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("static") + private GenaiVertexV1VideoContentStaticMediaProcessing static__; + + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1VideoContentStaticMediaProcessing getStatic() { + return static__; + } + + /** + * @param static__ static__ or {@code null} for none + */ + public GenaiVertexV1VideoContentMediaProcessing setStatic(GenaiVertexV1VideoContentStaticMediaProcessing static__) { + this.static__ = static__; + return this; + } + + @Override + public GenaiVertexV1VideoContentMediaProcessing set(String fieldName, Object value) { + return (GenaiVertexV1VideoContentMediaProcessing) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1VideoContentMediaProcessing clone() { + return (GenaiVertexV1VideoContentMediaProcessing) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoContentStaticMediaProcessing.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoContentStaticMediaProcessing.java new file mode 100644 index 00000000000..6f01c5356ee --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoContentStaticMediaProcessing.java @@ -0,0 +1,120 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1VideoContentStaticMediaProcessing. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1VideoContentStaticMediaProcessing extends com.google.api.client.json.GenericJson { + + /** + * Optional. Segment end time. Specified as a decimal number of seconds followed by an 's' suffix, + * e.g., "30s". Must be non-negative and greater than `start_offset` if `start_offset` is set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endOffset; + + /** + * Optional. Video frame-rate sampling density. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double fps; + + /** + * Optional. Segment start time. Specified as a decimal number of seconds followed by an 's' + * suffix, e.g., "10.5s". Must be non-negative. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startOffset; + + /** + * Optional. Segment end time. Specified as a decimal number of seconds followed by an 's' suffix, + * e.g., "30s". Must be non-negative and greater than `start_offset` if `start_offset` is set. + * @return value or {@code null} for none + */ + public String getEndOffset() { + return endOffset; + } + + /** + * Optional. Segment end time. Specified as a decimal number of seconds followed by an 's' suffix, + * e.g., "30s". Must be non-negative and greater than `start_offset` if `start_offset` is set. + * @param endOffset endOffset or {@code null} for none + */ + public GenaiVertexV1VideoContentStaticMediaProcessing setEndOffset(String endOffset) { + this.endOffset = endOffset; + return this; + } + + /** + * Optional. Video frame-rate sampling density. + * @return value or {@code null} for none + */ + public java.lang.Double getFps() { + return fps; + } + + /** + * Optional. Video frame-rate sampling density. + * @param fps fps or {@code null} for none + */ + public GenaiVertexV1VideoContentStaticMediaProcessing setFps(java.lang.Double fps) { + this.fps = fps; + return this; + } + + /** + * Optional. Segment start time. Specified as a decimal number of seconds followed by an 's' + * suffix, e.g., "10.5s". Must be non-negative. + * @return value or {@code null} for none + */ + public String getStartOffset() { + return startOffset; + } + + /** + * Optional. Segment start time. Specified as a decimal number of seconds followed by an 's' + * suffix, e.g., "10.5s". Must be non-negative. + * @param startOffset startOffset or {@code null} for none + */ + public GenaiVertexV1VideoContentStaticMediaProcessing setStartOffset(String startOffset) { + this.startOffset = startOffset; + return this; + } + + @Override + public GenaiVertexV1VideoContentStaticMediaProcessing set(String fieldName, Object value) { + return (GenaiVertexV1VideoContentStaticMediaProcessing) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1VideoContentStaticMediaProcessing clone() { + return (GenaiVertexV1VideoContentStaticMediaProcessing) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoDelta.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoDelta.java new file mode 100644 index 00000000000..bdba36f1464 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoDelta.java @@ -0,0 +1,157 @@ +/* + * 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; + +/** + * Model definition for GenaiVertexV1VideoDelta. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1VideoDelta extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * The resolution of the media. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resolution; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * @see #encodeData() + * @param data data or {@code null} for none + */ + public GenaiVertexV1VideoDelta setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + + * @see #setData() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1VideoDelta encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * @param mimeType mimeType or {@code null} for none + */ + public GenaiVertexV1VideoDelta setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + /** + * The resolution of the media. + * @return value or {@code null} for none + */ + public java.lang.String getResolution() { + return resolution; + } + + /** + * The resolution of the media. + * @param resolution resolution or {@code null} for none + */ + public GenaiVertexV1VideoDelta setResolution(java.lang.String resolution) { + this.resolution = resolution; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * @param uri uri or {@code null} for none + */ + public GenaiVertexV1VideoDelta setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GenaiVertexV1VideoDelta set(String fieldName, Object value) { + return (GenaiVertexV1VideoDelta) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1VideoDelta clone() { + return (GenaiVertexV1VideoDelta) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoResponseFormat.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoResponseFormat.java new file mode 100644 index 00000000000..a8992872f39 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1VideoResponseFormat.java @@ -0,0 +1,162 @@ +/* + * 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; + +/** + * Configuration for video output format. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1VideoResponseFormat extends com.google.api.client.json.GenericJson { + + /** + * The aspect ratio for the video output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String aspectRatio; + + /** + * The delivery mode for the video output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String delivery; + + /** + * The duration for the video output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String duration; + + /** + * The Cloud Storage URI to store the video output. Required for Vertex if delivery mode is URI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsUri; + + /** + * The video output resolution. Defaults to 720p. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resolution; + + /** + * The aspect ratio for the video output. + * @return value or {@code null} for none + */ + public java.lang.String getAspectRatio() { + return aspectRatio; + } + + /** + * The aspect ratio for the video output. + * @param aspectRatio aspectRatio or {@code null} for none + */ + public GenaiVertexV1VideoResponseFormat setAspectRatio(java.lang.String aspectRatio) { + this.aspectRatio = aspectRatio; + return this; + } + + /** + * The delivery mode for the video output. + * @return value or {@code null} for none + */ + public java.lang.String getDelivery() { + return delivery; + } + + /** + * The delivery mode for the video output. + * @param delivery delivery or {@code null} for none + */ + public GenaiVertexV1VideoResponseFormat setDelivery(java.lang.String delivery) { + this.delivery = delivery; + return this; + } + + /** + * The duration for the video output. + * @return value or {@code null} for none + */ + public String getDuration() { + return duration; + } + + /** + * The duration for the video output. + * @param duration duration or {@code null} for none + */ + public GenaiVertexV1VideoResponseFormat setDuration(String duration) { + this.duration = duration; + return this; + } + + /** + * The Cloud Storage URI to store the video output. Required for Vertex if delivery mode is URI. + * @return value or {@code null} for none + */ + public java.lang.String getGcsUri() { + return gcsUri; + } + + /** + * The Cloud Storage URI to store the video output. Required for Vertex if delivery mode is URI. + * @param gcsUri gcsUri or {@code null} for none + */ + public GenaiVertexV1VideoResponseFormat setGcsUri(java.lang.String gcsUri) { + this.gcsUri = gcsUri; + return this; + } + + /** + * The video output resolution. Defaults to 720p. + * @return value or {@code null} for none + */ + public java.lang.String getResolution() { + return resolution; + } + + /** + * The video output resolution. Defaults to 720p. + * @param resolution resolution or {@code null} for none + */ + public GenaiVertexV1VideoResponseFormat setResolution(java.lang.String resolution) { + this.resolution = resolution; + return this; + } + + @Override + public GenaiVertexV1VideoResponseFormat set(String fieldName, Object value) { + return (GenaiVertexV1VideoResponseFormat) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1VideoResponseFormat clone() { + return (GenaiVertexV1VideoResponseFormat) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1WordInfo.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1WordInfo.java new file mode 100644 index 00000000000..8f92313c568 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GenaiVertexV1WordInfo.java @@ -0,0 +1,148 @@ +/* + * 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; + +/** + * Word-level ASR annotation for transcription output. Carries the word text, optional timing, and + * optional speaker attribution. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenaiVertexV1WordInfo extends com.google.api.client.json.GenericJson { + + /** + * End offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endOffset; + + /** + * Optional. Speaker label for this word (e.g. "spk_1", "spk_2"). Present when diarization_mode is + * set in TranscriptionConfig. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String speaker; + + /** + * Start offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startOffset; + + /** + * The transcribed word. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * End offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * @return value or {@code null} for none + */ + public String getEndOffset() { + return endOffset; + } + + /** + * End offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * @param endOffset endOffset or {@code null} for none + */ + public GenaiVertexV1WordInfo setEndOffset(String endOffset) { + this.endOffset = endOffset; + return this; + } + + /** + * Optional. Speaker label for this word (e.g. "spk_1", "spk_2"). Present when diarization_mode is + * set in TranscriptionConfig. + * @return value or {@code null} for none + */ + public java.lang.String getSpeaker() { + return speaker; + } + + /** + * Optional. Speaker label for this word (e.g. "spk_1", "spk_2"). Present when diarization_mode is + * set in TranscriptionConfig. + * @param speaker speaker or {@code null} for none + */ + public GenaiVertexV1WordInfo setSpeaker(java.lang.String speaker) { + this.speaker = speaker; + return this; + } + + /** + * Start offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * @return value or {@code null} for none + */ + public String getStartOffset() { + return startOffset; + } + + /** + * Start offset in time of the word relative to the start of the audio. Present when + * timestamp_granularities contains "word". + * @param startOffset startOffset or {@code null} for none + */ + public GenaiVertexV1WordInfo setStartOffset(String startOffset) { + this.startOffset = startOffset; + return this; + } + + /** + * The transcribed word. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * The transcribed word. + * @param text text or {@code null} for none + */ + public GenaiVertexV1WordInfo setText(java.lang.String text) { + this.text = text; + return this; + } + + @Override + public GenaiVertexV1WordInfo set(String fieldName, Object value) { + return (GenaiVertexV1WordInfo) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1WordInfo clone() { + return (GenaiVertexV1WordInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Agent.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Agent.java index 66c2e80b257..f67430e58a9 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Agent.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Agent.java @@ -62,6 +62,13 @@ public final class GoogleCloudAiplatformV1Agent extends com.google.api.client.js @com.google.api.client.util.Key private java.lang.String description; + /** + * Output only. The resolved Agent Identity (SPIFFE principal) of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String effectiveIdentity; + /** * Immutable. The user-specified ID for the agent. This ID becomes the final component of the * agent resource name. If not provided, Vertex AI will generate a value for this ID. The ID can @@ -208,6 +215,23 @@ public GoogleCloudAiplatformV1Agent setDescription(java.lang.String description) return this; } + /** + * Output only. The resolved Agent Identity (SPIFFE principal) of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getEffectiveIdentity() { + return effectiveIdentity; + } + + /** + * Output only. The resolved Agent Identity (SPIFFE principal) of the agent. + * @param effectiveIdentity effectiveIdentity or {@code null} for none + */ + public GoogleCloudAiplatformV1Agent setEffectiveIdentity(java.lang.String effectiveIdentity) { + this.effectiveIdentity = effectiveIdentity; + return this; + } + /** * Immutable. The user-specified ID for the agent. This ID becomes the final component of the * agent resource name. If not provided, Vertex AI will generate a value for this ID. The ID can diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Candidate.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Candidate.java index ee85f68b54e..793750a9d2b 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Candidate.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Candidate.java @@ -52,6 +52,15 @@ public final class GoogleCloudAiplatformV1Candidate extends com.google.api.clien @com.google.api.client.util.Key private GoogleCloudAiplatformV1Content content; + /** + * Output only. An optional opaque continuation token returned when `finish_reason` is + * `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to + * continue generation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String continuationToken; + /** * Output only. Describes the reason the model stopped generating tokens in more detail. This * field is returned only when `finish_reason` is set. @@ -164,6 +173,59 @@ public GoogleCloudAiplatformV1Candidate setContent(GoogleCloudAiplatformV1Conten return this; } + /** + * Output only. An optional opaque continuation token returned when `finish_reason` is + * `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to + * continue generation. + * @see #decodeContinuationToken() + * @return value or {@code null} for none + */ + public java.lang.String getContinuationToken() { + return continuationToken; + } + + /** + * Output only. An optional opaque continuation token returned when `finish_reason` is + * `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to + * continue generation. + * @see #getContinuationToken() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeContinuationToken() { + return com.google.api.client.util.Base64.decodeBase64(continuationToken); + } + + /** + * Output only. An optional opaque continuation token returned when `finish_reason` is + * `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to + * continue generation. + * @see #encodeContinuationToken() + * @param continuationToken continuationToken or {@code null} for none + */ + public GoogleCloudAiplatformV1Candidate setContinuationToken(java.lang.String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + + /** + * Output only. An optional opaque continuation token returned when `finish_reason` is + * `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to + * continue generation. + * @see #setContinuationToken() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GoogleCloudAiplatformV1Candidate encodeContinuationToken(byte[] continuationToken) { + this.continuationToken = com.google.api.client.util.Base64.encodeBase64URLSafeString(continuationToken); + return this; + } + /** * Output only. Describes the reason the model stopped generating tokens in more detail. This * field is returned only when `finish_reason` is set. diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationInstance.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationInstance.java index e6847db852e..64d7f4275f1 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationInstance.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluationInstance.java @@ -37,6 +37,13 @@ public final class GoogleCloudAiplatformV1EvaluationInstance extends com.google. @com.google.api.client.util.Key private GoogleCloudAiplatformV1EvaluationInstanceDeprecatedAgentData agentData; + /** + * Optional. Data used for agent evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1AgentData agentEvalData; + /** * Optional. Source for populating `AgentData` from an Interactions API interaction. If set, no * other agent data source fields (`cloud_trace_agent_data_source`, `agent_eval_data`, @@ -103,6 +110,23 @@ public GoogleCloudAiplatformV1EvaluationInstance setAgentData(GoogleCloudAiplatf return this; } + /** + * Optional. Data used for agent evaluation. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1AgentData getAgentEvalData() { + return agentEvalData; + } + + /** + * Optional. Data used for agent evaluation. + * @param agentEvalData agentEvalData or {@code null} for none + */ + public GoogleCloudAiplatformV1EvaluationInstance setAgentEvalData(GoogleCloudAiplatformV1AgentData agentEvalData) { + this.agentEvalData = agentEvalData; + return this; + } + /** * Optional. Source for populating `AgentData` from an Interactions API interaction. If set, no * other agent data source fields (`cloud_trace_agent_data_source`, `agent_eval_data`, diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ModelContainerSpec.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ModelContainerSpec.java index 416d1f17f84..d21f132796b 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ModelContainerSpec.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ModelContainerSpec.java @@ -106,7 +106,9 @@ public final class GoogleCloudAiplatformV1ModelContainerSpec extends com.google. * "$(VAR_1) bar" } ] ``` If you switch the order of the variables in the example, then the * expansion does not occur. This field corresponds to the `env` field of the Kubernetes * Containers [v1 core API](https://kubernetes.io/docs/reference/generated/kubernetes- - * api/v1.23/#container-v1-core). + * api/v1.23/#container-v1-core). At most 200 environment variables can be specified. Each + * variable (`NAME=value`) must be smaller than 128 KiB, and the total size of all variables must + * not exceed 512 KiB. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -393,7 +395,9 @@ public GoogleCloudAiplatformV1ModelContainerSpec setDeploymentTimeout(String dep * "$(VAR_1) bar" } ] ``` If you switch the order of the variables in the example, then the * expansion does not occur. This field corresponds to the `env` field of the Kubernetes * Containers [v1 core API](https://kubernetes.io/docs/reference/generated/kubernetes- - * api/v1.23/#container-v1-core). + * api/v1.23/#container-v1-core). At most 200 environment variables can be specified. Each + * variable (`NAME=value`) must be smaller than 128 KiB, and the total size of all variables must + * not exceed 512 KiB. * @return value or {@code null} for none */ public java.util.List getEnv() { @@ -409,7 +413,9 @@ public java.util.List getEnv() { * "$(VAR_1) bar" } ] ``` If you switch the order of the variables in the example, then the * expansion does not occur. This field corresponds to the `env` field of the Kubernetes * Containers [v1 core API](https://kubernetes.io/docs/reference/generated/kubernetes- - * api/v1.23/#container-v1-core). + * api/v1.23/#container-v1-core). At most 200 environment variables can be specified. Each + * variable (`NAME=value`) must be smaller than 128 KiB, and the total size of all variables must + * not exceed 512 KiB. * @param env env or {@code null} for none */ public GoogleCloudAiplatformV1ModelContainerSpec setEnv(java.util.List env) { diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilitySessionScopePredicate.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilitySessionScopePredicate.java index c041cb5d4dd..11b541fc93e 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilitySessionScopePredicate.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilitySessionScopePredicate.java @@ -50,6 +50,15 @@ public final class GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilitySessi @com.google.api.client.util.Key private GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityNumericPredicate modelCalls; + /** + * Filter on the versions that served a session (`service.version` OTel resource attribute); + * matches if any of them is listed. At most one is allowed. On Vertex AI Agent Engine, this is + * the runtime revision id, currently set only for agents created via v1beta1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityStringPredicate serviceVersion; + /** * Filter on the number of tool call errors within a session. * The value may be {@code null}. @@ -129,6 +138,27 @@ public GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilitySessionScopePredi return this; } + /** + * Filter on the versions that served a session (`service.version` OTel resource attribute); + * matches if any of them is listed. At most one is allowed. On Vertex AI Agent Engine, this is + * the runtime revision id, currently set only for agents created via v1beta1. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityStringPredicate getServiceVersion() { + return serviceVersion; + } + + /** + * Filter on the versions that served a session (`service.version` OTel resource attribute); + * matches if any of them is listed. At most one is allowed. On Vertex AI Agent Engine, this is + * the runtime revision id, currently set only for agents created via v1beta1. + * @param serviceVersion serviceVersion or {@code null} for none + */ + public GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilitySessionScopePredicate setServiceVersion(GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityStringPredicate serviceVersion) { + this.serviceVersion = serviceVersion; + return this; + } + /** * Filter on the number of tool call errors within a session. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityStringPredicate.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityStringPredicate.java new file mode 100644 index 00000000000..8ae6396fa3a --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityStringPredicate.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.aiplatform.v1.model; + +/** + * Defines a predicate for filtering based on a string value. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityStringPredicate extends com.google.api.client.json.GenericJson { + + /** + * Required. The values to match exactly (case-sensitive). Requires 1 to 20 values, each at most + * 128 characters long. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * Required. The values to match exactly (case-sensitive). Requires 1 to 20 values, each at most + * 128 characters long. + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * Required. The values to match exactly (case-sensitive). Requires 1 to 20 values, each at most + * 128 characters long. + * @param values values or {@code null} for none + */ + public GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityStringPredicate setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityStringPredicate set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityStringPredicate) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityStringPredicate clone() { + return (GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityStringPredicate) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java index e04da86b62f..3a1d0f400ef 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java @@ -36,6 +36,15 @@ public final class GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityTrace @com.google.api.client.util.Key private GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityNumericPredicate duration; + /** + * Filter on the version that served a trace (`service.version` OTel resource attribute). At most + * one is allowed. On Vertex AI Agent Engine, this is the runtime revision id, currently set only + * for agents created via v1beta1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityStringPredicate serviceVersion; + /** * Filter on the total token usage within a trace. * The value may be {@code null}. @@ -60,6 +69,27 @@ public GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityTraceScopePredica return this; } + /** + * Filter on the version that served a trace (`service.version` OTel resource attribute). At most + * one is allowed. On Vertex AI Agent Engine, this is the runtime revision id, currently set only + * for agents created via v1beta1. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityStringPredicate getServiceVersion() { + return serviceVersion; + } + + /** + * Filter on the version that served a trace (`service.version` OTel resource attribute). At most + * one is allowed. On Vertex AI Agent Engine, this is the runtime revision id, currently set only + * for agents created via v1beta1. + * @param serviceVersion serviceVersion or {@code null} for none + */ + public GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityTraceScopePredicate setServiceVersion(GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityStringPredicate serviceVersion) { + this.serviceVersion = serviceVersion; + return this; + } + /** * Filter on the total token usage within a trace. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Part.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Part.java index 945e70d8471..6f4c41ee920 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Part.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Part.java @@ -18,7 +18,7 @@ /** * A datatype containing media that is part of a multi-part Content message. A `Part` consists of - * data which has an associated datatype. A `Part` can only contain one of the accepted types in + * data which has an associated datatype. A `Part` must contain one of the accepted types in * `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type * identifying the type and subtype of the media if `inline_data` or `file_data` field is filled * with raw bytes. diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SchemaPromptSpecContentMetadata.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SchemaPromptSpecContentMetadata.java new file mode 100644 index 00000000000..6a181237fbd --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SchemaPromptSpecContentMetadata.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * Metadata the model returned alongside the content it generated. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1SchemaPromptSpecContentMetadata extends com.google.api.client.json.GenericJson { + + /** + * Optional. Citations that apply to the content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1CitationMetadata citationMetadata; + + /** + * Optional. Sources used to ground the content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1GroundingMetadata groundingMetadata; + + /** + * Optional. Citations that apply to the content. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1CitationMetadata getCitationMetadata() { + return citationMetadata; + } + + /** + * Optional. Citations that apply to the content. + * @param citationMetadata citationMetadata or {@code null} for none + */ + public GoogleCloudAiplatformV1SchemaPromptSpecContentMetadata setCitationMetadata(GoogleCloudAiplatformV1CitationMetadata citationMetadata) { + this.citationMetadata = citationMetadata; + return this; + } + + /** + * Optional. Sources used to ground the content. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1GroundingMetadata getGroundingMetadata() { + return groundingMetadata; + } + + /** + * Optional. Sources used to ground the content. + * @param groundingMetadata groundingMetadata or {@code null} for none + */ + public GoogleCloudAiplatformV1SchemaPromptSpecContentMetadata setGroundingMetadata(GoogleCloudAiplatformV1GroundingMetadata groundingMetadata) { + this.groundingMetadata = groundingMetadata; + return this; + } + + @Override + public GoogleCloudAiplatformV1SchemaPromptSpecContentMetadata set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1SchemaPromptSpecContentMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1SchemaPromptSpecContentMetadata clone() { + return (GoogleCloudAiplatformV1SchemaPromptSpecContentMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt.java index 13a2a7869fc..fb21efd4685 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt.java @@ -36,6 +36,21 @@ public final class GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt exten @com.google.api.client.util.Key private GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData appBuilderData; + /** + * Optional. Metadata the model returned with each of `prompt_message.contents`, such as citations + * and grounding sources. This maps 1:1 to PromptMessage.contents; an entry is empty when its + * content has no metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List contentMetadata; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1SchemaPromptSpecContentMetadata used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1SchemaPromptSpecContentMetadata.class); + } + /** * Preamble: The context of the prompt. * The value may be {@code null}. @@ -129,6 +144,27 @@ public GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt setAppBuilderData return this; } + /** + * Optional. Metadata the model returned with each of `prompt_message.contents`, such as citations + * and grounding sources. This maps 1:1 to PromptMessage.contents; an entry is empty when its + * content has no metadata. + * @return value or {@code null} for none + */ + public java.util.List getContentMetadata() { + return contentMetadata; + } + + /** + * Optional. Metadata the model returned with each of `prompt_message.contents`, such as citations + * and grounding sources. This maps 1:1 to PromptMessage.contents; an entry is empty when its + * content has no metadata. + * @param contentMetadata contentMetadata or {@code null} for none + */ + public GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt setContentMetadata(java.util.List contentMetadata) { + this.contentMetadata = contentMetadata; + return this; + } + /** * Preamble: The context of the prompt. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml b/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml index b07021dac27..6b3f4c951fa 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml +++ b/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-aiplatform - v1-rev20261007-2.0.0 - Agent Platform API v1-rev20261007-2.0.0 + v1-rev20261012-2.0.0 + Agent Platform API v1-rev20261012-2.0.0 jar 2011 diff --git a/clients/google-api-services-aiplatform/v1/README.md b/clients/google-api-services-aiplatform/v1/README.md index af981e87997..40585776b31 100644 --- a/clients/google-api-services-aiplatform/v1/README.md +++ b/clients/google-api-services-aiplatform/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1-rev20261007-2.0.0 + v1-rev20261012-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20261007-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20261012-2.0.0' } ``` diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md b/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md index 8ba925fe3cf..b51336e0b2c 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1beta1-rev20261007-2.0.0 + v1beta1-rev20261012-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20261007-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20261012-2.0.0' } ``` diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig.java index 06c6808c4c0..680155d8d88 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig.java @@ -36,6 +36,13 @@ public final class CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfi @com.google.api.client.util.Key private java.lang.String mode; + /** + * Smooths the seams between the tiles the model upscales separately. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean tileSmoothing; + /** * Super Res mode. Required. * @return value or {@code null} for none @@ -53,6 +60,23 @@ public CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig setMode(ja return this; } + /** + * Smooths the seams between the tiles the model upscales separately. + * @return value or {@code null} for none + */ + public java.lang.Boolean getTileSmoothing() { + return tileSmoothing; + } + + /** + * Smooths the seams between the tiles the model upscales separately. + * @param tileSmoothing tileSmoothing or {@code null} for none + */ + public CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig setTileSmoothing(java.lang.Boolean tileSmoothing) { + this.tileSmoothing = tileSmoothing; + return this; + } + @Override public CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig set(String fieldName, Object value) { return (CloudAiLargeModelsVisionGenerateVideoExperimentsSuperResConfig) super.set(fieldName, value); diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfigEgressRule.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfigEgressRule.java index 0804591e3f3..1261ddfcefc 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfigEgressRule.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfigEgressRule.java @@ -37,6 +37,14 @@ public final class GenaiVertexV1beta1EnvironmentConfigEgressRule extends com.goo @com.google.api.client.util.Key private java.lang.String domain; + /** + * Network egress mode. Set via the `"allowlist": "disabled"` short form; must be the only rule in + * the allowlist and cannot be combined with `domain`, `transform` or `credential`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + /** * Headers to inject into requests matching this rule. Key: header name (e.g., "Authorization"). * Value: header value (e.g., "Bearer your-token"). @@ -64,6 +72,25 @@ public GenaiVertexV1beta1EnvironmentConfigEgressRule setDomain(java.lang.String return this; } + /** + * Network egress mode. Set via the `"allowlist": "disabled"` short form; must be the only rule in + * the allowlist and cannot be combined with `domain`, `transform` or `credential`. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * Network egress mode. Set via the `"allowlist": "disabled"` short form; must be the only rule in + * the allowlist and cannot be combined with `domain`, `transform` or `credential`. + * @param mode mode or {@code null} for none + */ + public GenaiVertexV1beta1EnvironmentConfigEgressRule setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + /** * Headers to inject into requests matching this rule. Key: header name (e.g., "Authorization"). * Value: header value (e.g., "Bearer your-token"). diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfigEnvironmentNetworkEgressAllowlist.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfigEnvironmentNetworkEgressAllowlist.java index 0e467868d87..253bb63afa9 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfigEnvironmentNetworkEgressAllowlist.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1EnvironmentConfigEnvironmentNetworkEgressAllowlist.java @@ -30,7 +30,8 @@ public final class GenaiVertexV1beta1EnvironmentConfigEnvironmentNetworkEgressAllowlist extends com.google.api.client.json.GenericJson { /** - * List of allowed domains and their configurations. + * List of allowed domains and their configurations. Set to `"disabled"` to block all network + * egress. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -43,7 +44,8 @@ public final class GenaiVertexV1beta1EnvironmentConfigEnvironmentNetworkEgressAl } /** - * List of allowed domains and their configurations. + * List of allowed domains and their configurations. Set to `"disabled"` to block all network + * egress. * @return value or {@code null} for none */ public java.util.List getAllowlist() { @@ -51,7 +53,8 @@ public java.util.List getAllowlis } /** - * List of allowed domains and their configurations. + * List of allowed domains and their configurations. Set to `"disabled"` to block all network + * egress. * @param allowlist allowlist or {@code null} for none */ public GenaiVertexV1beta1EnvironmentConfigEnvironmentNetworkEgressAllowlist setAllowlist(java.util.List allowlist) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FileCitation.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FileCitation.java index 99e36b40cca..cd733685e90 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FileCitation.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FileCitation.java @@ -34,7 +34,7 @@ public final class GenaiVertexV1beta1FileCitation extends com.google.api.client. * The value may be {@code null}. */ @com.google.api.client.util.Key - private GenaiVertexV1beta1Struct customMetadata; + private java.util.Map customMetadata; /** * The URI of the file. @@ -75,7 +75,7 @@ public final class GenaiVertexV1beta1FileCitation extends com.google.api.client. * User provided metadata about the retrieved context. * @return value or {@code null} for none */ - public GenaiVertexV1beta1Struct getCustomMetadata() { + public java.util.Map getCustomMetadata() { return customMetadata; } @@ -83,7 +83,7 @@ public GenaiVertexV1beta1Struct getCustomMetadata() { * User provided metadata about the retrieved context. * @param customMetadata customMetadata or {@code null} for none */ - public GenaiVertexV1beta1FileCitation setCustomMetadata(GenaiVertexV1beta1Struct customMetadata) { + public GenaiVertexV1beta1FileCitation setCustomMetadata(java.util.Map customMetadata) { this.customMetadata = customMetadata; return this; } diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Interaction.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Interaction.java index be51a26efd4..7549dffb332 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Interaction.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Interaction.java @@ -43,6 +43,14 @@ public final class GenaiVertexV1beta1Interaction extends com.google.api.client.j @com.google.api.client.util.Key private GenaiVertexV1beta1Content content; + /** + * Opaque token to resume a long decode. Output: set when status is INCOMPLETE and decoding can be + * resumed. Input: pass the latest token back unchanged in CreateInteraction to continue decoding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String continuationToken; + /** * Required. Output only. The time at which the response was created in ISO 8601 format (YYYY-MM- * DDThh:mm:ssZ). @@ -258,6 +266,55 @@ public GenaiVertexV1beta1Interaction setContent(GenaiVertexV1beta1Content conten return this; } + /** + * Opaque token to resume a long decode. Output: set when status is INCOMPLETE and decoding can be + * resumed. Input: pass the latest token back unchanged in CreateInteraction to continue decoding. + * @see #decodeContinuationToken() + * @return value or {@code null} for none + */ + public java.lang.String getContinuationToken() { + return continuationToken; + } + + /** + * Opaque token to resume a long decode. Output: set when status is INCOMPLETE and decoding can be + * resumed. Input: pass the latest token back unchanged in CreateInteraction to continue decoding. + * @see #getContinuationToken() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeContinuationToken() { + return com.google.api.client.util.Base64.decodeBase64(continuationToken); + } + + /** + * Opaque token to resume a long decode. Output: set when status is INCOMPLETE and decoding can be + * resumed. Input: pass the latest token back unchanged in CreateInteraction to continue decoding. + * @see #encodeContinuationToken() + * @param continuationToken continuationToken or {@code null} for none + */ + public GenaiVertexV1beta1Interaction setContinuationToken(java.lang.String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + + /** + * Opaque token to resume a long decode. Output: set when status is INCOMPLETE and decoding can be + * resumed. Input: pass the latest token back unchanged in CreateInteraction to continue decoding. + * @see #setContinuationToken() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1beta1Interaction encodeContinuationToken(byte[] continuationToken) { + this.continuationToken = com.google.api.client.util.Base64.encodeBase64URLSafeString(continuationToken); + return this; + } + /** * Required. Output only. The time at which the response was created in ISO 8601 format (YYYY-MM- * DDThh:mm:ssZ). diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionStatusUpdate.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionStatusUpdate.java index 886632e6c80..42754489f42 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionStatusUpdate.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionStatusUpdate.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class GenaiVertexV1beta1InteractionStatusUpdate extends com.google.api.client.json.GenericJson { + /** + * An optional opaque continuation token used to resume decoding from the latest checkpoint after + * a disconnected stream. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String continuationToken; + /** * The value may be {@code null}. */ @@ -41,6 +49,62 @@ public final class GenaiVertexV1beta1InteractionStatusUpdate extends com.google. @com.google.api.client.util.Key private java.lang.String status; + /** + * Model usage statistics up to this checkpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1InteractionUsage usage; + + /** + * An optional opaque continuation token used to resume decoding from the latest checkpoint after + * a disconnected stream. + * @see #decodeContinuationToken() + * @return value or {@code null} for none + */ + public java.lang.String getContinuationToken() { + return continuationToken; + } + + /** + * An optional opaque continuation token used to resume decoding from the latest checkpoint after + * a disconnected stream. + * @see #getContinuationToken() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeContinuationToken() { + return com.google.api.client.util.Base64.decodeBase64(continuationToken); + } + + /** + * An optional opaque continuation token used to resume decoding from the latest checkpoint after + * a disconnected stream. + * @see #encodeContinuationToken() + * @param continuationToken continuationToken or {@code null} for none + */ + public GenaiVertexV1beta1InteractionStatusUpdate setContinuationToken(java.lang.String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + + /** + * An optional opaque continuation token used to resume decoding from the latest checkpoint after + * a disconnected stream. + * @see #setContinuationToken() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GenaiVertexV1beta1InteractionStatusUpdate encodeContinuationToken(byte[] continuationToken) { + this.continuationToken = com.google.api.client.util.Base64.encodeBase64URLSafeString(continuationToken); + return this; + } + /** * @return value or {@code null} for none */ @@ -71,6 +135,23 @@ public GenaiVertexV1beta1InteractionStatusUpdate setStatus(java.lang.String stat return this; } + /** + * Model usage statistics up to this checkpoint. + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1InteractionUsage getUsage() { + return usage; + } + + /** + * Model usage statistics up to this checkpoint. + * @param usage usage or {@code null} for none + */ + public GenaiVertexV1beta1InteractionStatusUpdate setUsage(GenaiVertexV1beta1InteractionUsage usage) { + this.usage = usage; + return this; + } + @Override public GenaiVertexV1beta1InteractionStatusUpdate set(String fieldName, Object value) { return (GenaiVertexV1beta1InteractionStatusUpdate) super.set(fieldName, value); diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Agent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Agent.java index d5a7edbeb0b..f3f2d852015 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Agent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Agent.java @@ -62,6 +62,13 @@ public final class GoogleCloudAiplatformV1beta1Agent extends com.google.api.clie @com.google.api.client.util.Key private java.lang.String description; + /** + * Output only. The resolved Agent Identity (SPIFFE principal) of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String effectiveIdentity; + /** * Immutable. The user-specified ID for the agent. This ID becomes the final component of the * agent resource name. If not provided, Vertex AI will generate a value for this ID. The ID can @@ -208,6 +215,23 @@ public GoogleCloudAiplatformV1beta1Agent setDescription(java.lang.String descrip return this; } + /** + * Output only. The resolved Agent Identity (SPIFFE principal) of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getEffectiveIdentity() { + return effectiveIdentity; + } + + /** + * Output only. The resolved Agent Identity (SPIFFE principal) of the agent. + * @param effectiveIdentity effectiveIdentity or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Agent setEffectiveIdentity(java.lang.String effectiveIdentity) { + this.effectiveIdentity = effectiveIdentity; + return this; + } + /** * Immutable. The user-specified ID for the agent. This ID becomes the final component of the * agent resource name. If not provided, Vertex AI will generate a value for this ID. The ID can diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope.java index 10c36094349..670a0157c22 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope.java @@ -45,6 +45,15 @@ public final class GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope extend @com.google.api.client.util.Key private java.lang.String displayName; + /** + * Optional. Immutable. Specifies the customer-managed encryption key spec for a Scope. If set, + * this Scope and all sub-resources will be secured by this key. The key is immutable after the + * Scope is created and must be a multi-region (`us` or `eu`) key in the same region as the Scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1EncryptionSpec encryptionSpec; + /** * Required. Customer-owned Cloud Logging bucket resource names attached to this scope. Format: * `projects/{project}/locations/{location}/buckets/{bucket}`. @@ -114,6 +123,27 @@ public GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope setDisplayName(jav return this; } + /** + * Optional. Immutable. Specifies the customer-managed encryption key spec for a Scope. If set, + * this Scope and all sub-resources will be secured by this key. The key is immutable after the + * Scope is created and must be a multi-region (`us` or `eu`) key in the same region as the Scope. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1EncryptionSpec getEncryptionSpec() { + return encryptionSpec; + } + + /** + * Optional. Immutable. Specifies the customer-managed encryption key spec for a Scope. If set, + * this Scope and all sub-resources will be secured by this key. The key is immutable after the + * Scope is created and must be a multi-region (`us` or `eu`) key in the same region as the Scope. + * @param encryptionSpec encryptionSpec or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope setEncryptionSpec(GoogleCloudAiplatformV1beta1EncryptionSpec encryptionSpec) { + this.encryptionSpec = encryptionSpec; + return this; + } + /** * Required. Customer-owned Cloud Logging bucket resource names attached to this scope. Format: * `projects/{project}/locations/{location}/buckets/{bucket}`. diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Candidate.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Candidate.java index 3c4ae4d6776..24eec497739 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Candidate.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Candidate.java @@ -52,6 +52,15 @@ public final class GoogleCloudAiplatformV1beta1Candidate extends com.google.api. @com.google.api.client.util.Key private GoogleCloudAiplatformV1beta1Content content; + /** + * Output only. An optional opaque continuation token returned when `finish_reason` is + * `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to + * continue generation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String continuationToken; + /** * Output only. Describes the reason the model stopped generating tokens in more detail. This * field is returned only when `finish_reason` is set. @@ -164,6 +173,59 @@ public GoogleCloudAiplatformV1beta1Candidate setContent(GoogleCloudAiplatformV1b return this; } + /** + * Output only. An optional opaque continuation token returned when `finish_reason` is + * `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to + * continue generation. + * @see #decodeContinuationToken() + * @return value or {@code null} for none + */ + public java.lang.String getContinuationToken() { + return continuationToken; + } + + /** + * Output only. An optional opaque continuation token returned when `finish_reason` is + * `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to + * continue generation. + * @see #getContinuationToken() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeContinuationToken() { + return com.google.api.client.util.Base64.decodeBase64(continuationToken); + } + + /** + * Output only. An optional opaque continuation token returned when `finish_reason` is + * `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to + * continue generation. + * @see #encodeContinuationToken() + * @param continuationToken continuationToken or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Candidate setContinuationToken(java.lang.String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + + /** + * Output only. An optional opaque continuation token returned when `finish_reason` is + * `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to + * continue generation. + * @see #setContinuationToken() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GoogleCloudAiplatformV1beta1Candidate encodeContinuationToken(byte[] continuationToken) { + this.continuationToken = com.google.api.client.util.Base64.encodeBase64URLSafeString(continuationToken); + return this; + } + /** * Output only. Describes the reason the model stopped generating tokens in more detail. This * field is returned only when `finish_reason` is set. diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GenerateContentRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GenerateContentRequest.java index 3b8b70bfe4e..d2787a5f856 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GenerateContentRequest.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GenerateContentRequest.java @@ -54,6 +54,15 @@ public final class GoogleCloudAiplatformV1beta1GenerateContentRequest extends co com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1beta1Content.class); } + /** + * Optional. An opaque continuation token used to resume generation from a previous + * `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to + * `CONTINUATION`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String continuationToken; + /** * Optional. Generation config. * The value may be {@code null}. @@ -156,6 +165,59 @@ public GoogleCloudAiplatformV1beta1GenerateContentRequest setContents(java.util. return this; } + /** + * Optional. An opaque continuation token used to resume generation from a previous + * `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to + * `CONTINUATION`. + * @see #decodeContinuationToken() + * @return value or {@code null} for none + */ + public java.lang.String getContinuationToken() { + return continuationToken; + } + + /** + * Optional. An opaque continuation token used to resume generation from a previous + * `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to + * `CONTINUATION`. + * @see #getContinuationToken() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeContinuationToken() { + return com.google.api.client.util.Base64.decodeBase64(continuationToken); + } + + /** + * Optional. An opaque continuation token used to resume generation from a previous + * `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to + * `CONTINUATION`. + * @see #encodeContinuationToken() + * @param continuationToken continuationToken or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GenerateContentRequest setContinuationToken(java.lang.String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + + /** + * Optional. An opaque continuation token used to resume generation from a previous + * `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to + * `CONTINUATION`. + * @see #setContinuationToken() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GoogleCloudAiplatformV1beta1GenerateContentRequest encodeContinuationToken(byte[] continuationToken) { + this.continuationToken = com.google.api.client.util.Base64.encodeBase64URLSafeString(continuationToken); + return this; + } + /** * Optional. Generation config. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ModelContainerSpec.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ModelContainerSpec.java index 9e4c1f13e25..1965fc50b38 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ModelContainerSpec.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ModelContainerSpec.java @@ -106,7 +106,9 @@ public final class GoogleCloudAiplatformV1beta1ModelContainerSpec extends com.go * "$(VAR_1) bar" } ] ``` If you switch the order of the variables in the example, then the * expansion does not occur. This field corresponds to the `env` field of the Kubernetes * Containers [v1 core API](https://kubernetes.io/docs/reference/generated/kubernetes- - * api/v1.23/#container-v1-core). + * api/v1.23/#container-v1-core). At most 200 environment variables can be specified. Each + * variable (`NAME=value`) must be smaller than 128 KiB, and the total size of all variables must + * not exceed 512 KiB. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -393,7 +395,9 @@ public GoogleCloudAiplatformV1beta1ModelContainerSpec setDeploymentTimeout(Strin * "$(VAR_1) bar" } ] ``` If you switch the order of the variables in the example, then the * expansion does not occur. This field corresponds to the `env` field of the Kubernetes * Containers [v1 core API](https://kubernetes.io/docs/reference/generated/kubernetes- - * api/v1.23/#container-v1-core). + * api/v1.23/#container-v1-core). At most 200 environment variables can be specified. Each + * variable (`NAME=value`) must be smaller than 128 KiB, and the total size of all variables must + * not exceed 512 KiB. * @return value or {@code null} for none */ public java.util.List getEnv() { @@ -409,7 +413,9 @@ public java.util.List getEnv() { * "$(VAR_1) bar" } ] ``` If you switch the order of the variables in the example, then the * expansion does not occur. This field corresponds to the `env` field of the Kubernetes * Containers [v1 core API](https://kubernetes.io/docs/reference/generated/kubernetes- - * api/v1.23/#container-v1-core). + * api/v1.23/#container-v1-core). At most 200 environment variables can be specified. Each + * variable (`NAME=value`) must be smaller than 128 KiB, and the total size of all variables must + * not exceed 512 KiB. * @param env env or {@code null} for none */ public GoogleCloudAiplatformV1beta1ModelContainerSpec setEnv(java.util.List env) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilitySessionScopePredicate.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilitySessionScopePredicate.java index 38c0bb6cb7a..e47144248d9 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilitySessionScopePredicate.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilitySessionScopePredicate.java @@ -50,6 +50,15 @@ public final class GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservability @com.google.api.client.util.Key private GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityNumericPredicate modelCalls; + /** + * Filter on the versions that served a session (`service.version` OTel resource attribute); + * matches if any of them is listed. At most one is allowed. On Vertex AI Agent Engine, this is + * the runtime revision id, currently set only for agents created via v1beta1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityStringPredicate serviceVersion; + /** * Filter on the number of tool call errors within a session. * The value may be {@code null}. @@ -129,6 +138,27 @@ public GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilitySessionScope return this; } + /** + * Filter on the versions that served a session (`service.version` OTel resource attribute); + * matches if any of them is listed. At most one is allowed. On Vertex AI Agent Engine, this is + * the runtime revision id, currently set only for agents created via v1beta1. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityStringPredicate getServiceVersion() { + return serviceVersion; + } + + /** + * Filter on the versions that served a session (`service.version` OTel resource attribute); + * matches if any of them is listed. At most one is allowed. On Vertex AI Agent Engine, this is + * the runtime revision id, currently set only for agents created via v1beta1. + * @param serviceVersion serviceVersion or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilitySessionScopePredicate setServiceVersion(GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityStringPredicate serviceVersion) { + this.serviceVersion = serviceVersion; + return this; + } + /** * Filter on the number of tool call errors within a session. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityStringPredicate.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityStringPredicate.java new file mode 100644 index 00000000000..ebe8d182186 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityStringPredicate.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.aiplatform.v1beta1.model; + +/** + * Defines a predicate for filtering based on a string value. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityStringPredicate extends com.google.api.client.json.GenericJson { + + /** + * Required. The values to match exactly (case-sensitive). Requires 1 to 20 values, each at most + * 128 characters long. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * Required. The values to match exactly (case-sensitive). Requires 1 to 20 values, each at most + * 128 characters long. + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * Required. The values to match exactly (case-sensitive). Requires 1 to 20 values, each at most + * 128 characters long. + * @param values values or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityStringPredicate setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityStringPredicate set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityStringPredicate) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityStringPredicate clone() { + return (GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityStringPredicate) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java index 51be0b0811e..553c6a9d756 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityTraceScopePredicate.java @@ -36,6 +36,15 @@ public final class GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservability @com.google.api.client.util.Key private GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityNumericPredicate duration; + /** + * Filter on the version that served a trace (`service.version` OTel resource attribute). At most + * one is allowed. On Vertex AI Agent Engine, this is the runtime revision id, currently set only + * for agents created via v1beta1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityStringPredicate serviceVersion; + /** * Filter on the total token usage within a trace. * The value may be {@code null}. @@ -60,6 +69,27 @@ public GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityTraceScopePr return this; } + /** + * Filter on the version that served a trace (`service.version` OTel resource attribute). At most + * one is allowed. On Vertex AI Agent Engine, this is the runtime revision id, currently set only + * for agents created via v1beta1. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityStringPredicate getServiceVersion() { + return serviceVersion; + } + + /** + * Filter on the version that served a trace (`service.version` OTel resource attribute). At most + * one is allowed. On Vertex AI Agent Engine, this is the runtime revision id, currently set only + * for agents created via v1beta1. + * @param serviceVersion serviceVersion or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityTraceScopePredicate setServiceVersion(GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityStringPredicate serviceVersion) { + this.serviceVersion = serviceVersion; + return this; + } + /** * Filter on the total token usage within a trace. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Part.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Part.java index 7e95cf8d72b..14c65aaf32d 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Part.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Part.java @@ -18,7 +18,7 @@ /** * A datatype containing media that is part of a multi-part Content message. A `Part` consists of - * data which has an associated datatype. A `Part` can only contain one of the accepted types in + * data which has an associated datatype. A `Part` must contain one of the accepted types in * `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type * identifying the type and subtype of the media if `inline_data` or `file_data` field is filled * with raw bytes. diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SchemaPromptSpecContentMetadata.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SchemaPromptSpecContentMetadata.java new file mode 100644 index 00000000000..a0446d8ee76 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SchemaPromptSpecContentMetadata.java @@ -0,0 +1,90 @@ +/* + * 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.v1beta1.model; + +/** + * Metadata the model returned alongside the content it generated. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1SchemaPromptSpecContentMetadata extends com.google.api.client.json.GenericJson { + + /** + * Optional. Citations that apply to the content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1CitationMetadata citationMetadata; + + /** + * Optional. Sources used to ground the content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1GroundingMetadata groundingMetadata; + + /** + * Optional. Citations that apply to the content. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1CitationMetadata getCitationMetadata() { + return citationMetadata; + } + + /** + * Optional. Citations that apply to the content. + * @param citationMetadata citationMetadata or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SchemaPromptSpecContentMetadata setCitationMetadata(GoogleCloudAiplatformV1beta1CitationMetadata citationMetadata) { + this.citationMetadata = citationMetadata; + return this; + } + + /** + * Optional. Sources used to ground the content. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1GroundingMetadata getGroundingMetadata() { + return groundingMetadata; + } + + /** + * Optional. Sources used to ground the content. + * @param groundingMetadata groundingMetadata or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SchemaPromptSpecContentMetadata setGroundingMetadata(GoogleCloudAiplatformV1beta1GroundingMetadata groundingMetadata) { + this.groundingMetadata = groundingMetadata; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1SchemaPromptSpecContentMetadata set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1SchemaPromptSpecContentMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1SchemaPromptSpecContentMetadata clone() { + return (GoogleCloudAiplatformV1beta1SchemaPromptSpecContentMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt.java index 06deb69fdd5..64f43e80839 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt.java @@ -36,6 +36,21 @@ public final class GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt @com.google.api.client.util.Key private GoogleCloudAiplatformV1beta1SchemaPromptSpecAppBuilderData appBuilderData; + /** + * Optional. Metadata the model returned with each of `prompt_message.contents`, such as citations + * and grounding sources. This maps 1:1 to PromptMessage.contents; an entry is empty when its + * content has no metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List contentMetadata; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1SchemaPromptSpecContentMetadata used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAiplatformV1beta1SchemaPromptSpecContentMetadata.class); + } + /** * Preamble: The context of the prompt. * The value may be {@code null}. @@ -129,6 +144,27 @@ public GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt setAppBuilde return this; } + /** + * Optional. Metadata the model returned with each of `prompt_message.contents`, such as citations + * and grounding sources. This maps 1:1 to PromptMessage.contents; an entry is empty when its + * content has no metadata. + * @return value or {@code null} for none + */ + public java.util.List getContentMetadata() { + return contentMetadata; + } + + /** + * Optional. Metadata the model returned with each of `prompt_message.contents`, such as citations + * and grounding sources. This maps 1:1 to PromptMessage.contents; an entry is empty when its + * content has no metadata. + * @param contentMetadata contentMetadata or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt setContentMetadata(java.util.List contentMetadata) { + this.contentMetadata = contentMetadata; + return this; + } + /** * Preamble: The context of the prompt. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml b/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml index 3978ec06075..36c56ceec9e 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-aiplatform - v1beta1-rev20261007-2.0.0 - Agent Platform API v1beta1-rev20261007-2.0.0 + v1beta1-rev20261012-2.0.0 + Agent Platform API v1beta1-rev20261012-2.0.0 jar 2011 diff --git a/clients/google-api-services-aiplatform/v1beta1/README.md b/clients/google-api-services-aiplatform/v1beta1/README.md index 8ba925fe3cf..b51336e0b2c 100644 --- a/clients/google-api-services-aiplatform/v1beta1/README.md +++ b/clients/google-api-services-aiplatform/v1beta1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1beta1-rev20261007-2.0.0 + v1beta1-rev20261012-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20261007-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20261012-2.0.0' } ```