Class GrpcReservationServiceStub (2.52.0)

public class GrpcReservationServiceStub extends ReservationServiceStub

gRPC stub implementation for the ReservationService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > ReservationServiceStub > GrpcReservationServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcReservationServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcReservationServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ReservationServiceStubSettings settings)

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

Constructors

GrpcReservationServiceStub(ReservationServiceStubSettings settings, ClientContext clientContext)

protected GrpcReservationServiceStub(ReservationServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcReservationServiceStub, 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

GrpcReservationServiceStub(ReservationServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcReservationServiceStub(ReservationServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcReservationServiceStub, 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 GrpcStubCallableFactory

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

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