Skip to content

Commit 8c03be2

Browse files
fix(deps): [Many APIs] Update the Java code generator (gapic-generator-java) to 2.31.0 (#10196)
* fix(deps): Update the Java code generator (gapic-generator-java) to 2.31.0 PiperOrigin-RevId: 596645164 Source-Link: googleapis/googleapis@4a0e62e Source-Link: https://github.com/googleapis/googleapis-gen/commit/a10ed6a77676c37e60799098d48d0afb16008613 Copy-Tag: eyJwIjoiamF2YS1jbG91ZGNvbW1lcmNlY29uc3VtZXJwcm9jdXJlbWVudC8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1jbG91ZHF1b3Rhcy8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1jbG91ZHN1cHBvcnQvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1jb21wdXRlLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1jb25maWRlbnRpYWxjb21wdXRpbmcvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1jb250YWN0LWNlbnRlci1pbnNpZ2h0cy8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1jb250YWluZXIvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1jb250YWluZXJhbmFseXNpcy8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1jb250ZW50d2FyZWhvdXNlLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1kYXRhLWZ1c2lvbi8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1kYXRhZmxvdy8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1kYXRhZm9ybS8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1kYXRhbGFiZWxpbmcvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1kYXRhbGluZWFnZS8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1kYXRhcGxleC8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1kYXRhcHJvYy1tZXRhc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1kYXRhcHJvYy8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1kYXRhc3RyZWFtLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1kZWJ1Z2dlci1jbGllbnQvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent e56e666 commit 8c03be2

File tree

383 files changed

+32996
-2483
lines changed

Some content is hidden

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

383 files changed

+32996
-2483
lines changed

java-cloudcommerceconsumerprocurement/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
201201
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
202202
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
203203
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement.svg
204-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.28.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.30.0
205205
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
206206
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
207207
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClient.java

Lines changed: 61 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,67 @@
6767
* resources such as threads. In the example above, try-with-resources is used, which automatically
6868
* calls close().
6969
*
70-
* <p>The surface of this class includes several types of Java methods for each of the API's
71-
* methods:
72-
*
73-
* <ol>
74-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
75-
* converted into function parameters. It may be the case that not all fields are available as
76-
* parameters, and not every API method will have a flattened method entry point.
77-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
78-
* which must be constructed before the call. Not every API method will have a request object
79-
* method.
80-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
81-
* callable object, which can be used to initiate calls to the service.
82-
* </ol>
70+
* <table>
71+
* <tr>
72+
* <th>Method</th>
73+
* <th>Description</th>
74+
* <th>Method Variants</th>
75+
* <tr>
76+
* <td>PlaceOrder</td>
77+
* <td><p> Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.Order].
78+
* <p> This API only supports GCP spend-based committed use discounts specified by GCP documentation.
79+
* <p> The returned long-running operation is in-progress until the backend completes the creation of the resource. Once completed, the order is in [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1.OrderState.ORDER_STATE_ACTIVE]. In case of failure, the order resource will be removed.</td>
80+
* <td>
81+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
82+
* <ul>
83+
* <li>placeOrderAsync(PlaceOrderRequest request)
84+
* </ul>
85+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
86+
* <ul>
87+
* <li>placeOrderOperationCallable()
88+
* <li>placeOrderCallable()
89+
* </ul>
90+
* </td>
91+
* </tr>
92+
* <tr>
93+
* <td>GetOrder</td>
94+
* <td><p> Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1.Order] resource.</td>
95+
* <td>
96+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
97+
* <ul>
98+
* <li>getOrder(GetOrderRequest request)
99+
* </ul>
100+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
101+
* <ul>
102+
* <li>getOrder(String name)
103+
* </ul>
104+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
105+
* <ul>
106+
* <li>getOrderCallable()
107+
* </ul>
108+
* </td>
109+
* </tr>
110+
* <tr>
111+
* <td>ListOrders</td>
112+
* <td><p> Lists [Order][google.cloud.commerce.consumer.procurement.v1.Order] resources that the user has access to, within the scope of the parent resource.</td>
113+
* <td>
114+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
115+
* <ul>
116+
* <li>listOrders(ListOrdersRequest request)
117+
* </ul>
118+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
119+
* <ul>
120+
* <li>listOrders(String parent)
121+
* </ul>
122+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
123+
* <ul>
124+
* <li>listOrdersPagedCallable()
125+
* <li>listOrdersCallable()
126+
* </ul>
127+
* </td>
128+
* </tr>
129+
* </tr>
130+
* </table>
83131
*
84132
* <p>See the individual methods for example code.
85133
*

java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStubSettings.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,12 @@ public ConsumerProcurementServiceStub createStub() throws IOException {
207207
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
208208
}
209209

210+
/** Returns the default service name. */
211+
@Override
212+
public String getServiceName() {
213+
return "cloudcommerceconsumerprocurement";
214+
}
215+
210216
/** Returns a builder for the default ExecutorProvider for this service. */
211217
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
212218
return InstantiatingExecutorProvider.newBuilder();

java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClient.java

Lines changed: 61 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,67 @@
6767
* resources such as threads. In the example above, try-with-resources is used, which automatically
6868
* calls close().
6969
*
70-
* <p>The surface of this class includes several types of Java methods for each of the API's
71-
* methods:
72-
*
73-
* <ol>
74-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
75-
* converted into function parameters. It may be the case that not all fields are available as
76-
* parameters, and not every API method will have a flattened method entry point.
77-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
78-
* which must be constructed before the call. Not every API method will have a request object
79-
* method.
80-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
81-
* callable object, which can be used to initiate calls to the service.
82-
* </ol>
70+
* <table>
71+
* <tr>
72+
* <th>Method</th>
73+
* <th>Description</th>
74+
* <th>Method Variants</th>
75+
* <tr>
76+
* <td>PlaceOrder</td>
77+
* <td><p> Creates a new [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order].
78+
* <p> This API only supports GCP spend-based committed use discounts specified by GCP documentation.
79+
* <p> The returned long-running operation is in-progress until the backend completes the creation of the resource. Once completed, the order is in [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1alpha1.OrderState.ORDER_STATE_ACTIVE]. In case of failure, the order resource will be removed.</td>
80+
* <td>
81+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
82+
* <ul>
83+
* <li>placeOrderAsync(PlaceOrderRequest request)
84+
* </ul>
85+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
86+
* <ul>
87+
* <li>placeOrderOperationCallable()
88+
* <li>placeOrderCallable()
89+
* </ul>
90+
* </td>
91+
* </tr>
92+
* <tr>
93+
* <td>GetOrder</td>
94+
* <td><p> Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resource.</td>
95+
* <td>
96+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
97+
* <ul>
98+
* <li>getOrder(GetOrderRequest request)
99+
* </ul>
100+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
101+
* <ul>
102+
* <li>getOrder(String name)
103+
* </ul>
104+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
105+
* <ul>
106+
* <li>getOrderCallable()
107+
* </ul>
108+
* </td>
109+
* </tr>
110+
* <tr>
111+
* <td>ListOrders</td>
112+
* <td><p> Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resources that the user has access to, within the scope of the parent resource.</td>
113+
* <td>
114+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
115+
* <ul>
116+
* <li>listOrders(ListOrdersRequest request)
117+
* </ul>
118+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
119+
* <ul>
120+
* <li>listOrders(String parent)
121+
* </ul>
122+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
123+
* <ul>
124+
* <li>listOrdersPagedCallable()
125+
* <li>listOrdersCallable()
126+
* </ul>
127+
* </td>
128+
* </tr>
129+
* </tr>
130+
* </table>
83131
*
84132
* <p>See the individual methods for example code.
85133
*

java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ public ConsumerProcurementServiceStub createStub() throws IOException {
208208
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
209209
}
210210

211+
/** Returns the default service name. */
212+
@Override
213+
public String getServiceName() {
214+
return "cloudcommerceconsumerprocurement";
215+
}
216+
211217
/** Returns a builder for the default ExecutorProvider for this service. */
212218
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
213219
return InstantiatingExecutorProvider.newBuilder();

java-cloudquotas/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2323
<dependency>
2424
<groupId>com.google.cloud</groupId>
2525
<artifactId>libraries-bom</artifactId>
26-
<version>26.25.0</version>
26+
<version>26.29.0</version>
2727
<type>pom</type>
2828
<scope>import</scope>
2929
</dependency>

java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/CloudQuotasClient.java

Lines changed: 124 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,130 @@
6262
* <p>Note: close() needs to be called on the CloudQuotasClient object to clean up resources such as
6363
* threads. In the example above, try-with-resources is used, which automatically calls close().
6464
*
65-
* <p>The surface of this class includes several types of Java methods for each of the API's
66-
* methods:
67-
*
68-
* <ol>
69-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
70-
* converted into function parameters. It may be the case that not all fields are available as
71-
* parameters, and not every API method will have a flattened method entry point.
72-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
73-
* which must be constructed before the call. Not every API method will have a request object
74-
* method.
75-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
76-
* callable object, which can be used to initiate calls to the service.
77-
* </ol>
65+
* <table>
66+
* <tr>
67+
* <th>Method</th>
68+
* <th>Description</th>
69+
* <th>Method Variants</th>
70+
* <tr>
71+
* <td>ListQuotaInfos</td>
72+
* <td><p> Lists QuotaInfos of all quotas for a given project, folder or organization.</td>
73+
* <td>
74+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
75+
* <ul>
76+
* <li>listQuotaInfos(ListQuotaInfosRequest request)
77+
* </ul>
78+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
79+
* <ul>
80+
* <li>listQuotaInfos(ServiceName parent)
81+
* <li>listQuotaInfos(String parent)
82+
* </ul>
83+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
84+
* <ul>
85+
* <li>listQuotaInfosPagedCallable()
86+
* <li>listQuotaInfosCallable()
87+
* </ul>
88+
* </td>
89+
* </tr>
90+
* <tr>
91+
* <td>GetQuotaInfo</td>
92+
* <td><p> Retrieve the QuotaInfo of a quota for a project, folder or organization.</td>
93+
* <td>
94+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
95+
* <ul>
96+
* <li>getQuotaInfo(GetQuotaInfoRequest request)
97+
* </ul>
98+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
99+
* <ul>
100+
* <li>getQuotaInfo(QuotaInfoName name)
101+
* <li>getQuotaInfo(String name)
102+
* </ul>
103+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
104+
* <ul>
105+
* <li>getQuotaInfoCallable()
106+
* </ul>
107+
* </td>
108+
* </tr>
109+
* <tr>
110+
* <td>ListQuotaPreferences</td>
111+
* <td><p> Lists QuotaPreferences in a given project, folder or organization.</td>
112+
* <td>
113+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
114+
* <ul>
115+
* <li>listQuotaPreferences(ListQuotaPreferencesRequest request)
116+
* </ul>
117+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
118+
* <ul>
119+
* <li>listQuotaPreferences(LocationName parent)
120+
* <li>listQuotaPreferences(String parent)
121+
* </ul>
122+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
123+
* <ul>
124+
* <li>listQuotaPreferencesPagedCallable()
125+
* <li>listQuotaPreferencesCallable()
126+
* </ul>
127+
* </td>
128+
* </tr>
129+
* <tr>
130+
* <td>GetQuotaPreference</td>
131+
* <td><p> Gets details of a single QuotaPreference.</td>
132+
* <td>
133+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
134+
* <ul>
135+
* <li>getQuotaPreference(GetQuotaPreferenceRequest request)
136+
* </ul>
137+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
138+
* <ul>
139+
* <li>getQuotaPreference(QuotaPreferenceName name)
140+
* <li>getQuotaPreference(String name)
141+
* </ul>
142+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
143+
* <ul>
144+
* <li>getQuotaPreferenceCallable()
145+
* </ul>
146+
* </td>
147+
* </tr>
148+
* <tr>
149+
* <td>CreateQuotaPreference</td>
150+
* <td><p> Creates a new QuotaPreference that declares the desired value for a quota.</td>
151+
* <td>
152+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
153+
* <ul>
154+
* <li>createQuotaPreference(CreateQuotaPreferenceRequest request)
155+
* </ul>
156+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
157+
* <ul>
158+
* <li>createQuotaPreference(LocationName parent, QuotaPreference quotaPreference)
159+
* <li>createQuotaPreference(String parent, QuotaPreference quotaPreference)
160+
* <li>createQuotaPreference(LocationName parent, QuotaPreference quotaPreference, String quotaPreferenceId)
161+
* <li>createQuotaPreference(String parent, QuotaPreference quotaPreference, String quotaPreferenceId)
162+
* </ul>
163+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
164+
* <ul>
165+
* <li>createQuotaPreferenceCallable()
166+
* </ul>
167+
* </td>
168+
* </tr>
169+
* <tr>
170+
* <td>UpdateQuotaPreference</td>
171+
* <td><p> Updates the parameters of a single QuotaPreference. It can updates the config in any states, not just the ones pending approval.</td>
172+
* <td>
173+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
174+
* <ul>
175+
* <li>updateQuotaPreference(UpdateQuotaPreferenceRequest request)
176+
* </ul>
177+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
178+
* <ul>
179+
* <li>updateQuotaPreference(QuotaPreference quotaPreference, FieldMask updateMask)
180+
* </ul>
181+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
182+
* <ul>
183+
* <li>updateQuotaPreferenceCallable()
184+
* </ul>
185+
* </td>
186+
* </tr>
187+
* </tr>
188+
* </table>
78189
*
79190
* <p>See the individual methods for example code.
80191
*

java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/stub/CloudQuotasStubSettings.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,12 @@ public CloudQuotasStub createStub() throws IOException {
296296
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
297297
}
298298

299+
/** Returns the default service name. */
300+
@Override
301+
public String getServiceName() {
302+
return "cloudquotas";
303+
}
304+
299305
/** Returns a builder for the default ExecutorProvider for this service. */
300306
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
301307
return InstantiatingExecutorProvider.newBuilder();

0 commit comments

Comments
 (0)