Class GrpcReservationServiceStub (2.20.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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcReservationServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcReservationServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcReservationServiceStub
Exceptions
TypeDescription
IOException

create(ReservationServiceStubSettings settings)

public static final GrpcReservationServiceStub create(ReservationServiceStubSettings settings)
Parameter
NameDescription
settingsReservationServiceStubSettings
Returns
TypeDescription
GrpcReservationServiceStub
Exceptions
TypeDescription
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
NameDescription
settingsReservationServiceStubSettings
clientContextClientContext

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
NameDescription
settingsReservationServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

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