public static final class CompanyServiceGrpc.CompanyServiceStub extends AbstractAsyncStub<CompanyServiceGrpc.CompanyServiceStub>
A service that handles company management, including CRUD and enumeration.
AbstractStub.StubFactory<T extends AbstractStub<T>>
Modifier and Type | Method and Description |
---|---|
protected CompanyServiceGrpc.CompanyServiceStub |
build(Channel channel,
CallOptions callOptions) |
void |
createCompany(CreateCompanyRequest request,
StreamObserver<Company> responseObserver)
Creates a new company entity.
|
void |
deleteCompany(DeleteCompanyRequest request,
StreamObserver<Empty> responseObserver)
Deletes specified company.
|
void |
getCompany(GetCompanyRequest request,
StreamObserver<Company> responseObserver)
Retrieves specified company.
|
void |
listCompanies(ListCompaniesRequest request,
StreamObserver<ListCompaniesResponse> responseObserver)
Lists all companies associated with the project.
|
void |
updateCompany(UpdateCompanyRequest request,
StreamObserver<Company> responseObserver)
Updates specified company.
|
newStub, newStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
protected CompanyServiceGrpc.CompanyServiceStub build(Channel channel, CallOptions callOptions)
build
in class AbstractStub<CompanyServiceGrpc.CompanyServiceStub>
public void createCompany(CreateCompanyRequest request, StreamObserver<Company> responseObserver)
Creates a new company entity.
public void getCompany(GetCompanyRequest request, StreamObserver<Company> responseObserver)
Retrieves specified company.
public void updateCompany(UpdateCompanyRequest request, StreamObserver<Company> responseObserver)
Updates specified company.
public void deleteCompany(DeleteCompanyRequest request, StreamObserver<Empty> responseObserver)
Deletes specified company. Prerequisite: The company has no jobs associated with it.
public void listCompanies(ListCompaniesRequest request, StreamObserver<ListCompaniesResponse> responseObserver)
Lists all companies associated with the project.
Copyright © 2022 Google LLC. All rights reserved.