Skip to content

Commit 6ac1b99

Browse files
authored
Merge branch 'main' into shopping-merchant-inventories
2 parents cf5022b + bfc3c9e commit 6ac1b99

File tree

77 files changed

+25027
-1
lines changed

Some content is hidden

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

77 files changed

+25027
-1
lines changed

generation_config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
gapic_generator_version: 2.61.0
2-
googleapis_commitish: 8c74a4f9ad52cfd7a7d1f6427fa0a0511377a395
2+
googleapis_commitish: 09f2446e4a30d6d79dff93e14bbc992b855ebaaf
33
libraries_bom_version: 26.65.0
44

55
# the libraries are ordered with respect to library name, which is
@@ -2248,6 +2248,7 @@ libraries:
22482248
group_id: com.google.shopping
22492249
cloud_api: false
22502250
GAPICs:
2251+
- proto_path: google/shopping/merchant/conversions/v1
22512252
- proto_path: google/shopping/merchant/conversions/v1beta
22522253
requires_billing: true
22532254

java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,21 @@
3333
<artifactId>grpc-google-shopping-merchant-conversions-v1beta</artifactId>
3434
<version>0.30.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-shopping-merchant-conversions-v1beta:current} -->
3535
</dependency>
36+
<dependency>
37+
<groupId>com.google.shopping.api.grpc</groupId>
38+
<artifactId>grpc-google-shopping-merchant-conversions-v1</artifactId>
39+
<version>0.30.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-shopping-merchant-conversions-v1:current} -->
40+
</dependency>
3641
<dependency>
3742
<groupId>com.google.shopping.api.grpc</groupId>
3843
<artifactId>proto-google-shopping-merchant-conversions-v1beta</artifactId>
3944
<version>0.30.0-SNAPSHOT</version><!-- {x-version-update:proto-google-shopping-merchant-conversions-v1beta:current} -->
4045
</dependency>
46+
<dependency>
47+
<groupId>com.google.shopping.api.grpc</groupId>
48+
<artifactId>proto-google-shopping-merchant-conversions-v1</artifactId>
49+
<version>0.30.0-SNAPSHOT</version><!-- {x-version-update:proto-google-shopping-merchant-conversions-v1:current} -->
50+
</dependency>
4151
</dependencies>
4252
</dependencyManagement>
4353
</project>

java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
<artifactId>proto-google-common-protos</artifactId>
4242
</dependency>
4343

44+
<dependency>
45+
<groupId>com.google.shopping.api.grpc</groupId>
46+
<artifactId>proto-google-shopping-merchant-conversions-v1</artifactId>
47+
</dependency>
4448
<dependency>
4549
<groupId>com.google.shopping.api.grpc</groupId>
4650
<artifactId>proto-google-shopping-merchant-conversions-v1beta</artifactId>
@@ -66,6 +70,11 @@
6670
<artifactId>grpc-google-common-protos</artifactId>
6771
<scope>test</scope>
6872
</dependency>
73+
<dependency>
74+
<groupId>com.google.shopping.api.grpc</groupId>
75+
<artifactId>grpc-google-shopping-merchant-conversions-v1</artifactId>
76+
<scope>test</scope>
77+
</dependency>
6978
<dependency>
7079
<groupId>com.google.api.grpc</groupId>
7180
<artifactId>proto-google-iam-v1</artifactId>

java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourcesServiceClient.java

