Package com.google.cloud.tpu.v2.stub
Class TpuStubSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings.Builder<TpuStubSettings,TpuStubSettings.Builder>
-
- com.google.cloud.tpu.v2.stub.TpuStubSettings.Builder
-
- Enclosing class:
- TpuStubSettings
public static class TpuStubSettings.Builder extends com.google.api.gax.rpc.StubSettings.Builder<TpuStubSettings,TpuStubSettings.Builder>
Builder for TpuStubSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(TpuStubSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TpuStubSettings.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.TpuStubSettings
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,com.google.protobuf.Empty,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<GenerateServiceIdentityRequest,GenerateServiceIdentityResponse>
generateServiceIdentitySettings()
Returns the builder for the settings used for calls to generateServiceIdentity.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<GetGuestAttributesRequest,GetGuestAttributesResponse>
getGuestAttributesSettings()
Returns the builder for the settings used for calls to getGuestAttributes.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.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetRuntimeVersionRequest,RuntimeVersion>
getRuntimeVersionSettings()
Returns the builder for the settings used for calls to getRuntimeVersion.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<ListRuntimeVersionsRequest,ListRuntimeVersionsResponse,TpuClient.ListRuntimeVersionsPagedResponse>
listRuntimeVersionsSettings()
Returns the builder for the settings used for calls to listRuntimeVersions.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.com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>>
unaryMethodSettingsBuilders()
com.google.api.gax.rpc.OperationCallSettings.Builder<UpdateNodeRequest,Node,OperationMetadata>
updateNodeOperationSettings()
Returns the builder for the settings used for calls to updateNode.com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateNodeRequest,com.google.longrunning.Operation>
updateNodeSettings()
Returns the builder for the settings used for calls to updateNode.-
Methods inherited from class com.google.api.gax.rpc.StubSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(TpuStubSettings settings)
-
-
Method Detail
-
applyToAllUnaryMethods
public TpuStubSettings.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.
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
-
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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallSettings.Builder<DeleteNodeRequest,com.google.protobuf.Empty,OperationMetadata> deleteNodeOperationSettings()
Returns the builder for the settings used for calls to deleteNode.
-
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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallSettings.Builder<StartNodeRequest,Node,OperationMetadata> startNodeOperationSettings()
Returns the builder for the settings used for calls to startNode.
-
updateNodeSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateNodeRequest,com.google.longrunning.Operation> updateNodeSettings()
Returns the builder for the settings used for calls to updateNode.
-
updateNodeOperationSettings
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallSettings.Builder<UpdateNodeRequest,Node,OperationMetadata> updateNodeOperationSettings()
Returns the builder for the settings used for calls to updateNode.
-
generateServiceIdentitySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GenerateServiceIdentityRequest,GenerateServiceIdentityResponse> generateServiceIdentitySettings()
Returns the builder for the settings used for calls to generateServiceIdentity.
-
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.
-
listRuntimeVersionsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListRuntimeVersionsRequest,ListRuntimeVersionsResponse,TpuClient.ListRuntimeVersionsPagedResponse> listRuntimeVersionsSettings()
Returns the builder for the settings used for calls to listRuntimeVersions.
-
getRuntimeVersionSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetRuntimeVersionRequest,RuntimeVersion> getRuntimeVersionSettings()
Returns the builder for the settings used for calls to getRuntimeVersion.
-
getGuestAttributesSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetGuestAttributesRequest,GetGuestAttributesResponse> getGuestAttributesSettings()
Returns the builder for the settings used for calls to getGuestAttributes.
-
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 TpuStubSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.StubSettings.Builder<TpuStubSettings,TpuStubSettings.Builder>
- Throws:
IOException
-
-