Class GrpcFlexTemplatesServiceStub (0.26.0)

public class GrpcFlexTemplatesServiceStub extends FlexTemplatesServiceStub

gRPC stub implementation for the FlexTemplatesService service API.

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

Inheritance

java.lang.Object > FlexTemplatesServiceStub > GrpcFlexTemplatesServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(FlexTemplatesServiceStubSettings settings)

public static final GrpcFlexTemplatesServiceStub create(FlexTemplatesServiceStubSettings settings)
Parameter
NameDescription
settingsFlexTemplatesServiceStubSettings
Returns
TypeDescription
GrpcFlexTemplatesServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcFlexTemplatesServiceStub(FlexTemplatesServiceStubSettings settings, ClientContext clientContext)

protected GrpcFlexTemplatesServiceStub(FlexTemplatesServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcFlexTemplatesServiceStub, 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
settingsFlexTemplatesServiceStubSettings
clientContextClientContext

GrpcFlexTemplatesServiceStub(FlexTemplatesServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcFlexTemplatesServiceStub(FlexTemplatesServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

launchFlexTemplateCallable()

public UnaryCallable<LaunchFlexTemplateRequest,LaunchFlexTemplateResponse> launchFlexTemplateCallable()
Returns
TypeDescription
UnaryCallable<LaunchFlexTemplateRequest,LaunchFlexTemplateResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()