Package com.google.cloud.tpu.v2alpha1
Class Node
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.tpu.v2alpha1.Node
-
- All Implemented Interfaces:
NodeOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Node extends com.google.protobuf.GeneratedMessageV3 implements NodeOrBuilder
A TPU instance.
Protobuf typegoogle.cloud.tpu.v2alpha1.Node- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNode.ApiVersionTPU API Version.static classNode.BuilderA TPU instance.static classNode.HealthHealth defines the status of a TPU node as reported by Health Monitor.static classNode.StateRepresents the different states of a TPU node during its lifecycle.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intACCELERATOR_CONFIG_FIELD_NUMBERstatic intACCELERATOR_TYPE_FIELD_NUMBERstatic intAPI_VERSION_FIELD_NUMBERstatic intBOOT_DISK_CONFIG_FIELD_NUMBERstatic intCIDR_BLOCK_FIELD_NUMBERstatic intCREATE_TIME_FIELD_NUMBERstatic intDATA_DISKS_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intHEALTH_DESCRIPTION_FIELD_NUMBERstatic intHEALTH_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intLABELS_FIELD_NUMBERstatic intMETADATA_FIELD_NUMBERstatic intMULTISLICE_NODE_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intNETWORK_CONFIG_FIELD_NUMBERstatic intNETWORK_ENDPOINTS_FIELD_NUMBERstatic intQUEUED_RESOURCE_FIELD_NUMBERstatic intRUNTIME_VERSION_FIELD_NUMBERstatic intSCHEDULING_CONFIG_FIELD_NUMBERstatic intSERVICE_ACCOUNT_FIELD_NUMBERstatic intSHIELDED_INSTANCE_CONFIG_FIELD_NUMBERstatic intSTATE_FIELD_NUMBERstatic intSYMPTOMS_FIELD_NUMBERstatic intTAGS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)Resource labels to represent user-provided metadata.booleancontainsMetadata(String key)Custom metadata to apply to the TPU Node.booleanequals(Object obj)AcceleratorConfiggetAcceleratorConfig()The AccleratorConfig for the TPU Node.AcceleratorConfigOrBuildergetAcceleratorConfigOrBuilder()The AccleratorConfig for the TPU Node.StringgetAcceleratorType()The type of hardware accelerators associated with this node.com.google.protobuf.ByteStringgetAcceleratorTypeBytes()The type of hardware accelerators associated with this node.Node.ApiVersiongetApiVersion()Output only.intgetApiVersionValue()Output only.BootDiskConfiggetBootDiskConfig()Optional.BootDiskConfigOrBuildergetBootDiskConfigOrBuilder()Optional.StringgetCidrBlock()The CIDR block that the TPU node will use when selecting an IP address.com.google.protobuf.ByteStringgetCidrBlockBytes()The CIDR block that the TPU node will use when selecting an IP address.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.AttachedDiskgetDataDisks(int index)The additional data disks for the Node.intgetDataDisksCount()The additional data disks for the Node.List<AttachedDisk>getDataDisksList()The additional data disks for the Node.AttachedDiskOrBuildergetDataDisksOrBuilder(int index)The additional data disks for the Node.List<? extends AttachedDiskOrBuilder>getDataDisksOrBuilderList()The additional data disks for the Node.static NodegetDefaultInstance()NodegetDefaultInstanceForType()StringgetDescription()The user-supplied description of the TPU.com.google.protobuf.ByteStringgetDescriptionBytes()The user-supplied description of the TPU.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Node.HealthgetHealth()The health status of the TPU node.StringgetHealthDescription()Output only.com.google.protobuf.ByteStringgetHealthDescriptionBytes()Output only.intgetHealthValue()The health status of the TPU node.longgetId()Output only.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Resource labels to represent user-provided metadata.Map<String,String>getLabelsMap()Resource labels to represent user-provided metadata.StringgetLabelsOrDefault(String key, String defaultValue)Resource labels to represent user-provided metadata.StringgetLabelsOrThrow(String key)Resource labels to represent user-provided metadata.Map<String,String>getMetadata()Deprecated.intgetMetadataCount()Custom metadata to apply to the TPU Node.Map<String,String>getMetadataMap()Custom metadata to apply to the TPU Node.StringgetMetadataOrDefault(String key, String defaultValue)Custom metadata to apply to the TPU Node.StringgetMetadataOrThrow(String key)Custom metadata to apply to the TPU Node.booleangetMultisliceNode()Output only.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.NetworkConfiggetNetworkConfig()Network configurations for the TPU node.NetworkConfigOrBuildergetNetworkConfigOrBuilder()Network configurations for the TPU node.NetworkEndpointgetNetworkEndpoints(int index)Output only.intgetNetworkEndpointsCount()Output only.List<NetworkEndpoint>getNetworkEndpointsList()Output only.NetworkEndpointOrBuildergetNetworkEndpointsOrBuilder(int index)Output only.List<? extends NetworkEndpointOrBuilder>getNetworkEndpointsOrBuilderList()Output only.com.google.protobuf.Parser<Node>getParserForType()StringgetQueuedResource()Output only.com.google.protobuf.ByteStringgetQueuedResourceBytes()Output only.StringgetRuntimeVersion()Required.com.google.protobuf.ByteStringgetRuntimeVersionBytes()Required.SchedulingConfiggetSchedulingConfig()The scheduling options for this node.SchedulingConfigOrBuildergetSchedulingConfigOrBuilder()The scheduling options for this node.intgetSerializedSize()ServiceAccountgetServiceAccount()The Google Cloud Platform Service Account to be used by the TPU node VMs.ServiceAccountOrBuildergetServiceAccountOrBuilder()The Google Cloud Platform Service Account to be used by the TPU node VMs.ShieldedInstanceConfiggetShieldedInstanceConfig()Shielded Instance options.ShieldedInstanceConfigOrBuildergetShieldedInstanceConfigOrBuilder()Shielded Instance options.Node.StategetState()Output only.intgetStateValue()Output only.SymptomgetSymptoms(int index)Output only.intgetSymptomsCount()Output only.List<Symptom>getSymptomsList()Output only.SymptomOrBuildergetSymptomsOrBuilder(int index)Output only.List<? extends SymptomOrBuilder>getSymptomsOrBuilderList()Output only.StringgetTags(int index)Tags to apply to the TPU Node.com.google.protobuf.ByteStringgetTagsBytes(int index)Tags to apply to the TPU Node.intgetTagsCount()Tags to apply to the TPU Node.com.google.protobuf.ProtocolStringListgetTagsList()Tags to apply to the TPU Node.booleanhasAcceleratorConfig()The AccleratorConfig for the TPU Node.booleanhasBootDiskConfig()Optional.booleanhasCreateTime()Output only.inthashCode()booleanhasNetworkConfig()Network configurations for the TPU node.booleanhasSchedulingConfig()The scheduling options for this node.booleanhasServiceAccount()The Google Cloud Platform Service Account to be used by the TPU node VMs.booleanhasShieldedInstanceConfig()Shielded Instance options.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static Node.BuildernewBuilder()static Node.BuildernewBuilder(Node prototype)Node.BuildernewBuilderForType()protected Node.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static NodeparseDelimitedFrom(InputStream input)static NodeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NodeparseFrom(byte[] data)static NodeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NodeparseFrom(com.google.protobuf.ByteString data)static NodeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NodeparseFrom(com.google.protobuf.CodedInputStream input)static NodeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NodeparseFrom(InputStream input)static NodeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NodeparseFrom(ByteBuffer data)static NodeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Node>parser()Node.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACCELERATOR_TYPE_FIELD_NUMBER
public static final int ACCELERATOR_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEALTH_DESCRIPTION_FIELD_NUMBER
public static final int HEALTH_DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RUNTIME_VERSION_FIELD_NUMBER
public static final int RUNTIME_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_CONFIG_FIELD_NUMBER
public static final int NETWORK_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CIDR_BLOCK_FIELD_NUMBER
public static final int CIDR_BLOCK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCHEDULING_CONFIG_FIELD_NUMBER
public static final int SCHEDULING_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_ENDPOINTS_FIELD_NUMBER
public static final int NETWORK_ENDPOINTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEALTH_FIELD_NUMBER
public static final int HEALTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_DISKS_FIELD_NUMBER
public static final int DATA_DISKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
API_VERSION_FIELD_NUMBER
public static final int API_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYMPTOMS_FIELD_NUMBER
public static final int SYMPTOMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUEUED_RESOURCE_FIELD_NUMBER
public static final int QUEUED_RESOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACCELERATOR_CONFIG_FIELD_NUMBER
public static final int ACCELERATOR_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MULTISLICE_NODE_FIELD_NUMBER
public static final int MULTISLICE_NODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOT_DISK_CONFIG_FIELD_NUMBER
public static final int BOOT_DISK_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Output only. Immutable. The name of the TPU.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNamein interfaceNodeOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. Immutable. The name of the TPU.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNameBytesin interfaceNodeOrBuilder- Returns:
- The bytes for name.
-
getDescription
public String getDescription()
The user-supplied description of the TPU. Maximum of 512 characters.
string description = 3;- Specified by:
getDescriptionin interfaceNodeOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
The user-supplied description of the TPU. Maximum of 512 characters.
string description = 3;- Specified by:
getDescriptionBytesin interfaceNodeOrBuilder- Returns:
- The bytes for description.
-
getAcceleratorType
public String getAcceleratorType()
The type of hardware accelerators associated with this node.
string accelerator_type = 5;- Specified by:
getAcceleratorTypein interfaceNodeOrBuilder- Returns:
- The acceleratorType.
-
getAcceleratorTypeBytes
public com.google.protobuf.ByteString getAcceleratorTypeBytes()
The type of hardware accelerators associated with this node.
string accelerator_type = 5;- Specified by:
getAcceleratorTypeBytesin interfaceNodeOrBuilder- Returns:
- The bytes for acceleratorType.
-
getStateValue
public int getStateValue()
Output only. The current state for the TPU Node.
.google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceNodeOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
public Node.State getState()
Output only. The current state for the TPU Node.
.google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceNodeOrBuilder- Returns:
- The state.
-
getHealthDescription
public String getHealthDescription()
Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy.
string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHealthDescriptionin interfaceNodeOrBuilder- Returns:
- The healthDescription.
-
getHealthDescriptionBytes
public com.google.protobuf.ByteString getHealthDescriptionBytes()
Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy.
string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHealthDescriptionBytesin interfaceNodeOrBuilder- Returns:
- The bytes for healthDescription.
-
getRuntimeVersion
public String getRuntimeVersion()
Required. The runtime version running in the Node.
string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRuntimeVersionin interfaceNodeOrBuilder- Returns:
- The runtimeVersion.
-
getRuntimeVersionBytes
public com.google.protobuf.ByteString getRuntimeVersionBytes()
Required. The runtime version running in the Node.
string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRuntimeVersionBytesin interfaceNodeOrBuilder- Returns:
- The bytes for runtimeVersion.
-
hasNetworkConfig
public boolean hasNetworkConfig()
Network configurations for the TPU node.
.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;- Specified by:
hasNetworkConfigin interfaceNodeOrBuilder- Returns:
- Whether the networkConfig field is set.
-
getNetworkConfig
public NetworkConfig getNetworkConfig()
Network configurations for the TPU node.
.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;- Specified by:
getNetworkConfigin interfaceNodeOrBuilder- Returns:
- The networkConfig.
-
getNetworkConfigOrBuilder
public NetworkConfigOrBuilder getNetworkConfigOrBuilder()
Network configurations for the TPU node.
.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;- Specified by:
getNetworkConfigOrBuilderin interfaceNodeOrBuilder
-
getCidrBlock
public String getCidrBlock()
The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block.
string cidr_block = 13;- Specified by:
getCidrBlockin interfaceNodeOrBuilder- Returns:
- The cidrBlock.
-
getCidrBlockBytes
public com.google.protobuf.ByteString getCidrBlockBytes()
The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block.
string cidr_block = 13;- Specified by:
getCidrBlockBytesin interfaceNodeOrBuilder- Returns:
- The bytes for cidrBlock.
-
hasServiceAccount
public boolean hasServiceAccount()
The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is specified, the default compute service account will be used.
.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;- Specified by:
hasServiceAccountin interfaceNodeOrBuilder- Returns:
- Whether the serviceAccount field is set.
-
getServiceAccount
public ServiceAccount getServiceAccount()
The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is specified, the default compute service account will be used.
.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;- Specified by:
getServiceAccountin interfaceNodeOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountOrBuilder
public ServiceAccountOrBuilder getServiceAccountOrBuilder()
The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is specified, the default compute service account will be used.
.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;- Specified by:
getServiceAccountOrBuilderin interfaceNodeOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time when the node was created.
.google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceNodeOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time when the node was created.
.google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceNodeOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the node was created.
.google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceNodeOrBuilder
-
hasSchedulingConfig
public boolean hasSchedulingConfig()
The scheduling options for this node.
.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;- Specified by:
hasSchedulingConfigin interfaceNodeOrBuilder- Returns:
- Whether the schedulingConfig field is set.
-
getSchedulingConfig
public SchedulingConfig getSchedulingConfig()
The scheduling options for this node.
.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;- Specified by:
getSchedulingConfigin interfaceNodeOrBuilder- Returns:
- The schedulingConfig.
-
getSchedulingConfigOrBuilder
public SchedulingConfigOrBuilder getSchedulingConfigOrBuilder()
The scheduling options for this node.
.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;- Specified by:
getSchedulingConfigOrBuilderin interfaceNodeOrBuilder
-
getNetworkEndpointsList
public List<NetworkEndpoint> getNetworkEndpointsList()
Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.
repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNetworkEndpointsListin interfaceNodeOrBuilder
-
getNetworkEndpointsOrBuilderList
public List<? extends NetworkEndpointOrBuilder> getNetworkEndpointsOrBuilderList()
Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.
repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNetworkEndpointsOrBuilderListin interfaceNodeOrBuilder
-
getNetworkEndpointsCount
public int getNetworkEndpointsCount()
Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.
repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNetworkEndpointsCountin interfaceNodeOrBuilder
-
getNetworkEndpoints
public NetworkEndpoint getNetworkEndpoints(int index)
Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.
repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNetworkEndpointsin interfaceNodeOrBuilder
-
getNetworkEndpointsOrBuilder
public NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder(int index)
Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.
repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNetworkEndpointsOrBuilderin interfaceNodeOrBuilder
-
getHealthValue
public int getHealthValue()
The health status of the TPU node.
.google.cloud.tpu.v2alpha1.Node.Health health = 22;- Specified by:
getHealthValuein interfaceNodeOrBuilder- Returns:
- The enum numeric value on the wire for health.
-
getHealth
public Node.Health getHealth()
The health status of the TPU node.
.google.cloud.tpu.v2alpha1.Node.Health health = 22;- Specified by:
getHealthin interfaceNodeOrBuilder- Returns:
- The health.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:NodeOrBuilderResource labels to represent user-provided metadata.
map<string, string> labels = 24;- Specified by:
getLabelsCountin interfaceNodeOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;- Specified by:
containsLabelsin interfaceNodeOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceNodeOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;- Specified by:
getLabelsMapin interfaceNodeOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;- Specified by:
getLabelsOrDefaultin interfaceNodeOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;- Specified by:
getLabelsOrThrowin interfaceNodeOrBuilder
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:NodeOrBuilderCustom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
map<string, string> metadata = 34;- Specified by:
getMetadataCountin interfaceNodeOrBuilder
-
containsMetadata
public boolean containsMetadata(String key)
Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
map<string, string> metadata = 34;- Specified by:
containsMetadatain interfaceNodeOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceNodeOrBuilder
-
getMetadataMap
public Map<String,String> getMetadataMap()
Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
map<string, string> metadata = 34;- Specified by:
getMetadataMapin interfaceNodeOrBuilder
-
getMetadataOrDefault
public String getMetadataOrDefault(String key, String defaultValue)
Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
map<string, string> metadata = 34;- Specified by:
getMetadataOrDefaultin interfaceNodeOrBuilder
-
getMetadataOrThrow
public String getMetadataOrThrow(String key)
Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
map<string, string> metadata = 34;- Specified by:
getMetadataOrThrowin interfaceNodeOrBuilder
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()
Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
repeated string tags = 40;- Specified by:
getTagsListin interfaceNodeOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()
Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
repeated string tags = 40;- Specified by:
getTagsCountin interfaceNodeOrBuilder- Returns:
- The count of tags.
-
getTags
public String getTags(int index)
Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
repeated string tags = 40;- Specified by:
getTagsin interfaceNodeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index)
Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
repeated string tags = 40;- Specified by:
getTagsBytesin interfaceNodeOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
getId
public long getId()
Output only. The unique identifier for the TPU Node.
int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceNodeOrBuilder- Returns:
- The id.
-
getDataDisksList
public List<AttachedDisk> getDataDisksList()
The additional data disks for the Node.
repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;- Specified by:
getDataDisksListin interfaceNodeOrBuilder
-
getDataDisksOrBuilderList
public List<? extends AttachedDiskOrBuilder> getDataDisksOrBuilderList()
The additional data disks for the Node.
repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;- Specified by:
getDataDisksOrBuilderListin interfaceNodeOrBuilder
-
getDataDisksCount
public int getDataDisksCount()
The additional data disks for the Node.
repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;- Specified by:
getDataDisksCountin interfaceNodeOrBuilder
-
getDataDisks
public AttachedDisk getDataDisks(int index)
The additional data disks for the Node.
repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;- Specified by:
getDataDisksin interfaceNodeOrBuilder
-
getDataDisksOrBuilder
public AttachedDiskOrBuilder getDataDisksOrBuilder(int index)
The additional data disks for the Node.
repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;- Specified by:
getDataDisksOrBuilderin interfaceNodeOrBuilder
-
getApiVersionValue
public int getApiVersionValue()
Output only. The API version that created this Node.
.google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getApiVersionValuein interfaceNodeOrBuilder- Returns:
- The enum numeric value on the wire for apiVersion.
-
getApiVersion
public Node.ApiVersion getApiVersion()
Output only. The API version that created this Node.
.google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getApiVersionin interfaceNodeOrBuilder- Returns:
- The apiVersion.
-
getSymptomsList
public List<Symptom> getSymptomsList()
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSymptomsListin interfaceNodeOrBuilder
-
getSymptomsOrBuilderList
public List<? extends SymptomOrBuilder> getSymptomsOrBuilderList()
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSymptomsOrBuilderListin interfaceNodeOrBuilder
-
getSymptomsCount
public int getSymptomsCount()
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSymptomsCountin interfaceNodeOrBuilder
-
getSymptoms
public Symptom getSymptoms(int index)
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSymptomsin interfaceNodeOrBuilder
-
getSymptomsOrBuilder
public SymptomOrBuilder getSymptomsOrBuilder(int index)
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSymptomsOrBuilderin interfaceNodeOrBuilder
-
getQueuedResource
public String getQueuedResource()
Output only. The qualified name of the QueuedResource that requested this Node.
string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQueuedResourcein interfaceNodeOrBuilder- Returns:
- The queuedResource.
-
getQueuedResourceBytes
public com.google.protobuf.ByteString getQueuedResourceBytes()
Output only. The qualified name of the QueuedResource that requested this Node.
string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQueuedResourceBytesin interfaceNodeOrBuilder- Returns:
- The bytes for queuedResource.
-
hasAcceleratorConfig
public boolean hasAcceleratorConfig()
The AccleratorConfig for the TPU Node.
.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;- Specified by:
hasAcceleratorConfigin interfaceNodeOrBuilder- Returns:
- Whether the acceleratorConfig field is set.
-
getAcceleratorConfig
public AcceleratorConfig getAcceleratorConfig()
The AccleratorConfig for the TPU Node.
.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;- Specified by:
getAcceleratorConfigin interfaceNodeOrBuilder- Returns:
- The acceleratorConfig.
-
getAcceleratorConfigOrBuilder
public AcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder()
The AccleratorConfig for the TPU Node.
.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;- Specified by:
getAcceleratorConfigOrBuilderin interfaceNodeOrBuilder
-
hasShieldedInstanceConfig
public boolean hasShieldedInstanceConfig()
Shielded Instance options.
.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;- Specified by:
hasShieldedInstanceConfigin interfaceNodeOrBuilder- Returns:
- Whether the shieldedInstanceConfig field is set.
-
getShieldedInstanceConfig
public ShieldedInstanceConfig getShieldedInstanceConfig()
Shielded Instance options.
.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;- Specified by:
getShieldedInstanceConfigin interfaceNodeOrBuilder- Returns:
- The shieldedInstanceConfig.
-
getShieldedInstanceConfigOrBuilder
public ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()
Shielded Instance options.
.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;- Specified by:
getShieldedInstanceConfigOrBuilderin interfaceNodeOrBuilder
-
getMultisliceNode
public boolean getMultisliceNode()
Output only. Whether the Node belongs to a Multislice group.
bool multislice_node = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMultisliceNodein interfaceNodeOrBuilder- Returns:
- The multisliceNode.
-
hasBootDiskConfig
public boolean hasBootDiskConfig()
Optional. Boot disk configuration.
.google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasBootDiskConfigin interfaceNodeOrBuilder- Returns:
- Whether the bootDiskConfig field is set.
-
getBootDiskConfig
public BootDiskConfig getBootDiskConfig()
Optional. Boot disk configuration.
.google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBootDiskConfigin interfaceNodeOrBuilder- Returns:
- The bootDiskConfig.
-
getBootDiskConfigOrBuilder
public BootDiskConfigOrBuilder getBootDiskConfigOrBuilder()
Optional. Boot disk configuration.
.google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBootDiskConfigOrBuilderin interfaceNodeOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Node parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Node parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Node parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Node parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Node parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Node parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Node.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Node.Builder newBuilder()
-
newBuilder
public static Node.Builder newBuilder(Node prototype)
-
toBuilder
public Node.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Node.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Node getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Node> parser()
-
getParserForType
public com.google.protobuf.Parser<Node> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Node getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-