Class V1beta1Policy.RuntimeClassStrategyOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Policy.RuntimeClassStrategyOptions.Builder>
io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder, Cloneable
Enclosing class:
V1beta1Policy.RuntimeClassStrategyOptions

public static final class V1beta1Policy.RuntimeClassStrategyOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Policy.RuntimeClassStrategyOptions.Builder> implements V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder
 RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses
 for a pod.
 
Protobuf type k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions
  • Method Details

    • 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<V1beta1Policy.RuntimeClassStrategyOptions.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.GeneratedMessageV3.Builder<V1beta1Policy.RuntimeClassStrategyOptions.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<V1beta1Policy.RuntimeClassStrategyOptions.Builder>
    • getDefaultInstanceForType

      public V1beta1Policy.RuntimeClassStrategyOptions 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
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Policy.RuntimeClassStrategyOptions.Builder>
    • setField

      public V1beta1Policy.RuntimeClassStrategyOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Policy.RuntimeClassStrategyOptions.Builder>
    • clearField

      public V1beta1Policy.RuntimeClassStrategyOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Policy.RuntimeClassStrategyOptions.Builder>
    • clearOneof

      public V1beta1Policy.RuntimeClassStrategyOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Policy.RuntimeClassStrategyOptions.Builder>
    • setRepeatedField

      public V1beta1Policy.RuntimeClassStrategyOptions.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<V1beta1Policy.RuntimeClassStrategyOptions.Builder>
    • addRepeatedField

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

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

    • isInitialized

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

      public V1beta1Policy.RuntimeClassStrategyOptions.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<V1beta1Policy.RuntimeClassStrategyOptions.Builder>
      Throws:
      IOException
    • getAllowedRuntimeClassNamesList

      public com.google.protobuf.ProtocolStringList getAllowedRuntimeClassNamesList()
       allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       list. An empty list requires the RuntimeClassName field to be unset.
       
      repeated string allowedRuntimeClassNames = 1;
      Specified by:
      getAllowedRuntimeClassNamesList in interface V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder
    • getAllowedRuntimeClassNamesCount

      public int getAllowedRuntimeClassNamesCount()
       allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       list. An empty list requires the RuntimeClassName field to be unset.
       
      repeated string allowedRuntimeClassNames = 1;
      Specified by:
      getAllowedRuntimeClassNamesCount in interface V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder
    • getAllowedRuntimeClassNames

      public String getAllowedRuntimeClassNames(int index)
       allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       list. An empty list requires the RuntimeClassName field to be unset.
       
      repeated string allowedRuntimeClassNames = 1;
      Specified by:
      getAllowedRuntimeClassNames in interface V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder
    • getAllowedRuntimeClassNamesBytes

      public com.google.protobuf.ByteString getAllowedRuntimeClassNamesBytes(int index)
       allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       list. An empty list requires the RuntimeClassName field to be unset.
       
      repeated string allowedRuntimeClassNames = 1;
      Specified by:
      getAllowedRuntimeClassNamesBytes in interface V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder
    • setAllowedRuntimeClassNames

      public V1beta1Policy.RuntimeClassStrategyOptions.Builder setAllowedRuntimeClassNames(int index, String value)
       allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       list. An empty list requires the RuntimeClassName field to be unset.
       
      repeated string allowedRuntimeClassNames = 1;
    • addAllowedRuntimeClassNames

      public V1beta1Policy.RuntimeClassStrategyOptions.Builder addAllowedRuntimeClassNames(String value)
       allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       list. An empty list requires the RuntimeClassName field to be unset.
       
      repeated string allowedRuntimeClassNames = 1;
    • addAllAllowedRuntimeClassNames

      public V1beta1Policy.RuntimeClassStrategyOptions.Builder addAllAllowedRuntimeClassNames(Iterable<String> values)
       allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       list. An empty list requires the RuntimeClassName field to be unset.
       
      repeated string allowedRuntimeClassNames = 1;
    • clearAllowedRuntimeClassNames

      public V1beta1Policy.RuntimeClassStrategyOptions.Builder clearAllowedRuntimeClassNames()
       allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       list. An empty list requires the RuntimeClassName field to be unset.
       
      repeated string allowedRuntimeClassNames = 1;
    • addAllowedRuntimeClassNamesBytes

      public V1beta1Policy.RuntimeClassStrategyOptions.Builder addAllowedRuntimeClassNamesBytes(com.google.protobuf.ByteString value)
       allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       list. An empty list requires the RuntimeClassName field to be unset.
       
      repeated string allowedRuntimeClassNames = 1;
    • hasDefaultRuntimeClassName

      public boolean hasDefaultRuntimeClassName()
       defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
       The default MUST be allowed by the allowedRuntimeClassNames list.
       A value of nil does not mutate the Pod.
       +optional
       
      optional string defaultRuntimeClassName = 2;
      Specified by:
      hasDefaultRuntimeClassName in interface V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder
    • getDefaultRuntimeClassName

      public String getDefaultRuntimeClassName()
       defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
       The default MUST be allowed by the allowedRuntimeClassNames list.
       A value of nil does not mutate the Pod.
       +optional
       
      optional string defaultRuntimeClassName = 2;
      Specified by:
      getDefaultRuntimeClassName in interface V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder
    • getDefaultRuntimeClassNameBytes

      public com.google.protobuf.ByteString getDefaultRuntimeClassNameBytes()
       defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
       The default MUST be allowed by the allowedRuntimeClassNames list.
       A value of nil does not mutate the Pod.
       +optional
       
      optional string defaultRuntimeClassName = 2;
      Specified by:
      getDefaultRuntimeClassNameBytes in interface V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder
    • setDefaultRuntimeClassName

      public V1beta1Policy.RuntimeClassStrategyOptions.Builder setDefaultRuntimeClassName(String value)
       defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
       The default MUST be allowed by the allowedRuntimeClassNames list.
       A value of nil does not mutate the Pod.
       +optional
       
      optional string defaultRuntimeClassName = 2;
    • clearDefaultRuntimeClassName

      public V1beta1Policy.RuntimeClassStrategyOptions.Builder clearDefaultRuntimeClassName()
       defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
       The default MUST be allowed by the allowedRuntimeClassNames list.
       A value of nil does not mutate the Pod.
       +optional
       
      optional string defaultRuntimeClassName = 2;
    • setDefaultRuntimeClassNameBytes

      public V1beta1Policy.RuntimeClassStrategyOptions.Builder setDefaultRuntimeClassNameBytes(com.google.protobuf.ByteString value)
       defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
       The default MUST be allowed by the allowedRuntimeClassNames list.
       A value of nil does not mutate the Pod.
       +optional
       
      optional string defaultRuntimeClassName = 2;
    • setUnknownFields

      public final V1beta1Policy.RuntimeClassStrategyOptions.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<V1beta1Policy.RuntimeClassStrategyOptions.Builder>
    • mergeUnknownFields

      public final V1beta1Policy.RuntimeClassStrategyOptions.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<V1beta1Policy.RuntimeClassStrategyOptions.Builder>