Class TopologyManager.Builder

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

public static final class TopologyManager.Builder extends com.google.protobuf.GeneratedMessage.Builder<TopologyManager.Builder> implements TopologyManagerOrBuilder
 TopologyManager defines the configuration options for Topology Manager
 feature. See
 https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/
 
Protobuf type google.container.v1.TopologyManager
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Configures the strategy for resource alignment.
    The Topology Manager aligns resources in following scopes: * container * pod The default scope is 'container' if unspecified.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Configures the strategy for resource alignment.
    com.google.protobuf.ByteString
    Configures the strategy for resource alignment.
    The Topology Manager aligns resources in following scopes: * container * pod The default scope is 'container' if unspecified.
    com.google.protobuf.ByteString
    The Topology Manager aligns resources in following scopes: * container * pod The default scope is 'container' if unspecified.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    Configures the strategy for resource alignment.
    setPolicyBytes(com.google.protobuf.ByteString value)
    Configures the strategy for resource alignment.
    The Topology Manager aligns resources in following scopes: * container * pod The default scope is 'container' if unspecified.
    setScopeBytes(com.google.protobuf.ByteString value)
    The Topology Manager aligns resources in following scopes: * container * pod The default scope is 'container' if unspecified.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<TopologyManager.Builder>
    • clear

      public TopologyManager.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<TopologyManager.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<TopologyManager.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public TopologyManager.Builder mergeFrom(TopologyManager other)
    • isInitialized

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

      public TopologyManager.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<TopologyManager.Builder>
      Throws:
      IOException
    • getPolicy

      public String getPolicy()
       Configures the strategy for resource alignment.
       Allowed values are:
      
       * none: the default policy, and does not perform any topology alignment.
       * restricted: the topology manager stores the preferred NUMA node affinity
       for the container, and will reject the pod if the affinity if not
       preferred.
       * best-effort: the topology manager stores the preferred NUMA node affinity
       for the container. If the affinity is not preferred, the topology manager
       will admit the pod to the node anyway.
       * single-numa-node: the topology manager determines if the single NUMA node
       affinity is possible. If it is, Topology Manager will store this and the
       Hint Providers can then use this information when making the resource
       allocation decision. If, however, this is not possible then the
       Topology Manager will reject the pod from the node. This will result in a
       pod in a Terminated state with a pod admission failure.
      
       The default policy value is 'none' if unspecified.
       Details about each strategy can be found
       [here](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-policies).
       
      string policy = 1;
      Specified by:
      getPolicy in interface TopologyManagerOrBuilder
      Returns:
      The policy.
    • getPolicyBytes

      public com.google.protobuf.ByteString getPolicyBytes()
       Configures the strategy for resource alignment.
       Allowed values are:
      
       * none: the default policy, and does not perform any topology alignment.
       * restricted: the topology manager stores the preferred NUMA node affinity
       for the container, and will reject the pod if the affinity if not
       preferred.
       * best-effort: the topology manager stores the preferred NUMA node affinity
       for the container. If the affinity is not preferred, the topology manager
       will admit the pod to the node anyway.
       * single-numa-node: the topology manager determines if the single NUMA node
       affinity is possible. If it is, Topology Manager will store this and the
       Hint Providers can then use this information when making the resource
       allocation decision. If, however, this is not possible then the
       Topology Manager will reject the pod from the node. This will result in a
       pod in a Terminated state with a pod admission failure.
      
       The default policy value is 'none' if unspecified.
       Details about each strategy can be found
       [here](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-policies).
       
      string policy = 1;
      Specified by:
      getPolicyBytes in interface TopologyManagerOrBuilder
      Returns:
      The bytes for policy.
    • setPolicy

      public TopologyManager.Builder setPolicy(String value)
       Configures the strategy for resource alignment.
       Allowed values are:
      
       * none: the default policy, and does not perform any topology alignment.
       * restricted: the topology manager stores the preferred NUMA node affinity
       for the container, and will reject the pod if the affinity if not
       preferred.
       * best-effort: the topology manager stores the preferred NUMA node affinity
       for the container. If the affinity is not preferred, the topology manager
       will admit the pod to the node anyway.
       * single-numa-node: the topology manager determines if the single NUMA node
       affinity is possible. If it is, Topology Manager will store this and the
       Hint Providers can then use this information when making the resource
       allocation decision. If, however, this is not possible then the
       Topology Manager will reject the pod from the node. This will result in a
       pod in a Terminated state with a pod admission failure.
      
       The default policy value is 'none' if unspecified.
       Details about each strategy can be found
       [here](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-policies).
       
      string policy = 1;
      Parameters:
      value - The policy to set.
      Returns:
      This builder for chaining.
    • clearPolicy

      public TopologyManager.Builder clearPolicy()
       Configures the strategy for resource alignment.
       Allowed values are:
      
       * none: the default policy, and does not perform any topology alignment.
       * restricted: the topology manager stores the preferred NUMA node affinity
       for the container, and will reject the pod if the affinity if not
       preferred.
       * best-effort: the topology manager stores the preferred NUMA node affinity
       for the container. If the affinity is not preferred, the topology manager
       will admit the pod to the node anyway.
       * single-numa-node: the topology manager determines if the single NUMA node
       affinity is possible. If it is, Topology Manager will store this and the
       Hint Providers can then use this information when making the resource
       allocation decision. If, however, this is not possible then the
       Topology Manager will reject the pod from the node. This will result in a
       pod in a Terminated state with a pod admission failure.
      
       The default policy value is 'none' if unspecified.
       Details about each strategy can be found
       [here](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-policies).
       
      string policy = 1;
      Returns:
      This builder for chaining.
    • setPolicyBytes

      public TopologyManager.Builder setPolicyBytes(com.google.protobuf.ByteString value)
       Configures the strategy for resource alignment.
       Allowed values are:
      
       * none: the default policy, and does not perform any topology alignment.
       * restricted: the topology manager stores the preferred NUMA node affinity
       for the container, and will reject the pod if the affinity if not
       preferred.
       * best-effort: the topology manager stores the preferred NUMA node affinity
       for the container. If the affinity is not preferred, the topology manager
       will admit the pod to the node anyway.
       * single-numa-node: the topology manager determines if the single NUMA node
       affinity is possible. If it is, Topology Manager will store this and the
       Hint Providers can then use this information when making the resource
       allocation decision. If, however, this is not possible then the
       Topology Manager will reject the pod from the node. This will result in a
       pod in a Terminated state with a pod admission failure.
      
       The default policy value is 'none' if unspecified.
       Details about each strategy can be found
       [here](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-policies).
       
      string policy = 1;
      Parameters:
      value - The bytes for policy to set.
      Returns:
      This builder for chaining.
    • getScope

      public String getScope()
       The Topology Manager aligns resources in following scopes:
      
       * container
       * pod
      
       The default scope is 'container' if unspecified.
       See
       https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-scopes
       
      string scope = 2;
      Specified by:
      getScope in interface TopologyManagerOrBuilder
      Returns:
      The scope.
    • getScopeBytes

      public com.google.protobuf.ByteString getScopeBytes()
       The Topology Manager aligns resources in following scopes:
      
       * container
       * pod
      
       The default scope is 'container' if unspecified.
       See
       https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-scopes
       
      string scope = 2;
      Specified by:
      getScopeBytes in interface TopologyManagerOrBuilder
      Returns:
      The bytes for scope.
    • setScope

      public TopologyManager.Builder setScope(String value)
       The Topology Manager aligns resources in following scopes:
      
       * container
       * pod
      
       The default scope is 'container' if unspecified.
       See
       https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-scopes
       
      string scope = 2;
      Parameters:
      value - The scope to set.
      Returns:
      This builder for chaining.
    • clearScope

      public TopologyManager.Builder clearScope()
       The Topology Manager aligns resources in following scopes:
      
       * container
       * pod
      
       The default scope is 'container' if unspecified.
       See
       https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-scopes
       
      string scope = 2;
      Returns:
      This builder for chaining.
    • setScopeBytes

      public TopologyManager.Builder setScopeBytes(com.google.protobuf.ByteString value)
       The Topology Manager aligns resources in following scopes:
      
       * container
       * pod
      
       The default scope is 'container' if unspecified.
       See
       https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-scopes
       
      string scope = 2;
      Parameters:
      value - The bytes for scope to set.
      Returns:
      This builder for chaining.