Skip to content

Commit b3fccf4

Browse files
1 parent e120694 commit b3fccf4

29 files changed

+1471
-290
lines changed

clients/google-api-services-aiplatform/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-aiplatform</artifactId>
25-
<version>v1-rev20250205-2.0.0</version>
25+
<version>v1-rev20250212-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20250205-2.0.0'
38+
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20250212-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3529,6 +3529,146 @@ public CorroborateContent set(String parameterName, Object value) {
35293529
return (CorroborateContent) super.set(parameterName, value);
35303530
}
35313531
}
3532+
/**
3533+
* Evaluates a dataset based on a set of given metrics.
3534+
*
3535+
* Create a request for the method "locations.evaluateDataset".
3536+
*
3537+
* This request holds the parameters needed by the aiplatform server. After setting any optional
3538+
* parameters, call the {@link EvaluateDataset#execute()} method to invoke the remote operation.
3539+
*
3540+
* @param location Required. The resource name of the Location to evaluate the dataset. Format:
3541+
* `projects/{project}/locations/{location}`
3542+
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1EvaluateDatasetRequest}
3543+
* @return the request
3544+
*/
3545+
public EvaluateDataset evaluateDataset(java.lang.String location, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1EvaluateDatasetRequest content) throws java.io.IOException {
3546+
EvaluateDataset result = new EvaluateDataset(location, content);
3547+
initialize(result);
3548+
return result;
3549+
}
3550+
3551+
public class EvaluateDataset extends AiplatformRequest<com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation> {
3552+
3553+
private static final String REST_PATH = "v1/{+location}:evaluateDataset";
3554+
3555+
private final java.util.regex.Pattern LOCATION_PATTERN =
3556+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
3557+
3558+
/**
3559+
* Evaluates a dataset based on a set of given metrics.
3560+
*
3561+
* Create a request for the method "locations.evaluateDataset".
3562+
*
3563+
* This request holds the parameters needed by the the aiplatform server. After setting any
3564+
* optional parameters, call the {@link EvaluateDataset#execute()} method to invoke the remote
3565+
* operation. <p> {@link EvaluateDataset#initialize(com.google.api.client.googleapis.services.Abst
3566+
* ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking
3567+
* the constructor. </p>
3568+
*
3569+
* @param location Required. The resource name of the Location to evaluate the dataset. Format:
3570+
* `projects/{project}/locations/{location}`
3571+
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1EvaluateDatasetRequest}
3572+
* @since 1.13
3573+
*/
3574+
protected EvaluateDataset(java.lang.String location, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1EvaluateDatasetRequest content) {
3575+
super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class);
3576+
this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified.");
3577+
if (!getSuppressPatternChecks()) {
3578+
com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(),
3579+
"Parameter location must conform to the pattern " +
3580+
"^projects/[^/]+/locations/[^/]+$");
3581+
}
3582+
}
3583+
3584+
@Override
3585+
public EvaluateDataset set$Xgafv(java.lang.String $Xgafv) {
3586+
return (EvaluateDataset) super.set$Xgafv($Xgafv);
3587+
}
3588+
3589+
@Override
3590+
public EvaluateDataset setAccessToken(java.lang.String accessToken) {
3591+
return (EvaluateDataset) super.setAccessToken(accessToken);
3592+
}
3593+
3594+
@Override
3595+
public EvaluateDataset setAlt(java.lang.String alt) {
3596+
return (EvaluateDataset) super.setAlt(alt);
3597+
}
3598+
3599+
@Override
3600+
public EvaluateDataset setCallback(java.lang.String callback) {
3601+
return (EvaluateDataset) super.setCallback(callback);
3602+
}
3603+
3604+
@Override
3605+
public EvaluateDataset setFields(java.lang.String fields) {
3606+
return (EvaluateDataset) super.setFields(fields);
3607+
}
3608+
3609+
@Override
3610+
public EvaluateDataset setKey(java.lang.String key) {
3611+
return (EvaluateDataset) super.setKey(key);
3612+
}
3613+
3614+
@Override
3615+
public EvaluateDataset setOauthToken(java.lang.String oauthToken) {
3616+
return (EvaluateDataset) super.setOauthToken(oauthToken);
3617+
}
3618+
3619+
@Override
3620+
public EvaluateDataset setPrettyPrint(java.lang.Boolean prettyPrint) {
3621+
return (EvaluateDataset) super.setPrettyPrint(prettyPrint);
3622+
}
3623+
3624+
@Override
3625+
public EvaluateDataset setQuotaUser(java.lang.String quotaUser) {
3626+
return (EvaluateDataset) super.setQuotaUser(quotaUser);
3627+
}
3628+
3629+
@Override
3630+
public EvaluateDataset setUploadType(java.lang.String uploadType) {
3631+
return (EvaluateDataset) super.setUploadType(uploadType);
3632+
}
3633+
3634+
@Override
3635+
public EvaluateDataset setUploadProtocol(java.lang.String uploadProtocol) {
3636+
return (EvaluateDataset) super.setUploadProtocol(uploadProtocol);
3637+
}
3638+
3639+
/**
3640+
* Required. The resource name of the Location to evaluate the dataset. Format:
3641+
* `projects/{project}/locations/{location}`
3642+
*/
3643+
@com.google.api.client.util.Key
3644+
private java.lang.String location;
3645+
3646+
/** Required. The resource name of the Location to evaluate the dataset. Format:
3647+
`projects/{project}/locations/{location}`
3648+
*/
3649+
public java.lang.String getLocation() {
3650+
return location;
3651+
}
3652+
3653+
/**
3654+
* Required. The resource name of the Location to evaluate the dataset. Format:
3655+
* `projects/{project}/locations/{location}`
3656+
*/
3657+
public EvaluateDataset setLocation(java.lang.String location) {
3658+
if (!getSuppressPatternChecks()) {
3659+
com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(),
3660+
"Parameter location must conform to the pattern " +
3661+
"^projects/[^/]+/locations/[^/]+$");
3662+
}
3663+
this.location = location;
3664+
return this;
3665+
}
3666+
3667+
@Override
3668+
public EvaluateDataset set(String parameterName, Object value) {
3669+
return (EvaluateDataset) super.set(parameterName, value);
3670+
}
3671+
}
35323672
/**
35333673
* Evaluates instances based on a given metric.
35343674
*

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AutomaticResources.java

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -32,50 +32,50 @@
3232
public final class GoogleCloudAiplatformV1AutomaticResources extends com.google.api.client.json.GenericJson {
3333

3434
/**
35-
* Immutable. The maximum number of replicas this DeployedModel may be deployed on when the
36-
* traffic against it increases. If the requested value is too large, the deployment will error,
37-
* but if deployment succeeds then the ability to scale the model to that many replicas is
38-
* guaranteed (barring service outages). If traffic against the DeployedModel increases beyond
39-
* what its replicas at maximum may handle, a portion of the traffic will be dropped. If this
40-
* value is not provided, a no upper bound for scaling under heavy traffic will be assume, though
41-
* Vertex AI may be unable to scale beyond certain replica number.
35+
* Immutable. The maximum number of replicas that may be deployed on when the traffic against it
36+
* increases. If the requested value is too large, the deployment will error, but if deployment
37+
* succeeds then the ability to scale to that many replicas is guaranteed (barring service
38+
* outages). If traffic increases beyond what its replicas at maximum may handle, a portion of the
39+
* traffic will be dropped. If this value is not provided, a no upper bound for scaling under
40+
* heavy traffic will be assume, though Vertex AI may be unable to scale beyond certain replica
41+
* number.
4242
* The value may be {@code null}.
4343
*/
4444
@com.google.api.client.util.Key
4545
private java.lang.Integer maxReplicaCount;
4646