Lines changed: 1122 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 294 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,294 @@
1+
/*
2+
* Copyright 2025 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.shopping.merchant.conversions.v1;
18+
19+
import static com.google.shopping.merchant.conversions.v1.ConversionSourcesServiceClient.ListConversionSourcesPagedResponse;
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.httpjson.InstantiatingHttpJsonChannelProvider;
27+
import com.google.api.gax.rpc.ApiClientHeaderProvider;
28+
import com.google.api.gax.rpc.ClientContext;
29+
import com.google.api.gax.rpc.ClientSettings;
30+
import com.google.api.gax.rpc.PagedCallSettings;
31+
import com.google.api.gax.rpc.TransportChannelProvider;
32+
import com.google.api.gax.rpc.UnaryCallSettings;
33+
import com.google.protobuf.Empty;
34+
import com.google.shopping.merchant.conversions.v1.stub.ConversionSourcesServiceStubSettings;
35+
import java.io.IOException;
36+
import java.util.List;
37+
import javax.annotation.Generated;
38+
39+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
40+
/**
41+
* Settings class to configure an instance of {@link ConversionSourcesServiceClient}.
42+
*
43+
* <p>The default instance has everything set to sensible defaults:
44+
*
45+
* <ul>
46+
* <li>The default service address (merchantapi.googleapis.com) and default port (443) are used.
47+
* <li>Credentials are acquired automatically through Application Default Credentials.
48+
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
49+
* </ul>
50+
*
51+
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
52+
* build() is called, the tree of builders is called to create the complete settings object.
53+
*
54+
* <p>For example, to set the
55+
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
56+
* of createConversionSource:
57+
*
58+
* <pre>{@code
59+
* // This snippet has been automatically generated and should be regarded as a code template only.
60+
* // It will require modifications to work:
61+
* // - It may require correct/in-range values for request initialization.
62+
* // - It may require specifying regional endpoints when creating the service client as shown in
63+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
64+
* ConversionSourcesServiceSettings.Builder conversionSourcesServiceSettingsBuilder =
65+
* ConversionSourcesServiceSettings.newBuilder();
66+
* conversionSourcesServiceSettingsBuilder
67+
* .createConversionSourceSettings()
68+
* .setRetrySettings(
69+
* conversionSourcesServiceSettingsBuilder
70+
* .createConversionSourceSettings()
71+
* .getRetrySettings()
72+
* .toBuilder()
73+
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
74+
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
75+
* .setMaxAttempts(5)
76+
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
77+
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
78+
* .setRetryDelayMultiplier(1.3)
79+
* .setRpcTimeoutMultiplier(1.5)
80+
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
81+
* .build());
82+
* ConversionSourcesServiceSettings conversionSourcesServiceSettings =
83+
* conversionSourcesServiceSettingsBuilder.build();
84+
* }</pre>
85+
*
86+
* Please refer to the [Client Side Retry
87+
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
88+
* additional support in setting retries.
89+
*/
90+
@Generated("by gapic-generator-java")
91+
public class ConversionSourcesServiceSettings
92+
extends ClientSettings<ConversionSourcesServiceSettings> {
93+
94+
/** Returns the object with the settings used for calls to createConversionSource. */
95+
public UnaryCallSettings<CreateConversionSourceRequest, ConversionSource>
96+
createConversionSourceSettings() {
97+
return ((ConversionSourcesServiceStubSettings) getStubSettings())
98+
.createConversionSourceSettings();
99+
}
100+
101+
/** Returns the object with the settings used for calls to updateConversionSource. */
102+
public UnaryCallSettings<UpdateConversionSourceRequest, ConversionSource>
103+
updateConversionSourceSettings() {
104+
return ((ConversionSourcesServiceStubSettings) getStubSettings())
105+
.updateConversionSourceSettings();
106+
}
107+
108+
/** Returns the object with the settings used for calls to deleteConversionSource. */
109+
public UnaryCallSettings<DeleteConversionSourceRequest, Empty> deleteConversionSourceSettings() {
110+
return ((ConversionSourcesServiceStubSettings) getStubSettings())
111+
.deleteConversionSourceSettings();
112+
}
113+
114+
/** Returns the object with the settings used for calls to undeleteConversionSource. */
115+
public UnaryCallSettings<UndeleteConversionSourceRequest, ConversionSource>
116+
undeleteConversionSourceSettings() {
117+
return ((ConversionSourcesServiceStubSettings) getStubSettings())
118+
.undeleteConversionSourceSettings();
119+
}
120+
121+
/** Returns the object with the settings used for calls to getConversionSource. */
122+
public UnaryCallSettings<GetConversionSourceRequest, ConversionSource>
123+
getConversionSourceSettings() {
124+
return ((ConversionSourcesServiceStubSettings) getStubSettings()).getConversionSourceSettings();
125+
}
126+
127+
/** Returns the object with the settings used for calls to listConversionSources. */
128+
public PagedCallSettings<
129+
ListConversionSourcesRequest,
130+
ListConversionSourcesResponse,
131+
ListConversionSourcesPagedResponse>
132+
listConversionSourcesSettings() {
133+
return ((ConversionSourcesServiceStubSettings) getStubSettings())
134+
.listConversionSourcesSettings();
135+
}
136+
137+
public static final ConversionSourcesServiceSettings create(
138+
ConversionSourcesServiceStubSettings stub) throws IOException {
139+
return new ConversionSourcesServiceSettings.Builder(stub.toBuilder()).build();
140+
}
141+
142+
/** Returns a builder for the default ExecutorProvider for this service. */
143+
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
144+
return ConversionSourcesServiceStubSettings.defaultExecutorProviderBuilder();
145+
}
146+
147+
/** Returns the default service endpoint. */
148+
public static String getDefaultEndpoint() {
149+
return ConversionSourcesServiceStubSettings.getDefaultEndpoint();
150+
}
151+
152+
/** Returns the default service scopes. */
153+
public static List<String> getDefaultServiceScopes() {
154+
return ConversionSourcesServiceStubSettings.getDefaultServiceScopes();
155+
}
156+
157+
/** Returns a builder for the default credentials for this service. */
158+
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
159+
return ConversionSourcesServiceStubSettings.defaultCredentialsProviderBuilder();
160+
}
161+
162+
/** Returns a builder for the default gRPC ChannelProvider for this service. */
163+
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
164+
return ConversionSourcesServiceStubSettings.defaultGrpcTransportProviderBuilder();
165+
}
166+
167+
/** Returns a builder for the default REST ChannelProvider for this service. */
168+
@BetaApi
169+
public static InstantiatingHttpJsonChannelProvider.Builder
170+
defaultHttpJsonTransportProviderBuilder() {
171+
return ConversionSourcesServiceStubSettings.defaultHttpJsonTransportProviderBuilder();
172+
}
173+
174+
public static TransportChannelProvider defaultTransportChannelProvider() {
175+
return ConversionSourcesServiceStubSettings.defaultTransportChannelProvider();
176+
}
177+
178+
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
179+
return ConversionSourcesServiceStubSettings.defaultApiClientHeaderProviderBuilder();
180+
}
181+
182+
/** Returns a new gRPC builder for this class. */
183+
public static Builder newBuilder() {
184+
return Builder.createDefault();
185+
}
186+
187+
/** Returns a new REST builder for this class. */
188+
public static Builder newHttpJsonBuilder() {
189+
return Builder.createHttpJsonDefault();
190+
}
191+
192+
/** Returns a new builder for this class. */
193+
public static Builder newBuilder(ClientContext clientContext) {
194+
return new Builder(clientContext);
195+
}
196+
197+
/** Returns a builder containing all the values of this settings class. */
198+
public Builder toBuilder() {
199+
return new Builder(this);
200+
}
201+
202+
protected ConversionSourcesServiceSettings(Builder settingsBuilder) throws IOException {
203+
super(settingsBuilder);
204+
}
205+
206+
/** Builder for ConversionSourcesServiceSettings. */
207+
public static class Builder
208+
extends ClientSettings.Builder<ConversionSourcesServiceSettings, Builder> {
209+
210+
protected Builder() throws IOException {
211+
this(((ClientContext) null));
212+
}
213+
214+
protected Builder(ClientContext clientContext) {
215+
super(ConversionSourcesServiceStubSettings.newBuilder(clientContext));
216+
}
217+
218+
protected Builder(ConversionSourcesServiceSettings settings) {
219+
super(settings.getStubSettings().toBuilder());
220+
}
221+
222+
protected Builder(ConversionSourcesServiceStubSettings.Builder stubSettings) {
223+
super(stubSettings);
224+
}
225+
226+
private static Builder createDefault() {
227+
return new Builder(ConversionSourcesServiceStubSettings.newBuilder());
228+
}
229+
230+
private static Builder createHttpJsonDefault() {
231+
return new Builder(ConversionSourcesServiceStubSettings.newHttpJsonBuilder());
232+
}
233+
234+
public ConversionSourcesServiceStubSettings.Builder getStubSettingsBuilder() {
235+
return ((ConversionSourcesServiceStubSettings.Builder) getStubSettings());
236+
}
237+
238+
/**
239+
* Applies the given settings updater function to all of the unary API methods in this service.
240+
*
241+
* <p>Note: This method does not support applying settings to streaming methods.
242+
*/
243+
public Builder applyToAllUnaryMethods(
244+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
245+
super.applyToAllUnaryMethods(
246+
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
247+
return this;
248+
}
249+
250+
/** Returns the builder for the settings used for calls to createConversionSource. */
251+
public UnaryCallSettings.Builder<CreateConversionSourceRequest, ConversionSource>
252+
createConversionSourceSettings() {
253+
return getStubSettingsBuilder().createConversionSourceSettings();
254+
}
255+
256+
/** Returns the builder for the settings used for calls to updateConversionSource. */
257+
public UnaryCallSettings.Builder<UpdateConversionSourceRequest, ConversionSource>
258+
updateConversionSourceSettings() {
259+
return getStubSettingsBuilder().updateConversionSourceSettings();
260+
}
261+
262+
/** Returns the builder for the settings used for calls to deleteConversionSource. */
263+
public UnaryCallSettings.Builder<DeleteConversionSourceRequest, Empty>
264+
deleteConversionSourceSettings() {
265+
return getStubSettingsBuilder().deleteConversionSourceSettings();
266+
}
267+
268+
/** Returns the builder for the settings used for calls to undeleteConversionSource. */
269+
public UnaryCallSettings.Builder<UndeleteConversionSourceRequest, ConversionSource>
270+
undeleteConversionSourceSettings() {
271+
return getStubSettingsBuilder().undeleteConversionSourceSettings();
272+
}
273+
274+
/** Returns the builder for the settings used for calls to getConversionSource. */
275+
public UnaryCallSettings.Builder<GetConversionSourceRequest, ConversionSource>
276+
getConversionSourceSettings() {
277+
return getStubSettingsBuilder().getConversionSourceSettings();
278+
}
279+
280+
/** Returns the builder for the settings used for calls to listConversionSources. */
281+
public PagedCallSettings.Builder<
282+
ListConversionSourcesRequest,
283+
ListConversionSourcesResponse,
284+
ListConversionSourcesPagedResponse>
285+
listConversionSourcesSettings() {
286+
return getStubSettingsBuilder().listConversionSourcesSettings();
287+
}
288+
289+
@Override
290+
public ConversionSourcesServiceSettings build() throws IOException {
291+
return new ConversionSourcesServiceSettings(this);
292+
}
293+
}
294+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"schema": "1.0",
3+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
4+
"language": "java",
5+
"protoPackage": "google.shopping.merchant.conversions.v1",
6+
"libraryPackage": "com.google.shopping.merchant.conversions.v1",
7+
"services": {
8+
"ConversionSourcesService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "ConversionSourcesServiceClient",
12+
"rpcs": {
13+
"CreateConversionSource": {
14+
"methods": ["createConversionSource", "createConversionSource", "createConversionSource", "createConversionSourceCallable"]
15+
},
16+
"DeleteConversionSource": {
17+
"methods": ["deleteConversionSource", "deleteConversionSource", "deleteConversionSource", "deleteConversionSourceCallable"]
18+
},
19+
"GetConversionSource": {
20+
"methods": ["getConversionSource", "getConversionSource", "getConversionSource", "getConversionSourceCallable"]
21+
},
22+
"ListConversionSources": {
23+
"methods": ["listConversionSources", "listConversionSources", "listConversionSources", "listConversionSourcesPagedCallable", "listConversionSourcesCallable"]
24+
},
25+
"UndeleteConversionSource": {
26+
"methods": ["undeleteConversionSource", "undeleteConversionSourceCallable"]
27+
},
28+
"UpdateConversionSource": {
29+
"methods": ["updateConversionSource", "updateConversionSource", "updateConversionSourceCallable"]
30+
}
31+
}
32+
}
33+
}
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)