|
18 | 18 |
|
19 | 19 | import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.ListAssignmentsPagedResponse; |
20 | 20 | import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.ListCapacityCommitmentsPagedResponse; |
| 21 | +import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.ListReservationGroupsPagedResponse; |
21 | 22 | import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.ListReservationsPagedResponse; |
22 | 23 | import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.SearchAllAssignmentsPagedResponse; |
23 | 24 | import static com.google.cloud.bigquery.reservation.v1.ReservationServiceClient.SearchAssignmentsPagedResponse; |
|
35 | 36 | import com.google.api.gax.rpc.TransportChannelProvider; |
36 | 37 | import com.google.api.gax.rpc.UnaryCallSettings; |
37 | 38 | import com.google.cloud.bigquery.reservation.v1.stub.ReservationServiceStubSettings; |
| 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; |
38 | 44 | import com.google.protobuf.Empty; |
39 | 45 | import java.io.IOException; |
40 | 46 | import java.util.List; |
@@ -231,6 +237,48 @@ public UnaryCallSettings<GetBiReservationRequest, BiReservation> getBiReservatio |
231 | 237 | return ((ReservationServiceStubSettings) getStubSettings()).updateBiReservationSettings(); |
232 | 238 | } |
233 | 239 |
|
| 240 | + /** Returns the object with the settings used for calls to getIamPolicy. */ |
| 241 | + public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() { |
| 242 | + return ((ReservationServiceStubSettings) getStubSettings()).getIamPolicySettings(); |
| 243 | + } |
| 244 | + |
| 245 | + /** Returns the object with the settings used for calls to setIamPolicy. */ |
| 246 | + public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() { |
| 247 | + return ((ReservationServiceStubSettings) getStubSettings()).setIamPolicySettings(); |
| 248 | + } |
| 249 | + |
| 250 | + /** Returns the object with the settings used for calls to testIamPermissions. */ |
| 251 | + public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse> |
| 252 | + testIamPermissionsSettings() { |
| 253 | + return ((ReservationServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); |
| 254 | + } |
| 255 | + |
| 256 | + /** Returns the object with the settings used for calls to createReservationGroup. */ |
| 257 | + public UnaryCallSettings<CreateReservationGroupRequest, ReservationGroup> |
| 258 | + createReservationGroupSettings() { |
| 259 | + return ((ReservationServiceStubSettings) getStubSettings()).createReservationGroupSettings(); |
| 260 | + } |
| 261 | + |
| 262 | + /** Returns the object with the settings used for calls to getReservationGroup. */ |
| 263 | + public UnaryCallSettings<GetReservationGroupRequest, ReservationGroup> |
| 264 | + getReservationGroupSettings() { |
| 265 | + return ((ReservationServiceStubSettings) getStubSettings()).getReservationGroupSettings(); |
| 266 | + } |
| 267 | + |
| 268 | + /** Returns the object with the settings used for calls to deleteReservationGroup. */ |
| 269 | + public UnaryCallSettings<DeleteReservationGroupRequest, Empty> deleteReservationGroupSettings() { |
| 270 | + return ((ReservationServiceStubSettings) getStubSettings()).deleteReservationGroupSettings(); |
| 271 | + } |
| 272 | + |
| 273 | + /** Returns the object with the settings used for calls to listReservationGroups. */ |
| 274 | + public PagedCallSettings< |
| 275 | + ListReservationGroupsRequest, |
| 276 | + ListReservationGroupsResponse, |
| 277 | + ListReservationGroupsPagedResponse> |
| 278 | + listReservationGroupsSettings() { |
| 279 | + return ((ReservationServiceStubSettings) getStubSettings()).listReservationGroupsSettings(); |
| 280 | + } |
| 281 | + |
234 | 282 | public static final ReservationServiceSettings create(ReservationServiceStubSettings stub) |
235 | 283 | throws IOException { |
236 | 284 | return new ReservationServiceSettings.Builder(stub.toBuilder()).build(); |
@@ -486,6 +534,49 @@ public UnaryCallSettings.Builder<MoveAssignmentRequest, Assignment> moveAssignme |
486 | 534 | return getStubSettingsBuilder().updateBiReservationSettings(); |
487 | 535 | } |
488 | 536 |
|
| 537 | + /** Returns the builder for the settings used for calls to getIamPolicy. */ |
| 538 | + public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() { |
| 539 | + return getStubSettingsBuilder().getIamPolicySettings(); |
| 540 | + } |
| 541 | + |
| 542 | + /** Returns the builder for the settings used for calls to setIamPolicy. */ |
| 543 | + public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() { |
| 544 | + return getStubSettingsBuilder().setIamPolicySettings(); |
| 545 | + } |
| 546 | + |
| 547 | + /** Returns the builder for the settings used for calls to testIamPermissions. */ |
| 548 | + public UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse> |
| 549 | + testIamPermissionsSettings() { |
| 550 | + return getStubSettingsBuilder().testIamPermissionsSettings(); |
| 551 | + } |
| 552 | + |
| 553 | + /** Returns the builder for the settings used for calls to createReservationGroup. */ |
| 554 | + public UnaryCallSettings.Builder<CreateReservationGroupRequest, ReservationGroup> |
| 555 | + createReservationGroupSettings() { |
| 556 | + return getStubSettingsBuilder().createReservationGroupSettings(); |
| 557 | + } |
| 558 | + |
| 559 | + /** Returns the builder for the settings used for calls to getReservationGroup. */ |
| 560 | + public UnaryCallSettings.Builder<GetReservationGroupRequest, ReservationGroup> |
| 561 | + getReservationGroupSettings() { |
| 562 | + return getStubSettingsBuilder().getReservationGroupSettings(); |
| 563 | + } |
| 564 | + |
| 565 | + /** Returns the builder for the settings used for calls to deleteReservationGroup. */ |
| 566 | + public UnaryCallSettings.Builder<DeleteReservationGroupRequest, Empty> |
| 567 | + deleteReservationGroupSettings() { |
| 568 | + return getStubSettingsBuilder().deleteReservationGroupSettings(); |
| 569 | + } |
| 570 | + |
| 571 | + /** Returns the builder for the settings used for calls to listReservationGroups. */ |
| 572 | + public PagedCallSettings.Builder< |
| 573 | + ListReservationGroupsRequest, |
| 574 | + ListReservationGroupsResponse, |
| 575 | + ListReservationGroupsPagedResponse> |
| 576 | + listReservationGroupsSettings() { |
| 577 | + return getStubSettingsBuilder().listReservationGroupsSettings(); |
| 578 | + } |
| 579 | + |
489 | 580 | @Override |
490 | 581 | public ReservationServiceSettings build() throws IOException { |
491 | 582 | return new ReservationServiceSettings(this); |
|
0 commit comments