@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
IOException
protected GrpcCompanyServiceStub(CompanyServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcCompanyServiceStub create(CompanyServiceStubSettings settings) throws IOException
IOException
public static final GrpcCompanyServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
public static final GrpcCompanyServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOException
public com.google.api.gax.rpc.UnaryCallable<CreateCompanyRequest,Company> createCompanyCallable()
createCompanyCallable
in class CompanyServiceStub
public com.google.api.gax.rpc.UnaryCallable<GetCompanyRequest,Company> getCompanyCallable()
getCompanyCallable
in class CompanyServiceStub
public com.google.api.gax.rpc.UnaryCallable<UpdateCompanyRequest,Company> updateCompanyCallable()
updateCompanyCallable
in class CompanyServiceStub
public com.google.api.gax.rpc.UnaryCallable<DeleteCompanyRequest,Empty> deleteCompanyCallable()
deleteCompanyCallable
in class CompanyServiceStub
public com.google.api.gax.rpc.UnaryCallable<ListCompaniesRequest,CompanyServiceClient.ListCompaniesPagedResponse> listCompaniesPagedCallable()
listCompaniesPagedCallable
in class CompanyServiceStub
public com.google.api.gax.rpc.UnaryCallable<ListCompaniesRequest,ListCompaniesResponse> listCompaniesCallable()
listCompaniesCallable
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 © 2019 Google LLC. All rights reserved.