Skip to content

Commit fa72d04

Browse files
chore: generate libraries at Wed Mar 27 22:06:28 UTC 2024 (#10632)
1 parent d062be5 commit fa72d04

214 files changed

Lines changed: 84496 additions & 3675 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.

generation_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
gapic_generator_version: 2.38.1
22
protobuf_version: '25.2'
3-
googleapis_commitish: 5b2528052057f35d54ae20d846989de319121bf9
3+
googleapis_commitish: b0665ea5950660fca012c4cc8b7079dbc2d3f5dd
44
owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409
55
synthtool_commitish: 6612ab8f3afcd5e292aecd647f0fa68812c9f5b5
66
template_excludes:

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionExecutionServiceClient.java

Lines changed: 1038 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,269 @@
1+
/*
2+
* Copyright 2024 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.v1beta1;
18+
19+
import static com.google.cloud.aiplatform.v1beta1.ExtensionExecutionServiceClient.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.TransportChannelProvider;
31+
import com.google.api.gax.rpc.UnaryCallSettings;
32+
import com.google.cloud.aiplatform.v1beta1.stub.ExtensionExecutionServiceStubSettings;
33+
import com.google.cloud.location.GetLocationRequest;
34+
import com.google.cloud.location.ListLocationsRequest;
35+
import com.google.cloud.location.ListLocationsResponse;
36+
import com.google.cloud.location.Location;
37+
import com.google.iam.v1.GetIamPolicyRequest;
38+
import com.google.iam.v1.Policy;
39+
import com.google.iam.v1.SetIamPolicyRequest;
40+
import com.google.iam.v1.TestIamPermissionsRequest;
41+
import com.google.iam.v1.TestIamPermissionsResponse;
42+
import java.io.IOException;
43+
import java.util.List;
44+
import javax.annotation.Generated;
45+
46+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
47+
/**
48+
* Settings class to configure an instance of {@link ExtensionExecutionServiceClient}.
49+
*
50+
* <p>The default instance has everything set to sensible defaults:
51+
*
52+
* <ul>
53+
* <li>The default service address (aiplatform.googleapis.com) and default port (443) are used.
54+
* <li>Credentials are acquired automatically through Application Default Credentials.
55+
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
56+
* </ul>
57+
*
58+
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
59+
* build() is called, the tree of builders is called to create the complete settings object.
60+
*
61+
* <p>For example, to set the total timeout of executeExtension to 30 seconds:
62+
*
63+
* <pre>{@code
64+
* // This snippet has been automatically generated and should be regarded as a code template only.
65+
* // It will require modifications to work:
66+
* // - It may require correct/in-range values for request initialization.
67+
* // - It may require specifying regional endpoints when creating the service client as shown in
68+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
69+
* ExtensionExecutionServiceSettings.Builder extensionExecutionServiceSettingsBuilder =
70+
* ExtensionExecutionServiceSettings.newBuilder();
71+
* extensionExecutionServiceSettingsBuilder
72+
* .executeExtensionSettings()
73+
* .setRetrySettings(
74+
* extensionExecutionServiceSettingsBuilder
75+
* .executeExtensionSettings()
76+
* .getRetrySettings()
77+
* .toBuilder()
78+
* .setTotalTimeout(Duration.ofSeconds(30))
79+
* .build());
80+
* ExtensionExecutionServiceSettings extensionExecutionServiceSettings =
81+
* extensionExecutionServiceSettingsBuilder.build();
82+
* }</pre>
83+
*/
84+
@BetaApi
85+
@Generated("by gapic-generator-java")
86+
public class ExtensionExecutionServiceSettings
87+
extends ClientSettings<ExtensionExecutionServiceSettings> {
88+
89+
/** Returns the object with the settings used for calls to executeExtension. */
90+
public UnaryCallSettings<ExecuteExtensionRequest, ExecuteExtensionResponse>
91+
executeExtensionSettings() {
92+
return ((ExtensionExecutionServiceStubSettings) getStubSettings()).executeExtensionSettings();
93+
}
94+
95+
/** Returns the object with the settings used for calls to queryExtension. */
96+
public UnaryCallSettings<QueryExtensionRequest, QueryExtensionResponse> queryExtensionSettings() {
97+
return ((ExtensionExecutionServiceStubSettings) getStubSettings()).queryExtensionSettings();
98+
}
99+
100+
/** Returns the object with the settings used for calls to listLocations. */
101+
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
102+
listLocationsSettings() {
103+
return ((ExtensionExecutionServiceStubSettings) getStubSettings()).listLocationsSettings();
104+
}
105+
106+
/** Returns the object with the settings used for calls to getLocation. */
107+
public UnaryCallSettings<GetLocationRequest, Location> getLocationSettings() {
108+
return ((ExtensionExecutionServiceStubSettings) getStubSettings()).getLocationSettings();
109+
}
110+
111+
/** Returns the object with the settings used for calls to setIamPolicy. */
112+
public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
113+
return ((ExtensionExecutionServiceStubSettings) getStubSettings()).setIamPolicySettings();
114+
}
115+
116+
/** Returns the object with the settings used for calls to getIamPolicy. */
117+
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
118+
return ((ExtensionExecutionServiceStubSettings) getStubSettings()).getIamPolicySettings();
119+
}
120+
121+
/** Returns the object with the settings used for calls to testIamPermissions. */
122+
public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
123+
testIamPermissionsSettings() {
124+
return ((ExtensionExecutionServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
125+
}
126+
127+
public static final ExtensionExecutionServiceSettings create(
128+
ExtensionExecutionServiceStubSettings stub) throws IOException {
129+
return new ExtensionExecutionServiceSettings.Builder(stub.toBuilder()).build();
130+
}
131+
132+
/** Returns a builder for the default ExecutorProvider for this service. */
133+
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
134+
return ExtensionExecutionServiceStubSettings.defaultExecutorProviderBuilder();
135+
}
136+
137+
/** Returns the default service endpoint. */
138+
public static String getDefaultEndpoint() {
139+
return ExtensionExecutionServiceStubSettings.getDefaultEndpoint();
140+
}
141+
142+
/** Returns the default service scopes. */
143+
public static List<String> getDefaultServiceScopes() {
144+
return ExtensionExecutionServiceStubSettings.getDefaultServiceScopes();
145+
}
146+
147+
/** Returns a builder for the default credentials for this service. */
148+
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
149+
return ExtensionExecutionServiceStubSettings.defaultCredentialsProviderBuilder();
150+
}
151+
152+
/** Returns a builder for the default ChannelProvider for this service. */
153+
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
154+
return ExtensionExecutionServiceStubSettings.defaultGrpcTransportProviderBuilder();
155+
}
156+
157+
public static TransportChannelProvider defaultTransportChannelProvider() {
158+
return ExtensionExecutionServiceStubSettings.defaultTransportChannelProvider();
159+
}
160+
161+
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
162+
return ExtensionExecutionServiceStubSettings.defaultApiClientHeaderProviderBuilder();
163+
}
164+
165+
/** Returns a new builder for this class. */
166+
public static Builder newBuilder() {
167+
return Builder.createDefault();
168+
}
169+
170+
/** Returns a new builder for this class. */
171+
public static Builder newBuilder(ClientContext clientContext) {
172+
return new Builder(clientContext);
173+
}
174+
175+
/** Returns a builder containing all the values of this settings class. */
176+
public Builder toBuilder() {
177+
return new Builder(this);
178+
}
179+
180+
protected ExtensionExecutionServiceSettings(Builder settingsBuilder) throws IOException {
181+
super(settingsBuilder);
182+
}
183+
184+
/** Builder for ExtensionExecutionServiceSettings. */
185+
public static class Builder
186+
extends ClientSettings.Builder<ExtensionExecutionServiceSettings, Builder> {
187+
188+
protected Builder() throws IOException {
189+
this(((ClientContext) null));
190+
}
191+
192+
protected Builder(ClientContext clientContext) {
193+
super(ExtensionExecutionServiceStubSettings.newBuilder(clientContext));
194+
}
195+
196+
protected Builder(ExtensionExecutionServiceSettings settings) {
197+
super(settings.getStubSettings().toBuilder());
198+
}
199+
200+
protected Builder(ExtensionExecutionServiceStubSettings.Builder stubSettings) {
201+
super(stubSettings);
202+
}
203+
204+
private static Builder createDefault() {
205+
return new Builder(ExtensionExecutionServiceStubSettings.newBuilder());
206+
}
207+
208+
public ExtensionExecutionServiceStubSettings.Builder getStubSettingsBuilder() {
209+
return ((ExtensionExecutionServiceStubSettings.Builder) getStubSettings());
210+
}
211+
212+
/**
213+
* Applies the given settings updater function to all of the unary API methods in this service.
214+
*
215+
* <p>Note: This method does not support applying settings to streaming methods.
216+
*/
217+
public Builder applyToAllUnaryMethods(
218+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
219+
super.applyToAllUnaryMethods(
220+
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
221+
return this;
222+
}
223+
224+
/** Returns the builder for the settings used for calls to executeExtension. */
225+
public UnaryCallSettings.Builder<ExecuteExtensionRequest, ExecuteExtensionResponse>
226+
executeExtensionSettings() {
227+
return getStubSettingsBuilder().executeExtensionSettings();
228+
}
229+
230+
/** Returns the builder for the settings used for calls to queryExtension. */
231+
public UnaryCallSettings.Builder<QueryExtensionRequest, QueryExtensionResponse>
232+
queryExtensionSettings() {
233+
return getStubSettingsBuilder().queryExtensionSettings();
234+
}
235+
236+
/** Returns the builder for the settings used for calls to listLocations. */
237+
public PagedCallSettings.Builder<
238+
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
239+
listLocationsSettings() {
240+
return getStubSettingsBuilder().listLocationsSettings();
241+
}
242+
243+
/** Returns the builder for the settings used for calls to getLocation. */
244+
public UnaryCallSettings.Builder<GetLocationRequest, Location> getLocationSettings() {
245+
return getStubSettingsBuilder().getLocationSettings();
246+
}
247+
248+
/** Returns the builder for the settings used for calls to setIamPolicy. */
249+
public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
250+
return getStubSettingsBuilder().setIamPolicySettings();
251+
}
252+
253+
/** Returns the builder for the settings used for calls to getIamPolicy. */
254+
public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
255+
return getStubSettingsBuilder().getIamPolicySettings();
256+
}
257+
258+
/** Returns the builder for the settings used for calls to testIamPermissions. */
259+
public UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
260+
testIamPermissionsSettings() {
261+
return getStubSettingsBuilder().testIamPermissionsSettings();
262+
}
263+
264+
@Override
265+
public ExtensionExecutionServiceSettings build() throws IOException {
266+
return new ExtensionExecutionServiceSettings(this);
267+
}
268+
}
269+
}

0 commit comments

Comments
 (0)