Class QueuedResource.Tpu.NodeSpec

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec
All Implemented Interfaces:
QueuedResource.Tpu.NodeSpecOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
QueuedResource.Tpu

public static final class QueuedResource.Tpu.NodeSpec extends com.google.protobuf.GeneratedMessage implements QueuedResource.Tpu.NodeSpecOrBuilder
 Details of the TPU node(s) being requested. Users can request either a
 single node or multiple nodes.
 NodeSpec provides the specification for node(s) to be created.
 
Protobuf type google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getNameStrategyCase

      public QueuedResource.Tpu.NodeSpec.NameStrategyCase getNameStrategyCase()
      Specified by:
      getNameStrategyCase in interface QueuedResource.Tpu.NodeSpecOrBuilder
    • getParent

      public String getParent()
       Required. The parent resource name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface QueuedResource.Tpu.NodeSpecOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface QueuedResource.Tpu.NodeSpecOrBuilder
      Returns:
      The bytes for parent.
    • hasNodeId

      public boolean hasNodeId()
       Optional. The unqualified resource name. Should follow the
       `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
       requesting a single node. In case of multislice requests,
       multislice_params must be populated instead.
       
      string node_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasNodeId in interface QueuedResource.Tpu.NodeSpecOrBuilder
      Returns:
      Whether the nodeId field is set.
    • getNodeId

      public String getNodeId()
       Optional. The unqualified resource name. Should follow the
       `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
       requesting a single node. In case of multislice requests,
       multislice_params must be populated instead.
       
      string node_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNodeId in interface QueuedResource.Tpu.NodeSpecOrBuilder
      Returns:
      The nodeId.
    • getNodeIdBytes

      public com.google.protobuf.ByteString getNodeIdBytes()
       Optional. The unqualified resource name. Should follow the
       `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
       requesting a single node. In case of multislice requests,
       multislice_params must be populated instead.
       
      string node_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNodeIdBytes in interface QueuedResource.Tpu.NodeSpecOrBuilder
      Returns:
      The bytes for nodeId.
    • hasMultisliceParams

      public boolean hasMultisliceParams()
       Optional. Fields to specify in case of multislice request.
       
      .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMultisliceParams in interface QueuedResource.Tpu.NodeSpecOrBuilder
      Returns:
      Whether the multisliceParams field is set.
    • getMultisliceParams

      public QueuedResource.Tpu.NodeSpec.MultisliceParams getMultisliceParams()
       Optional. Fields to specify in case of multislice request.
       
      .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMultisliceParams in interface QueuedResource.Tpu.NodeSpecOrBuilder
      Returns:
      The multisliceParams.
    • getMultisliceParamsOrBuilder

      public QueuedResource.Tpu.NodeSpec.MultisliceParamsOrBuilder getMultisliceParamsOrBuilder()
       Optional. Fields to specify in case of multislice request.
       
      .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMultisliceParamsOrBuilder in interface QueuedResource.Tpu.NodeSpecOrBuilder
    • hasNode

      public boolean hasNode()
       Required. The node.
       
      .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasNode in interface QueuedResource.Tpu.NodeSpecOrBuilder
      Returns:
      Whether the node field is set.
    • getNode

      public Node getNode()
       Required. The node.
       
      .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNode in interface QueuedResource.Tpu.NodeSpecOrBuilder
      Returns:
      The node.
    • getNodeOrBuilder

      public NodeOrBuilder getNodeOrBuilder()
       Required. The node.
       
      .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNodeOrBuilder in interface QueuedResource.Tpu.NodeSpecOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static QueuedResource.Tpu.NodeSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueuedResource.Tpu.NodeSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueuedResource.Tpu.NodeSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueuedResource.Tpu.NodeSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueuedResource.Tpu.NodeSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueuedResource.Tpu.NodeSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueuedResource.Tpu.NodeSpec parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QueuedResource.Tpu.NodeSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static QueuedResource.Tpu.NodeSpec parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static QueuedResource.Tpu.NodeSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QueuedResource.Tpu.NodeSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QueuedResource.Tpu.NodeSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public QueuedResource.Tpu.NodeSpec.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static QueuedResource.Tpu.NodeSpec.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected QueuedResource.Tpu.NodeSpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static QueuedResource.Tpu.NodeSpec getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<QueuedResource.Tpu.NodeSpec> parser()
    • getParserForType

      public com.google.protobuf.Parser<QueuedResource.Tpu.NodeSpec> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public QueuedResource.Tpu.NodeSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder