Class NodePool.PlacementPolicy.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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
      • setRepeatedField

        public NodePool.PlacementPolicy.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NodePool.PlacementPolicy.Builder>
      • addRepeatedField

        public NodePool.PlacementPolicy.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NodePool.PlacementPolicy.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • clearType

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

        public final NodePool.PlacementPolicy.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NodePool.PlacementPolicy.Builder>
      • mergeUnknownFields

        public final NodePool.PlacementPolicy.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NodePool.PlacementPolicy.Builder>