Class HttpJsonPagesStub (0.17.0)

public class HttpJsonPagesStub extends PagesStub

REST stub implementation for the Pages service API.

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

Inheritance

java.lang.Object > PagesStub > HttpJsonPagesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(PagesStubSettings settings)

public static final HttpJsonPagesStub create(PagesStubSettings settings)
Parameter
NameDescription
settingsPagesStubSettings
Returns
TypeDescription
HttpJsonPagesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonPagesStub(PagesStubSettings settings, ClientContext clientContext)

protected HttpJsonPagesStub(PagesStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonPagesStub, 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
settingsPagesStubSettings
clientContextClientContext

HttpJsonPagesStub(PagesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonPagesStub(PagesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonPagesStub, 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
settingsPagesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

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

createPageCallable()

public UnaryCallable<CreatePageRequest,Page> createPageCallable()
Returns
TypeDescription
UnaryCallable<CreatePageRequest,Page>
Overrides

deletePageCallable()

public UnaryCallable<DeletePageRequest,Empty> deletePageCallable()
Returns
TypeDescription
UnaryCallable<DeletePageRequest,Empty>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getPageCallable()

public UnaryCallable<GetPageRequest,Page> getPageCallable()
Returns
TypeDescription
UnaryCallable<GetPageRequest,Page>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,PagesClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listPagesCallable()

public UnaryCallable<ListPagesRequest,ListPagesResponse> listPagesCallable()
Returns
TypeDescription
UnaryCallable<ListPagesRequest,ListPagesResponse>
Overrides

listPagesPagedCallable()

public UnaryCallable<ListPagesRequest,PagesClient.ListPagesPagedResponse> listPagesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListPagesRequest,ListPagesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updatePageCallable()

public UnaryCallable<UpdatePageRequest,Page> updatePageCallable()
Returns
TypeDescription
UnaryCallable<UpdatePageRequest,Page>
Overrides