Package com.google.cloud.tpu.v1
Class TpuSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings.Builder<TpuSettings,TpuSettings.Builder>
-
- com.google.cloud.tpu.v1.TpuSettings.Builder
-
- Enclosing class:
- TpuSettings
public static class TpuSettings.Builder extends com.google.api.gax.rpc.ClientSettings.Builder<TpuSettings,TpuSettings.Builder>
Builder for TpuSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(TpuStubSettings.Builder stubSettings)
protected
Builder(TpuSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TpuSettings.Builder
applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.TpuSettings
build()
com.google.api.gax.rpc.OperationCallSettings.Builder<CreateNodeRequest,Node,OperationMetadata>
createNodeOperationSettings()
Returns the builder for the settings used for calls to createNode.com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateNodeRequest,com.google.longrunning.Operation>
createNodeSettings()
Returns the builder for the settings used for calls to createNode.com.google.api.gax.rpc.OperationCallSettings.Builder<DeleteNodeRequest,Node,OperationMetadata>
deleteNodeOperationSettings()
Returns the builder for the settings used for calls to deleteNode.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteNodeRequest,com.google.longrunning.Operation>
deleteNodeSettings()
Returns the builder for the settings used for calls to deleteNode.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetAcceleratorTypeRequest,AcceleratorType>
getAcceleratorTypeSettings()
Returns the builder for the settings used for calls to getAcceleratorType.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationSettings()
Returns the builder for the settings used for calls to getLocation.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetNodeRequest,Node>
getNodeSettings()
Returns the builder for the settings used for calls to getNode.TpuStubSettings.Builder
getStubSettingsBuilder()
com.google.api.gax.rpc.UnaryCallSettings.Builder<GetTensorFlowVersionRequest,TensorFlowVersion>
getTensorFlowVersionSettings()
Returns the builder for the settings used for calls to getTensorFlowVersion.com.google.api.gax.rpc.PagedCallSettings.Builder<ListAcceleratorTypesRequest,ListAcceleratorTypesResponse,TpuClient.ListAcceleratorTypesPagedResponse>
listAcceleratorTypesSettings()
Returns the builder for the settings used for calls to listAcceleratorTypes.com.google.api.gax.rpc.PagedCallSettings.Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,TpuClient.ListLocationsPagedResponse>
listLocationsSettings()
Returns the builder for the settings used for calls to listLocations.com.google.api.gax.rpc.PagedCallSettings.Builder<ListNodesRequest,ListNodesResponse,TpuClient.ListNodesPagedResponse>
listNodesSettings()
Returns the builder for the settings used for calls to listNodes.com.google.api.gax.rpc.PagedCallSettings.Builder<ListTensorFlowVersionsRequest,ListTensorFlowVersionsResponse,TpuClient.ListTensorFlowVersionsPagedResponse>
listTensorFlowVersionsSettings()
Returns the builder for the settings used for calls to listTensorFlowVersions.com.google.api.gax.rpc.OperationCallSettings.Builder<ReimageNodeRequest,Node,OperationMetadata>
reimageNodeOperationSettings()
Returns the builder for the settings used for calls to reimageNode.com.google.api.gax.rpc.UnaryCallSettings.Builder<ReimageNodeRequest,com.google.longrunning.Operation>
reimageNodeSettings()
Returns the builder for the settings used for calls to reimageNode.com.google.api.gax.rpc.OperationCallSettings.Builder<StartNodeRequest,Node,OperationMetadata>
startNodeOperationSettings()
Returns the builder for the settings used for calls to startNode.com.google.api.gax.rpc.UnaryCallSettings.Builder<StartNodeRequest,com.google.longrunning.Operation>
startNodeSettings()
Returns the builder for the settings used for calls to startNode.com.google.api.gax.rpc.OperationCallSettings.Builder<StopNodeRequest,Node,OperationMetadata>
stopNodeOperationSettings()
Returns the builder for the settings used for calls to stopNode.com.google.api.gax.rpc.UnaryCallSettings.Builder<StopNodeRequest,com.google.longrunning.Operation>
stopNodeSettings()
Returns the builder for the settings used for calls to stopNode.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setQuotaProjectId, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder() throws IOException
- Throws:
IOException
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(TpuSettings settings)
-
Builder
protected Builder(TpuStubSettings.Builder stubSettings)
-
-
Method Detail
-
getStubSettingsBuilder
public TpuStubSettings.Builder getStubSettingsBuilder()
-
applyToAllUnaryMethods
public TpuSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.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.
-
listNodesSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListNodesRequest,ListNodesResponse,TpuClient.ListNodesPagedResponse> listNodesSettings()
Returns the builder for the settings used for calls to listNodes.
-
getNodeSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetNodeRequest,Node> getNodeSettings()
Returns the builder for the settings used for calls to getNode.
-
createNodeSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateNodeRequest,com.google.longrunning.Operation> createNodeSettings()
Returns the builder for the settings used for calls to createNode.
-
createNodeOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<CreateNodeRequest,Node,OperationMetadata> createNodeOperationSettings()
Returns the builder for the settings used for calls to createNode.
-
deleteNodeSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteNodeRequest,com.google.longrunning.Operation> deleteNodeSettings()
Returns the builder for the settings used for calls to deleteNode.
-
deleteNodeOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<DeleteNodeRequest,Node,OperationMetadata> deleteNodeOperationSettings()
Returns the builder for the settings used for calls to deleteNode.
-
reimageNodeSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ReimageNodeRequest,com.google.longrunning.Operation> reimageNodeSettings()
Returns the builder for the settings used for calls to reimageNode.
-
reimageNodeOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<ReimageNodeRequest,Node,OperationMetadata> reimageNodeOperationSettings()
Returns the builder for the settings used for calls to reimageNode.
-
stopNodeSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<StopNodeRequest,com.google.longrunning.Operation> stopNodeSettings()
Returns the builder for the settings used for calls to stopNode.
-
stopNodeOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<StopNodeRequest,Node,OperationMetadata> stopNodeOperationSettings()
Returns the builder for the settings used for calls to stopNode.
-
startNodeSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<StartNodeRequest,com.google.longrunning.Operation> startNodeSettings()
Returns the builder for the settings used for calls to startNode.
-
startNodeOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<StartNodeRequest,Node,OperationMetadata> startNodeOperationSettings()
Returns the builder for the settings used for calls to startNode.
-
listTensorFlowVersionsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListTensorFlowVersionsRequest,ListTensorFlowVersionsResponse,TpuClient.ListTensorFlowVersionsPagedResponse> listTensorFlowVersionsSettings()
Returns the builder for the settings used for calls to listTensorFlowVersions.
-
getTensorFlowVersionSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetTensorFlowVersionRequest,TensorFlowVersion> getTensorFlowVersionSettings()
Returns the builder for the settings used for calls to getTensorFlowVersion.
-
listAcceleratorTypesSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListAcceleratorTypesRequest,ListAcceleratorTypesResponse,TpuClient.ListAcceleratorTypesPagedResponse> listAcceleratorTypesSettings()
Returns the builder for the settings used for calls to listAcceleratorTypes.
-
getAcceleratorTypeSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetAcceleratorTypeRequest,AcceleratorType> getAcceleratorTypeSettings()
Returns the builder for the settings used for calls to getAcceleratorType.
-
listLocationsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,TpuClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the builder for the settings used for calls to listLocations.
-
getLocationSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationSettings()
Returns the builder for the settings used for calls to getLocation.
-
build
public TpuSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.ClientSettings.Builder<TpuSettings,TpuSettings.Builder>
- Throws:
IOException
-
-