@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class HttpJsonRegionStub extends RegionStub
This class is for advanced usage and reflects the underlying API directly.
Modifier and Type | Field and Description |
---|---|
static com.google.api.gax.httpjson.ApiMethodDescriptor<GetRegionHttpRequest,Region> |
getRegionMethodDescriptor |
static com.google.api.gax.httpjson.ApiMethodDescriptor<ListRegionsHttpRequest,RegionList> |
listRegionsMethodDescriptor |
Modifier | Constructor and Description |
---|---|
protected |
HttpJsonRegionStub(RegionStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonRegionStub, using the given settings.
|
protected |
HttpJsonRegionStub(RegionStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonRegionStub, using the given settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static HttpJsonRegionStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static HttpJsonRegionStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) |
static HttpJsonRegionStub |
create(RegionStubSettings settings) |
com.google.api.gax.rpc.UnaryCallable<GetRegionHttpRequest,Region> |
getRegionCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
com.google.api.gax.rpc.UnaryCallable<ListRegionsHttpRequest,RegionList> |
listRegionsCallable() |
com.google.api.gax.rpc.UnaryCallable<ListRegionsHttpRequest,RegionClient.ListRegionsPagedResponse> |
listRegionsPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
@InternalApi public static final com.google.api.gax.httpjson.ApiMethodDescriptor<GetRegionHttpRequest,Region> getRegionMethodDescriptor
@InternalApi public static final com.google.api.gax.httpjson.ApiMethodDescriptor<ListRegionsHttpRequest,RegionList> listRegionsMethodDescriptor
protected HttpJsonRegionStub(RegionStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
protected HttpJsonRegionStub(RegionStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
IOException
public static final HttpJsonRegionStub create(RegionStubSettings settings) throws IOException
IOException
public static final HttpJsonRegionStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
public static final HttpJsonRegionStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
IOException
@BetaApi public com.google.api.gax.rpc.UnaryCallable<GetRegionHttpRequest,Region> getRegionCallable()
getRegionCallable
in class RegionStub
@BetaApi public com.google.api.gax.rpc.UnaryCallable<ListRegionsHttpRequest,RegionClient.ListRegionsPagedResponse> listRegionsPagedCallable()
listRegionsPagedCallable
in class RegionStub
@BetaApi public com.google.api.gax.rpc.UnaryCallable<ListRegionsHttpRequest,RegionList> listRegionsCallable()
listRegionsCallable
in class RegionStub
public final void close()
close
in interface AutoCloseable
close
in class RegionStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2019 Google LLC. All rights reserved.