Class QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder

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

public static final class QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder extends com.google.protobuf.GeneratedMessage.Builder<QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder> 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
  • 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.Builder<QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder>
    • 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
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder>
    • mergeFrom

      public QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder>
      Throws:
      IOException
    • 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.
    • setNodeCount

       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];
      Parameters:
      value - The nodeCount to set.
      Returns:
      This builder for chaining.
    • clearNodeCount

       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];
      Returns:
      This builder for chaining.
    • 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.
    • setNodeIdPrefix

       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];
      Parameters:
      value - The nodeIdPrefix to set.
      Returns:
      This builder for chaining.
    • clearNodeIdPrefix

       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];
      Returns:
      This builder for chaining.
    • setNodeIdPrefixBytes

      public QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder setNodeIdPrefixBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for nodeIdPrefix to set.
      Returns:
      This builder for chaining.