Skip to content

Commit cdbfb69

Browse files
feat: add model_monitoring_stats_anomalies,model_monitoring_status to BatchPredictionJob in aiplatform v1beta1 batch_prediction_job.proto
PiperOrigin-RevId: 470845818 Source-Link: googleapis/googleapis@284389e Source-Link: https://github.com/googleapis/googleapis-gen/commit/29deb79b04aea169a568e7c544868243d5161dde Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiIyOWRlYjc5YjA0YWVhMTY5YTU2OGU3YzU0NDg2ODI0M2Q1MTYxZGRlIn0=
1 parent e0f0725 commit cdbfb69

File tree

2,869 files changed

+1785218
-0
lines changed

Some content is hidden

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

2,869 files changed

+1785218
-0
lines changed

owl-bot-staging/java-aiplatform/v1/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java

Lines changed: 2355 additions & 0 deletions
Large diffs are not rendered by default.

owl-bot-staging/java-aiplatform/v1/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java

Lines changed: 424 additions & 0 deletions
Large diffs are not rendered by default.

owl-bot-staging/java-aiplatform/v1/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java

Lines changed: 1711 additions & 0 deletions
Large diffs are not rendered by default.

owl-bot-staging/java-aiplatform/v1/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java

Lines changed: 371 additions & 0 deletions
Large diffs are not rendered by default.

owl-bot-staging/java-aiplatform/v1/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClient.java

