@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcCompanyServiceStub extends CompanyServiceStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcCompanyServiceStub(CompanyServiceStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcCompanyServiceStub, using the given settings.
|
protected |
GrpcCompanyServiceStub(CompanyServiceStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcCompanyServiceStub, using the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcCompanyServiceStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static GrpcCompanyServiceStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) |
static GrpcCompanyServiceStub |
create(CompanyServiceStubSettings settings) |
com.google.api.gax.rpc.UnaryCallable<CreateCompanyRequest,Company> |
createCompanyCallable() |
com.google.api.gax.rpc.UnaryCallable<DeleteCompanyRequest,Empty> |
deleteCompanyCallable() |
com.google.api.gax.rpc.UnaryCallable<GetCompanyRequest,Company> |
getCompanyCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
com.google.api.gax.rpc.UnaryCallable<ListCompaniesRequest,ListCompaniesResponse> |
listCompaniesCallable() |
com.google.api.gax.rpc.UnaryCallable<ListCompaniesRequest,CompanyServiceClient.ListCompaniesPagedResponse> |
listCompaniesPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.rpc.UnaryCallable<UpdateCompanyRequest,Company> |
updateCompanyCallable() |
protected GrpcCompanyServiceStub(CompanyServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionprotected GrpcCompanyServiceStub(CompanyServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcCompanyServiceStub create(CompanyServiceStubSettings settings) throws IOException
IOExceptionpublic static final GrpcCompanyServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcCompanyServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic com.google.api.gax.rpc.UnaryCallable<CreateCompanyRequest,Company> createCompanyCallable()
createCompanyCallable in class CompanyServiceStubpublic com.google.api.gax.rpc.UnaryCallable<GetCompanyRequest,Company> getCompanyCallable()
getCompanyCallable in class CompanyServiceStubpublic com.google.api.gax.rpc.UnaryCallable<UpdateCompanyRequest,Company> updateCompanyCallable()
updateCompanyCallable in class CompanyServiceStubpublic com.google.api.gax.rpc.UnaryCallable<DeleteCompanyRequest,Empty> deleteCompanyCallable()
deleteCompanyCallable in class CompanyServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListCompaniesRequest,CompanyServiceClient.ListCompaniesPagedResponse> listCompaniesPagedCallable()
listCompaniesPagedCallable in class CompanyServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListCompaniesRequest,ListCompaniesResponse> listCompaniesCallable()
listCompaniesCallable in class CompanyServiceStubpublic final void close()
close in interface AutoCloseableclose in class CompanyServiceStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2019 Google LLC. All rights reserved.