Class HttpJsonReservationServiceStub
- java.lang.Object
-
- com.google.cloud.bigquery.reservation.v1.stub.ReservationServiceStub
-
- com.google.cloud.bigquery.reservation.v1.stub.HttpJsonReservationServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonReservationServiceStub extends ReservationServiceStub
REST stub implementation for the ReservationService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonReservationServiceStub(ReservationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonReservationServiceStub, using the given settings.protectedHttpJsonReservationServiceStub(ReservationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonReservationServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonReservationServiceStub
protected HttpJsonReservationServiceStub(ReservationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonReservationServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
HttpJsonReservationServiceStub
protected HttpJsonReservationServiceStub(ReservationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonReservationServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonReservationServiceStub create(ReservationServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonReservationServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonReservationServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
createReservationCallable
public com.google.api.gax.rpc.UnaryCallable<CreateReservationRequest,Reservation> createReservationCallable()
- Overrides:
createReservationCallablein classReservationServiceStub
-
listReservationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListReservationsRequest,ListReservationsResponse> listReservationsCallable()
- Overrides:
listReservationsCallablein classReservationServiceStub
-
listReservationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListReservationsRequest,ReservationServiceClient.ListReservationsPagedResponse> listReservationsPagedCallable()
- Overrides:
listReservationsPagedCallablein classReservationServiceStub
-
getReservationCallable
public com.google.api.gax.rpc.UnaryCallable<GetReservationRequest,Reservation> getReservationCallable()
- Overrides:
getReservationCallablein classReservationServiceStub
-
deleteReservationCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteReservationRequest,com.google.protobuf.Empty> deleteReservationCallable()
- Overrides:
deleteReservationCallablein classReservationServiceStub
-
updateReservationCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateReservationRequest,Reservation> updateReservationCallable()
- Overrides:
updateReservationCallablein classReservationServiceStub
-
createCapacityCommitmentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateCapacityCommitmentRequest,CapacityCommitment> createCapacityCommitmentCallable()
- Overrides:
createCapacityCommitmentCallablein classReservationServiceStub
-
listCapacityCommitmentsCallable
public com.google.api.gax.rpc.UnaryCallable<ListCapacityCommitmentsRequest,ListCapacityCommitmentsResponse> listCapacityCommitmentsCallable()
- Overrides:
listCapacityCommitmentsCallablein classReservationServiceStub
-
listCapacityCommitmentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListCapacityCommitmentsRequest,ReservationServiceClient.ListCapacityCommitmentsPagedResponse> listCapacityCommitmentsPagedCallable()
- Overrides:
listCapacityCommitmentsPagedCallablein classReservationServiceStub
-
getCapacityCommitmentCallable
public com.google.api.gax.rpc.UnaryCallable<GetCapacityCommitmentRequest,CapacityCommitment> getCapacityCommitmentCallable()
- Overrides:
getCapacityCommitmentCallablein classReservationServiceStub
-
deleteCapacityCommitmentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteCapacityCommitmentRequest,com.google.protobuf.Empty> deleteCapacityCommitmentCallable()
- Overrides:
deleteCapacityCommitmentCallablein classReservationServiceStub
-
updateCapacityCommitmentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateCapacityCommitmentRequest,CapacityCommitment> updateCapacityCommitmentCallable()
- Overrides:
updateCapacityCommitmentCallablein classReservationServiceStub
-
splitCapacityCommitmentCallable
public com.google.api.gax.rpc.UnaryCallable<SplitCapacityCommitmentRequest,SplitCapacityCommitmentResponse> splitCapacityCommitmentCallable()
- Overrides:
splitCapacityCommitmentCallablein classReservationServiceStub
-
mergeCapacityCommitmentsCallable
public com.google.api.gax.rpc.UnaryCallable<MergeCapacityCommitmentsRequest,CapacityCommitment> mergeCapacityCommitmentsCallable()
- Overrides:
mergeCapacityCommitmentsCallablein classReservationServiceStub
-
createAssignmentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateAssignmentRequest,Assignment> createAssignmentCallable()
- Overrides:
createAssignmentCallablein classReservationServiceStub
-
listAssignmentsCallable
public com.google.api.gax.rpc.UnaryCallable<ListAssignmentsRequest,ListAssignmentsResponse> listAssignmentsCallable()
- Overrides:
listAssignmentsCallablein classReservationServiceStub
-
listAssignmentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListAssignmentsRequest,ReservationServiceClient.ListAssignmentsPagedResponse> listAssignmentsPagedCallable()
- Overrides:
listAssignmentsPagedCallablein classReservationServiceStub
-
deleteAssignmentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteAssignmentRequest,com.google.protobuf.Empty> deleteAssignmentCallable()
- Overrides:
deleteAssignmentCallablein classReservationServiceStub
-
searchAssignmentsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchAssignmentsRequest,SearchAssignmentsResponse> searchAssignmentsCallable()
- Overrides:
searchAssignmentsCallablein classReservationServiceStub
-
searchAssignmentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchAssignmentsRequest,ReservationServiceClient.SearchAssignmentsPagedResponse> searchAssignmentsPagedCallable()
- Overrides:
searchAssignmentsPagedCallablein classReservationServiceStub
-
searchAllAssignmentsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchAllAssignmentsRequest,SearchAllAssignmentsResponse> searchAllAssignmentsCallable()
- Overrides:
searchAllAssignmentsCallablein classReservationServiceStub
-
searchAllAssignmentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchAllAssignmentsRequest,ReservationServiceClient.SearchAllAssignmentsPagedResponse> searchAllAssignmentsPagedCallable()
- Overrides:
searchAllAssignmentsPagedCallablein classReservationServiceStub
-
moveAssignmentCallable
public com.google.api.gax.rpc.UnaryCallable<MoveAssignmentRequest,Assignment> moveAssignmentCallable()
- Overrides:
moveAssignmentCallablein classReservationServiceStub
-
updateAssignmentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateAssignmentRequest,Assignment> updateAssignmentCallable()
- Overrides:
updateAssignmentCallablein classReservationServiceStub
-
getBiReservationCallable
public com.google.api.gax.rpc.UnaryCallable<GetBiReservationRequest,BiReservation> getBiReservationCallable()
- Overrides:
getBiReservationCallablein classReservationServiceStub
-
updateBiReservationCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateBiReservationRequest,BiReservation> updateBiReservationCallable()
- Overrides:
updateBiReservationCallablein classReservationServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classReservationServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-