Content-Length: 1378108 | pFad | https://github.com/googleapis/google-cloud-java/commit/48ac78c692cd145c8aafb6497b27054d069ed6ca

12 feat: [aiplatform] add UpdatePersistentResourceRequest and add resour… · googleapis/google-cloud-java@48ac78c · GitHub
Skip to content

Commit 48ac78c

Browse files
feat: [aiplatform] add UpdatePersistentResourceRequest and add resource_pool_images and head_node_resource_pool_id to RaySpec (#9769)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 561051086 Source-Link: https://togithub.com/googleapis/googleapis/commit/da9f0befe44a6422adfd8c7084f9ce14304a0be8 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/f7b6581fe39e73eda4071914ce85768f29a25111 Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiJmN2I2NTgxZmUzOWU3M2VkYTQwNzE5MTRjZTg1NzY4ZjI5YTI1MTExIn0= BEGIN_NESTED_COMMIT feat: [aiplatform] add NVIDIA_H100_80GB and TPU_V5_LITEPOD to AcceleratorType feat: update field_behavior for `name` to be IMMUTABLE instead of OUTPUT_ONLY in Context, ModelMonitor, Schedule, DeploymentResourcePool feat: Expose CreateDatasetVersionOperationMetadata and RestoreDatasetVersionOperationMetadata to DatasetService feat: add Timestamp to Feature feat: add disk_type and disk_size_gb to PersistentDiskSpec feat: add schedule_name to PipelineJob feat: add CountTokens to PredictionService feat: add Parent to PublisherModel feat: add open_evaluation_pipeline to PublisherModel fix!: remove idle_replica_count from PersistentResource PiperOrigin-RevId: 557186520 Source-Link: https://togithub.com/googleapis/googleapis/commit/2e0b1907fae98fd7bdcd0eab06c4e333a2ae80ca Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/78bb93714110fa559e28442af7af1834513ccb2e Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiI3OGJiOTM3MTQxMTBmYTU1OWUyODQ0MmFmN2FmMTgzNDUxM2NjYjJlIn0= END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: [aiplatform] update field_behavior for `name` to be IMMUTABLE instead of OUTPUT_ONLY in Context, ModelMonitor, Schedule, DeploymentResourcePool feat: Expose CreateDatasetVersionOperationMetadata and RestoreDatasetVersionOperationMetadata to DatasetService feat: add disk_type and disk_size_gb to PersistentDiskSpec feat: add schedule_name to PipelineJob feat: add open_evaluation_pipeline to PublisherModel feat: add ReadTensorboardSize to TensorboardService PiperOrigin-RevId: 557171397 Source-Link: https://togithub.com/googleapis/googleapis/commit/e5441b27e4c79838be26ed907150ec3758e8db7e Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/6ba37ee7b3dc6f728416a57aecc79932bdcfe43d Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiI2YmEzN2VlN2IzZGM2ZjcyODQxNmE1N2FlY2M3OTkzMmJkY2ZlNDNkIn0= END_NESTED_COMMIT
1 parent 5fc8016 commit 48ac78c

File tree

148 files changed

+17112
-1588
lines changed

Some content is hidden

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

148 files changed

+17112
-1588
lines changed

java-aiplatform/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.20.0</version>
23+
<version>26.22.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.23.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.24.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceClient.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,8 +1092,9 @@ public final UnaryCallable<ResumeScheduleRequest, Empty> resumeScheduleCallable(
10921092
* }</pre>
10931093
*
10941094
* @param schedule Required. The Schedule which replaces the resource on the server. The following
1095-
* restrictions will be applied: &#42; The scheduled request type cannot be changed. &#42; The
1096-
* output_only fields will be ignored if specified.
1095+
* restrictions will be applied:
1096+
* <p>&#42; The scheduled request type cannot be changed. &#42; The non-empty fields cannot be
1097+
* unset. &#42; The output_only fields will be ignored if specified.
10971098
* @param updateMask Required. The update mask applies to the resource. See
10981099
* [google.protobuf.FieldMask][google.protobuf.FieldMask].
10991100
* @throws com.google.api.gax.rpc.ApiException if the remote call fails

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,126 @@ public final ReadTensorboardUsageResponse readTensorboardUsage(
10251025
return stub.readTensorboardUsageCallable();
10261026
}
10271027

1028+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1029+
/**
1030+
* Returns the storage size for a given TensorBoard instance.
1031+
*
1032+
* <p>Sample code:
1033+
*
1034+
* <pre>{@code
1035+
* // This snippet has been automatically generated and should be regarded as a code template only.
1036+
* // It will require modifications to work:
1037+
* // - It may require correct/in-range values for request initialization.
1038+
* // - It may require specifying regional endpoints when creating the service client as shown in
1039+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1040+
* try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
1041+
* TensorboardName tensorboard = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
1042+
* ReadTensorboardSizeResponse response =
1043+
* tensorboardServiceClient.readTensorboardSize(tensorboard);
1044+
* }
1045+
* }</pre>
1046+
*
1047+
* @param tensorboard Required. The name of the Tensorboard resource. Format:
1048+
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
1049+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1050+
*/
1051+
public final ReadTensorboardSizeResponse readTensorboardSize(TensorboardName tensorboard) {
1052+
ReadTensorboardSizeRequest request =
1053+
ReadTensorboardSizeRequest.newBuilder()
1054+
.setTensorboard(tensorboard == null ? null : tensorboard.toString())
1055+
.build();
1056+
return readTensorboardSize(request);
1057+
}
1058+
1059+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1060+
/**
1061+
* Returns the storage size for a given TensorBoard instance.
1062+
*
1063+
* <p>Sample code:
1064+
*
1065+
* <pre>{@code
1066+
* // This snippet has been automatically generated and should be regarded as a code template only.
1067+
* // It will require modifications to work:
1068+
* // - It may require correct/in-range values for request initialization.
1069+
* // - It may require specifying regional endpoints when creating the service client as shown in
1070+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1071+
* try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
1072+
* String tensorboard =
1073+
* TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
1074+
* ReadTensorboardSizeResponse response =
1075+
* tensorboardServiceClient.readTensorboardSize(tensorboard);
1076+
* }
1077+
* }</pre>
1078+
*
1079+
* @param tensorboard Required. The name of the Tensorboard resource. Format:
1080+
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
1081+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1082+
*/
1083+
public final ReadTensorboardSizeResponse readTensorboardSize(String tensorboard) {
1084+
ReadTensorboardSizeRequest request =
1085+
ReadTensorboardSizeRequest.newBuilder().setTensorboard(tensorboard).build();
1086+
return readTensorboardSize(request);
1087+
}
1088+
1089+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1090+
/**
1091+
* Returns the storage size for a given TensorBoard instance.
1092+
*
1093+
* <p>Sample code:
1094+
*
1095+
* <pre>{@code
1096+
* // This snippet has been automatically generated and should be regarded as a code template only.
1097+
* // It will require modifications to work:
1098+
* // - It may require correct/in-range values for request initialization.
1099+
* // - It may require specifying regional endpoints when creating the service client as shown in
1100+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1101+
* try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
1102+
* ReadTensorboardSizeRequest request =
1103+
* ReadTensorboardSizeRequest.newBuilder()
1104+
* .setTensorboard(
1105+
* TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
1106+
* .build();
1107+
* ReadTensorboardSizeResponse response = tensorboardServiceClient.readTensorboardSize(request);
1108+
* }
1109+
* }</pre>
1110+
*
1111+
* @param request The request object containing all of the parameters for the API call.
1112+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1113+
*/
1114+
public final ReadTensorboardSizeResponse readTensorboardSize(ReadTensorboardSizeRequest request) {
1115+
return readTensorboardSizeCallable().call(request);
1116+
}
1117+
1118+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1119+
/**
1120+
* Returns the storage size for a given TensorBoard instance.
1121+
*
1122+
* <p>Sample code:
1123+
*
1124+
* <pre>{@code
1125+
* // This snippet has been automatically generated and should be regarded as a code template only.
1126+
* // It will require modifications to work:
1127+
* // - It may require correct/in-range values for request initialization.
1128+
* // - It may require specifying regional endpoints when creating the service client as shown in
1129+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1130+
* try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
1131+
* ReadTensorboardSizeRequest request =
1132+
* ReadTensorboardSizeRequest.newBuilder()
1133+
* .setTensorboard(
1134+
* TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
1135+
* .build();
1136+
* ApiFuture<ReadTensorboardSizeResponse> future =
1137+
* tensorboardServiceClient.readTensorboardSizeCallable().futureCall(request);
1138+
* // Do something.
1139+
* ReadTensorboardSizeResponse response = future.get();
1140+
* }
1141+
* }</pre>
1142+
*/
1143+
public final UnaryCallable<ReadTensorboardSizeRequest, ReadTensorboardSizeResponse>
1144+
readTensorboardSizeCallable() {
1145+
return stub.readTensorboardSizeCallable();
1146+
}
1147+
10281148
// AUTO-GENERATED DOCUMENTATION AND METHOD.
10291149
/**
10301150
* Creates a TensorboardExperiment.

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ public UnaryCallSettings<DeleteTensorboardRequest, Operation> deleteTensorboardS
149149
return ((TensorboardServiceStubSettings) getStubSettings()).readTensorboardUsageSettings();
150150
}
151151

152+
/** Returns the object with the settings used for calls to readTensorboardSize. */
153+
public UnaryCallSettings<ReadTensorboardSizeRequest, ReadTensorboardSizeResponse>
154+
readTensorboardSizeSettings() {
155+
return ((TensorboardServiceStubSettings) getStubSettings()).readTensorboardSizeSettings();
156+
}
157+
152158
/** Returns the object with the settings used for calls to createTensorboardExperiment. */
153159
public UnaryCallSettings<CreateTensorboardExperimentRequest, TensorboardExperiment>
154160
createTensorboardExperimentSettings() {
@@ -514,6 +520,12 @@ public UnaryCallSettings.Builder<GetTensorboardRequest, Tensorboard> getTensorbo
514520
return getStubSettingsBuilder().readTensorboardUsageSettings();
515521
}
516522

523+
/** Returns the builder for the settings used for calls to readTensorboardSize. */
524+
public UnaryCallSettings.Builder<ReadTensorboardSizeRequest, ReadTensorboardSizeResponse>
525+
readTensorboardSizeSettings() {
526+
return getStubSettingsBuilder().readTensorboardSizeSettings();
527+
}
528+
517529
/** Returns the builder for the settings used for calls to createTensorboardExperiment. */
518530
public UnaryCallSettings.Builder<CreateTensorboardExperimentRequest, TensorboardExperiment>
519531
createTensorboardExperimentSettings() {

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,9 @@
994994
"ReadTensorboardBlobData": {
995995
"methods": ["readTensorboardBlobDataCallable"]
996996
},
997+
"ReadTensorboardSize": {
998+
"methods": ["readTensorboardSize", "readTensorboardSize", "readTensorboardSize", "readTensorboardSizeCallable"]
999+
},
9971000
"ReadTensorboardTimeSeriesData": {
9981001
"methods": ["readTensorboardTimeSeriesData", "readTensorboardTimeSeriesData", "readTensorboardTimeSeriesData", "readTensorboardTimeSeriesDataCallable"]
9991002
},

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceStub.java

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
import com.google.cloud.aiplatform.v1.ListTensorboardsResponse;
6565
import com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest;
6666
import com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse;
67+
import com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest;
68+
import com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse;
6769
import com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest;
6870
import com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse;
6971
import com.google.cloud.aiplatform.v1.ReadTensorboardUsageRequest;
@@ -170,6 +172,18 @@ public class GrpcTensorboardServiceStub extends TensorboardServiceStub {
170172
ProtoUtils.marshaller(ReadTensorboardUsageResponse.getDefaultInstance()))
171173
.build();
172174

175+
private static final MethodDescriptor<ReadTensorboardSizeRequest, ReadTensorboardSizeResponse>
176+
readTensorboardSizeMethodDescriptor =
177+
MethodDescriptor.<ReadTensorboardSizeRequest, ReadTensorboardSizeResponse>newBuilder()
178+
.setType(MethodDescriptor.MethodType.UNARY)
179+
.setFullMethodName(
180+
"google.cloud.aiplatform.v1.TensorboardService/ReadTensorboardSize")
181+
.setRequestMarshaller(
182+
ProtoUtils.marshaller(ReadTensorboardSizeRequest.getDefaultInstance()))
183+
.setResponseMarshaller(
184+
ProtoUtils.marshaller(ReadTensorboardSizeResponse.getDefaultInstance()))
185+
.build();
186+
173187
private static final MethodDescriptor<CreateTensorboardExperimentRequest, TensorboardExperiment>
174188
createTensorboardExperimentMethodDescriptor =
175189
MethodDescriptor.<CreateTensorboardExperimentRequest, TensorboardExperiment>newBuilder()
@@ -536,6 +550,8 @@ public class GrpcTensorboardServiceStub extends TensorboardServiceStub {
536550
deleteTensorboardOperationCallable;
537551
private final UnaryCallable<ReadTensorboardUsageRequest, ReadTensorboardUsageResponse>
538552
readTensorboardUsageCallable;
553+
private final UnaryCallable<ReadTensorboardSizeRequest, ReadTensorboardSizeResponse>
554+
readTensorboardSizeCallable;
539555
private final UnaryCallable<CreateTensorboardExperimentRequest, TensorboardExperiment>
540556
createTensorboardExperimentCallable;
541557
private final UnaryCallable<GetTensorboardExperimentRequest, TensorboardExperiment>
@@ -721,6 +737,17 @@ protected GrpcTensorboardServiceStub(
721737
return builder.build();
722738
})
723739
.build();
740+
GrpcCallSettings<ReadTensorboardSizeRequest, ReadTensorboardSizeResponse>
741+
readTensorboardSizeTransportSettings =
742+
GrpcCallSettings.<ReadTensorboardSizeRequest, ReadTensorboardSizeResponse>newBuilder()
743+
.setMethodDescriptor(readTensorboardSizeMethodDescriptor)
744+
.setParamsExtractor(
745+
request -> {
746+
RequestParamsBuilder builder = RequestParamsBuilder.create();
747+
builder.add("tensorboard", String.valueOf(request.getTensorboard()));
748+
return builder.build();
749+
})
750+
.build();
724751
GrpcCallSettings<CreateTensorboardExperimentRequest, TensorboardExperiment>
725752
createTensorboardExperimentTransportSettings =
726753
GrpcCallSettings.<CreateTensorboardExperimentRequest, TensorboardExperiment>newBuilder()
@@ -1102,6 +1129,11 @@ protected GrpcTensorboardServiceStub(
11021129
readTensorboardUsageTransportSettings,
11031130
settings.readTensorboardUsageSettings(),
11041131
clientContext);
1132+
this.readTensorboardSizeCallable =
1133+
callableFactory.createUnaryCallable(
1134+
readTensorboardSizeTransportSettings,
1135+
settings.readTensorboardSizeSettings(),
1136+
clientContext);
11051137
this.createTensorboardExperimentCallable =
11061138
callableFactory.createUnaryCallable(
11071139
createTensorboardExperimentTransportSettings,
@@ -1342,6 +1374,12 @@ public UnaryCallable<DeleteTensorboardRequest, Operation> deleteTensorboardCalla
13421374
return readTensorboardUsageCallable;
13431375
}
13441376

1377+
@Override
1378+
public UnaryCallable<ReadTensorboardSizeRequest, ReadTensorboardSizeResponse>
1379+
readTensorboardSizeCallable() {
1380+
return readTensorboardSizeCallable;
1381+
}
1382+
13451383
@Override
13461384
public UnaryCallable<CreateTensorboardExperimentRequest, TensorboardExperiment>
13471385
createTensorboardExperimentCallable() {

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
import com.google.cloud.aiplatform.v1.ListTensorboardsResponse;
6060
import com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest;
6161
import com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse;
62+
import com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest;
63+
import com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse;
6264
import com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest;
6365
import com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse;
6466
import com.google.cloud.aiplatform.v1.ReadTensorboardUsageRequest;
@@ -154,6 +156,11 @@ public UnaryCallable<DeleteTensorboardRequest, Operation> deleteTensorboardCalla
154156
throw new UnsupportedOperationException("Not implemented: readTensorboardUsageCallable()");
155157
}
156158

159+
public UnaryCallable<ReadTensorboardSizeRequest, ReadTensorboardSizeResponse>
160+
readTensorboardSizeCallable() {
161+
throw new UnsupportedOperationException("Not implemented: readTensorboardSizeCallable()");
162+
}
163+
157164
public UnaryCallable<CreateTensorboardExperimentRequest, TensorboardExperiment>
158165
createTensorboardExperimentCallable() {
159166
throw new UnsupportedOperationException(

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/google-cloud-java/commit/48ac78c692cd145c8aafb6497b27054d069ed6ca

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy