|
20 | 20 | import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse; |
21 | 21 | import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse; |
22 | 22 | import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListDnsAuthorizationsPagedResponse; |
| 23 | +import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListLocationsPagedResponse; |
23 | 24 |
|
24 | 25 | import com.google.api.core.ApiFunction; |
25 | 26 | import com.google.api.core.BetaApi; |
|
32 | 33 | import com.google.api.gax.rpc.ClientSettings; |
33 | 34 | import com.google.api.gax.rpc.OperationCallSettings; |
34 | 35 | import com.google.api.gax.rpc.PagedCallSettings; |
| 36 | +import com.google.api.gax.rpc.StubSettings; |
35 | 37 | import com.google.api.gax.rpc.TransportChannelProvider; |
36 | 38 | import com.google.api.gax.rpc.UnaryCallSettings; |
37 | 39 | import com.google.cloud.certificatemanager.v1.stub.CertificateManagerStubSettings; |
| 40 | +import com.google.cloud.location.GetLocationRequest; |
| 41 | +import com.google.cloud.location.ListLocationsRequest; |
| 42 | +import com.google.cloud.location.ListLocationsResponse; |
| 43 | +import com.google.cloud.location.Location; |
38 | 44 | import com.google.longrunning.Operation; |
39 | 45 | import com.google.protobuf.Empty; |
40 | 46 | import java.io.IOException; |
|
48 | 54 | * <p>The default instance has everything set to sensible defaults: |
49 | 55 | * |
50 | 56 | * <ul> |
51 | | - * <li>The default service address (certificatemanager.googleapis.com) and default port (443) are |
| 57 | + * <li> The default service address (certificatemanager.googleapis.com) and default port (443) are |
52 | 58 | * used. |
53 | | - * <li>Credentials are acquired automatically through Application Default Credentials. |
54 | | - * <li>Retries are configured for idempotent methods but not for non-idempotent methods. |
| 59 | + * <li> Credentials are acquired automatically through Application Default Credentials. |
| 60 | + * <li> Retries are configured for idempotent methods but not for non-idempotent methods. |
55 | 61 | * </ul> |
56 | 62 | * |
57 | 63 | * <p>The builder of this class is recursive, so contained classes are themselves builders. When |
@@ -178,8 +184,7 @@ public UnaryCallSettings<DeleteCertificateMapRequest, Operation> deleteCertifica |
178 | 184 |
|
179 | 185 | /** Returns the object with the settings used for calls to listCertificateMapEntries. */ |
180 | 186 | public PagedCallSettings< |
181 | | - ListCertificateMapEntriesRequest, |
182 | | - ListCertificateMapEntriesResponse, |
| 187 | + ListCertificateMapEntriesRequest, ListCertificateMapEntriesResponse, |
183 | 188 | ListCertificateMapEntriesPagedResponse> |
184 | 189 | listCertificateMapEntriesSettings() { |
185 | 190 | return ((CertificateManagerStubSettings) getStubSettings()).listCertificateMapEntriesSettings(); |
@@ -234,8 +239,7 @@ public UnaryCallSettings<DeleteCertificateMapRequest, Operation> deleteCertifica |
234 | 239 |
|
235 | 240 | /** Returns the object with the settings used for calls to listDnsAuthorizations. */ |
236 | 241 | public PagedCallSettings< |
237 | | - ListDnsAuthorizationsRequest, |
238 | | - ListDnsAuthorizationsResponse, |
| 242 | + ListDnsAuthorizationsRequest, ListDnsAuthorizationsResponse, |
239 | 243 | ListDnsAuthorizationsPagedResponse> |
240 | 244 | listDnsAuthorizationsSettings() { |
241 | 245 | return ((CertificateManagerStubSettings) getStubSettings()).listDnsAuthorizationsSettings(); |
@@ -286,6 +290,17 @@ public UnaryCallSettings<DeleteCertificateMapRequest, Operation> deleteCertifica |
286 | 290 | .deleteDnsAuthorizationOperationSettings(); |
287 | 291 | } |
288 | 292 |
|
| 293 | + /** Returns the object with the settings used for calls to listLocations. */ |
| 294 | + public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> |
| 295 | + listLocationsSettings() { |
| 296 | + return ((CertificateManagerStubSettings) getStubSettings()).listLocationsSettings(); |
| 297 | + } |
| 298 | + |
| 299 | + /** Returns the object with the settings used for calls to getLocation. */ |
| 300 | + public UnaryCallSettings<GetLocationRequest, Location> getLocationSettings() { |
| 301 | + return ((CertificateManagerStubSettings) getStubSettings()).getLocationSettings(); |
| 302 | + } |
| 303 | + |
289 | 304 | public static final CertificateManagerSettings create(CertificateManagerStubSettings stub) |
290 | 305 | throws IOException { |
291 | 306 | return new CertificateManagerSettings.Builder(stub.toBuilder()).build(); |
@@ -451,8 +466,7 @@ public UnaryCallSettings.Builder<GetCertificateRequest, Certificate> getCertific |
451 | 466 |
|
452 | 467 | /** Returns the builder for the settings used for calls to listCertificateMaps. */ |
453 | 468 | public PagedCallSettings.Builder< |
454 | | - ListCertificateMapsRequest, |
455 | | - ListCertificateMapsResponse, |
| 469 | + ListCertificateMapsRequest, ListCertificateMapsResponse, |
456 | 470 | ListCertificateMapsPagedResponse> |
457 | 471 | listCertificateMapsSettings() { |
458 | 472 | return getStubSettingsBuilder().listCertificateMapsSettings(); |
@@ -504,8 +518,7 @@ public UnaryCallSettings.Builder<GetCertificateRequest, Certificate> getCertific |
504 | 518 |
|
505 | 519 | /** Returns the builder for the settings used for calls to listCertificateMapEntries. */ |
506 | 520 | public PagedCallSettings.Builder< |
507 | | - ListCertificateMapEntriesRequest, |
508 | | - ListCertificateMapEntriesResponse, |
| 521 | + ListCertificateMapEntriesRequest, ListCertificateMapEntriesResponse, |
509 | 522 | ListCertificateMapEntriesPagedResponse> |
510 | 523 | listCertificateMapEntriesSettings() { |
511 | 524 | return getStubSettingsBuilder().listCertificateMapEntriesSettings(); |
@@ -557,8 +570,7 @@ public UnaryCallSettings.Builder<GetCertificateRequest, Certificate> getCertific |
557 | 570 |
|
558 | 571 | /** Returns the builder for the settings used for calls to listDnsAuthorizations. */ |
559 | 572 | public PagedCallSettings.Builder< |
560 | | - ListDnsAuthorizationsRequest, |
561 | | - ListDnsAuthorizationsResponse, |
| 573 | + ListDnsAuthorizationsRequest, ListDnsAuthorizationsResponse, |
562 | 574 | ListDnsAuthorizationsPagedResponse> |
563 | 575 | listDnsAuthorizationsSettings() { |
564 | 576 | return getStubSettingsBuilder().listDnsAuthorizationsSettings(); |
@@ -608,6 +620,18 @@ public UnaryCallSettings.Builder<GetCertificateRequest, Certificate> getCertific |
608 | 620 | return getStubSettingsBuilder().deleteDnsAuthorizationOperationSettings(); |
609 | 621 | } |
610 | 622 |
|
| 623 | + /** Returns the builder for the settings used for calls to listLocations. */ |
| 624 | + public PagedCallSettings.Builder< |
| 625 | + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> |
| 626 | + listLocationsSettings() { |
| 627 | + return getStubSettingsBuilder().listLocationsSettings(); |
| 628 | + } |
| 629 | + |
| 630 | + /** Returns the builder for the settings used for calls to getLocation. */ |
| 631 | + public UnaryCallSettings.Builder<GetLocationRequest, Location> getLocationSettings() { |
| 632 | + return getStubSettingsBuilder().getLocationSettings(); |
| 633 | + } |
| 634 | + |
611 | 635 | @Override |
612 | 636 | public CertificateManagerSettings build() throws IOException { |
613 | 637 | return new CertificateManagerSettings(this); |
|
0 commit comments