4747
/**
48-
* Immutable. The minimum number of replicas this DeployedModel will be always deployed on. If
49-
* traffic against it increases, it may dynamically be deployed onto more replicas up to
50-
* max_replica_count, and as traffic decreases, some of these extra replicas may be freed. If the
51-
* requested value is too large, the deployment will error.
48+
* Immutable. The minimum number of replicas that will be always deployed on. If traffic against
49+
* it increases, it may dynamically be deployed onto more replicas up to max_replica_count, and as
50+
* traffic decreases, some of these extra replicas may be freed. If the requested value is too
51+
* large, the deployment will error.
5252
* The value may be {@code null}.
5353
*/
5454
@com.google.api.client.util.Key
5555
private java.lang.Integer minReplicaCount;
5656

5757
/**
58-
* Immutable. The maximum number of replicas this DeployedModel may be deployed on when the
59-
* traffic against it increases. If the requested value is too large, the deployment will error,
60-
* but if deployment succeeds then the ability to scale the model to that many replicas is
61-
* guaranteed (barring service outages). If traffic against the DeployedModel increases beyond
62-
* what its replicas at maximum may handle, a portion of the traffic will be dropped. If this
63-
* value is not provided, a no upper bound for scaling under heavy traffic will be assume, though
64-
* Vertex AI may be unable to scale beyond certain replica number.
58+
* Immutable. The maximum number of replicas that may be deployed on when the traffic against it
59+
* increases. If the requested value is too large, the deployment will error, but if deployment
60+
* succeeds then the ability to scale to that many replicas is guaranteed (barring service
61+
* outages). If traffic increases beyond what its replicas at maximum may handle, a portion of the
62+
* traffic will be dropped. If this value is not provided, a no upper bound for scaling under
63+
* heavy traffic will be assume, though Vertex AI may be unable to scale beyond certain replica
64+
* number.
6565
* @return value or {@code null} for none
6666
*/
6767
public java.lang.Integer getMaxReplicaCount() {
6868
return maxReplicaCount;
6969
}
7070

