Package com.google.cloud.tpu.v2alpha1
Class TpuSettings
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings<TpuSettings>
-
- com.google.cloud.tpu.v2alpha1.TpuSettings
-
@BetaApi @Generated("by gapic-generator-java") public class TpuSettings extends com.google.api.gax.rpc.ClientSettings<TpuSettings>
Settings class to configure an instance ofTpuClient
.The default instance has everything set to sensible defaults:
- The default service address (tpu.googleapis.com) and default port (443) are used.
- Credentials are acquired automatically through Application Default Credentials.
- Retries are configured for idempotent methods but not for non-idempotent methods.
The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.
For example, to set the total timeout of getNode to 30 seconds:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library TpuSettings.Builder tpuSettingsBuilder = TpuSettings.newBuilder(); tpuSettingsBuilder .getNodeSettings() .setRetrySettings( tpuSettingsBuilder .getNodeSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); TpuSettings tpuSettings = tpuSettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TpuSettings.Builder
Builder for TpuSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
TpuSettings(TpuSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TpuSettings
create(TpuStubSettings stub)
com.google.api.gax.rpc.OperationCallSettings<CreateNodeRequest,Node,OperationMetadata>
createNodeOperationSettings()
Returns the object with the settings used for calls to createNode.com.google.api.gax.rpc.UnaryCallSettings<CreateNodeRequest,com.google.longrunning.Operation>
createNodeSettings()
Returns the object with the settings used for calls to createNode.com.google.api.gax.rpc.OperationCallSettings<CreateQueuedResourceRequest,QueuedResource,OperationMetadata>
createQueuedResourceOperationSettings()
Returns the object with the settings used for calls to createQueuedResource.com.google.api.gax.rpc.UnaryCallSettings<CreateQueuedResourceRequest,com.google.longrunning.Operation>
createQueuedResourceSettings()
Returns the object with the settings used for calls to createQueuedResource.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultApiClientHeaderProviderBuilder()
static com.google.api.gax.core.GoogleCredentialsProvider.Builder
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.static com.google.api.gax.core.InstantiatingExecutorProvider.Builder
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvider
defaultTransportChannelProvider()
com.google.api.gax.rpc.OperationCallSettings<DeleteNodeRequest,com.google.protobuf.Empty,OperationMetadata>
deleteNodeOperationSettings()
Returns the object with the settings used for calls to deleteNode.com.google.api.gax.rpc.UnaryCallSettings<DeleteNodeRequest,com.google.longrunning.Operation>
deleteNodeSettings()
Returns the object with the settings used for calls to deleteNode.com.google.api.gax.rpc.OperationCallSettings<DeleteQueuedResourceRequest,QueuedResource,OperationMetadata>
deleteQueuedResourceOperationSettings()
Returns the object with the settings used for calls to deleteQueuedResource.com.google.api.gax.rpc.UnaryCallSettings<DeleteQueuedResourceRequest,com.google.longrunning.Operation>
deleteQueuedResourceSettings()
Returns the object with the settings used for calls to deleteQueuedResource.com.google.api.gax.rpc.UnaryCallSettings<GenerateServiceIdentityRequest,GenerateServiceIdentityResponse>
generateServiceIdentitySettings()
Returns the object with the settings used for calls to generateServiceIdentity.com.google.api.gax.rpc.UnaryCallSettings<GetAcceleratorTypeRequest,AcceleratorType>
getAcceleratorTypeSettings()
Returns the object with the settings used for calls to getAcceleratorType.static String
getDefaultEndpoint()
Returns the default service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<GetGuestAttributesRequest,GetGuestAttributesResponse>
getGuestAttributesSettings()
Returns the object with the settings used for calls to getGuestAttributes.com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationSettings()
Returns the object with the settings used for calls to getLocation.com.google.api.gax.rpc.UnaryCallSettings<GetNodeRequest,Node>
getNodeSettings()
Returns the object with the settings used for calls to getNode.com.google.api.gax.rpc.UnaryCallSettings<GetQueuedResourceRequest,QueuedResource>
getQueuedResourceSettings()
Returns the object with the settings used for calls to getQueuedResource.com.google.api.gax.rpc.UnaryCallSettings<GetRuntimeVersionRequest,RuntimeVersion>
getRuntimeVersionSettings()
Returns the object with the settings used for calls to getRuntimeVersion.com.google.api.gax.rpc.PagedCallSettings<ListAcceleratorTypesRequest,ListAcceleratorTypesResponse,TpuClient.ListAcceleratorTypesPagedResponse>
listAcceleratorTypesSettings()
Returns the object with the settings used for calls to listAcceleratorTypes.com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,TpuClient.ListLocationsPagedResponse>
listLocationsSettings()
Returns the object with the settings used for calls to listLocations.com.google.api.gax.rpc.PagedCallSettings<ListNodesRequest,ListNodesResponse,TpuClient.ListNodesPagedResponse>
listNodesSettings()
Returns the object with the settings used for calls to listNodes.com.google.api.gax.rpc.PagedCallSettings<ListQueuedResourcesRequest,ListQueuedResourcesResponse,TpuClient.ListQueuedResourcesPagedResponse>
listQueuedResourcesSettings()
Returns the object with the settings used for calls to listQueuedResources.com.google.api.gax.rpc.PagedCallSettings<ListRuntimeVersionsRequest,ListRuntimeVersionsResponse,TpuClient.ListRuntimeVersionsPagedResponse>
listRuntimeVersionsSettings()
Returns the object with the settings used for calls to listRuntimeVersions.static TpuSettings.Builder
newBuilder()
Returns a new builder for this class.static TpuSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.com.google.api.gax.rpc.OperationCallSettings<ResetQueuedResourceRequest,QueuedResource,OperationMetadata>
resetQueuedResourceOperationSettings()
Returns the object with the settings used for calls to resetQueuedResource.com.google.api.gax.rpc.UnaryCallSettings<ResetQueuedResourceRequest,com.google.longrunning.Operation>
resetQueuedResourceSettings()
Returns the object with the settings used for calls to resetQueuedResource.com.google.api.gax.rpc.OperationCallSettings<SimulateMaintenanceEventRequest,Node,OperationMetadata>
simulateMaintenanceEventOperationSettings()
Returns the object with the settings used for calls to simulateMaintenanceEvent.com.google.api.gax.rpc.UnaryCallSettings<SimulateMaintenanceEventRequest,com.google.longrunning.Operation>
simulateMaintenanceEventSettings()
Returns the object with the settings used for calls to simulateMaintenanceEvent.com.google.api.gax.rpc.OperationCallSettings<StartNodeRequest,Node,OperationMetadata>
startNodeOperationSettings()
Returns the object with the settings used for calls to startNode.com.google.api.gax.rpc.UnaryCallSettings<StartNodeRequest,com.google.longrunning.Operation>
startNodeSettings()
Returns the object with the settings used for calls to startNode.com.google.api.gax.rpc.OperationCallSettings<StopNodeRequest,Node,OperationMetadata>
stopNodeOperationSettings()
Returns the object with the settings used for calls to stopNode.com.google.api.gax.rpc.UnaryCallSettings<StopNodeRequest,com.google.longrunning.Operation>
stopNodeSettings()
Returns the object with the settings used for calls to stopNode.TpuSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.OperationCallSettings<UpdateNodeRequest,Node,OperationMetadata>
updateNodeOperationSettings()
Returns the object with the settings used for calls to updateNode.com.google.api.gax.rpc.UnaryCallSettings<UpdateNodeRequest,com.google.longrunning.Operation>
updateNodeSettings()
Returns the object with the settings used for calls to updateNode.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
TpuSettings
protected TpuSettings(TpuSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
listNodesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListNodesRequest,ListNodesResponse,TpuClient.ListNodesPagedResponse> listNodesSettings()
Returns the object with the settings used for calls to listNodes.
-
getNodeSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetNodeRequest,Node> getNodeSettings()
Returns the object with the settings used for calls to getNode.
-
createNodeSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateNodeRequest,com.google.longrunning.Operation> createNodeSettings()
Returns the object with the settings used for calls to createNode.
-
createNodeOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateNodeRequest,Node,OperationMetadata> createNodeOperationSettings()
Returns the object with the settings used for calls to createNode.
-
deleteNodeSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteNodeRequest,com.google.longrunning.Operation> deleteNodeSettings()
Returns the object with the settings used for calls to deleteNode.
-
deleteNodeOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteNodeRequest,com.google.protobuf.Empty,OperationMetadata> deleteNodeOperationSettings()
Returns the object with the settings used for calls to deleteNode.
-
stopNodeSettings
public com.google.api.gax.rpc.UnaryCallSettings<StopNodeRequest,com.google.longrunning.Operation> stopNodeSettings()
Returns the object with the settings used for calls to stopNode.
-
stopNodeOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<StopNodeRequest,Node,OperationMetadata> stopNodeOperationSettings()
Returns the object with the settings used for calls to stopNode.
-
startNodeSettings
public com.google.api.gax.rpc.UnaryCallSettings<StartNodeRequest,com.google.longrunning.Operation> startNodeSettings()
Returns the object with the settings used for calls to startNode.
-
startNodeOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<StartNodeRequest,Node,OperationMetadata> startNodeOperationSettings()
Returns the object with the settings used for calls to startNode.
-
updateNodeSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateNodeRequest,com.google.longrunning.Operation> updateNodeSettings()
Returns the object with the settings used for calls to updateNode.
-
updateNodeOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateNodeRequest,Node,OperationMetadata> updateNodeOperationSettings()
Returns the object with the settings used for calls to updateNode.
-
listQueuedResourcesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListQueuedResourcesRequest,ListQueuedResourcesResponse,TpuClient.ListQueuedResourcesPagedResponse> listQueuedResourcesSettings()
Returns the object with the settings used for calls to listQueuedResources.
-
getQueuedResourceSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetQueuedResourceRequest,QueuedResource> getQueuedResourceSettings()
Returns the object with the settings used for calls to getQueuedResource.
-
createQueuedResourceSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateQueuedResourceRequest,com.google.longrunning.Operation> createQueuedResourceSettings()
Returns the object with the settings used for calls to createQueuedResource.
-
createQueuedResourceOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateQueuedResourceRequest,QueuedResource,OperationMetadata> createQueuedResourceOperationSettings()
Returns the object with the settings used for calls to createQueuedResource.
-
deleteQueuedResourceSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteQueuedResourceRequest,com.google.longrunning.Operation> deleteQueuedResourceSettings()
Returns the object with the settings used for calls to deleteQueuedResource.
-
deleteQueuedResourceOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteQueuedResourceRequest,QueuedResource,OperationMetadata> deleteQueuedResourceOperationSettings()
Returns the object with the settings used for calls to deleteQueuedResource.
-
resetQueuedResourceSettings
public com.google.api.gax.rpc.UnaryCallSettings<ResetQueuedResourceRequest,com.google.longrunning.Operation> resetQueuedResourceSettings()
Returns the object with the settings used for calls to resetQueuedResource.
-
resetQueuedResourceOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<ResetQueuedResourceRequest,QueuedResource,OperationMetadata> resetQueuedResourceOperationSettings()
Returns the object with the settings used for calls to resetQueuedResource.
-
generateServiceIdentitySettings
public com.google.api.gax.rpc.UnaryCallSettings<GenerateServiceIdentityRequest,GenerateServiceIdentityResponse> generateServiceIdentitySettings()
Returns the object with the settings used for calls to generateServiceIdentity.
-
listAcceleratorTypesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListAcceleratorTypesRequest,ListAcceleratorTypesResponse,TpuClient.ListAcceleratorTypesPagedResponse> listAcceleratorTypesSettings()
Returns the object with the settings used for calls to listAcceleratorTypes.
-
getAcceleratorTypeSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetAcceleratorTypeRequest,AcceleratorType> getAcceleratorTypeSettings()
Returns the object with the settings used for calls to getAcceleratorType.
-
listRuntimeVersionsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListRuntimeVersionsRequest,ListRuntimeVersionsResponse,TpuClient.ListRuntimeVersionsPagedResponse> listRuntimeVersionsSettings()
Returns the object with the settings used for calls to listRuntimeVersions.
-
getRuntimeVersionSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetRuntimeVersionRequest,RuntimeVersion> getRuntimeVersionSettings()
Returns the object with the settings used for calls to getRuntimeVersion.
-
getGuestAttributesSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetGuestAttributesRequest,GetGuestAttributesResponse> getGuestAttributesSettings()
Returns the object with the settings used for calls to getGuestAttributes.
-
simulateMaintenanceEventSettings
public com.google.api.gax.rpc.UnaryCallSettings<SimulateMaintenanceEventRequest,com.google.longrunning.Operation> simulateMaintenanceEventSettings()
Returns the object with the settings used for calls to simulateMaintenanceEvent.
-
simulateMaintenanceEventOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<SimulateMaintenanceEventRequest,Node,OperationMetadata> simulateMaintenanceEventOperationSettings()
Returns the object with the settings used for calls to simulateMaintenanceEvent.
-
listLocationsSettings
public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,TpuClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
-
getLocationSettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationSettings()
Returns the object with the settings used for calls to getLocation.
-
create
public static final TpuSettings create(TpuStubSettings stub) throws IOException
- Throws:
IOException
-
defaultExecutorProviderBuilder
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
-
getDefaultEndpoint
public static String getDefaultEndpoint()
Returns the default service endpoint.
-
getDefaultServiceScopes
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
-
defaultCredentialsProviderBuilder
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
-
defaultGrpcTransportProviderBuilder
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
-
defaultTransportChannelProvider
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
-
defaultApiClientHeaderProviderBuilder
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
-
newBuilder
public static TpuSettings.Builder newBuilder()
Returns a new builder for this class.
-
newBuilder
public static TpuSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public TpuSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.ClientSettings<TpuSettings>
-
-