Package com.google.cloud.talent.v4.stub
Class GrpcCompanyServiceStub
java.lang.Object
com.google.cloud.talent.v4.stub.CompanyServiceStub
com.google.cloud.talent.v4.stub.GrpcCompanyServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
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.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcCompanyServiceStub, using the given settings.protectedGrpcCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcCompanyServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcCompanyServiceStubcreate(ClientContext clientContext) static final GrpcCompanyServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcCompanyServiceStubcreate(CompanyServiceStubSettings settings) UnaryCallable<DeleteCompanyRequest,com.google.protobuf.Empty> booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcCompanyServiceStub
protected GrpcCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext) throws IOException 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.- Throws:
IOException
-
GrpcCompanyServiceStub
protected GrpcCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcCompanyServiceStub create(CompanyServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcCompanyServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
createCompanyCallable
- Overrides:
createCompanyCallablein classCompanyServiceStub
-
getCompanyCallable
- Overrides:
getCompanyCallablein classCompanyServiceStub
-
updateCompanyCallable
- Overrides:
updateCompanyCallablein classCompanyServiceStub
-
deleteCompanyCallable
- Overrides:
deleteCompanyCallablein classCompanyServiceStub
-
listCompaniesCallable
- Overrides:
listCompaniesCallablein classCompanyServiceStub
-
listCompaniesPagedCallable
public UnaryCallable<ListCompaniesRequest,CompanyServiceClient.ListCompaniesPagedResponse> listCompaniesPagedCallable()- Overrides:
listCompaniesPagedCallablein classCompanyServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classCompanyServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-