Skip to content

Commit fcd2e1c

Browse files
1 parent 4d86ff5 commit fcd2e1c

File tree

81 files changed

+11220
-656
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+11220
-656
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-rev20250816-2.0.0</version>
25+
<version>v1-rev20250825-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-rev20250816-2.0.0'
38+
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20250825-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: 152 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4922,6 +4922,152 @@ public EvaluateInstances set(String parameterName, Object value) {
49224922
return (EvaluateInstances) super.set(parameterName, value);
49234923
}
49244924
}
4925+
/**
4926+
* Generates rubrics for a given prompt. A rubric represents a single testable criterion for
4927+
* evaluation. One input prompt could have multiple rubrics This RPC allows users to get suggested
4928+
* rubrics based on provided prompt, which can then be reviewed and used for subsequent evaluations.
4929+
*
4930+
* Create a request for the method "locations.generateInstanceRubrics".
4931+
*
4932+
* This request holds the parameters needed by the aiplatform server. After setting any optional
4933+
* parameters, call the {@link GenerateInstanceRubrics#execute()} method to invoke the remote
4934+
* operation.
4935+
*
4936+
* @param location Required. The resource name of the Location to generate rubrics from. Format:
4937+
* `projects/{project}/locations/{location}`
4938+
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1GenerateInstanceRubricsRequest}
4939+
* @return the request
4940+
*/
4941+
public GenerateInstanceRubrics generateInstanceRubrics(java.lang.String location, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1GenerateInstanceRubricsRequest content) throws java.io.IOException {
4942+
GenerateInstanceRubrics result = new GenerateInstanceRubrics(location, content);
4943+
initialize(result);
4944+
return result;
4945+
}
4946+
4947+
public class GenerateInstanceRubrics extends AiplatformRequest<com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1GenerateInstanceRubricsResponse> {
4948+
4949+
private static final String REST_PATH = "v1/{+location}:generateInstanceRubrics";
4950+
4951+
private final java.util.regex.Pattern LOCATION_PATTERN =
4952+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
4953+
4954+
/**
4955+
* Generates rubrics for a given prompt. A rubric represents a single testable criterion for
4956+
* evaluation. One input prompt could have multiple rubrics This RPC allows users to get suggested
4957+
* rubrics based on provided prompt, which can then be reviewed and used for subsequent
4958+
* evaluations.
4959+
*
4960+
* Create a request for the method "locations.generateInstanceRubrics".
4961+
*
4962+
* This request holds the parameters needed by the the aiplatform server. After setting any
4963+
* optional parameters, call the {@link GenerateInstanceRubrics#execute()} method to invoke the
4964+
* remote operation. <p> {@link GenerateInstanceRubrics#initialize(com.google.api.client.googleapi
4965+
* s.services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
4966+
* after invoking the constructor. </p>
4967+
*
4968+
* @param location Required. The resource name of the Location to generate rubrics from. Format:
4969+
* `projects/{project}/locations/{location}`
4970+
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1GenerateInstanceRubricsRequest}
4971+
* @since 1.13
4972+
*/
4973+
protected GenerateInstanceRubrics(java.lang.String location, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1GenerateInstanceRubricsRequest content) {
4974+
super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1GenerateInstanceRubricsResponse.class);
4975+
this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified.");
4976+
if (!getSuppressPatternChecks()) {
4977+
com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(),
4978+
"Parameter location must conform to the pattern " +
4979+
"^projects/[^/]+/locations/[^/]+$");
4980+
}
4981+
}
4982+
4983+
@Override
4984+
public GenerateInstanceRubrics set$Xgafv(java.lang.String $Xgafv) {
4985+
return (GenerateInstanceRubrics) super.set$Xgafv($Xgafv);
4986+
}
4987+
4988+
@Override
4989+
public GenerateInstanceRubrics setAccessToken(java.lang.String accessToken) {
4990+
return (GenerateInstanceRubrics) super.setAccessToken(accessToken);
4991+
}
4992+
4993+
@Override
4994+
public GenerateInstanceRubrics setAlt(java.lang.String alt) {
4995+
return (GenerateInstanceRubrics) super.setAlt(alt);
4996+
}
4997+
4998+
@Override
4999+
public GenerateInstanceRubrics setCallback(java.lang.String callback) {
5000+
return (GenerateInstanceRubrics) super.setCallback(callback);
5001+
}
5002+
5003+
@Override
5004+
public GenerateInstanceRubrics setFields(java.lang.String fields) {
5005+
return (GenerateInstanceRubrics) super.setFields(fields);
5006+
}
5007+
5008+
@Override
5009+
public GenerateInstanceRubrics setKey(java.lang.String key) {
5010+
return (GenerateInstanceRubrics) super.setKey(key);
5011+
}
5012+
5013+
@Override
5014+
public GenerateInstanceRubrics setOauthToken(java.lang.String oauthToken) {
5015+
return (GenerateInstanceRubrics) super.setOauthToken(oauthToken);
5016+
}
5017+
5018+
@Override
5019+
public GenerateInstanceRubrics setPrettyPrint(java.lang.Boolean prettyPrint) {
5020+
return (GenerateInstanceRubrics) super.setPrettyPrint(prettyPrint);
5021+
}
5022+
5023+
@Override
5024+
public GenerateInstanceRubrics setQuotaUser(java.lang.String quotaUser) {
5025+
return (GenerateInstanceRubrics) super.setQuotaUser(quotaUser);
5026+
}
5027+
5028+
@Override
5029+
public GenerateInstanceRubrics setUploadType(java.lang.String uploadType) {
5030+
return (GenerateInstanceRubrics) super.setUploadType(uploadType);
5031+
}
5032+
5033+
@Override
5034+
public GenerateInstanceRubrics setUploadProtocol(java.lang.String uploadProtocol) {
5035+
return (GenerateInstanceRubrics) super.setUploadProtocol(uploadProtocol);
5036+
}
5037+
5038+
/**
5039+
* Required. The resource name of the Location to generate rubrics from. Format:
5040+
* `projects/{project}/locations/{location}`
5041+
*/
5042+
@com.google.api.client.util.Key
5043+
private java.lang.String location;
5044+
5045+
/** Required. The resource name of the Location to generate rubrics from. Format:
5046+
`projects/{project}/locations/{location}`
5047+
*/
5048+
public java.lang.String getLocation() {
5049+
return location;
5050+
}
5051+
5052+
/**
5053+
* Required. The resource name of the Location to generate rubrics from. Format:
5054+
* `projects/{project}/locations/{location}`
5055+
*/
5056+
public GenerateInstanceRubrics setLocation(java.lang.String location) {
5057+
if (!getSuppressPatternChecks()) {
5058+
com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(),
5059+
"Parameter location must conform to the pattern " +
5060+
"^projects/[^/]+/locations/[^/]+$");
5061+
}
5062+
this.location = location;
5063+
return this;
5064+
}
5065+
5066+
@Override
5067+
public GenerateInstanceRubrics set(String parameterName, Object value) {
5068+
return (GenerateInstanceRubrics) super.set(parameterName, value);
5069+
}
5070+
}
49255071
/**
49265072
* Gets information about a location.
49275073
*
@@ -5342,22 +5488,22 @@ public List setName(java.lang.String name) {
53425488
}
53435489

53445490
/**
5345-
* Optional. A list of extra location types that should be used as conditions for
5346-
* controlling the visibility of the locations.
5491+
* Optional. Do not use this field. It is unsupported and is ignored unless explicitly
5492+
* documented otherwise. This is primarily for internal usage.
53475493
*/
53485494
@com.google.api.client.util.Key
53495495
private java.util.List<java.lang.String> extraLocationTypes;
53505496