Lines changed: 777 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,277 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.aiplatform.v1;
18+
19+
import static com.google.cloud.aiplatform.v1.FeaturestoreOnlineServingServiceClient.ListLocationsPagedResponse;
20+
21+
import com.google.api.core.ApiFunction;
22+
import com.google.api.core.BetaApi;
23+
import com.google.api.gax.core.GoogleCredentialsProvider;
24+
import com.google.api.gax.core.InstantiatingExecutorProvider;
25+
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
26+
import com.google.api.gax.rpc.ApiClientHeaderProvider;
27+
import com.google.api.gax.rpc.ClientContext;
28+
import com.google.api.gax.rpc.ClientSettings;
29+
import com.google.api.gax.rpc.PagedCallSettings;
30+
import com.google.api.gax.rpc.ServerStreamingCallSettings;
31+
import com.google.api.gax.rpc.StubSettings;
32+
import com.google.api.gax.rpc.TransportChannelProvider;
33+
import com.google.api.gax.rpc.UnaryCallSettings;
34+
import com.google.cloud.aiplatform.v1.stub.FeaturestoreOnlineServingServiceStubSettings;
35+
import com.google.cloud.location.GetLocationRequest;
36+
import com.google.cloud.location.ListLocationsRequest;
37+
import com.google.cloud.location.ListLocationsResponse;
38+
import com.google.cloud.location.Location;
39+
import com.google.iam.v1.GetIamPolicyRequest;
40+
import com.google.iam.v1.Policy;
41+
import com.google.iam.v1.SetIamPolicyRequest;
42+
import com.google.iam.v1.TestIamPermissionsRequest;
43+
import com.google.iam.v1.TestIamPermissionsResponse;
44+
import java.io.IOException;
45+
import java.util.List;
46+
import javax.annotation.Generated;
47+
48+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
49+
/**
50+
* Settings class to configure an instance of {@link FeaturestoreOnlineServingServiceClient}.
51+
*
52+
* <p>The default instance has everything set to sensible defaults:
53+
*
54+
* <ul>
55+
* <li> The default service address (aiplatform.googleapis.com) and default port (443) are used.
56+
* <li> Credentials are acquired automatically through Application Default Credentials.
57+
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
58+
* </ul>
59+
*
60+
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
61+
* build() is called, the tree of builders is called to create the complete settings object.
62+
*
63+
* <p>For example, to set the total timeout of readFeatureValues to 30 seconds:
64+
*
65+
* <pre>{@code
66+
* // This snippet has been automatically generated for illustrative purposes only.
67+
* // It may require modifications to work in your environment.
68+
* FeaturestoreOnlineServingServiceSettings.Builder
69+
* featurestoreOnlineServingServiceSettingsBuilder =
70+
* FeaturestoreOnlineServingServiceSettings.newBuilder();
71+
* featurestoreOnlineServingServiceSettingsBuilder
72+
* .readFeatureValuesSettings()
73+
* .setRetrySettings(
74+
* featurestoreOnlineServingServiceSettingsBuilder
75+
* .readFeatureValuesSettings()
76+
* .getRetrySettings()
77+
* .toBuilder()
78+
* .setTotalTimeout(Duration.ofSeconds(30))
79+
* .build());
80+
* FeaturestoreOnlineServingServiceSettings featurestoreOnlineServingServiceSettings =
81+
* featurestoreOnlineServingServiceSettingsBuilder.build();
82+
* }</pre>
83+
*/
84+
@Generated("by gapic-generator-java")
85+
public class FeaturestoreOnlineServingServiceSettings
86+
extends ClientSettings<FeaturestoreOnlineServingServiceSettings> {
87+
88+
/** Returns the object with the settings used for calls to readFeatureValues. */
89+
public UnaryCallSettings<ReadFeatureValuesRequest, ReadFeatureValuesResponse>
90+
readFeatureValuesSettings() {
91+
return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
92+
.readFeatureValuesSettings();
93+
}
94+
95+
/** Returns the object with the settings used for calls to streamingReadFeatureValues. */
96+
public ServerStreamingCallSettings<StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse>
97+
streamingReadFeatureValuesSettings() {
98+
return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
99+
.streamingReadFeatureValuesSettings();
100+
}
101+
102+
/** Returns the object with the settings used for calls to listLocations. */
103+
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
104+
listLocationsSettings() {
105+
return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
106+
.listLocationsSettings();
107+
}
108+
109+
/** Returns the object with the settings used for calls to getLocation. */
110+
public UnaryCallSettings<GetLocationRequest, Location> getLocationSettings() {
111+
return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings()).getLocationSettings();
112+
}
113+
114+
/** Returns the object with the settings used for calls to setIamPolicy. */
115+
public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
116+
return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
117+
.setIamPolicySettings();
118+
}
119+
120+
/** Returns the object with the settings used for calls to getIamPolicy. */
121+
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
122+
return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
123+
.getIamPolicySettings();
124+
}
125+
126+
/** Returns the object with the settings used for calls to testIamPermissions. */
127+
public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
128+
testIamPermissionsSettings() {
129+
return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
130+
.testIamPermissionsSettings();
131+
}
132+
133+
public static final FeaturestoreOnlineServingServiceSettings create(
134+
FeaturestoreOnlineServingServiceStubSettings stub) throws IOException {
135+
return new FeaturestoreOnlineServingServiceSettings.Builder(stub.toBuilder()).build();
136+
}
137+
138+
/** Returns a builder for the default ExecutorProvider for this service. */
139+
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
140+
return FeaturestoreOnlineServingServiceStubSettings.defaultExecutorProviderBuilder();
141+
}
142+
143+
/** Returns the default service endpoint. */
144+
public static String getDefaultEndpoint() {
145+
return FeaturestoreOnlineServingServiceStubSettings.getDefaultEndpoint();
146+
}
147+
148+
/** Returns the default service scopes. */
149+
public static List<String> getDefaultServiceScopes() {
150+
return FeaturestoreOnlineServingServiceStubSettings.getDefaultServiceScopes();
151+
}
152+
153+
/** Returns a builder for the default credentials for this service. */
154+
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
155+
return FeaturestoreOnlineServingServiceStubSettings.defaultCredentialsProviderBuilder();
156+
}
157+
158+
/** Returns a builder for the default ChannelProvider for this service. */
159+
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
160+
return FeaturestoreOnlineServingServiceStubSettings.defaultGrpcTransportProviderBuilder();
161+
}
162+
163+
public static TransportChannelProvider defaultTransportChannelProvider() {
164+
return FeaturestoreOnlineServingServiceStubSettings.defaultTransportChannelProvider();
165+
}
166+
167+
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
168+
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
169+
return FeaturestoreOnlineServingServiceStubSettings.defaultApiClientHeaderProviderBuilder();
170+
}
171+
172+
/** Returns a new builder for this class. */
173+
public static Builder newBuilder() {
174+
return Builder.createDefault();
175+
}
176+
177+
/** Returns a new builder for this class. */
178+
public static Builder newBuilder(ClientContext clientContext) {
179+
return new Builder(clientContext);
180+
}
181+
182+
/** Returns a builder containing all the values of this settings class. */
183+
public Builder toBuilder() {
184+
return new Builder(this);
185+
}
186+
187+
protected FeaturestoreOnlineServingServiceSettings(Builder settingsBuilder) throws IOException {
188+
super(settingsBuilder);
189+
}
190+
191+
/** Builder for FeaturestoreOnlineServingServiceSettings. */
192+
public static class Builder
193+
extends ClientSettings.Builder<FeaturestoreOnlineServingServiceSettings, Builder> {
194+
195+
protected Builder() throws IOException {
196+
this(((ClientContext) null));
197+
}
198+
199+
protected Builder(ClientContext clientContext) {
200+
super(FeaturestoreOnlineServingServiceStubSettings.newBuilder(clientContext));
201+
}
202+
203+
protected Builder(FeaturestoreOnlineServingServiceSettings settings) {
204+
super(settings.getStubSettings().toBuilder());
205+
}
206+
207+
protected Builder(FeaturestoreOnlineServingServiceStubSettings.Builder stubSettings) {
208+
super(stubSettings);
209+
}
210+
211+
private static Builder createDefault() {
212+
return new Builder(FeaturestoreOnlineServingServiceStubSettings.newBuilder());
213+
}
214+
215+
public FeaturestoreOnlineServingServiceStubSettings.Builder getStubSettingsBuilder() {
216+
return ((FeaturestoreOnlineServingServiceStubSettings.Builder) getStubSettings());
217+
}
218+
219+
/**
220+
* Applies the given settings updater function to all of the unary API methods in this service.
221+
*
222+
* <p>Note: This method does not support applying settings to streaming methods.
223+
*/
224+
public Builder applyToAllUnaryMethods(
225+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
226+
super.applyToAllUnaryMethods(
227+
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
228+
return this;
229+
}
230+
231+
/** Returns the builder for the settings used for calls to readFeatureValues. */
232+
public UnaryCallSettings.Builder<ReadFeatureValuesRequest, ReadFeatureValuesResponse>
233+
readFeatureValuesSettings() {
234+
return getStubSettingsBuilder().readFeatureValuesSettings();
235+
}
236+
237+
/** Returns the builder for the settings used for calls to streamingReadFeatureValues. */
238+
public ServerStreamingCallSettings.Builder<
239+
StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse>
240+
streamingReadFeatureValuesSettings() {
241+
return getStubSettingsBuilder().streamingReadFeatureValuesSettings();
242+
}
243+
244+
/** Returns the builder for the settings used for calls to listLocations. */
245+
public PagedCallSettings.Builder<
246+
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
247+
listLocationsSettings() {
248+
return getStubSettingsBuilder().listLocationsSettings();
249+
}
250+
251+
/** Returns the builder for the settings used for calls to getLocation. */
252+
public UnaryCallSettings.Builder<GetLocationRequest, Location> getLocationSettings() {
253+
return getStubSettingsBuilder().getLocationSettings();
254+
}
255+
256+
/** Returns the builder for the settings used for calls to setIamPolicy. */
257+
public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
258+
return getStubSettingsBuilder().setIamPolicySettings();
259+
}
260+
261+
/** Returns the builder for the settings used for calls to getIamPolicy. */
262+
public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
263+
return getStubSettingsBuilder().getIamPolicySettings();
264+
}
265+
266+
/** Returns the builder for the settings used for calls to testIamPermissions. */
267+
public UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
268+
testIamPermissionsSettings() {
269+
return getStubSettingsBuilder().testIamPermissionsSettings();
270+
}
271+
272+
@Override
273+
public FeaturestoreOnlineServingServiceSettings build() throws IOException {
274+
return new FeaturestoreOnlineServingServiceSettings(this);
275+
}
276+
}
277+
}

0 commit comments

Comments
 (0)