Class ApiHubStubSettings.Builder (0.6.0)

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

Builder for ApiHubStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > ApiHubStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(ApiHubStubSettings settings)

protected Builder(ApiHubStubSettings settings)
Parameter
Name Description
settings ApiHubStubSettings

Methods

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

public ApiHubStubSettings.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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
ApiHubStubSettings.Builder

build()

public ApiHubStubSettings build()
Returns
Type Description
ApiHubStubSettings
Overrides
Exceptions
Type Description
IOException

createApiSettings()

public UnaryCallSettings.Builder<CreateApiRequest,Api> createApiSettings()

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

Returns
Type Description
Builder<CreateApiRequest,Api>

createAttributeSettings()

public UnaryCallSettings.Builder<CreateAttributeRequest,Attribute> createAttributeSettings()

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

Returns
Type Description
Builder<CreateAttributeRequest,Attribute>

createDeploymentSettings()

public UnaryCallSettings.Builder<CreateDeploymentRequest,Deployment> createDeploymentSettings()

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

Returns
Type Description
Builder<CreateDeploymentRequest,Deployment>

createExternalApiSettings()

public UnaryCallSettings.Builder<CreateExternalApiRequest,ExternalApi> createExternalApiSettings()

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

Returns
Type Description
Builder<CreateExternalApiRequest,ExternalApi>

createSpecSettings()

public UnaryCallSettings.Builder<CreateSpecRequest,Spec> createSpecSettings()

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

Returns
Type Description
Builder<CreateSpecRequest,Spec>

createVersionSettings()

public UnaryCallSettings.Builder<CreateVersionRequest,Version> createVersionSettings()

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

Returns
Type Description
Builder<CreateVersionRequest,Version>

deleteApiSettings()

public UnaryCallSettings.Builder<DeleteApiRequest,Empty> deleteApiSettings()

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

Returns
Type Description
Builder<DeleteApiRequest,Empty>

deleteAttributeSettings()

public UnaryCallSettings.Builder<DeleteAttributeRequest,Empty> deleteAttributeSettings()

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

Returns
Type Description
Builder<DeleteAttributeRequest,Empty>

deleteDeploymentSettings()

public UnaryCallSettings.Builder<DeleteDeploymentRequest,Empty> deleteDeploymentSettings()

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

Returns
Type Description
Builder<DeleteDeploymentRequest,Empty>

deleteExternalApiSettings()

public UnaryCallSettings.Builder<DeleteExternalApiRequest,Empty> deleteExternalApiSettings()

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

Returns
Type Description
Builder<DeleteExternalApiRequest,Empty>

deleteSpecSettings()

public UnaryCallSettings.Builder<DeleteSpecRequest,Empty> deleteSpecSettings()

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

Returns
Type Description
Builder<DeleteSpecRequest,Empty>

deleteVersionSettings()

public UnaryCallSettings.Builder<DeleteVersionRequest,Empty> deleteVersionSettings()

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

Returns
Type Description
Builder<DeleteVersionRequest,Empty>

getApiOperationSettings()

public UnaryCallSettings.Builder<GetApiOperationRequest,ApiOperation> getApiOperationSettings()

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

Returns
Type Description
Builder<GetApiOperationRequest,ApiOperation>

getApiSettings()

public UnaryCallSettings.Builder<GetApiRequest,Api> getApiSettings()

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

Returns
Type Description
Builder<GetApiRequest,Api>

getAttributeSettings()

public UnaryCallSettings.Builder<GetAttributeRequest,Attribute> getAttributeSettings()

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

Returns
Type Description
Builder<GetAttributeRequest,Attribute>

getDefinitionSettings()

public UnaryCallSettings.Builder<GetDefinitionRequest,Definition> getDefinitionSettings()

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

Returns
Type Description
Builder<GetDefinitionRequest,Definition>

getDeploymentSettings()

public UnaryCallSettings.Builder<GetDeploymentRequest,Deployment> getDeploymentSettings()

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

Returns
Type Description
Builder<GetDeploymentRequest,Deployment>

getExternalApiSettings()

public UnaryCallSettings.Builder<GetExternalApiRequest,ExternalApi> getExternalApiSettings()

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

Returns
Type Description
Builder<GetExternalApiRequest,ExternalApi>

getLocationSettings()

public UnaryCallSettings.Builder<GetLocationRequest,Location> getLocationSettings()

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

Returns
Type Description
Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getSpecContentsSettings()

public UnaryCallSettings.Builder<GetSpecContentsRequest,SpecContents> getSpecContentsSettings()

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

