Class GrpcCompanyServiceStub (2.4.2)

Stay organized with collections Save and categorize content based on your preferences.
public class GrpcCompanyServiceStub extends CompanyServiceStub

gRPC stub implementation for the CompanyService service API.

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

Inheritance

java.lang.Object > CompanyServiceStub > GrpcCompanyServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(CompanyServiceStubSettings settings)

public static final GrpcCompanyServiceStub create(CompanyServiceStubSettings settings)
Parameter
NameDescription
settingsCompanyServiceStubSettings
Returns
TypeDescription
GrpcCompanyServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext)

protected GrpcCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcCompanyServiceStub, 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
settingsCompanyServiceStubSettings
clientContextClientContext

GrpcCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcCompanyServiceStub, 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
settingsCompanyServiceStubSettings
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

createCompanyCallable()

public UnaryCallable<CreateCompanyRequest,Company> createCompanyCallable()
Returns
TypeDescription
UnaryCallable<CreateCompanyRequest,Company>
Overrides

deleteCompanyCallable()

public UnaryCallable<DeleteCompanyRequest,Empty> deleteCompanyCallable()
Returns
TypeDescription
UnaryCallable<DeleteCompanyRequest,Empty>
Overrides

getCompanyCallable()

public UnaryCallable<GetCompanyRequest,Company> getCompanyCallable()
Returns
TypeDescription
UnaryCallable<GetCompanyRequest,Company>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCompaniesCallable()

public UnaryCallable<ListCompaniesRequest,ListCompaniesResponse> listCompaniesCallable()
Returns
TypeDescription
UnaryCallable<ListCompaniesRequest,ListCompaniesResponse>
Overrides

listCompaniesPagedCallable()

public UnaryCallable<ListCompaniesRequest,CompanyServiceClient.ListCompaniesPagedResponse> listCompaniesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListCompaniesRequest,ListCompaniesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCompanyCallable()

public UnaryCallable<UpdateCompanyRequest,Company> updateCompanyCallable()
Returns
TypeDescription
UnaryCallable<UpdateCompanyRequest,Company>
Overrides