Class CompanyServiceSettings.Builder (2.29.0)

public static class CompanyServiceSettings.Builder extends ClientSettings.Builder<CompanyServiceSettings,CompanyServiceSettings.Builder>

Builder for CompanyServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > CompanyServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(CompanyServiceSettings settings)

protected Builder(CompanyServiceSettings settings)
Parameter
NameDescription
settingsCompanyServiceSettings

Builder(CompanyServiceStubSettings.Builder stubSettings)

protected Builder(CompanyServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsCompanyServiceStubSettings.Builder

Methods

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

public CompanyServiceSettings.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
CompanyServiceSettings.Builder

build()

public CompanyServiceSettings build()
Returns
TypeDescription
CompanyServiceSettings
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>

getStubSettingsBuilder()

public CompanyServiceStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
CompanyServiceStubSettings.Builder

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>

updateCompanySettings()

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

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

Returns
TypeDescription
Builder<UpdateCompanyRequest,Company>