Skip to content

Commit 9c76068

Browse files
feat: add model_source_info to Model in aiplatform v1beta1 model.proto
PiperOrigin-RevId: 476411826 Source-Link: googleapis/googleapis@72f0faa Source-Link: https://github.com/googleapis/googleapis-gen/commit/7909f5b1d51349dcefbe370f6a488981b80c1bfd Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiI3OTA5ZjViMWQ1MTM0OWRjZWZiZTM3MGY2YTQ4ODk4MWI4MGMxYmZkIn0=
1 parent 134e44c commit 9c76068

2,889 files changed

Lines changed: 1809987 additions & 0 deletions

File tree

Some content is hidden

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

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

Lines changed: 2580 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: 1867 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: 840 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,280 @@
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 and should be regarded as a code template only.
67+
* // It will require modifications to work:
68+
* // - It may require correct/in-range values for request initialization.
69+
* // - It may require specifying regional endpoints when creating the service client as shown in
70+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
71+
* FeaturestoreOnlineServingServiceSettings.Builder
72+
* featurestoreOnlineServingServiceSettingsBuilder =
73+
* FeaturestoreOnlineServingServiceSettings.newBuilder();
74+
* featurestoreOnlineServingServiceSettingsBuilder
75+
* .readFeatureValuesSettings()
76+
* .setRetrySettings(
77+
* featurestoreOnlineServingServiceSettingsBuilder
78+
* .readFeatureValuesSettings()
79+
* .getRetrySettings()
80+
* .toBuilder()
81+
* .setTotalTimeout(Duration.ofSeconds(30))
82+
* .build());
83+
* FeaturestoreOnlineServingServiceSettings featurestoreOnlineServingServiceSettings =
84+
* featurestoreOnlineServingServiceSettingsBuilder.build();
85+
* }</pre>
86+
*/
87+
@Generated("by gapic-generator-java")
88+
public class FeaturestoreOnlineServingServiceSettings
89+
extends ClientSettings<FeaturestoreOnlineServingServiceSettings> {
90+
91+
/** Returns the object with the settings used for calls to readFeatureValues. */
92+
public UnaryCallSettings<ReadFeatureValuesRequest, ReadFeatureValuesResponse>
93+
readFeatureValuesSettings() {
94+
return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
95+
.readFeatureValuesSettings();
96+
}
97+
98+
/** Returns the object with the settings used for calls to streamingReadFeatureValues. */
99+
public ServerStreamingCallSettings<StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse>
100+
streamingReadFeatureValuesSettings() {
101+
return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
102+
.streamingReadFeatureValuesSettings();
103+
}
104+
105+
/** Returns the object with the settings used for calls to listLocations. */
106+
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
107+
listLocationsSettings() {
108+
return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
109+
.listLocationsSettings();
110+
}
111+
112+
/** Returns the object with the settings used for calls to getLocation. */
113+
public UnaryCallSettings<GetLocationRequest, Location> getLocationSettings() {
114+
return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings()).getLocationSettings();
115+
}
116+
117+
/** Returns the object with the settings used for calls to setIamPolicy. */
118+
public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
119+
return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
120+
.setIamPolicySettings();
121+
}
122+
123+
/** Returns the object with the settings used for calls to getIamPolicy. */
124+
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
125+
return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
126+
.getIamPolicySettings();
127+
}
128+
129+
/** Returns the object with the settings used for calls to testIamPermissions. */
130+
public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
131+
testIamPermissionsSettings() {
132+
return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
133+
.testIamPermissionsSettings();
134+
}
135+
136+
public static final FeaturestoreOnlineServingServiceSettings create(
137+
FeaturestoreOnlineServingServiceStubSettings stub) throws IOException {
138+
return new FeaturestoreOnlineServingServiceSettings.Builder(stub.toBuilder()).build();
139+
}
140+
141+
/** Returns a builder for the default ExecutorProvider for this service. */
142+
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
143+
return FeaturestoreOnlineServingServiceStubSettings.defaultExecutorProviderBuilder();
144+
}
145+
146+
/** Returns the default service endpoint. */
147+
public static String getDefaultEndpoint() {
148+
return FeaturestoreOnlineServingServiceStubSettings.getDefaultEndpoint();
149+
}
150+
151+
/** Returns the default service scopes. */
152+
public static List<String> getDefaultServiceScopes() {
153+
return FeaturestoreOnlineServingServiceStubSettings.getDefaultServiceScopes();
154+
}
155+
156+
/** Returns a builder for the default credentials for this service. */
157+
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
158+
return FeaturestoreOnlineServingServiceStubSettings.defaultCredentialsProviderBuilder();
159+
}
160+
161+
/** Returns a builder for the default ChannelProvider for this service. */
162+
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
163+
return FeaturestoreOnlineServingServiceStubSettings.defaultGrpcTransportProviderBuilder();
164+
}
165+
166+
public static TransportChannelProvider defaultTransportChannelProvider() {
167+
return FeaturestoreOnlineServingServiceStubSettings.defaultTransportChannelProvider();
168+
}
169+
170+
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
171+
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
172+
return FeaturestoreOnlineServingServiceStubSettings.defaultApiClientHeaderProviderBuilder();
173+
}
174+
175+
/** Returns a new builder for this class. */
176+
public static Builder newBuilder() {
177+
return Builder.createDefault();
178+
}
179+
180+
/** Returns a new builder for this class. */
181+
public static Builder newBuilder(ClientContext clientContext) {
182+
return new Builder(clientContext);
183+
}
184+
185+
/** Returns a builder containing all the values of this settings class. */
186+
public Builder toBuilder() {
187+
return new Builder(this);
188+
}
189+
190+
protected FeaturestoreOnlineServingServiceSettings(Builder settingsBuilder) throws IOException {
191+
super(settingsBuilder);
192+
}
193+
194+
/** Builder for FeaturestoreOnlineServingServiceSettings. */
195+
public static class Builder
196+
extends ClientSettings.Builder<FeaturestoreOnlineServingServiceSettings, Builder> {
197+
198+
protected Builder() throws IOException {
199+
this(((ClientContext) null));
200+
}
201+
202+
protected Builder(ClientContext clientContext) {
203+
super(FeaturestoreOnlineServingServiceStubSettings.newBuilder(clientContext));
204+
}
205+
206+
protected Builder(FeaturestoreOnlineServingServiceSettings settings) {
207+
super(settings.getStubSettings().toBuilder());
208+
}
209+
210+
protected Builder(FeaturestoreOnlineServingServiceStubSettings.Builder stubSettings) {
211+
super(stubSettings);
212+
}
213+
214+
private static Builder createDefault() {
215+
return new Builder(FeaturestoreOnlineServingServiceStubSettings.newBuilder());
216+
}
217+
218+
public FeaturestoreOnlineServingServiceStubSettings.Builder getStubSettingsBuilder() {
219+
return ((FeaturestoreOnlineServingServiceStubSettings.Builder) getStubSettings());
220+
}
221+
222+
/**
223+
* Applies the given settings updater function to all of the unary API methods in this service.
224+
*
225+
* <p>Note: This method does not support applying settings to streaming methods.
226+
*/
227+
public Builder applyToAllUnaryMethods(
228+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
229+
super.applyToAllUnaryMethods(
230+
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
231+
return this;
232+
}
233+
234+
/** Returns the builder for the settings used for calls to readFeatureValues. */
235+
public UnaryCallSettings.Builder<ReadFeatureValuesRequest, ReadFeatureValuesResponse>
236+
readFeatureValuesSettings() {
237+
return getStubSettingsBuilder().readFeatureValuesSettings();
238+
}
239+
240+
/** Returns the builder for the settings used for calls to streamingReadFeatureValues. */
241+
public ServerStreamingCallSettings.Builder<
242+
StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse>
243+
streamingReadFeatureValuesSettings() {
244+
return getStubSettingsBuilder().streamingReadFeatureValuesSettings();
245+
}
246+
247+
/** Returns the builder for the settings used for calls to listLocations. */
248+
public PagedCallSettings.Builder<
249+
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
250+
listLocationsSettings() {
251+
return getStubSettingsBuilder().listLocationsSettings();
252+
}
253+
254+
/** Returns the builder for the settings used for calls to getLocation. */
255+
public UnaryCallSettings.Builder<GetLocationRequest, Location> getLocationSettings() {
256+
return getStubSettingsBuilder().getLocationSettings();
257+
}
258+
259+
/** Returns the builder for the settings used for calls to setIamPolicy. */
260+
public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
261+
return getStubSettingsBuilder().setIamPolicySettings();
262+
}
263+
264+
/** Returns the builder for the settings used for calls to getIamPolicy. */
265+
public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
266+
return getStubSettingsBuilder().getIamPolicySettings();
267+
}
268+
269+
/** Returns the builder for the settings used for calls to testIamPermissions. */
270+
public UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
271+
testIamPermissionsSettings() {
272+
return getStubSettingsBuilder().testIamPermissionsSettings();
273+
}
274+
275+
@Override
276+
public FeaturestoreOnlineServingServiceSettings build() throws IOException {
277+
return new FeaturestoreOnlineServingServiceSettings(this);
278+
}
279+
}
280+
}

0 commit comments

Comments
 (0)