Package com.google.cloud.tpu.v2
Class Node
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.tpu.v2.Node
- All Implemented Interfaces:
NodeOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Node
extends com.google.protobuf.GeneratedMessage
implements NodeOrBuilder
A TPU instance.Protobuf type
google.cloud.tpu.v2.Node- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTPU API Version.static final classA TPU instance.static enumHealth defines the status of a TPU node as reported by Health Monitor.static enumRepresents the different states of a TPU node during its lifecycle.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Resource labels to represent user-provided metadata.booleancontainsMetadata(String key) Custom metadata to apply to the TPU Node.booleanThe AccleratorConfig for the TPU Node.The AccleratorConfig for the TPU Node.Optional.com.google.protobuf.ByteStringOptional.Output only.intOutput only.The CIDR block that the TPU node will use when selecting an IP address.com.google.protobuf.ByteStringThe CIDR block that the TPU node will use when selecting an IP address.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getDataDisks(int index) The additional data disks for the Node.intThe additional data disks for the Node.The additional data disks for the Node.getDataDisksOrBuilder(int index) The additional data disks for the Node.List<? extends AttachedDiskOrBuilder>The additional data disks for the Node.static NodeThe user-supplied description of the TPU.com.google.protobuf.ByteStringThe user-supplied description of the TPU.static final com.google.protobuf.Descriptors.DescriptorThe health status of the TPU node.Output only.com.google.protobuf.ByteStringOutput only.intThe health status of the TPU node.longgetId()Output only.Deprecated.intResource labels to represent user-provided metadata.Resource labels to represent user-provided metadata.getLabelsOrDefault(String key, String defaultValue) Resource labels to represent user-provided metadata.getLabelsOrThrow(String key) Resource labels to represent user-provided metadata.Deprecated.intCustom metadata to apply to the TPU Node.Custom metadata to apply to the TPU Node.getMetadataOrDefault(String key, String defaultValue) Custom metadata to apply to the TPU Node.getMetadataOrThrow(String key) Custom metadata to apply to the TPU Node.booleanOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.Network configurations for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them.Network configurations for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them.getNetworkConfigs(int index) Optional.intOptional.Optional.getNetworkConfigsOrBuilder(int index) Optional.List<? extends NetworkConfigOrBuilder>Optional.getNetworkEndpoints(int index) Output only.intOutput only.Output only.getNetworkEndpointsOrBuilder(int index) Output only.List<? extends NetworkEndpointOrBuilder>Output only.com.google.protobuf.Parser<Node>Output only.com.google.protobuf.ByteStringOutput only.Required.com.google.protobuf.ByteStringRequired.The scheduling options for this node.The scheduling options for this node.intThe Google Cloud Platform Service Account to be used by the TPU node VMs.The Google Cloud Platform Service Account to be used by the TPU node VMs.Shielded Instance options.Shielded Instance options.getState()Output only.intOutput only.getSymptoms(int index) Output only.intOutput only.Output only.getSymptomsOrBuilder(int index) Output only.List<? extends SymptomOrBuilder>Output only.getTags(int index) Tags to apply to the TPU Node.com.google.protobuf.ByteStringgetTagsBytes(int index) Tags to apply to the TPU Node.intTags to apply to the TPU Node.com.google.protobuf.ProtocolStringListTags to apply to the TPU Node.booleanThe AccleratorConfig for the TPU Node.booleanOutput only.inthashCode()booleanNetwork configurations for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them.booleanThe scheduling options for this node.booleanThe Google Cloud Platform Service Account to be used by the TPU node VMs.booleanShielded Instance options.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic Node.Builderstatic Node.BuildernewBuilder(Node prototype) protected Node.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
ACCELERATOR_TYPE_FIELD_NUMBER
public static final int ACCELERATOR_TYPE_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
HEALTH_DESCRIPTION_FIELD_NUMBER
public static final int HEALTH_DESCRIPTION_FIELD_NUMBER- See Also:
-
RUNTIME_VERSION_FIELD_NUMBER
public static final int RUNTIME_VERSION_FIELD_NUMBER- See Also:
-
NETWORK_CONFIG_FIELD_NUMBER
public static final int NETWORK_CONFIG_FIELD_NUMBER- See Also:
-
NETWORK_CONFIGS_FIELD_NUMBER
public static final int NETWORK_CONFIGS_FIELD_NUMBER- See Also:
-
CIDR_BLOCK_FIELD_NUMBER
public static final int CIDR_BLOCK_FIELD_NUMBER- See Also:
-
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
SCHEDULING_CONFIG_FIELD_NUMBER
public static final int SCHEDULING_CONFIG_FIELD_NUMBER- See Also:
-
NETWORK_ENDPOINTS_FIELD_NUMBER
public static final int NETWORK_ENDPOINTS_FIELD_NUMBER- See Also:
-
HEALTH_FIELD_NUMBER
public static final int HEALTH_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
DATA_DISKS_FIELD_NUMBER
public static final int DATA_DISKS_FIELD_NUMBER- See Also:
-
API_VERSION_FIELD_NUMBER
public static final int API_VERSION_FIELD_NUMBER- See Also:
-
SYMPTOMS_FIELD_NUMBER
public static final int SYMPTOMS_FIELD_NUMBER- See Also:
-
SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER- See Also:
-
ACCELERATOR_CONFIG_FIELD_NUMBER
public static final int ACCELERATOR_CONFIG_FIELD_NUMBER- See Also:
-
QUEUED_RESOURCE_FIELD_NUMBER
public static final int QUEUED_RESOURCE_FIELD_NUMBER- See Also:
-
MULTISLICE_NODE_FIELD_NUMBER
public static final int MULTISLICE_NODE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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
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
Optional. The type of hardware accelerators associated with this node.
string accelerator_type = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAcceleratorTypein interfaceNodeOrBuilder- Returns:
- The acceleratorType.
-
getAcceleratorTypeBytes
public com.google.protobuf.ByteString getAcceleratorTypeBytes()Optional. The type of hardware accelerators associated with this node.
string accelerator_type = 5 [(.google.api.field_behavior) = OPTIONAL];- 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.v2.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
Output only. The current state for the TPU Node.
.google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceNodeOrBuilder- Returns:
- The state.
-
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
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. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
.google.cloud.tpu.v2.NetworkConfig network_config = 36;- Specified by:
hasNetworkConfigin interfaceNodeOrBuilder- Returns:
- Whether the networkConfig field is set.
-
getNetworkConfig
Network configurations for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
.google.cloud.tpu.v2.NetworkConfig network_config = 36;- Specified by:
getNetworkConfigin interfaceNodeOrBuilder- Returns:
- The networkConfig.
-
getNetworkConfigOrBuilder
Network configurations for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
.google.cloud.tpu.v2.NetworkConfig network_config = 36;- Specified by:
getNetworkConfigOrBuilderin interfaceNodeOrBuilder
-
getNetworkConfigsList
Optional. Repeated network configurations for the TPU node. This field is used to specify multiple networks configs for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNetworkConfigsListin interfaceNodeOrBuilder
-
getNetworkConfigsOrBuilderList
Optional. Repeated network configurations for the TPU node. This field is used to specify multiple networks configs for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNetworkConfigsOrBuilderListin interfaceNodeOrBuilder
-
getNetworkConfigsCount
public int getNetworkConfigsCount()Optional. Repeated network configurations for the TPU node. This field is used to specify multiple networks configs for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNetworkConfigsCountin interfaceNodeOrBuilder
-
getNetworkConfigs
Optional. Repeated network configurations for the TPU node. This field is used to specify multiple networks configs for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNetworkConfigsin interfaceNodeOrBuilder
-
getNetworkConfigsOrBuilder
Optional. Repeated network configurations for the TPU node. This field is used to specify multiple networks configs for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNetworkConfigsOrBuilderin interfaceNodeOrBuilder
-
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.v2.ServiceAccount service_account = 37;- Specified by:
hasServiceAccountin interfaceNodeOrBuilder- Returns:
- Whether the serviceAccount field is set.
-
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.v2.ServiceAccount service_account = 37;- Specified by:
getServiceAccountin interfaceNodeOrBuilder- Returns:
- The serviceAccount.
-
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.v2.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.v2.SchedulingConfig scheduling_config = 17;- Specified by:
hasSchedulingConfigin interfaceNodeOrBuilder- Returns:
- Whether the schedulingConfig field is set.
-
getSchedulingConfig
The scheduling options for this node.
.google.cloud.tpu.v2.SchedulingConfig scheduling_config = 17;- Specified by:
getSchedulingConfigin interfaceNodeOrBuilder- Returns:
- The schedulingConfig.
-
getSchedulingConfigOrBuilder
The scheduling options for this node.
.google.cloud.tpu.v2.SchedulingConfig scheduling_config = 17;- Specified by:
getSchedulingConfigOrBuilderin interfaceNodeOrBuilder
-
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.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNetworkEndpointsListin interfaceNodeOrBuilder
-
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.v2.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.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNetworkEndpointsCountin interfaceNodeOrBuilder
-
getNetworkEndpoints
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.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNetworkEndpointsin interfaceNodeOrBuilder
-
getNetworkEndpointsOrBuilder
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.v2.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.v2.Node.Health health = 22;- Specified by:
getHealthValuein interfaceNodeOrBuilder- Returns:
- The enum numeric value on the wire for health.
-
getHealth
The health status of the TPU node.
.google.cloud.tpu.v2.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
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;- Specified by:
containsLabelsin interfaceNodeOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceNodeOrBuilder
-
getLabelsMap
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;- Specified by:
getLabelsMapin interfaceNodeOrBuilder
-
getLabelsOrDefault
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;- Specified by:
getLabelsOrDefaultin interfaceNodeOrBuilder
-
getLabelsOrThrow
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
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.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceNodeOrBuilder
-
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
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
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
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
The additional data disks for the Node.
repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41;- Specified by:
getDataDisksListin interfaceNodeOrBuilder
-
getDataDisksOrBuilderList
The additional data disks for the Node.
repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41;- Specified by:
getDataDisksOrBuilderListin interfaceNodeOrBuilder
-
getDataDisksCount
public int getDataDisksCount()The additional data disks for the Node.
repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41;- Specified by:
getDataDisksCountin interfaceNodeOrBuilder
-
getDataDisks
The additional data disks for the Node.
repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41;- Specified by:
getDataDisksin interfaceNodeOrBuilder
-
getDataDisksOrBuilder
The additional data disks for the Node.
repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41;- Specified by:
getDataDisksOrBuilderin interfaceNodeOrBuilder
-
getApiVersionValue
public int getApiVersionValue()Output only. The API version that created this Node.
.google.cloud.tpu.v2.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
Output only. The API version that created this Node.
.google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getApiVersionin interfaceNodeOrBuilder- Returns:
- The apiVersion.
-
getSymptomsList
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSymptomsListin interfaceNodeOrBuilder
-
getSymptomsOrBuilderList
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2.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.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSymptomsCountin interfaceNodeOrBuilder
-
getSymptoms
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSymptomsin interfaceNodeOrBuilder
-
getSymptomsOrBuilder
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSymptomsOrBuilderin interfaceNodeOrBuilder
-
hasShieldedInstanceConfig
public boolean hasShieldedInstanceConfig()Shielded Instance options.
.google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45;- Specified by:
hasShieldedInstanceConfigin interfaceNodeOrBuilder- Returns:
- Whether the shieldedInstanceConfig field is set.
-
getShieldedInstanceConfig
Shielded Instance options.
.google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45;- Specified by:
getShieldedInstanceConfigin interfaceNodeOrBuilder- Returns:
- The shieldedInstanceConfig.
-
getShieldedInstanceConfigOrBuilder
Shielded Instance options.
.google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45;- Specified by:
getShieldedInstanceConfigOrBuilderin interfaceNodeOrBuilder
-
hasAcceleratorConfig
public boolean hasAcceleratorConfig()The AccleratorConfig for the TPU Node.
.google.cloud.tpu.v2.AcceleratorConfig accelerator_config = 46;- Specified by:
hasAcceleratorConfigin interfaceNodeOrBuilder- Returns:
- Whether the acceleratorConfig field is set.
-
getAcceleratorConfig
The AccleratorConfig for the TPU Node.
.google.cloud.tpu.v2.AcceleratorConfig accelerator_config = 46;- Specified by:
getAcceleratorConfigin interfaceNodeOrBuilder- Returns:
- The acceleratorConfig.
-
getAcceleratorConfigOrBuilder
The AccleratorConfig for the TPU Node.
.google.cloud.tpu.v2.AcceleratorConfig accelerator_config = 46;- Specified by:
getAcceleratorConfigOrBuilderin interfaceNodeOrBuilder
-
getQueuedResource
Output only. The qualified name of the QueuedResource that requested this Node.
string queued_resource = 47 [(.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 = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQueuedResourceBytesin interfaceNodeOrBuilder- Returns:
- The bytes for queuedResource.
-
getMultisliceNode
public boolean getMultisliceNode()Output only. Whether the Node belongs to a Multislice group.
bool multislice_node = 48 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMultisliceNodein interfaceNodeOrBuilder- Returns:
- The multisliceNode.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- 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
- Throws:
IOException
-
parseFrom
public static Node parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Node parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Node parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-