Class QueuedResource.Tpu.NodeSpec.MultisliceParams

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

public static final class QueuedResource.Tpu.NodeSpec.MultisliceParams extends com.google.protobuf.GeneratedMessage implements QueuedResource.Tpu.NodeSpec.MultisliceParamsOrBuilder
 Parameters to specify for multislice QueuedResource requests. This
 message must be populated in case of multislice requests instead of
 node_id.
 
Protobuf type google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams
See Also:
  • Field Details

    • NODE_COUNT_FIELD_NUMBER

      public static final int NODE_COUNT_FIELD_NUMBER
      See Also:
    • NODE_ID_PREFIX_FIELD_NUMBER

      public static final int NODE_ID_PREFIX_FIELD_NUMBER
      See Also:
  • 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
    • getNodeCount

      public int getNodeCount()
       Required. Number of nodes with this spec. The system will attempt
       to provision "node_count" nodes as part of the request.
       This needs to be > 1.
       
      int32 node_count = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNodeCount in interface QueuedResource.Tpu.NodeSpec.MultisliceParamsOrBuilder
      Returns:
      The nodeCount.
    • getNodeIdPrefix

      public String getNodeIdPrefix()
       Optional. Prefix of node_ids in case of multislice request.
       Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
       If node_count = 3 and node_id_prefix = "np", node ids of nodes
       created will be "np-0", "np-1", "np-2". If this field is not
       provided we use queued_resource_id as the node_id_prefix.
       
      string node_id_prefix = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNodeIdPrefix in interface QueuedResource.Tpu.NodeSpec.MultisliceParamsOrBuilder
      Returns:
      The nodeIdPrefix.
    • getNodeIdPrefixBytes

      public com.google.protobuf.ByteString getNodeIdPrefixBytes()
       Optional. Prefix of node_ids in case of multislice request.
       Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
       If node_count = 3 and node_id_prefix = "np", node ids of nodes
       created will be "np-0", "np-1", "np-2". If this field is not
       provided we use queued_resource_id as the node_id_prefix.
       
      string node_id_prefix = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNodeIdPrefixBytes in interface QueuedResource.Tpu.NodeSpec.MultisliceParamsOrBuilder
      Returns:
      The bytes for nodeIdPrefix.
    • 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.MultisliceParams parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static QueuedResource.Tpu.NodeSpec.MultisliceParams 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.MultisliceParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

      Throws:
      IOException
    • parseFrom

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

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

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

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

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

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • 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.MultisliceParams.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

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

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

      public com.google.protobuf.Parser<QueuedResource.Tpu.NodeSpec.MultisliceParams> 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.MultisliceParams getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder