@BetaApi @Generated(value="by gapic-generator-java") 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,
ClientContext clientContext)
Constructs an instance of GrpcCompanyServiceStub, using the given settings.
|
protected |
GrpcCompanyServiceStub(CompanyServiceStubSettings settings,
ClientContext clientContext,
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(ClientContext clientContext) |
static GrpcCompanyServiceStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcCompanyServiceStub |
create(CompanyServiceStubSettings settings) |
UnaryCallable<CreateCompanyRequest,Company> |
createCompanyCallable() |
UnaryCallable<DeleteCompanyRequest,Empty> |
deleteCompanyCallable() |
UnaryCallable<GetCompanyRequest,Company> |
getCompanyCallable() |
GrpcOperationsStub |
getOperationsStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<ListCompaniesRequest,ListCompaniesResponse> |
listCompaniesCallable() |
UnaryCallable<ListCompaniesRequest,CompanyServiceClient.ListCompaniesPagedResponse> |
listCompaniesPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<UpdateCompanyRequest,Company> |
updateCompanyCallable() |
protected GrpcCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcCompanyServiceStub create(CompanyServiceStubSettings settings) throws IOException
IOException
public static final GrpcCompanyServiceStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcCompanyServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public GrpcOperationsStub getOperationsStub()
public UnaryCallable<CreateCompanyRequest,Company> createCompanyCallable()
createCompanyCallable
in class CompanyServiceStub
public UnaryCallable<GetCompanyRequest,Company> getCompanyCallable()
getCompanyCallable
in class CompanyServiceStub
public UnaryCallable<UpdateCompanyRequest,Company> updateCompanyCallable()
updateCompanyCallable
in class CompanyServiceStub
public UnaryCallable<DeleteCompanyRequest,Empty> deleteCompanyCallable()
deleteCompanyCallable
in class CompanyServiceStub
public UnaryCallable<ListCompaniesRequest,ListCompaniesResponse> listCompaniesCallable()
listCompaniesCallable
in class CompanyServiceStub
public UnaryCallable<ListCompaniesRequest,CompanyServiceClient.ListCompaniesPagedResponse> listCompaniesPagedCallable()
listCompaniesPagedCallable
in class CompanyServiceStub
public final void close()
close
in interface AutoCloseable
close
in class CompanyServiceStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2022 Google LLC. All rights reserved.