Class GrpcSiteSearchEngineServiceStub (0.28.0)

public class GrpcSiteSearchEngineServiceStub extends SiteSearchEngineServiceStub

gRPC stub implementation for the SiteSearchEngineService service API.

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

Inheritance

java.lang.Object > SiteSearchEngineServiceStub > GrpcSiteSearchEngineServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(SiteSearchEngineServiceStubSettings settings)

public static final GrpcSiteSearchEngineServiceStub create(SiteSearchEngineServiceStubSettings settings)
Parameter
NameDescription
settingsSiteSearchEngineServiceStubSettings
Returns
TypeDescription
GrpcSiteSearchEngineServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcSiteSearchEngineServiceStub(SiteSearchEngineServiceStubSettings settings, ClientContext clientContext)

protected GrpcSiteSearchEngineServiceStub(SiteSearchEngineServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcSiteSearchEngineServiceStub, 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
settingsSiteSearchEngineServiceStubSettings
clientContextClientContext

GrpcSiteSearchEngineServiceStub(SiteSearchEngineServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcSiteSearchEngineServiceStub(SiteSearchEngineServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcSiteSearchEngineServiceStub, 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
settingsSiteSearchEngineServiceStubSettings
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
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

recrawlUrisCallable()

public UnaryCallable<RecrawlUrisRequest,Operation> recrawlUrisCallable()
Returns
TypeDescription
UnaryCallable<RecrawlUrisRequest,Operation>
Overrides

recrawlUrisOperationCallable()

public OperationCallable<RecrawlUrisRequest,RecrawlUrisResponse,RecrawlUrisMetadata> recrawlUrisOperationCallable()
Returns
TypeDescription
OperationCallable<RecrawlUrisRequest,RecrawlUrisResponse,RecrawlUrisMetadata>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()