Package com.google.cloud.tpu.v1
Class Node
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.tpu.v1.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.v1.Node
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Node.ApiVersion
TPU API Version.static class
Node.Builder
A TPU instance.static class
Node.Health
Health defines the status of a TPU node as reported by Health Monitor.static class
Node.State
Represents 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 int
ACCELERATOR_TYPE_FIELD_NUMBER
static int
API_VERSION_FIELD_NUMBER
static int
CIDR_BLOCK_FIELD_NUMBER
static int
CREATE_TIME_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
HEALTH_DESCRIPTION_FIELD_NUMBER
static int
HEALTH_FIELD_NUMBER
static int
IP_ADDRESS_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
NETWORK_ENDPOINTS_FIELD_NUMBER
static int
NETWORK_FIELD_NUMBER
static int
PORT_FIELD_NUMBER
static int
SCHEDULING_CONFIG_FIELD_NUMBER
static int
SERVICE_ACCOUNT_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
static int
SYMPTOMS_FIELD_NUMBER
static int
TENSORFLOW_VERSION_FIELD_NUMBER
static int
USE_SERVICE_NETWORKING_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Resource labels to represent user-provided metadata.boolean
equals(Object obj)
String
getAcceleratorType()
Required.com.google.protobuf.ByteString
getAcceleratorTypeBytes()
Required.Node.ApiVersion
getApiVersion()
Output only.int
getApiVersionValue()
Output only.String
getCidrBlock()
The CIDR block that the TPU node will use when selecting an IP address.com.google.protobuf.ByteString
getCidrBlockBytes()
The CIDR block that the TPU node will use when selecting an IP address.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.static Node
getDefaultInstance()
Node
getDefaultInstanceForType()
String
getDescription()
The user-supplied description of the TPU.com.google.protobuf.ByteString
getDescriptionBytes()
The user-supplied description of the TPU.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Node.Health
getHealth()
The health status of the TPU node.String
getHealthDescription()
Output only.com.google.protobuf.ByteString
getHealthDescriptionBytes()
Output only.int
getHealthValue()
The health status of the TPU node.String
getIpAddress()
Deprecated.google.cloud.tpu.v1.Node.ip_address is deprecated.com.google.protobuf.ByteString
getIpAddressBytes()
Deprecated.google.cloud.tpu.v1.Node.ip_address is deprecated.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Resource labels to represent user-provided metadata.Map<String,String>
getLabelsMap()
Resource labels to represent user-provided metadata.String
getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user-provided metadata.String
getLabelsOrThrow(String key)
Resource labels to represent user-provided metadata.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.String
getNetwork()
The name of a network they wish to peer the TPU node to.com.google.protobuf.ByteString
getNetworkBytes()
The name of a network they wish to peer the TPU node to.NetworkEndpoint
getNetworkEndpoints(int index)
Output only.int
getNetworkEndpointsCount()
Output only.List<NetworkEndpoint>
getNetworkEndpointsList()
Output only.NetworkEndpointOrBuilder
getNetworkEndpointsOrBuilder(int index)
Output only.List<? extends NetworkEndpointOrBuilder>
getNetworkEndpointsOrBuilderList()
Output only.com.google.protobuf.Parser<Node>
getParserForType()
String
getPort()
Deprecated.google.cloud.tpu.v1.Node.port is deprecated.com.google.protobuf.ByteString
getPortBytes()
Deprecated.google.cloud.tpu.v1.Node.port is deprecated.SchedulingConfig
getSchedulingConfig()
The scheduling options for this node.SchedulingConfigOrBuilder
getSchedulingConfigOrBuilder()
The scheduling options for this node.int
getSerializedSize()
String
getServiceAccount()
Output only.com.google.protobuf.ByteString
getServiceAccountBytes()
Output only.Node.State
getState()
Output only.int
getStateValue()
Output only.Symptom
getSymptoms(int index)
Output only.int
getSymptomsCount()
Output only.List<Symptom>
getSymptomsList()
Output only.SymptomOrBuilder
getSymptomsOrBuilder(int index)
Output only.List<? extends SymptomOrBuilder>
getSymptomsOrBuilderList()
Output only.String
getTensorflowVersion()
Required.com.google.protobuf.ByteString
getTensorflowVersionBytes()
Required.boolean
getUseServiceNetworking()
Whether the VPC peering for the node is set up through Service Networking API.boolean
hasCreateTime()
Output only.int
hashCode()
boolean
hasSchedulingConfig()
The scheduling options for this node.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static Node.Builder
newBuilder()
static Node.Builder
newBuilder(Node prototype)
Node.Builder
newBuilderForType()
protected Node.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Node
parseDelimitedFrom(InputStream input)
static Node
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Node
parseFrom(byte[] data)
static Node
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Node
parseFrom(com.google.protobuf.ByteString data)
static Node
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Node
parseFrom(com.google.protobuf.CodedInputStream input)
static Node
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Node
parseFrom(InputStream input)
static Node
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Node
parseFrom(ByteBuffer data)
static Node
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Node>
parser()
Node.Builder
toBuilder()
void
writeTo(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
-
IP_ADDRESS_FIELD_NUMBER
public static final int IP_ADDRESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PORT_FIELD_NUMBER
public static final int PORT_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
-
TENSORFLOW_VERSION_FIELD_NUMBER
public static final int TENSORFLOW_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_FIELD_NUMBER
public static final int NETWORK_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
-
USE_SERVICE_NETWORKING_FIELD_NUMBER
public static final int USE_SERVICE_NETWORKING_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
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Output only. Immutable. The name of the TPU
string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in 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) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in 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:
getDescription
in 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:
getDescriptionBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for description.
-
getAcceleratorType
public String getAcceleratorType()
Required. The type of hardware accelerators associated with this node.
string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getAcceleratorType
in interfaceNodeOrBuilder
- Returns:
- The acceleratorType.
-
getAcceleratorTypeBytes
public com.google.protobuf.ByteString getAcceleratorTypeBytes()
Required. The type of hardware accelerators associated with this node.
string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getAcceleratorTypeBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for acceleratorType.
-
getIpAddress
@Deprecated public String getIpAddress()
Deprecated.google.cloud.tpu.v1.Node.ip_address is deprecated. See google/cloud/tpu/v1/cloud_tpu.proto;l=279Output only. DEPRECATED! Use network_endpoints instead. The network address for the TPU Node as visible to Compute Engine instances.
string ip_address = 8 [deprecated = true];
- Specified by:
getIpAddress
in interfaceNodeOrBuilder
- Returns:
- The ipAddress.
-
getIpAddressBytes
@Deprecated public com.google.protobuf.ByteString getIpAddressBytes()
Deprecated.google.cloud.tpu.v1.Node.ip_address is deprecated. See google/cloud/tpu/v1/cloud_tpu.proto;l=279Output only. DEPRECATED! Use network_endpoints instead. The network address for the TPU Node as visible to Compute Engine instances.
string ip_address = 8 [deprecated = true];
- Specified by:
getIpAddressBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for ipAddress.
-
getPort
@Deprecated public String getPort()
Deprecated.google.cloud.tpu.v1.Node.port is deprecated. See google/cloud/tpu/v1/cloud_tpu.proto;l=283Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances.
string port = 14 [deprecated = true];
- Specified by:
getPort
in interfaceNodeOrBuilder
- Returns:
- The port.
-
getPortBytes
@Deprecated public com.google.protobuf.ByteString getPortBytes()
Deprecated.google.cloud.tpu.v1.Node.port is deprecated. See google/cloud/tpu/v1/cloud_tpu.proto;l=283Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances.
string port = 14 [deprecated = true];
- Specified by:
getPortBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for port.
-
getStateValue
public int getStateValue()
Output only. The current state for the TPU Node.
.google.cloud.tpu.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateValue
in 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.v1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getState
in 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:
getHealthDescription
in 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:
getHealthDescriptionBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for healthDescription.
-
getTensorflowVersion
public String getTensorflowVersion()
Required. The version of Tensorflow running in the Node.
string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getTensorflowVersion
in interfaceNodeOrBuilder
- Returns:
- The tensorflowVersion.
-
getTensorflowVersionBytes
public com.google.protobuf.ByteString getTensorflowVersionBytes()
Required. The version of Tensorflow running in the Node.
string tensorflow_version = 11 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getTensorflowVersionBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for tensorflowVersion.
-
getNetwork
public String getNetwork()
The name of a network they wish to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, "default" will be used.
string network = 12;
- Specified by:
getNetwork
in interfaceNodeOrBuilder
- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
The name of a network they wish to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, "default" will be used.
string network = 12;
- Specified by:
getNetworkBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for network.
-
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:
getCidrBlock
in 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:
getCidrBlockBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for cidrBlock.
-
getServiceAccount
public String getServiceAccount()
Output only. The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getServiceAccount
in interfaceNodeOrBuilder
- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()
Output only. The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
string service_account = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getServiceAccountBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for serviceAccount.
-
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:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in interfaceNodeOrBuilder
-
hasSchedulingConfig
public boolean hasSchedulingConfig()
The scheduling options for this node.
.google.cloud.tpu.v1.SchedulingConfig scheduling_config = 17;
- Specified by:
hasSchedulingConfig
in interfaceNodeOrBuilder
- Returns:
- Whether the schedulingConfig field is set.
-
getSchedulingConfig
public SchedulingConfig getSchedulingConfig()
The scheduling options for this node.
.google.cloud.tpu.v1.SchedulingConfig scheduling_config = 17;
- Specified by:
getSchedulingConfig
in interfaceNodeOrBuilder
- Returns:
- The schedulingConfig.
-
getSchedulingConfigOrBuilder
public SchedulingConfigOrBuilder getSchedulingConfigOrBuilder()
The scheduling options for this node.
.google.cloud.tpu.v1.SchedulingConfig scheduling_config = 17;
- Specified by:
getSchedulingConfigOrBuilder
in interfaceNodeOrBuilder
-
getNetworkEndpointsList
public List<NetworkEndpoint> getNetworkEndpointsList()
Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node reach out to the 0th entry in this map first.
repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNetworkEndpointsList
in 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 Tensorflow clients of the node reach out to the 0th entry in this map first.
repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNetworkEndpointsOrBuilderList
in interfaceNodeOrBuilder
-
getNetworkEndpointsCount
public int getNetworkEndpointsCount()
Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node reach out to the 0th entry in this map first.
repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNetworkEndpointsCount
in 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 Tensorflow clients of the node reach out to the 0th entry in this map first.
repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNetworkEndpoints
in 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 Tensorflow clients of the node reach out to the 0th entry in this map first.
repeated .google.cloud.tpu.v1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNetworkEndpointsOrBuilder
in interfaceNodeOrBuilder
-
getHealthValue
public int getHealthValue()
The health status of the TPU node.
.google.cloud.tpu.v1.Node.Health health = 22;
- Specified by:
getHealthValue
in 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.v1.Node.Health health = 22;
- Specified by:
getHealth
in interfaceNodeOrBuilder
- Returns:
- The health.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:NodeOrBuilder
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;
- Specified by:
getLabelsCount
in interfaceNodeOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;
- Specified by:
containsLabels
in interfaceNodeOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceNodeOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;
- Specified by:
getLabelsMap
in interfaceNodeOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;
- Specified by:
getLabelsOrDefault
in interfaceNodeOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;
- Specified by:
getLabelsOrThrow
in interfaceNodeOrBuilder
-
getUseServiceNetworking
public boolean getUseServiceNetworking()
Whether the VPC peering for the node is set up through Service Networking API. The VPC Peering should be set up before provisioning the node. If this field is set, cidr_block field should not be specified. If the network, that you want to peer the TPU Node to, is Shared VPC networks, the node must be created with this this field enabled.
bool use_service_networking = 27;
- Specified by:
getUseServiceNetworking
in interfaceNodeOrBuilder
- Returns:
- The useServiceNetworking.
-
getApiVersionValue
public int getApiVersionValue()
Output only. The API version that created this Node.
.google.cloud.tpu.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getApiVersionValue
in 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.v1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getApiVersion
in interfaceNodeOrBuilder
- Returns:
- The apiVersion.
-
getSymptomsList
public List<Symptom> getSymptomsList()
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSymptomsList
in interfaceNodeOrBuilder
-
getSymptomsOrBuilderList
public List<? extends SymptomOrBuilder> getSymptomsOrBuilderList()
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSymptomsOrBuilderList
in interfaceNodeOrBuilder
-
getSymptomsCount
public int getSymptomsCount()
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSymptomsCount
in interfaceNodeOrBuilder
-
getSymptoms
public Symptom getSymptoms(int index)
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSymptoms
in interfaceNodeOrBuilder
-
getSymptomsOrBuilder
public SymptomOrBuilder getSymptomsOrBuilder(int index)
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSymptomsOrBuilder
in interfaceNodeOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Node.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Node getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-