5351-
/** Optional. A list of extra location types that should be used as conditions for controlling the
5352-
visibility of the locations.
5497+
/** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented
5498+
otherwise. This is primarily for internal usage.
53535499
*/
53545500
public java.util.List<java.lang.String> getExtraLocationTypes() {
53555501
return extraLocationTypes;
53565502
}
53575503

53585504
/**
5359-
* Optional. A list of extra location types that should be used as conditions for
5360-
* controlling the visibility of the locations.
5505+
* Optional. Do not use this field. It is unsupported and is ignored unless explicitly
5506+
* documented otherwise. This is primarily for internal usage.
53615507
*/
53625508
public List setExtraLocationTypes(java.util.List<java.lang.String> extraLocationTypes) {
53635509
this.extraLocationTypes = extraLocationTypes;

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,21 @@ public final class GoogleCloudAiplatformV1EvaluateInstancesRequest extends com.g
8686
@com.google.api.client.util.Key
8787
private GoogleCloudAiplatformV1GroundednessInput groundednessInput;
8888

89+
/**
90+
* The instance to be evaluated.
91+
* The value may be {@code null}.
92+
*/
93+
@com.google.api.client.util.Key
94+
private GoogleCloudAiplatformV1EvaluationInstance instance;
95+
96+
/**
97+
* The metrics used for evaluation. Currently, we only support evaluating a single metric. If
98+
* multiple metrics are provided, only the first one will be evaluated.
99+
* The value may be {@code null}.
100+
*/
101+
@com.google.api.client.util.Key
102+
private java.util.List<GoogleCloudAiplatformV1Metric> metrics;
103+
89104
/**
90105
* Input for Metricx metric.
91106
* The value may be {@code null}.
@@ -399,6 +414,42 @@ public GoogleCloudAiplatformV1EvaluateInstancesRequest setGroundednessInput(Goog
399414
return this;
400415
}
401416

417+
/**
418+
* The instance to be evaluated.
419+
* @return value or {@code null} for none
420+
*/
421+
public GoogleCloudAiplatformV1EvaluationInstance getInstance() {
422+
return instance;
423+
}
424+
425+
/**
426+
* The instance to be evaluated.
427+
* @param instance instance or {@code null} for none
428+
*/
429+
public GoogleCloudAiplatformV1EvaluateInstancesRequest setInstance(GoogleCloudAiplatformV1EvaluationInstance instance) {
430+
this.instance = instance;
431+
return this;
432+
}
433+
434+
/**
435+
* The metrics used for evaluation. Currently, we only support evaluating a single metric. If
436+
* multiple metrics are provided, only the first one will be evaluated.
437+
* @return value or {@code null} for none
438+
*/
439+
public java.util.List<GoogleCloudAiplatformV1Metric> getMetrics() {
440+
return metrics;
441+
}
442+
443+
/**
444+
* The metrics used for evaluation. Currently, we only support evaluating a single metric. If
445+
* multiple metrics are provided, only the first one will be evaluated.
446+
* @param metrics metrics or {@code null} for none
447+
*/
448+
public GoogleCloudAiplatformV1EvaluateInstancesRequest setMetrics(java.util.List<GoogleCloudAiplatformV1Metric> metrics) {
449+
this.metrics = metrics;
450+
return this;
451+
}
452+
402453
/**
403454
* Input for Metricx metric.
404455
* @return value or {@code null} for none

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ public final class GoogleCloudAiplatformV1EvaluateInstancesResponse extends com.
7979
@com.google.api.client.util.Key
8080
private GoogleCloudAiplatformV1GroundednessResult groundednessResult;
8181

82+
/**
83+
* Metric results for each instance. The order of the metric results is guaranteed to be the same
84+
* as the order of the instances in the request.
85+
* The value may be {@code null}.
86+
*/
87+
@com.google.api.client.util.Key
88+
private java.util.List<GoogleCloudAiplatformV1MetricResult> metricResults;
89+
8290
/**
8391
* Result for Metricx metric.
8492
* The value may be {@code null}.
@@ -375,6 +383,25 @@ public GoogleCloudAiplatformV1EvaluateInstancesResponse setGroundednessResult(Go
375383
return this;
376384
}
377385

386+
/**
387+
* Metric results for each instance. The order of the metric results is guaranteed to be the same
388+
* as the order of the instances in the request.
389+
* @return value or {@code null} for none
390+
*/
391+
public java.util.List<GoogleCloudAiplatformV1MetricResult> getMetricResults() {
392+
return metricResults;
393+
}
394+
395+
/**
396+
* Metric results for each instance. The order of the metric results is guaranteed to be the same
397+
* as the order of the instances in the request.
398+
* @param metricResults metricResults or {@code null} for none
399+
*/
400+
public GoogleCloudAiplatformV1EvaluateInstancesResponse setMetricResults(java.util.List<GoogleCloudAiplatformV1MetricResult> metricResults) {
401+
this.metricResults = metricResults;
402+
return this;
403+
}
404+
378405
/**
379406
* Result for Metricx metric.
380407
* @return value or {@code null} for none

0 commit comments

Comments
 (0)