Skip to content

Commit 41b1944

Browse files
1 parent 322db61 commit 41b1944

File tree

42 files changed

+2716
-39
lines changed

Some content is hidden

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

42 files changed

+2716
-39
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-rev20240617-2.0.0</version>
25+
<version>v1-rev20240628-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-rev20240617-2.0.0'
38+
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20240628-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: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13069,6 +13069,164 @@ public List set(String parameterName, Object value) {
1306913069
return (List) super.set(parameterName, value);
1307013070
}
1307113071
}
13072+
/**
13073+
* Update a DeploymentResourcePool.
13074+
*
13075+
* Create a request for the method "deploymentResourcePools.patch".
13076+
*
13077+
* This request holds the parameters needed by the aiplatform server. After setting any optional
13078+
* parameters, call the {@link Patch#execute()} method to invoke the remote operation.
13079+
*
13080+
* @param name Immutable. The resource name of the DeploymentResourcePool. Format:
13081+
* `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool
13082+
* }`
13083+
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1DeploymentResourcePool}
13084+
* @return the request
13085+
*/
13086+
public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1DeploymentResourcePool content) throws java.io.IOException {
13087+
Patch result = new Patch(name, content);
13088+
initialize(result);
13089+
return result;
13090+
}
13091+
13092+
public class Patch extends AiplatformRequest<com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation> {
13093+
13094+
private static final String REST_PATH = "v1/{+name}";
13095+
13096+
private final java.util.regex.Pattern NAME_PATTERN =
13097+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$");
13098+
13099+
/**
13100+
* Update a DeploymentResourcePool.
13101+
*
13102+
* Create a request for the method "deploymentResourcePools.patch".
13103+
*
13104+
* This request holds the parameters needed by the the aiplatform server. After setting any
13105+
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
13106+
* <p> {@link
13107+
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
13108+
* be called to initialize this instance immediately after invoking the constructor. </p>
13109+
*
13110+
* @param name Immutable. The resource name of the DeploymentResourcePool. Format:
13111+
* `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool
13112+
* }`
13113+
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1DeploymentResourcePool}
13114+
* @since 1.13
13115+
*/
13116+
protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1DeploymentResourcePool content) {
13117+
super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleLongrunningOperation.class);
13118+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
13119+
if (!getSuppressPatternChecks()) {
13120+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
13121+
"Parameter name must conform to the pattern " +
13122+
"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$");
13123+
}
13124+
}
13125+
13126+
@Override
13127+
public Patch set$Xgafv(java.lang.String $Xgafv) {
13128+
return (Patch) super.set$Xgafv($Xgafv);
13129+
}
13130+
13131+
@Override
13132+
public Patch setAccessToken(java.lang.String accessToken) {
13133+
return (Patch) super.setAccessToken(accessToken);
13134+
}
13135+
13136+
@Override
13137+
public Patch setAlt(java.lang.String alt) {
13138+
return (Patch) super.setAlt(alt);
13139+
}
13140+
13141+
@Override
13142+
public Patch setCallback(java.lang.String callback) {
13143+
return (Patch) super.setCallback(callback);
13144+
}
13145+
13146+
@Override
13147+
public Patch setFields(java.lang.String fields) {
13148+
return (Patch) super.setFields(fields);
13149+
}
13150+
13151+
@Override
13152+
public Patch setKey(java.lang.String key) {
13153+
return (Patch) super.setKey(key);
13154+
}
13155+
13156+
@Override
13157+
public Patch setOauthToken(java.lang.String oauthToken) {
13158+
return (Patch) super.setOauthToken(oauthToken);
13159+
}
13160+
13161+
@Override
13162+
public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
13163+
return (Patch) super.setPrettyPrint(prettyPrint);
13164+
}
13165+
13166+
@Override
13167+
public Patch setQuotaUser(java.lang.String quotaUser) {
13168+
return (Patch) super.setQuotaUser(quotaUser);
13169+
}
13170+
13171+
@Override
13172+
public Patch setUploadType(java.lang.String uploadType) {
13173+
return (Patch) super.setUploadType(uploadType);
13174+
}
13175+
13176+
@Override
13177+
public Patch setUploadProtocol(java.lang.String uploadProtocol) {
13178+
return (Patch) super.setUploadProtocol(uploadProtocol);
13179+
}
13180+
13181+
/**
13182+
* Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project}
13183+
* /locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
13184+
*/
13185+
@com.google.api.client.util.Key
13186+
private java.lang.String name;
13187+
13188+
/** Immutable. The resource name of the DeploymentResourcePool. Format:
13189+
`projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
13190+
*/
13191+
public java.lang.String getName() {
13192+
return name;
13193+
}
13194+
13195+
/**
13196+
* Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project}
13197+
* /locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
13198+
*/
13199+
public Patch setName(java.lang.String name) {
13200+
if (!getSuppressPatternChecks()) {
13201+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
13202+
"Parameter name must conform to the pattern " +
13203+
"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$");
13204+
}
13205+
this.name = name;
13206+
return this;
13207+
}
13208+
13209+
/** Required. The list of fields to update. */
13210+
@com.google.api.client.util.Key
13211+
private String updateMask;
13212+
13213+
/** Required. The list of fields to update.
13214+
*/
13215+
public String getUpdateMask() {
13216+
return updateMask;
13217+
}
13218+
13219+
/** Required. The list of fields to update. */
13220+
public Patch setUpdateMask(String updateMask) {
13221+
this.updateMask = updateMask;
13222+
return this;
13223+
}
13224+
13225+
@Override
13226+
public Patch set(String parameterName, Object value) {
13227+
return (Patch) super.set(parameterName, value);
13228+
}
13229+
}
1307213230
/**
1307313231
* List DeployedModels that have been deployed on this DeploymentResourcePool.
1307413232
*

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,30 @@
3030
@SuppressWarnings("javadoc")
3131
public final class GoogleCloudAiplatformV1BleuSpec extends com.google.api.client.json.GenericJson {
3232

33+
/**
34+
* Optional. Whether to use_effective_order to compute bleu score.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Boolean useEffectiveOrder;
39+
40+
/**
41+
* Optional. Whether to use_effective_order to compute bleu score.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.lang.Boolean getUseEffectiveOrder() {
45+
return useEffectiveOrder;
46+
}
47+
48+
/**
49+
* Optional. Whether to use_effective_order to compute bleu score.
50+
* @param useEffectiveOrder useEffectiveOrder or {@code null} for none
51+
*/
52+
public GoogleCloudAiplatformV1BleuSpec setUseEffectiveOrder(java.lang.Boolean useEffectiveOrder) {
53+
this.useEffectiveOrder = useEffectiveOrder;
54+
return this;
55+
}
56+
3357
@Override
3458
public GoogleCloudAiplatformV1BleuSpec set(String fieldName, Object value) {
3559
return (GoogleCloudAiplatformV1BleuSpec) super.set(fieldName, value);

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
@SuppressWarnings("javadoc")
3030
public final class GoogleCloudAiplatformV1ComputeTokensRequest extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Required. Input content.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<GoogleCloudAiplatformV1Content> contents;
38+
3239
/**
3340
* Required. The instances that are the input to token computing API call. Schema is identical to
3441
* the prediction schema of the text model, even for the non-text models, like chat models, or
@@ -38,6 +45,31 @@ public final class GoogleCloudAiplatformV1ComputeTokensRequest extends com.googl
3845
@com.google.api.client.util.Key
3946
private java.util.List<java.lang.Object> instances;
4047

48+
/**
49+
* Required. The name of the publisher model requested to serve the prediction. Format:
50+
* projects/{project}/locations/{location}/publishers/models
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private java.lang.String model;
55+
56+
/**
57+
* Required. Input content.
58+
* @return value or {@code null} for none
59+
*/
60+
public java.util.List<GoogleCloudAiplatformV1Content> getContents() {
61+
return contents;
62+
}
63+
64+
/**
65+
* Required. Input content.
66+
* @param contents contents or {@code null} for none
67+
*/
68+
public GoogleCloudAiplatformV1ComputeTokensRequest setContents(java.util.List<GoogleCloudAiplatformV1Content> contents) {
69+
this.contents = contents;
70+
return this;
71+
}
72+
4173
/**
4274
* Required. The instances that are the input to token computing API call. Schema is identical to
4375
* the prediction schema of the text model, even for the non-text models, like chat models, or
@@ -59,6 +91,25 @@ public GoogleCloudAiplatformV1ComputeTokensRequest setInstances(java.util.List<j
5991
return this;
6092
}
6193

94+
/**
95+
* Required. The name of the publisher model requested to serve the prediction. Format:
96+
* projects/{project}/locations/{location}/publishers/models
97+
* @return value or {@code null} for none
98+
*/
99+
public java.lang.String getModel() {
100+
return model;
101+
}
102+
103+
/**
104+
* Required. The name of the publisher model requested to serve the prediction. Format:
105+
* projects/{project}/locations/{location}/publishers/models
106+
* @param model model or {@code null} for none
107+
*/
108+
public GoogleCloudAiplatformV1ComputeTokensRequest setModel(java.lang.String model) {
109+
this.model = model;
110+
return this;
111+
}
112+
62113
@Override
63114
public GoogleCloudAiplatformV1ComputeTokensRequest set(String fieldName, Object value) {
64115
return (GoogleCloudAiplatformV1ComputeTokensRequest) super.set(fieldName, value);

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

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@
3030
@SuppressWarnings("javadoc")
3131
public final class GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint extends com.google.api.client.json.GenericJson {
3232

33+
/**
34+
* Optional. Private service connect config. The private service connection is available only for
35+
* Optimized storage type, not for embedding management now. If
36+
* PrivateServiceConnectConfig.enable_private_service_connect set to true, customers will use
37+
* private service connection to send request. Otherwise, the connection will set to public
38+
* endpoint.
39+
* The value may be {@code null}.
40+
*/
41+
@com.google.api.client.util.Key
42+
private GoogleCloudAiplatformV1PrivateServiceConnectConfig privateServiceConnectConfig;
43+
3344
/**
3445
* Output only. This field will be populated with the domain name to use for this
3546
* FeatureOnlineStore
@@ -38,6 +49,39 @@ public final class GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndp
3849
@com.google.api.client.util.Key
3950
private java.lang.String publicEndpointDomainName;
4051

52+
/**
53+
* Output only. The name of the service attachment resource. Populated if private service connect
54+
* is enabled and after FeatureViewSync is created.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.lang.String serviceAttachment;
59+
60+
/**
61+
* Optional. Private service connect config. The private service connection is available only for
62+
* Optimized storage type, not for embedding management now. If
63+
* PrivateServiceConnectConfig.enable_private_service_connect set to true, customers will use
64+
* private service connection to send request. Otherwise, the connection will set to public
65+
* endpoint.
66+
* @return value or {@code null} for none
67+
*/
68+
public GoogleCloudAiplatformV1PrivateServiceConnectConfig getPrivateServiceConnectConfig() {
69+
return privateServiceConnectConfig;
70+
}
71+
72+
/**
73+
* Optional. Private service connect config. The private service connection is available only for
74+
* Optimized storage type, not for embedding management now. If
75+
* PrivateServiceConnectConfig.enable_private_service_connect set to true, customers will use
76+
* private service connection to send request. Otherwise, the connection will set to public
77+
* endpoint.
78+
* @param privateServiceConnectConfig privateServiceConnectConfig or {@code null} for none
79+
*/
80+
public GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint setPrivateServiceConnectConfig(GoogleCloudAiplatformV1PrivateServiceConnectConfig privateServiceConnectConfig) {
81+
this.privateServiceConnectConfig = privateServiceConnectConfig;
82+
return this;
83+
}
84+
4185
/**
4286
* Output only. This field will be populated with the domain name to use for this
4387
* FeatureOnlineStore
@@ -57,6 +101,25 @@ public GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint setPubl
57101
return this;
58102
}
59103

104+
/**
105+
* Output only. The name of the service attachment resource. Populated if private service connect
106+
* is enabled and after FeatureViewSync is created.
107+
* @return value or {@code null} for none
108+
*/
109+
public java.lang.String getServiceAttachment() {
110+
return serviceAttachment;
111+
}
112+
113+
/**
114+
* Output only. The name of the service attachment resource. Populated if private service connect
115+
* is enabled and after FeatureViewSync is created.
116+
* @param serviceAttachment serviceAttachment or {@code null} for none
117+
*/
118+
public GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint setServiceAttachment(java.lang.String serviceAttachment) {
119+
this.serviceAttachment = serviceAttachment;
120+
return this;
121+
}
122+
60123
@Override
61124
public GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint set(String fieldName, Object value) {
62125
return (GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint) super.set(fieldName, value);

0 commit comments

Comments
 (0)