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 StubSettings.Builder<TpuStubSettings,TpuStubSettings.Builder>
Builder for TpuStubSettings.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()protectedBuilder(ClientContext clientContext) protectedBuilder(TpuStubSettings settings) -
Method Summary
Modifier and TypeMethodDescriptionapplyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) Applies the given settings updater function to all of the unary API methods in this service.build()Returns the builder for the settings used for calls to createNode.Returns the builder for the settings used for calls to createNode.Returns the builder for the settings used for calls to createQueuedResource.Returns the builder for the settings used for calls to createQueuedResource.OperationCallSettings.Builder<DeleteNodeRequest,com.google.protobuf.Empty, OperationMetadata> Returns the builder for the settings used for calls to deleteNode.Returns the builder for the settings used for calls to deleteNode.OperationCallSettings.Builder<DeleteQueuedResourceRequest,com.google.protobuf.Empty, OperationMetadata> Returns the builder for the settings used for calls to deleteQueuedResource.Returns the builder for the settings used for calls to deleteQueuedResource.Returns the builder for the settings used for calls to generateServiceIdentity.Returns the builder for the settings used for calls to getAcceleratorType.Returns the builder for the settings used for calls to getGuestAttributes.Returns the builder for the settings used for calls to getLocation.Returns the builder for the settings used for calls to getNode.Returns the builder for the settings used for calls to getQueuedResource.Returns the builder for the settings used for calls to getRuntimeVersion.PagedCallSettings.Builder<ListAcceleratorTypesRequest,ListAcceleratorTypesResponse, TpuClient.ListAcceleratorTypesPagedResponse> Returns the builder for the settings used for calls to listAcceleratorTypes.PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse, TpuClient.ListLocationsPagedResponse> Returns the builder for the settings used for calls to listLocations.Returns the builder for the settings used for calls to listNodes.PagedCallSettings.Builder<ListQueuedResourcesRequest,ListQueuedResourcesResponse, TpuClient.ListQueuedResourcesPagedResponse> Returns the builder for the settings used for calls to listQueuedResources.PagedCallSettings.Builder<ListRuntimeVersionsRequest,ListRuntimeVersionsResponse, TpuClient.ListRuntimeVersionsPagedResponse> Returns the builder for the settings used for calls to listRuntimeVersions.Returns the builder for the settings used for calls to resetQueuedResource.Returns the builder for the settings used for calls to resetQueuedResource.Returns the builder for the settings used for calls to startNode.Returns the builder for the settings used for calls to startNode.Returns the builder for the settings used for calls to stopNode.Returns the builder for the settings used for calls to stopNode.com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> Returns the builder for the settings used for calls to updateNode.Returns the builder for the settings used for calls to updateNode.Methods inherited from class com.google.api.gax.rpc.StubSettings.Builder
applyToAllUnaryMethods, getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogCheckIntervalDuration, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setApiKey, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogCheckIntervalDuration, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, setUniverseDomain, toString
-
Constructor Details
-
Builder
protected Builder() -
Builder
-
Builder
-
-
Method Details
-
applyToAllUnaryMethods
public TpuStubSettings.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.
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders() -
listNodesSettings
public PagedCallSettings.Builder<ListNodesRequest,ListNodesResponse, listNodesSettings()TpuClient.ListNodesPagedResponse> Returns the builder for the settings used for calls to listNodes. -
getNodeSettings
Returns the builder for the settings used for calls to getNode. -
createNodeSettings
Returns the builder for the settings used for calls to createNode. -
createNodeOperationSettings
public OperationCallSettings.Builder<CreateNodeRequest,Node, createNodeOperationSettings()OperationMetadata> Returns the builder for the settings used for calls to createNode. -
deleteNodeSettings
Returns the builder for the settings used for calls to deleteNode. -
deleteNodeOperationSettings
public OperationCallSettings.Builder<DeleteNodeRequest,com.google.protobuf.Empty, deleteNodeOperationSettings()OperationMetadata> Returns the builder for the settings used for calls to deleteNode. -
stopNodeSettings
Returns the builder for the settings used for calls to stopNode. -
stopNodeOperationSettings
public OperationCallSettings.Builder<StopNodeRequest,Node, stopNodeOperationSettings()OperationMetadata> Returns the builder for the settings used for calls to stopNode. -
startNodeSettings
Returns the builder for the settings used for calls to startNode. -
startNodeOperationSettings
public OperationCallSettings.Builder<StartNodeRequest,Node, startNodeOperationSettings()OperationMetadata> Returns the builder for the settings used for calls to startNode. -
updateNodeSettings
Returns the builder for the settings used for calls to updateNode. -
updateNodeOperationSettings
public OperationCallSettings.Builder<UpdateNodeRequest,Node, updateNodeOperationSettings()OperationMetadata> Returns the builder for the settings used for calls to updateNode. -
listQueuedResourcesSettings
public PagedCallSettings.Builder<ListQueuedResourcesRequest,ListQueuedResourcesResponse, listQueuedResourcesSettings()TpuClient.ListQueuedResourcesPagedResponse> Returns the builder for the settings used for calls to listQueuedResources. -
getQueuedResourceSettings
public UnaryCallSettings.Builder<GetQueuedResourceRequest,QueuedResource> getQueuedResourceSettings()Returns the builder for the settings used for calls to getQueuedResource. -
createQueuedResourceSettings
public UnaryCallSettings.Builder<CreateQueuedResourceRequest,Operation> createQueuedResourceSettings()Returns the builder for the settings used for calls to createQueuedResource. -
createQueuedResourceOperationSettings
public OperationCallSettings.Builder<CreateQueuedResourceRequest,QueuedResource, createQueuedResourceOperationSettings()OperationMetadata> Returns the builder for the settings used for calls to createQueuedResource. -
deleteQueuedResourceSettings
public UnaryCallSettings.Builder<DeleteQueuedResourceRequest,Operation> deleteQueuedResourceSettings()Returns the builder for the settings used for calls to deleteQueuedResource. -
deleteQueuedResourceOperationSettings
public OperationCallSettings.Builder<DeleteQueuedResourceRequest,com.google.protobuf.Empty, deleteQueuedResourceOperationSettings()OperationMetadata> Returns the builder for the settings used for calls to deleteQueuedResource. -
resetQueuedResourceSettings
public UnaryCallSettings.Builder<ResetQueuedResourceRequest,Operation> resetQueuedResourceSettings()Returns the builder for the settings used for calls to resetQueuedResource. -
resetQueuedResourceOperationSettings
public OperationCallSettings.Builder<ResetQueuedResourceRequest,QueuedResource, resetQueuedResourceOperationSettings()OperationMetadata> Returns the builder for the settings used for calls to resetQueuedResource. -
generateServiceIdentitySettings
public UnaryCallSettings.Builder<GenerateServiceIdentityRequest,GenerateServiceIdentityResponse> generateServiceIdentitySettings()Returns the builder for the settings used for calls to generateServiceIdentity. -
listAcceleratorTypesSettings
public PagedCallSettings.Builder<ListAcceleratorTypesRequest,ListAcceleratorTypesResponse, listAcceleratorTypesSettings()TpuClient.ListAcceleratorTypesPagedResponse> Returns the builder for the settings used for calls to listAcceleratorTypes. -
getAcceleratorTypeSettings
public UnaryCallSettings.Builder<GetAcceleratorTypeRequest,AcceleratorType> getAcceleratorTypeSettings()Returns the builder for the settings used for calls to getAcceleratorType. -
listRuntimeVersionsSettings
public PagedCallSettings.Builder<ListRuntimeVersionsRequest,ListRuntimeVersionsResponse, listRuntimeVersionsSettings()TpuClient.ListRuntimeVersionsPagedResponse> Returns the builder for the settings used for calls to listRuntimeVersions. -
getRuntimeVersionSettings
public UnaryCallSettings.Builder<GetRuntimeVersionRequest,RuntimeVersion> getRuntimeVersionSettings()Returns the builder for the settings used for calls to getRuntimeVersion. -
getGuestAttributesSettings
public UnaryCallSettings.Builder<GetGuestAttributesRequest,GetGuestAttributesResponse> getGuestAttributesSettings()Returns the builder for the settings used for calls to getGuestAttributes. -
listLocationsSettings
public PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse, listLocationsSettings()TpuClient.ListLocationsPagedResponse> Returns the builder for the settings used for calls to listLocations. -
getLocationSettings
Returns the builder for the settings used for calls to getLocation. -
build
- Specified by:
buildin classStubSettings.Builder<TpuStubSettings,TpuStubSettings.Builder> - Throws:
IOException
-