Skip to content

Commit bedcddf

Browse files
copybara-service[bot]Zhenyi Qi
and
Zhenyi Qi
authored
feat: [vertexai] Update Gapic client. (#10574)
PiperOrigin-RevId: 617258114 Co-authored-by: Zhenyi Qi <zhenyiqi@google.com>
1 parent 99427af commit bedcddf

40 files changed

+1355
-518
lines changed

java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/EndpointServiceSettings.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ public static Builder newBuilder() {
242242
}
243243

244244
/** Returns a new REST builder for this class. */
245-
@BetaApi
246245
public static Builder newHttpJsonBuilder() {
247246
return Builder.createHttpJsonDefault();
248247
}
@@ -284,7 +283,6 @@ private static Builder createDefault() {
284283
return new Builder(EndpointServiceStubSettings.newBuilder());
285284
}
286285

287-
@BetaApi
288286
private static Builder createHttpJsonDefault() {
289287
return new Builder(EndpointServiceStubSettings.newHttpJsonBuilder());
290288
}

java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/LlmUtilityServiceSettings.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ public static Builder newBuilder() {
172172
}
173173

174174
/** Returns a new REST builder for this class. */
175-
@BetaApi
176175
public static Builder newHttpJsonBuilder() {
177176
return Builder.createHttpJsonDefault();
178177
}
@@ -214,7 +213,6 @@ private static Builder createDefault() {
214213
return new Builder(LlmUtilityServiceStubSettings.newBuilder());
215214
}
216215

217-
@BetaApi
218216
private static Builder createHttpJsonDefault() {
219217
return new Builder(LlmUtilityServiceStubSettings.newHttpJsonBuilder());
220218
}

java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceSettings.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ public static Builder newBuilder() {
238238
}
239239

240240
/** Returns a new REST builder for this class. */
241-
@BetaApi
242241
public static Builder newHttpJsonBuilder() {
243242
return Builder.createHttpJsonDefault();
244243
}
@@ -280,7 +279,6 @@ private static Builder createDefault() {
280279
return new Builder(PredictionServiceStubSettings.newBuilder());
281280
}
282281

283-
@BetaApi
284282
private static Builder createHttpJsonDefault() {
285283
return new Builder(PredictionServiceStubSettings.newHttpJsonBuilder());
286284
}

java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -897,8 +897,6 @@ public UnaryCallSettings.Builder<CreateEndpointRequest, Operation> createEndpoin
897897
}
898898

899899
/** Returns the builder for the settings used for calls to createEndpoint. */
900-
@BetaApi(
901-
"The surface for use by generated code is not stable yet and may change in the future.")
902900
public OperationCallSettings.Builder<
903901
CreateEndpointRequest, Endpoint, CreateEndpointOperationMetadata>
904902
createEndpointOperationSettings() {
@@ -928,8 +926,6 @@ public UnaryCallSettings.Builder<DeleteEndpointRequest, Operation> deleteEndpoin
928926
}
929927

930928
/** Returns the builder for the settings used for calls to deleteEndpoint. */
931-
@BetaApi(
932-
"The surface for use by generated code is not stable yet and may change in the future.")
933929
public OperationCallSettings.Builder<DeleteEndpointRequest, Empty, DeleteOperationMetadata>
934930
deleteEndpointOperationSettings() {
935931
return deleteEndpointOperationSettings;
@@ -941,8 +937,6 @@ public UnaryCallSettings.Builder<DeployModelRequest, Operation> deployModelSetti
941937
}
942938

943939
/** Returns the builder for the settings used for calls to deployModel. */
944-
@BetaApi(
945-
"The surface for use by generated code is not stable yet and may change in the future.")
946940
public OperationCallSettings.Builder<
947941
DeployModelRequest, DeployModelResponse, DeployModelOperationMetadata>
948942
deployModelOperationSettings() {
@@ -955,8 +949,6 @@ public UnaryCallSettings.Builder<UndeployModelRequest, Operation> undeployModelS
955949
}
956950

