From 86c83f0268260e202964b13b305b0df1872c69ae Mon Sep 17 00:00:00 2001 From: A Vertex SDK engineer Date: Fri, 22 Nov 2024 17:10:12 -0800 Subject: [PATCH] No public description PiperOrigin-RevId: 699331134 --- .../vertexai/api/stub/EndpointServiceStub.java | 5 ++--- .../api/stub/EndpointServiceStubSettings.java | 5 ++--- .../api/stub/GrpcEndpointServiceStub.java | 5 ++--- .../api/stub/GrpcLlmUtilityServiceStub.java | 3 +-- .../api/stub/GrpcPredictionServiceStub.java | 3 +-- .../api/stub/HttpJsonEndpointServiceStub.java | 5 ++--- .../api/stub/HttpJsonLlmUtilityServiceStub.java | 3 +-- .../api/stub/HttpJsonPredictionServiceStub.java | 15 +++++++++------ .../vertexai/api/stub/LlmUtilityServiceStub.java | 3 +-- .../api/stub/LlmUtilityServiceStubSettings.java | 3 +-- 10 files changed, 22 insertions(+), 28 deletions(-) diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStub.java index f3115b863a86..7190d0a8ffa8 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStub.java @@ -16,9 +16,6 @@ package com.google.cloud.vertexai.api.stub; -import static com.google.cloud.vertexai.api.EndpointServiceClient.ListEndpointsPagedResponse; -import static com.google.cloud.vertexai.api.EndpointServiceClient.ListLocationsPagedResponse; - import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -34,6 +31,8 @@ import com.google.cloud.vertexai.api.DeployModelRequest; import com.google.cloud.vertexai.api.DeployModelResponse; import com.google.cloud.vertexai.api.Endpoint; +import com.google.cloud.vertexai.api.EndpointServiceClient.ListEndpointsPagedResponse; +import com.google.cloud.vertexai.api.EndpointServiceClient.ListLocationsPagedResponse; import com.google.cloud.vertexai.api.GetEndpointRequest; import com.google.cloud.vertexai.api.ListEndpointsRequest; import com.google.cloud.vertexai.api.ListEndpointsResponse; diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java index f846a475707e..72916658dda8 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java @@ -16,9 +16,6 @@ package com.google.cloud.vertexai.api.stub; -import static com.google.cloud.vertexai.api.EndpointServiceClient.ListEndpointsPagedResponse; -import static com.google.cloud.vertexai.api.EndpointServiceClient.ListLocationsPagedResponse; - import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; @@ -61,6 +58,8 @@ import com.google.cloud.vertexai.api.DeployModelRequest; import com.google.cloud.vertexai.api.DeployModelResponse; import com.google.cloud.vertexai.api.Endpoint; +import com.google.cloud.vertexai.api.EndpointServiceClient.ListEndpointsPagedResponse; +import com.google.cloud.vertexai.api.EndpointServiceClient.ListLocationsPagedResponse; import com.google.cloud.vertexai.api.GetEndpointRequest; import com.google.cloud.vertexai.api.ListEndpointsRequest; import com.google.cloud.vertexai.api.ListEndpointsResponse; diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcEndpointServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcEndpointServiceStub.java index ed427b0548e6..40f023abec54 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcEndpointServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcEndpointServiceStub.java @@ -16,9 +16,6 @@ package com.google.cloud.vertexai.api.stub; -import static com.google.cloud.vertexai.api.EndpointServiceClient.ListEndpointsPagedResponse; -import static com.google.cloud.vertexai.api.EndpointServiceClient.ListLocationsPagedResponse; - import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.grpc.GrpcCallSettings; @@ -39,6 +36,8 @@ import com.google.cloud.vertexai.api.DeployModelRequest; import com.google.cloud.vertexai.api.DeployModelResponse; import com.google.cloud.vertexai.api.Endpoint; +import com.google.cloud.vertexai.api.EndpointServiceClient.ListEndpointsPagedResponse; +import com.google.cloud.vertexai.api.EndpointServiceClient.ListLocationsPagedResponse; import com.google.cloud.vertexai.api.GetEndpointRequest; import com.google.cloud.vertexai.api.ListEndpointsRequest; import com.google.cloud.vertexai.api.ListEndpointsResponse; diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java index 399dc602636e..4a793d061c93 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java @@ -16,8 +16,6 @@ package com.google.cloud.vertexai.api.stub; -import static com.google.cloud.vertexai.api.LlmUtilityServiceClient.ListLocationsPagedResponse; - import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.grpc.GrpcCallSettings; @@ -33,6 +31,7 @@ import com.google.cloud.vertexai.api.ComputeTokensResponse; import com.google.cloud.vertexai.api.CountTokensRequest; import com.google.cloud.vertexai.api.CountTokensResponse; +import com.google.cloud.vertexai.api.LlmUtilityServiceClient.ListLocationsPagedResponse; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java index 7b0843c0f1ae..40217f4d28e4 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java @@ -16,8 +16,6 @@ package com.google.cloud.vertexai.api.stub; -import static com.google.cloud.vertexai.api.PredictionServiceClient.ListLocationsPagedResponse; - import com.google.api.HttpBody; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -42,6 +40,7 @@ import com.google.cloud.vertexai.api.GenerateContentResponse; import com.google.cloud.vertexai.api.PredictRequest; import com.google.cloud.vertexai.api.PredictResponse; +import com.google.cloud.vertexai.api.PredictionServiceClient.ListLocationsPagedResponse; import com.google.cloud.vertexai.api.RawPredictRequest; import com.google.cloud.vertexai.api.StreamDirectPredictRequest; import com.google.cloud.vertexai.api.StreamDirectPredictResponse; diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java index ff7758ceb5e3..82a1419dc28a 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java @@ -16,9 +16,6 @@ package com.google.cloud.vertexai.api.stub; -import static com.google.cloud.vertexai.api.EndpointServiceClient.ListEndpointsPagedResponse; -import static com.google.cloud.vertexai.api.EndpointServiceClient.ListLocationsPagedResponse; - import com.google.api.HttpRule; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; @@ -47,6 +44,8 @@ import com.google.cloud.vertexai.api.DeployModelRequest; import com.google.cloud.vertexai.api.DeployModelResponse; import com.google.cloud.vertexai.api.Endpoint; +import com.google.cloud.vertexai.api.EndpointServiceClient.ListEndpointsPagedResponse; +import com.google.cloud.vertexai.api.EndpointServiceClient.ListLocationsPagedResponse; import com.google.cloud.vertexai.api.GetEndpointRequest; import com.google.cloud.vertexai.api.ListEndpointsRequest; import com.google.cloud.vertexai.api.ListEndpointsResponse; diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java index 977f155a2337..d5341197bf1e 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java @@ -16,8 +16,6 @@ package com.google.cloud.vertexai.api.stub; -import static com.google.cloud.vertexai.api.LlmUtilityServiceClient.ListLocationsPagedResponse; - import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -38,6 +36,7 @@ import com.google.cloud.vertexai.api.ComputeTokensResponse; import com.google.cloud.vertexai.api.CountTokensRequest; import com.google.cloud.vertexai.api.CountTokensResponse; +import com.google.cloud.vertexai.api.LlmUtilityServiceClient.ListLocationsPagedResponse; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java index d032e1c8e06d..bd5ec225e1da 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java @@ -16,8 +16,6 @@ package com.google.cloud.vertexai.api.stub; -import static com.google.cloud.vertexai.api.PredictionServiceClient.ListLocationsPagedResponse; - import com.google.api.HttpBody; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; @@ -47,6 +45,7 @@ import com.google.cloud.vertexai.api.GenerateContentResponse; import com.google.cloud.vertexai.api.PredictRequest; import com.google.cloud.vertexai.api.PredictResponse; +import com.google.cloud.vertexai.api.PredictionServiceClient.ListLocationsPagedResponse; import com.google.cloud.vertexai.api.RawPredictRequest; import com.google.cloud.vertexai.api.StreamDirectPredictRequest; import com.google.cloud.vertexai.api.StreamDirectPredictResponse; @@ -1032,28 +1031,32 @@ public UnaryCallable getIamPolicyCallable() { public BidiStreamingCallable streamDirectPredictCallable() { throw new UnsupportedOperationException( - "Not implemented: streamDirectPredictCallable(). REST transport is not implemented for this method yet."); + "Not implemented: streamDirectPredictCallable(). REST transport is not implemented for this" + + " method yet."); } @Override public BidiStreamingCallable streamDirectRawPredictCallable() { throw new UnsupportedOperationException( - "Not implemented: streamDirectRawPredictCallable(). REST transport is not implemented for this method yet."); + "Not implemented: streamDirectRawPredictCallable(). REST transport is not implemented for" + + " this method yet."); } @Override public BidiStreamingCallable streamingPredictCallable() { throw new UnsupportedOperationException( - "Not implemented: streamingPredictCallable(). REST transport is not implemented for this method yet."); + "Not implemented: streamingPredictCallable(). REST transport is not implemented for this" + + " method yet."); } @Override public BidiStreamingCallable streamingRawPredictCallable() { throw new UnsupportedOperationException( - "Not implemented: streamingRawPredictCallable(). REST transport is not implemented for this method yet."); + "Not implemented: streamingRawPredictCallable(). REST transport is not implemented for this" + + " method yet."); } @Override diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStub.java index d65ecbab71c6..7e115c6027b4 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStub.java @@ -16,8 +16,6 @@ package com.google.cloud.vertexai.api.stub; -import static com.google.cloud.vertexai.api.LlmUtilityServiceClient.ListLocationsPagedResponse; - import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.location.GetLocationRequest; @@ -28,6 +26,7 @@ import com.google.cloud.vertexai.api.ComputeTokensResponse; import com.google.cloud.vertexai.api.CountTokensRequest; import com.google.cloud.vertexai.api.CountTokensResponse; +import com.google.cloud.vertexai.api.LlmUtilityServiceClient.ListLocationsPagedResponse; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java index 46cb2bf2bcf2..e5cbc3f6c9a2 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java @@ -16,8 +16,6 @@ package com.google.cloud.vertexai.api.stub; -import static com.google.cloud.vertexai.api.LlmUtilityServiceClient.ListLocationsPagedResponse; - import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; @@ -52,6 +50,7 @@ import com.google.cloud.vertexai.api.ComputeTokensResponse; import com.google.cloud.vertexai.api.CountTokensRequest; import com.google.cloud.vertexai.api.CountTokensResponse; +import com.google.cloud.vertexai.api.LlmUtilityServiceClient.ListLocationsPagedResponse; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet;