Class HttpJsonReservationServiceStub (2.43.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonReservationServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonReservationServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonReservationServiceStub
Exceptions
Type Description
IOException

create(ReservationServiceStubSettings settings)

public static final HttpJsonReservationServiceStub create(ReservationServiceStubSettings settings)
Parameter
Name Description
settings ReservationServiceStubSettings
Returns
Type Description
HttpJsonReservationServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings ReservationServiceStubSettings
clientContext ClientContext

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
Name Description
settings ReservationServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createAssignmentCallable()

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

createCapacityCommitmentCallable()

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

createReservationCallable()

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

deleteAssignmentCallable()

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

deleteCapacityCommitmentCallable()

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

deleteReservationCallable()

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

getBiReservationCallable()

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

getCapacityCommitmentCallable()

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

getReservationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listAssignmentsCallable()

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

listAssignmentsPagedCallable()

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

listCapacityCommitmentsCallable()

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

listCapacityCommitmentsPagedCallable()

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

listReservationsCallable()

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

listReservationsPagedCallable()

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

mergeCapacityCommitmentsCallable()

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

moveAssignmentCallable()

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

searchAllAssignmentsCallable()

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

searchAllAssignmentsPagedCallable()

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

searchAssignmentsCallable()

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

searchAssignmentsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

splitCapacityCommitmentCallable()

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

updateAssignmentCallable()

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

updateBiReservationCallable()

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

updateCapacityCommitmentCallable()

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

updateReservationCallable()

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