Skip to content

Commit

Permalink
chore: regenerate aiplatform client (#24202)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Dec 17, 2024
1 parent 369692b commit 6c126c0
Show file tree
Hide file tree
Showing 26 changed files with 2,002 additions and 101 deletions.
4 changes: 2 additions & 2 deletions clients/google-api-services-aiplatform/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-aiplatform</artifactId>
<version>v1-rev20241203-2.0.0</version>
<version>v1-rev20241210-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20241203-2.0.0'
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20241210-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,8 @@ public List set(String parameterName, Object value) {
* This request holds the parameters needed by the aiplatform server. After setting any optional
* parameters, call the {@link Patch#execute()} method to invoke the remote operation.
*
* @param name Output only. Identifier. The resource name of the Dataset.
* @param name Output only. Identifier. The resource name of the Dataset. Format:
* `projects/{project}/locations/{location}/datasets/{dataset}`
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
* @return the request
*/
Expand Down Expand Up @@ -839,7 +840,8 @@ public class Patch extends AiplatformRequest<com.google.api.services.aiplatform.
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor. </p>
*
* @param name Output only. Identifier. The resource name of the Dataset.
* @param name Output only. Identifier. The resource name of the Dataset. Format:
* `projects/{project}/locations/{location}/datasets/{dataset}`
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
* @since 1.13
*/
Expand Down Expand Up @@ -908,17 +910,24 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) {
return (Patch) super.setUploadProtocol(uploadProtocol);
}

/** Output only. Identifier. The resource name of the Dataset. */
/**
* Output only. Identifier. The resource name of the Dataset. Format:
* `projects/{project}/locations/{location}/datasets/{dataset}`
*/
@com.google.api.client.util.Key
private java.lang.String name;

/** Output only. Identifier. The resource name of the Dataset.
/** Output only. Identifier. The resource name of the Dataset. Format:
`projects/{project}/locations/{location}/datasets/{dataset}`
*/
public java.lang.String getName() {
return name;
}

/** Output only. Identifier. The resource name of the Dataset. */
/**
* Output only. Identifier. The resource name of the Dataset. Format:
* `projects/{project}/locations/{location}/datasets/{dataset}`
*/
public Patch setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
Expand Down Expand Up @@ -9873,7 +9882,8 @@ public List set(String parameterName, Object value) {
* This request holds the parameters needed by the aiplatform server. After setting any optional
* parameters, call the {@link Patch#execute()} method to invoke the remote operation.
*
* @param name Output only. Identifier. The resource name of the Dataset.
* @param name Output only. Identifier. The resource name of the Dataset. Format:
* `projects/{project}/locations/{location}/datasets/{dataset}`
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
* @return the request
*/
Expand Down Expand Up @@ -9901,7 +9911,8 @@ public class Patch extends AiplatformRequest<com.google.api.services.aiplatform.
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor. </p>
*
* @param name Output only. Identifier. The resource name of the Dataset.
* @param name Output only. Identifier. The resource name of the Dataset. Format:
* `projects/{project}/locations/{location}/datasets/{dataset}`
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
* @since 1.13
*/
Expand Down Expand Up @@ -9970,17 +9981,24 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) {
return (Patch) super.setUploadProtocol(uploadProtocol);
}

/** Output only. Identifier. The resource name of the Dataset. */
/**
* Output only. Identifier. The resource name of the Dataset. Format:
* `projects/{project}/locations/{location}/datasets/{dataset}`
*/
@com.google.api.client.util.Key
private java.lang.String name;

/** Output only. Identifier. The resource name of the Dataset.
/** Output only. Identifier. The resource name of the Dataset. Format:
`projects/{project}/locations/{location}/datasets/{dataset}`
*/
public java.lang.String getName() {
return name;
}

/** Output only. Identifier. The resource name of the Dataset. */
/**
* Output only. Identifier. The resource name of the Dataset. Format:
* `projects/{project}/locations/{location}/datasets/{dataset}`
*/
public Patch setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
Expand Down Expand Up @@ -78864,6 +78882,146 @@ public Query set(String parameterName, Object value) {
return (Query) super.set(parameterName, value);
}
}
/**
* Streams queries using a reasoning engine.
*
* Create a request for the method "reasoningEngines.streamQuery".
*
* This request holds the parameters needed by the aiplatform server. After setting any optional
* parameters, call the {@link StreamQuery#execute()} method to invoke the remote operation.
*
* @param name Required. The name of the ReasoningEngine resource to use. Format:
* `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest}
* @return the request
*/
public StreamQuery streamQuery(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest content) throws java.io.IOException {
StreamQuery result = new StreamQuery(name, content);
initialize(result);
return result;
}

public class StreamQuery extends AiplatformRequest<com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody> {

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

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

/**
* Streams queries using a reasoning engine.
*
* Create a request for the method "reasoningEngines.streamQuery".
*
* This request holds the parameters needed by the the aiplatform server. After setting any
* optional parameters, call the {@link StreamQuery#execute()} method to invoke the remote
* operation. <p> {@link
* StreamQuery#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor. </p>
*
* @param name Required. The name of the ReasoningEngine resource to use. Format:
* `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest}
* @since 1.13
*/
protected StreamQuery(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest content) {
super(Aiplatform.this, "POST", REST_PATH, content, 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/[^/]+/reasoningEngines/[^/]+$");
}
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/**
* Required. The name of the ReasoningEngine resource to use. Format:
* `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
*/
public StreamQuery setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$");
}
this.name = name;
return this;
}

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

/**
* An accessor for creating requests from the Operations collection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ public final class GoogleCloudAiplatformV1Dataset extends com.google.api.client.
private java.lang.String modelReference;

/**
* Output only. Identifier. The resource name of the Dataset.
* Output only. Identifier. The resource name of the Dataset. Format:
* `projects/{project}/locations/{location}/datasets/{dataset}`
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -381,15 +382,17 @@ public GoogleCloudAiplatformV1Dataset setModelReference(java.lang.String modelRe
}

/**
* Output only. Identifier. The resource name of the Dataset.
* Output only. Identifier. The resource name of the Dataset. Format:
* `projects/{project}/locations/{location}/datasets/{dataset}`
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}

/**
* Output only. Identifier. The resource name of the Dataset.
* Output only. Identifier. The resource name of the Dataset. Format:
* `projects/{project}/locations/{location}/datasets/{dataset}`
* @param name name or {@code null} for none
*/
public GoogleCloudAiplatformV1Dataset setName(java.lang.String name) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ public final class GoogleCloudAiplatformV1GenerationConfig extends com.google.ap
@com.google.api.client.util.Key
private java.lang.Integer maxOutputTokens;

/**
* Optional. If specified, the media resolution specified will be used.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String mediaResolution;

/**
* Optional. Positive penalties.
* The value may be {@code null}.
Expand Down Expand Up @@ -141,13 +148,6 @@ public final class GoogleCloudAiplatformV1GenerationConfig extends com.google.ap
@com.google.api.client.util.Key
private java.lang.Float temperature;

/**
* Optional. If specified, the token resolution specified will be used.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String tokenResolution;

/**
* Optional. If specified, top-k sampling will be used.
* The value may be {@code null}.
Expand Down Expand Up @@ -247,6 +247,23 @@ public GoogleCloudAiplatformV1GenerationConfig setMaxOutputTokens(java.lang.Inte
return this;
}

/**
* Optional. If specified, the media resolution specified will be used.
* @return value or {@code null} for none
*/
public java.lang.String getMediaResolution() {
return mediaResolution;
}

/**
* Optional. If specified, the media resolution specified will be used.
* @param mediaResolution mediaResolution or {@code null} for none
*/
public GoogleCloudAiplatformV1GenerationConfig setMediaResolution(java.lang.String mediaResolution) {
this.mediaResolution = mediaResolution;
return this;
}

/**
* Optional. Positive penalties.
* @return value or {@code null} for none
Expand Down Expand Up @@ -431,23 +448,6 @@ public GoogleCloudAiplatformV1GenerationConfig setTemperature(java.lang.Float te
return this;
}

/**
* Optional. If specified, the token resolution specified will be used.
* @return value or {@code null} for none
*/
public java.lang.String getTokenResolution() {
return tokenResolution;
}

/**
* Optional. If specified, the token resolution specified will be used.
* @param tokenResolution tokenResolution or {@code null} for none
*/
public GoogleCloudAiplatformV1GenerationConfig setTokenResolution(java.lang.String tokenResolution) {
this.tokenResolution = tokenResolution;
return this;
}

/**
* Optional. If specified, top-k sampling will be used.
* @return value or {@code null} for none
Expand Down
Loading

0 comments on commit 6c126c0

Please sign in to comment.