Class HttpJsonCompanyServiceStub (2.4.2)

Stay organized with collections Save and categorize content based on your preferences.
public class HttpJsonCompanyServiceStub extends CompanyServiceStub

REST stub implementation for the CompanyService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > CompanyServiceStub > HttpJsonCompanyServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonCompanyServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonCompanyServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonCompanyServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonCompanyServiceStub
Exceptions
TypeDescription
IOException

create(CompanyServiceStubSettings settings)

public static final HttpJsonCompanyServiceStub create(CompanyServiceStubSettings settings)
Parameter
NameDescription
settingsCompanyServiceStubSettings
Returns
TypeDescription
HttpJsonCompanyServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonCompanyServiceStub, 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.

Parameters
NameDescription
settingsCompanyServiceStubSettings
clientContextClientContext

HttpJsonCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonCompanyServiceStub(CompanyServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonCompanyServiceStub, 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.

Parameters
NameDescription
settingsCompanyServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createCompanyCallable()

public UnaryCallable<CreateCompanyRequest,Company> createCompanyCallable()
Returns
TypeDescription
UnaryCallable<CreateCompanyRequest,Company>
Overrides

deleteCompanyCallable()

public UnaryCallable<DeleteCompanyRequest,Empty> deleteCompanyCallable()
Returns
TypeDescription
UnaryCallable<DeleteCompanyRequest,Empty>
Overrides

getCompanyCallable()

public UnaryCallable<GetCompanyRequest,Company> getCompanyCallable()
Returns
TypeDescription
UnaryCallable<GetCompanyRequest,Company>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCompaniesCallable()

public UnaryCallable<ListCompaniesRequest,ListCompaniesResponse> listCompaniesCallable()
Returns
TypeDescription
UnaryCallable<ListCompaniesRequest,ListCompaniesResponse>
Overrides

listCompaniesPagedCallable()

public UnaryCallable<ListCompaniesRequest,CompanyServiceClient.ListCompaniesPagedResponse> listCompaniesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListCompaniesRequest,ListCompaniesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCompanyCallable()

public UnaryCallable<UpdateCompanyRequest,Company> updateCompanyCallable()
Returns
TypeDescription
UnaryCallable<UpdateCompanyRequest,Company>
Overrides