Class HttpJsonReservationsStub (1.27.0)

public class HttpJsonReservationsStub extends ReservationsStub

REST stub implementation for the Reservations service API.

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

Inheritance

java.lang.Object > ReservationsStub > HttpJsonReservationsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ReservationsStubSettings settings)

public static final HttpJsonReservationsStub create(ReservationsStubSettings settings)
Parameter
NameDescription
settingsReservationsStubSettings
Returns
TypeDescription
HttpJsonReservationsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonReservationsStub(ReservationsStubSettings settings, ClientContext clientContext)

protected HttpJsonReservationsStub(ReservationsStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonReservationsStub, 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
settingsReservationsStubSettings
clientContextClientContext

HttpJsonReservationsStub(ReservationsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonReservationsStub(ReservationsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonReservationsStub, 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
settingsReservationsStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

aggregatedListCallable()

public UnaryCallable<AggregatedListReservationsRequest,ReservationAggregatedList> aggregatedListCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListReservationsRequest,ReservationAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListReservationsRequest,ReservationsClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListReservationsRequest,AggregatedListPagedResponse>
Overrides

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

deleteCallable()

public UnaryCallable<DeleteReservationRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteReservationRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteReservationRequest,Operation,Operation> deleteOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteReservationRequest,Operation,Operation>
Overrides

getCallable()

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

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyReservationRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<GetIamPolicyReservationRequest,Policy>
Overrides

insertCallable()

public UnaryCallable<InsertReservationRequest,Operation> insertCallable()
Returns
TypeDescription
UnaryCallable<InsertReservationRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertReservationRequest,Operation,Operation> insertOperationCallable()
Returns
TypeDescription
OperationCallable<InsertReservationRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListReservationsRequest,ReservationList> listCallable()
Returns
TypeDescription
UnaryCallable<ListReservationsRequest,ReservationList>
Overrides

listPagedCallable()

public UnaryCallable<ListReservationsRequest,ReservationsClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListReservationsRequest,ListPagedResponse>
Overrides

resizeCallable()

public UnaryCallable<ResizeReservationRequest,Operation> resizeCallable()
Returns
TypeDescription
UnaryCallable<ResizeReservationRequest,Operation>
Overrides

resizeOperationCallable()

public OperationCallable<ResizeReservationRequest,Operation,Operation> resizeOperationCallable()
Returns
TypeDescription
OperationCallable<ResizeReservationRequest,Operation,Operation>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyReservationRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<SetIamPolicyReservationRequest,Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsReservationRequest,TestPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<TestIamPermissionsReservationRequest,TestPermissionsResponse>
Overrides

updateCallable()

public UnaryCallable<UpdateReservationRequest,Operation> updateCallable()
Returns
TypeDescription
UnaryCallable<UpdateReservationRequest,Operation>
Overrides

updateOperationCallable()

public OperationCallable<UpdateReservationRequest,Operation,Operation> updateOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateReservationRequest,Operation,Operation>
Overrides