957951
/** Returns the builder for the settings used for calls to undeployModel. */
958-
@BetaApi(
959-
"The surface for use by generated code is not stable yet and may change in the future.")
960952
public OperationCallSettings.Builder<
961953
UndeployModelRequest, UndeployModelResponse, UndeployModelOperationMetadata>
962954
undeployModelOperationSettings() {
@@ -970,8 +962,6 @@ public UnaryCallSettings.Builder<UndeployModelRequest, Operation> undeployModelS
970962
}
971963

972964
/** Returns the builder for the settings used for calls to mutateDeployedModel. */
973-
@BetaApi(
974-
"The surface for use by generated code is not stable yet and may change in the future.")
975965
public OperationCallSettings.Builder<
976966
MutateDeployedModelRequest,
977967
MutateDeployedModelResponse,

java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceCallableFactory.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.vertexai.api.stub;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.gax.httpjson.HttpJsonCallSettings;
2120
import com.google.api.gax.httpjson.HttpJsonCallableFactory;
2221
import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable;
@@ -41,7 +40,6 @@
4140
* <p>This class is for advanced usage.
4241
*/
4342
@Generated("by gapic-generator-java")
44-
@BetaApi
4543
public class HttpJsonEndpointServiceCallableFactory
4644
implements HttpJsonStubCallableFactory<Operation, OperationsStub> {
4745

@@ -73,8 +71,6 @@ public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCa
7371
httpJsonCallSettings, callSettings, clientContext);
7472
}
7573