Returns
Type Description
Builder<GetSpecContentsRequest,SpecContents>

getSpecSettings()

public UnaryCallSettings.Builder<GetSpecRequest,Spec> getSpecSettings()

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

Returns
Type Description
Builder<GetSpecRequest,Spec>

getVersionSettings()

public UnaryCallSettings.Builder<GetVersionRequest,Version> getVersionSettings()

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

Returns
Type Description
Builder<GetVersionRequest,Version>

listApiOperationsSettings()

public PagedCallSettings.Builder<ListApiOperationsRequest,ListApiOperationsResponse,ApiHubClient.ListApiOperationsPagedResponse> listApiOperationsSettings()

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

Returns
Type Description
Builder<ListApiOperationsRequest,ListApiOperationsResponse,ListApiOperationsPagedResponse>

listApisSettings()

public PagedCallSettings.Builder<ListApisRequest,ListApisResponse,ApiHubClient.ListApisPagedResponse> listApisSettings()

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

Returns
Type Description
Builder<ListApisRequest,ListApisResponse,ListApisPagedResponse>

listAttributesSettings()

public PagedCallSettings.Builder<ListAttributesRequest,ListAttributesResponse,ApiHubClient.ListAttributesPagedResponse> listAttributesSettings()

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

Returns
Type Description
Builder<ListAttributesRequest,ListAttributesResponse,ListAttributesPagedResponse>

listDeploymentsSettings()

public PagedCallSettings.Builder<ListDeploymentsRequest,ListDeploymentsResponse,ApiHubClient.ListDeploymentsPagedResponse> listDeploymentsSettings()

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

Returns
Type Description
Builder<ListDeploymentsRequest,ListDeploymentsResponse,ListDeploymentsPagedResponse>

listExternalApisSettings()

public PagedCallSettings.Builder<ListExternalApisRequest,ListExternalApisResponse,ApiHubClient.ListExternalApisPagedResponse> listExternalApisSettings()

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

Returns
Type Description
Builder<ListExternalApisRequest,ListExternalApisResponse,ListExternalApisPagedResponse>

listLocationsSettings()

public PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse,ApiHubClient.ListLocationsPagedResponse> listLocationsSettings()

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

Returns
Type Description
Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>

listSpecsSettings()

public PagedCallSettings.Builder<ListSpecsRequest,ListSpecsResponse,ApiHubClient.ListSpecsPagedResponse> listSpecsSettings()

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

Returns
Type Description
Builder<ListSpecsRequest,ListSpecsResponse,ListSpecsPagedResponse>

listVersionsSettings()

public PagedCallSettings.Builder<ListVersionsRequest,ListVersionsResponse,ApiHubClient.ListVersionsPagedResponse> listVersionsSettings()

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

Returns
Type Description
Builder<ListVersionsRequest,ListVersionsResponse,ListVersionsPagedResponse>

searchResourcesSettings()

public PagedCallSettings.Builder<SearchResourcesRequest,SearchResourcesResponse,ApiHubClient.SearchResourcesPagedResponse> searchResourcesSettings()

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

Returns
Type Description
Builder<SearchResourcesRequest,SearchResourcesResponse,SearchResourcesPagedResponse>

unaryMethodSettingsBuilders()

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

updateApiSettings()

public UnaryCallSettings.Builder<UpdateApiRequest,Api> updateApiSettings()

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

Returns
Type Description
Builder<UpdateApiRequest,Api>

updateAttributeSettings()

public UnaryCallSettings.Builder<UpdateAttributeRequest,Attribute> updateAttributeSettings()

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

Returns
Type Description
Builder<UpdateAttributeRequest,Attribute>

updateDeploymentSettings()

public UnaryCallSettings.Builder<UpdateDeploymentRequest,Deployment> updateDeploymentSettings()

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

Returns
Type Description
Builder<UpdateDeploymentRequest,Deployment>

updateExternalApiSettings()

public UnaryCallSettings.Builder<UpdateExternalApiRequest,ExternalApi> updateExternalApiSettings()

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

Returns
Type Description
Builder<UpdateExternalApiRequest,ExternalApi>

updateSpecSettings()

public UnaryCallSettings.Builder<UpdateSpecRequest,Spec> updateSpecSettings()

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

Returns
Type Description
Builder<UpdateSpecRequest,Spec>

updateVersionSettings()

public UnaryCallSettings.Builder<UpdateVersionRequest,Version> updateVersionSettings()

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

Returns
Type Description
Builder<UpdateVersionRequest,Version>