Class NodePool.PlacementPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NodePool.PlacementPolicy.Builder>
com.google.container.v1.NodePool.PlacementPolicy.Builder
All Implemented Interfaces:
NodePool.PlacementPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
NodePool.PlacementPolicy

public static final class NodePool.PlacementPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<NodePool.PlacementPolicy.Builder> implements NodePool.PlacementPolicyOrBuilder
 PlacementPolicy defines the placement policy used by the node pool.
 
Protobuf type google.container.v1.NodePool.PlacementPolicy
  • 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<NodePool.PlacementPolicy.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<NodePool.PlacementPolicy.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<NodePool.PlacementPolicy.Builder>
    • getDefaultInstanceForType

      public NodePool.PlacementPolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public NodePool.PlacementPolicy build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public NodePool.PlacementPolicy buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public NodePool.PlacementPolicy.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<NodePool.PlacementPolicy.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<NodePool.PlacementPolicy.Builder>
    • mergeFrom

      public NodePool.PlacementPolicy.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<NodePool.PlacementPolicy.Builder>
      Throws:
      IOException
    • getTypeValue

      public int getTypeValue()
       The type of placement.
       
      .google.container.v1.NodePool.PlacementPolicy.Type type = 1;
      Specified by:
      getTypeValue in interface NodePool.PlacementPolicyOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public NodePool.PlacementPolicy.Builder setTypeValue(int value)
       The type of placement.
       
      .google.container.v1.NodePool.PlacementPolicy.Type type = 1;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

       The type of placement.
       
      .google.container.v1.NodePool.PlacementPolicy.Type type = 1;
      Specified by:
      getType in interface NodePool.PlacementPolicyOrBuilder
      Returns:
      The type.
    • setType

       The type of placement.
       
      .google.container.v1.NodePool.PlacementPolicy.Type type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       The type of placement.
       
      .google.container.v1.NodePool.PlacementPolicy.Type type = 1;
      Returns:
      This builder for chaining.
    • getTpuTopology

      public String getTpuTopology()
       Optional. TPU placement topology for pod slice node pool.
       https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
       
      string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTpuTopology in interface NodePool.PlacementPolicyOrBuilder
      Returns:
      The tpuTopology.
    • getTpuTopologyBytes

      public com.google.protobuf.ByteString getTpuTopologyBytes()
       Optional. TPU placement topology for pod slice node pool.
       https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
       
      string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTpuTopologyBytes in interface NodePool.PlacementPolicyOrBuilder
      Returns:
      The bytes for tpuTopology.
    • setTpuTopology

      public NodePool.PlacementPolicy.Builder setTpuTopology(String value)
       Optional. TPU placement topology for pod slice node pool.
       https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
       
      string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The tpuTopology to set.
      Returns:
      This builder for chaining.
    • clearTpuTopology

      public NodePool.PlacementPolicy.Builder clearTpuTopology()
       Optional. TPU placement topology for pod slice node pool.
       https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
       
      string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setTpuTopologyBytes

      public NodePool.PlacementPolicy.Builder setTpuTopologyBytes(com.google.protobuf.ByteString value)
       Optional. TPU placement topology for pod slice node pool.
       https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
       
      string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for tpuTopology to set.
      Returns:
      This builder for chaining.
    • getPolicyName

      public String getPolicyName()
       If set, refers to the name of a custom resource policy supplied by the
       user. The resource policy must be in the same project and region as the
       node pool. If not found, InvalidArgument error is returned.
       
      string policy_name = 3;
      Specified by:
      getPolicyName in interface NodePool.PlacementPolicyOrBuilder
      Returns:
      The policyName.
    • getPolicyNameBytes

      public com.google.protobuf.ByteString getPolicyNameBytes()
       If set, refers to the name of a custom resource policy supplied by the
       user. The resource policy must be in the same project and region as the
       node pool. If not found, InvalidArgument error is returned.
       
      string policy_name = 3;
      Specified by:
      getPolicyNameBytes in interface NodePool.PlacementPolicyOrBuilder
      Returns:
      The bytes for policyName.
    • setPolicyName

      public NodePool.PlacementPolicy.Builder setPolicyName(String value)
       If set, refers to the name of a custom resource policy supplied by the
       user. The resource policy must be in the same project and region as the
       node pool. If not found, InvalidArgument error is returned.
       
      string policy_name = 3;
      Parameters:
      value - The policyName to set.
      Returns:
      This builder for chaining.
    • clearPolicyName

      public NodePool.PlacementPolicy.Builder clearPolicyName()
       If set, refers to the name of a custom resource policy supplied by the
       user. The resource policy must be in the same project and region as the
       node pool. If not found, InvalidArgument error is returned.
       
      string policy_name = 3;
      Returns:
      This builder for chaining.
    • setPolicyNameBytes

      public NodePool.PlacementPolicy.Builder setPolicyNameBytes(com.google.protobuf.ByteString value)
       If set, refers to the name of a custom resource policy supplied by the
       user. The resource policy must be in the same project and region as the
       node pool. If not found, InvalidArgument error is returned.
       
      string policy_name = 3;
      Parameters:
      value - The bytes for policyName to set.
      Returns:
      This builder for chaining.