7171
/**
72-
* Immutable. The maximum number of replicas this DeployedModel may be deployed on when the
73-
* traffic against it increases. If the requested value is too large, the deployment will error,
74-
* but if deployment succeeds then the ability to scale the model to that many replicas is
75-
* guaranteed (barring service outages). If traffic against the DeployedModel increases beyond
76-
* what its replicas at maximum may handle, a portion of the traffic will be dropped. If this
77-
* value is not provided, a no upper bound for scaling under heavy traffic will be assume, though
78-
* Vertex AI may be unable to scale beyond certain replica number.
72+
* Immutable. The maximum number of replicas that may be deployed on when the traffic against it
73+
* increases. If the requested value is too large, the deployment will error, but if deployment
74+
* succeeds then the ability to scale to that many replicas is guaranteed (barring service
75+
* outages). If traffic increases beyond what its replicas at maximum may handle, a portion of the
76+
* traffic will be dropped. If this value is not provided, a no upper bound for scaling under
77+
* heavy traffic will be assume, though Vertex AI may be unable to scale beyond certain replica
78+
* number.
7979
* @param maxReplicaCount maxReplicaCount or {@code null} for none
8080
*/
8181
public GoogleCloudAiplatformV1AutomaticResources setMaxReplicaCount(java.lang.Integer maxReplicaCount) {
@@ -84,21 +84,21 @@ public GoogleCloudAiplatformV1AutomaticResources setMaxReplicaCount(java.lang.In
8484
}
8585

8686
/**
87-
* Immutable. The minimum number of replicas this DeployedModel will be always deployed on. If
88-
* traffic against it increases, it may dynamically be deployed onto more replicas up to
89-
* max_replica_count, and as traffic decreases, some of these extra replicas may be freed. If the
90-
* requested value is too large, the deployment will error.
87+
* Immutable. The minimum number of replicas that will be always deployed on. If traffic against
88+
* it increases, it may dynamically be deployed onto more replicas up to max_replica_count, and as
89+
* traffic decreases, some of these extra replicas may be freed. If the requested value is too
90+
* large, the deployment will error.
9191
* @return value or {@code null} for none
9292
*/
9393
public java.lang.Integer getMinReplicaCount() {
9494
return minReplicaCount;
9595
}
9696

9797
/**
98-
* Immutable. The minimum number of replicas this DeployedModel will be always deployed on. If
99-
* traffic against it increases, it may dynamically be deployed onto more replicas up to
100-
* max_replica_count, and as traffic decreases, some of these extra replicas may be freed. If the
101-
* requested value is too large, the deployment will error.
98+
* Immutable. The minimum number of replicas that will be always deployed on. If traffic against
99+
* it increases, it may dynamically be deployed onto more replicas up to max_replica_count, and as
100+
* traffic decreases, some of these extra replicas may be freed. If the requested value is too
101+
* large, the deployment will error.
102102
* @param minReplicaCount minReplicaCount or {@code null} for none
103103
*/
104104
public GoogleCloudAiplatformV1AutomaticResources setMinReplicaCount(java.lang.Integer minReplicaCount) {

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1CachedContent.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ public final class GoogleCloudAiplatformV1CachedContent extends com.google.api.c
5959
private String expireTime;
6060

6161
/**
62-
* Immutable. The name of the publisher model to use for cached content. Format:
63-
* projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
62+
* Immutable. The name of the `Model` to use for cached content. Currently, only the published
63+
* Gemini base models are supported, in form of
64+
* projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}
6465
* The value may be {@code null}.
6566
*/
6667
@com.google.api.client.util.Key
@@ -188,17 +189,19 @@ public GoogleCloudAiplatformV1CachedContent setExpireTime(String expireTime) {
188189
}
189190

190191
/**
191-
* Immutable. The name of the publisher model to use for cached content. Format:
192-
* projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
192+
* Immutable. The name of the `Model` to use for cached content. Currently, only the published
193+
* Gemini base models are supported, in form of
194+
* projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}
193195
* @return value or {@code null} for none
194196
*/
195197
public java.lang.String getModel() {
196198
return model;
197199
}
198200

199201
/**
200-
* Immutable. The name of the publisher model to use for cached content. Format:
201-
* projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
202+
* Immutable. The name of the `Model` to use for cached content. Currently, only the published
203+
* Gemini base models are supported, in form of
204+
* projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}
202205
* @param model model or {@code null} for none
203206
*/
204207
public GoogleCloudAiplatformV1CachedContent setModel(java.lang.String model) {

0 commit comments

Comments
 (0)