Class CompanyServiceStubSettings.Builder (2.12.0)

public static class CompanyServiceStubSettings.Builder extends StubSettings.Builder<CompanyServiceStubSettings,CompanyServiceStubSettings.Builder>

Builder for CompanyServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > CompanyServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(CompanyServiceStubSettings settings)

protected Builder(CompanyServiceStubSettings settings)
Parameter
NameDescription
settingsCompanyServiceStubSettings

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public CompanyServiceStubSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
CompanyServiceStubSettings.Builder

build()

public CompanyServiceStubSettings build()
Returns
TypeDescription
CompanyServiceStubSettings
Overrides Exceptions
TypeDescription
IOException

createCompanySettings()

public UnaryCallSettings.Builder<CreateCompanyRequest,Company> createCompanySettings()

Returns the builder for the settings used for calls to createCompany.

Returns
TypeDescription
Builder<CreateCompanyRequest,Company>

deleteCompanySettings()

public UnaryCallSettings.Builder<DeleteCompanyRequest,Empty> deleteCompanySettings()

Returns the builder for the settings used for calls to deleteCompany.

Returns
TypeDescription
Builder<DeleteCompanyRequest,Empty>

getCompanySettings()

public UnaryCallSettings.Builder<GetCompanyRequest,Company> getCompanySettings()

Returns the builder for the settings used for calls to getCompany.

Returns
TypeDescription
Builder<GetCompanyRequest,Company>

listCompaniesSettings()

public PagedCallSettings.Builder<ListCompaniesRequest,ListCompaniesResponse,CompanyServiceClient.ListCompaniesPagedResponse> listCompaniesSettings()

Returns the builder for the settings used for calls to listCompanies.

Returns
TypeDescription
Builder<ListCompaniesRequest,ListCompaniesResponse,ListCompaniesPagedResponse>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
TypeDescription
com.google.common.collect.ImmutableList<Builder<?,?>>

updateCompanySettings()

public UnaryCallSettings.Builder<UpdateCompanyRequest,Company> updateCompanySettings()

Returns the builder for the settings used for calls to updateCompany.

Returns
TypeDescription
Builder<UpdateCompanyRequest,Company>