Class HttpJsonReservationServiceStub (2.9.0)

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.

Inheritance

java.lang.Object > ReservationServiceStub > HttpJsonReservationServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonReservationServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonReservationServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonReservationServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonReservationServiceStub
Exceptions
TypeDescription
IOException

create(ReservationServiceStubSettings settings)

public static final HttpJsonReservationServiceStub create(ReservationServiceStubSettings settings)
Parameter
NameDescription
settingsReservationServiceStubSettings
Returns
TypeDescription
HttpJsonReservationServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonReservationServiceStub(ReservationServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonReservationServiceStub(ReservationServiceStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsReservationServiceStubSettings
clientContextClientContext

HttpJsonReservationServiceStub(ReservationServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonReservationServiceStub(ReservationServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsReservationServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createAssignmentCallable()

public UnaryCallable<CreateAssignmentRequest,Assignment> createAssignmentCallable()
Returns
TypeDescription
UnaryCallable<CreateAssignmentRequest,Assignment>
Overrides

createCapacityCommitmentCallable()

public UnaryCallable<CreateCapacityCommitmentRequest,CapacityCommitment> createCapacityCommitmentCallable()
Returns
TypeDescription
UnaryCallable<CreateCapacityCommitmentRequest,CapacityCommitment>
Overrides

createReservationCallable()

public UnaryCallable<CreateReservationRequest,Reservation> createReservationCallable()
Returns
TypeDescription
UnaryCallable<CreateReservationRequest,Reservation>
Overrides

deleteAssignmentCallable()

public UnaryCallable<DeleteAssignmentRequest,Empty> deleteAssignmentCallable()
Returns
TypeDescription
UnaryCallable<DeleteAssignmentRequest,Empty>
Overrides

deleteCapacityCommitmentCallable()

public UnaryCallable<DeleteCapacityCommitmentRequest,Empty> deleteCapacityCommitmentCallable()
Returns
TypeDescription
UnaryCallable<DeleteCapacityCommitmentRequest,Empty>
Overrides

deleteReservationCallable()

public UnaryCallable<DeleteReservationRequest,Empty> deleteReservationCallable()
Returns
TypeDescription
UnaryCallable<DeleteReservationRequest,Empty>
Overrides

getBiReservationCallable()

public UnaryCallable<GetBiReservationRequest,BiReservation> getBiReservationCallable()
Returns
TypeDescription
UnaryCallable<GetBiReservationRequest,BiReservation>
Overrides

getCapacityCommitmentCallable()

public UnaryCallable<GetCapacityCommitmentRequest,CapacityCommitment> getCapacityCommitmentCallable()
Returns
TypeDescription
UnaryCallable<GetCapacityCommitmentRequest,CapacityCommitment>
Overrides

getReservationCallable()

public UnaryCallable<GetReservationRequest,Reservation> getReservationCallable()
Returns
TypeDescription
UnaryCallable<GetReservationRequest,Reservation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listAssignmentsCallable()

public UnaryCallable<ListAssignmentsRequest,ListAssignmentsResponse> listAssignmentsCallable()
Returns
TypeDescription
UnaryCallable<ListAssignmentsRequest,ListAssignmentsResponse>
Overrides

listAssignmentsPagedCallable()

public UnaryCallable<ListAssignmentsRequest,ReservationServiceClient.ListAssignmentsPagedResponse> listAssignmentsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListAssignmentsRequest,ListAssignmentsPagedResponse>
Overrides

listCapacityCommitmentsCallable()

public UnaryCallable<ListCapacityCommitmentsRequest,ListCapacityCommitmentsResponse> listCapacityCommitmentsCallable()
Returns
TypeDescription
UnaryCallable<ListCapacityCommitmentsRequest,ListCapacityCommitmentsResponse>
Overrides

listCapacityCommitmentsPagedCallable()

public UnaryCallable<ListCapacityCommitmentsRequest,ReservationServiceClient.ListCapacityCommitmentsPagedResponse> listCapacityCommitmentsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListCapacityCommitmentsRequest,ListCapacityCommitmentsPagedResponse>
Overrides

listReservationsCallable()

public UnaryCallable<ListReservationsRequest,ListReservationsResponse> listReservationsCallable()
Returns
TypeDescription
UnaryCallable<ListReservationsRequest,ListReservationsResponse>
Overrides

listReservationsPagedCallable()

public UnaryCallable<ListReservationsRequest,ReservationServiceClient.ListReservationsPagedResponse> listReservationsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListReservationsRequest,ListReservationsPagedResponse>
Overrides

mergeCapacityCommitmentsCallable()

public UnaryCallable<MergeCapacityCommitmentsRequest,CapacityCommitment> mergeCapacityCommitmentsCallable()
Returns
TypeDescription
UnaryCallable<MergeCapacityCommitmentsRequest,CapacityCommitment>
Overrides

moveAssignmentCallable()

public UnaryCallable<MoveAssignmentRequest,Assignment> moveAssignmentCallable()
Returns
TypeDescription
UnaryCallable<MoveAssignmentRequest,Assignment>
Overrides

searchAllAssignmentsCallable()

public UnaryCallable<SearchAllAssignmentsRequest,SearchAllAssignmentsResponse> searchAllAssignmentsCallable()
Returns
TypeDescription
UnaryCallable<SearchAllAssignmentsRequest,SearchAllAssignmentsResponse>
Overrides

searchAllAssignmentsPagedCallable()

public UnaryCallable<SearchAllAssignmentsRequest,ReservationServiceClient.SearchAllAssignmentsPagedResponse> searchAllAssignmentsPagedCallable()
Returns
TypeDescription
UnaryCallable<SearchAllAssignmentsRequest,SearchAllAssignmentsPagedResponse>
Overrides

searchAssignmentsCallable()

public UnaryCallable<SearchAssignmentsRequest,SearchAssignmentsResponse> searchAssignmentsCallable()
Returns
TypeDescription
UnaryCallable<SearchAssignmentsRequest,SearchAssignmentsResponse>
Overrides

searchAssignmentsPagedCallable()

public UnaryCallable<SearchAssignmentsRequest,ReservationServiceClient.SearchAssignmentsPagedResponse> searchAssignmentsPagedCallable()
Returns
TypeDescription
UnaryCallable<SearchAssignmentsRequest,SearchAssignmentsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

splitCapacityCommitmentCallable()

public UnaryCallable<SplitCapacityCommitmentRequest,SplitCapacityCommitmentResponse> splitCapacityCommitmentCallable()
Returns
TypeDescription
UnaryCallable<SplitCapacityCommitmentRequest,SplitCapacityCommitmentResponse>
Overrides

updateAssignmentCallable()

public UnaryCallable<UpdateAssignmentRequest,Assignment> updateAssignmentCallable()
Returns
TypeDescription
UnaryCallable<UpdateAssignmentRequest,Assignment>
Overrides

updateBiReservationCallable()

public UnaryCallable<UpdateBiReservationRequest,BiReservation> updateBiReservationCallable()
Returns
TypeDescription
UnaryCallable<UpdateBiReservationRequest,BiReservation>
Overrides

updateCapacityCommitmentCallable()

public UnaryCallable<UpdateCapacityCommitmentRequest,CapacityCommitment> updateCapacityCommitmentCallable()
Returns
TypeDescription
UnaryCallable<UpdateCapacityCommitmentRequest,CapacityCommitment>
Overrides

updateReservationCallable()

public UnaryCallable<UpdateReservationRequest,Reservation> updateReservationCallable()
Returns
TypeDescription
UnaryCallable<UpdateReservationRequest,Reservation>
Overrides