76-
@BetaApi(
77-
"The surface for long-running operations is not stable yet and may change in the future.")
7874
@Override
7975
public <RequestT, ResponseT, MetadataT>
8076
OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(

java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import static com.google.cloud.vertexai.api.EndpointServiceClient.ListLocationsPagedResponse;
2121

2222
import com.google.api.HttpRule;
23-
import com.google.api.core.BetaApi;
2423
import com.google.api.core.InternalApi;
2524
import com.google.api.gax.core.BackgroundResource;
2625
import com.google.api.gax.core.BackgroundResourceAggregation;
@@ -82,7 +81,6 @@
8281
* <p>This class is for advanced usage and reflects the underlying API directly.
8382
*/
8483
@Generated("by gapic-generator-java")
85-
@BetaApi
8684
public class HttpJsonEndpointServiceStub extends EndpointServiceStub {
8785
private static final TypeRegistry typeRegistry =
8886
TypeRegistry.newBuilder()
@@ -493,7 +491,9 @@ public class HttpJsonEndpointServiceStub extends EndpointServiceStub {
493491
"/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy",
494492
"/ui/{resource=projects/*/locations/*/models/*}:setIamPolicy",
495493
"/ui/{resource=projects/*/locations/*/endpoints/*}:setIamPolicy",
496-
"/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy")
494+
"/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy",
495+
"/ui/{resource=projects/*/locations/*/featureOnlineStores/*}:setIamPolicy",
496+
"/ui/{resource=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:setIamPolicy")
497497
.setQueryParamsExtractor(
498498
request -> {
499499
Map<String, List<String>> fields = new HashMap<>();
@@ -539,7 +539,9 @@ public class HttpJsonEndpointServiceStub extends EndpointServiceStub {
539539
"/ui/{resource=projects/*/locations/*/models/*}:getIamPolicy",
540540
"/ui/{resource=projects/*/locations/*/endpoints/*}:getIamPolicy",
541541
"/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy",
542-
"/ui/{resource=projects/*/locations/*/publishers/*/models/*}:getIamPolicy")
542+
"/ui/{resource=projects/*/locations/*/publishers/*/models/*}:getIamPolicy",
543+
"/ui/{resource=projects/*/locations/*/featureOnlineStores/*}:getIamPolicy",
544+
"/ui/{resource=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:getIamPolicy")
543545
.setQueryParamsExtractor(
544546
request -> {
545547
Map<String, List<String>> fields = new HashMap<>();
@@ -581,7 +583,9 @@ public class HttpJsonEndpointServiceStub extends EndpointServiceStub {
581583
"/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions",
582584
"/ui/{resource=projects/*/locations/*/models/*}:testIamPermissions",
583585
"/ui/{resource=projects/*/locations/*/endpoints/*}:testIamPermissions",
584-
"/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions")
586+
"/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions",
587+
"/ui/{resource=projects/*/locations/*/featureOnlineStores/*}:testIamPermissions",
588+
"/ui/{resource=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:testIamPermissions")
585589
.setQueryParamsExtractor(
586590
request -> {
587591
Map<String, List<String>> fields = new HashMap<>();
@@ -764,6 +768,11 @@ protected HttpJsonEndpointServiceStub(
764768
.setPost(
765769
"/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel")
766770
.build())
771+
.addAdditionalBindings(
772+
HttpRule.newBuilder()
773+
.setPost(
774+
"/ui/{name=projects/*/locations/*/tuningJobs/*/operations/*}:cancel")
775+
.build())
767776
.addAdditionalBindings(
768777
HttpRule.newBuilder()
769778
.setPost(
@@ -938,6 +947,11 @@ protected HttpJsonEndpointServiceStub(
938947
.setPost(
939948
"/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel")
940949
.build())
950+
.addAdditionalBindings(
951+
HttpRule.newBuilder()
952+
.setPost(
953+
"/v1/{name=projects/*/locations/*/tuningJobs/*/operations/*}:cancel")
954+
.build())
941955
.addAdditionalBindings(
942956
HttpRule.newBuilder()
943957
.setPost(
@@ -1526,6 +1540,11 @@ protected HttpJsonEndpointServiceStub(
15261540
.setGet(
15271541
"/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}")
15281542
.build())
1543+
.addAdditionalBindings(
1544+
HttpRule.newBuilder()
1545+
.setGet(
1546+
"/ui/{name=projects/*/locations/*/tuningJobs/*/operations/*}")
1547+
.build())
15291548
.addAdditionalBindings(
15301549
HttpRule.newBuilder()
15311550
.setGet("/ui/{name=projects/*/locations/*/indexes/*/operations/*}")
@@ -1716,6 +1735,11 @@ protected HttpJsonEndpointServiceStub(
17161735
.setGet(
17171736
"/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}")
17181737
.build())
1738+
.addAdditionalBindings(
1739+
HttpRule.newBuilder()
1740+
.setGet(
1741+
"/v1/{name=projects/*/locations/*/tuningJobs/*/operations/*}")
1742+
.build())
17191743
.addAdditionalBindings(
17201744
HttpRule.newBuilder()
17211745
.setGet("/v1/{name=projects/*/locations/*/indexes/*/operations/*}")
@@ -1914,6 +1938,10 @@ protected HttpJsonEndpointServiceStub(
19141938
.setGet(
19151939
"/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations")
19161940
.build())
1941+
.addAdditionalBindings(
1942+
HttpRule.newBuilder()
1943+
.setGet("/ui/{name=projects/*/locations/*/tuningJobs/*}/operations")
1944+
.build())
19171945
.addAdditionalBindings(
19181946
HttpRule.newBuilder()
19191947
.setGet("/ui/{name=projects/*/locations/*/indexes/*}/operations")
@@ -2101,6 +2129,10 @@ protected HttpJsonEndpointServiceStub(
21012129
.setGet(
21022130
"/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations")
21032131
.build())
2132+
.addAdditionalBindings(
2133+
HttpRule.newBuilder()
2134+
.setGet("/ui/{name=projects/*/locations/*/tuningJobs/*}/operations")
2135+
.build())
21042136
.addAdditionalBindings(
21052137
HttpRule.newBuilder()
21062138
.setGet("/v1/{name=projects/*/locations/*/indexes/*}/operations")
@@ -2302,6 +2334,11 @@ protected HttpJsonEndpointServiceStub(
23022334
.setPost(
23032335
"/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait")
23042336
.build())
2337+
.addAdditionalBindings(
2338+
HttpRule.newBuilder()
2339+
.setPost(
2340+
"/ui/{name=projects/*/locations/*/tuningJobs/*/operations/*}:wait")
2341+
.build())
23052342
.addAdditionalBindings(
23062343
HttpRule.newBuilder()
23072344
.setPost(

java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceCallableFactory.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.vertexai.api.stub;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.gax.httpjson.HttpJsonCallSettings;
2120
import com.google.api.gax.httpjson.HttpJsonCallableFactory;
2221
import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable;
@@ -41,7 +40,6 @@
4140
* <p>This class is for advanced usage.
4241
*/
4342
@Generated("by gapic-generator-java")
44-
@BetaApi
4543
public class HttpJsonLlmUtilityServiceCallableFactory
4644
implements HttpJsonStubCallableFactory<Operation, OperationsStub> {
4745

@@ -73,8 +71,6 @@ public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCa
7371
httpJsonCallSettings, callSettings, clientContext);
7472
}
7573

76-
@BetaApi(
77-
"The surface for long-running operations is not stable yet and may change in the future.")
7874
@Override
7975
public <RequestT, ResponseT, MetadataT>
8076
OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(

java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import static com.google.cloud.vertexai.api.LlmUtilityServiceClient.ListLocationsPagedResponse;
2020

21-
import com.google.api.core.BetaApi;
2221
import com.google.api.core.InternalApi;
2322
import com.google.api.gax.core.BackgroundResource;
2423
import com.google.api.gax.core.BackgroundResourceAggregation;
@@ -60,7 +59,6 @@
6059
* <p>This class is for advanced usage and reflects the underlying API directly.
6160
*/
6261
@Generated("by gapic-generator-java")
63-
@BetaApi
6462
public class HttpJsonLlmUtilityServiceStub extends LlmUtilityServiceStub {
6563
private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build();
6664

@@ -234,7 +232,9 @@ public class HttpJsonLlmUtilityServiceStub extends LlmUtilityServiceStub {
234232
"/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy",
235233
"/ui/{resource=projects/*/locations/*/models/*}:setIamPolicy",
236234
"/ui/{resource=projects/*/locations/*/endpoints/*}:setIamPolicy",
237-
"/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy")
235+
"/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy",
236+
"/ui/{resource=projects/*/locations/*/featureOnlineStores/*}:setIamPolicy",
237+
"/ui/{resource=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:setIamPolicy")
238238
.setQueryParamsExtractor(
239239
request -> {
240240
Map<String, List<String>> fields = new HashMap<>();
@@ -280,7 +280,9 @@ public class HttpJsonLlmUtilityServiceStub extends LlmUtilityServiceStub {
280280
"/ui/{resource=projects/*/locations/*/models/*}:getIamPolicy",
281281
"/ui/{resource=projects/*/locations/*/endpoints/*}:getIamPolicy",
282282
"/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy",
283-
"/ui/{resource=projects/*/locations/*/publishers/*/models/*}:getIamPolicy")
283+
"/ui/{resource=projects/*/locations/*/publishers/*/models/*}:getIamPolicy",
284+
"/ui/{resource=projects/*/locations/*/featureOnlineStores/*}:getIamPolicy",
285+
"/ui/{resource=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:getIamPolicy")
284286
.setQueryParamsExtractor(
285287
request -> {
286288
Map<String, List<String>> fields = new HashMap<>();
@@ -322,7 +324,9 @@ public class HttpJsonLlmUtilityServiceStub extends LlmUtilityServiceStub {
322324
"/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions",
323325
"/ui/{resource=projects/*/locations/*/models/*}:testIamPermissions",
324326
"/ui/{resource=projects/*/locations/*/endpoints/*}:testIamPermissions",
325-
"/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions")
327+
"/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions",
328+
"/ui/{resource=projects/*/locations/*/featureOnlineStores/*}:testIamPermissions",
329+
"/ui/{resource=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:testIamPermissions")
326330
.setQueryParamsExtractor(
327331
request -> {
328332
Map<String, List<String>> fields = new HashMap<>();

java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceCallableFactory.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.vertexai.api.stub;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.gax.httpjson.HttpJsonCallSettings;
2120
import com.google.api.gax.httpjson.HttpJsonCallableFactory;
2221
import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable;
@@ -41,7 +40,6 @@
4140
* <p>This class is for advanced usage.
4241
*/
4342
@Generated("by gapic-generator-java")
44-
@BetaApi
4543
public class HttpJsonPredictionServiceCallableFactory
4644
implements HttpJsonStubCallableFactory<Operation, OperationsStub> {
4745

@@ -73,8 +71,6 @@ public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCa
7371
httpJsonCallSettings, callSettings, clientContext);
7472
}
7573

76-
@BetaApi(
77-
"The surface for long-running operations is not stable yet and may change in the future.")
7874
@Override
7975
public <RequestT, ResponseT, MetadataT>
8076
OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy