Class V1.SeccompProfile.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1.SeccompProfile.Builder>
io.kubernetes.client.proto.V1.SeccompProfile.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.SeccompProfileOrBuilder, Cloneable
Enclosing class:
V1.SeccompProfile

public static final class V1.SeccompProfile.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.SeccompProfile.Builder> implements V1.SeccompProfileOrBuilder
 SeccompProfile defines a pod/container's seccomp profile settings.
 Only one profile source may be set.
 +union
 
Protobuf type k8s.io.api.core.v1.SeccompProfile
  • 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<V1.SeccompProfile.Builder>
    • clear

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

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

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

      public V1.SeccompProfile buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public V1.SeccompProfile.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<V1.SeccompProfile.Builder>
    • setField

      public V1.SeccompProfile.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<V1.SeccompProfile.Builder>
    • clearField

      public V1.SeccompProfile.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<V1.SeccompProfile.Builder>
    • clearOneof

      public V1.SeccompProfile.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<V1.SeccompProfile.Builder>
    • setRepeatedField

      public V1.SeccompProfile.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<V1.SeccompProfile.Builder>
    • addRepeatedField

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

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

      public V1.SeccompProfile.Builder mergeFrom(V1.SeccompProfile other)
    • isInitialized

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

      public V1.SeccompProfile.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<V1.SeccompProfile.Builder>
      Throws:
      IOException
    • hasType

      public boolean hasType()
       type indicates which kind of seccomp profile will be applied.
       Valid options are:
       Localhost - a profile defined in a file on the node should be used.
       RuntimeDefault - the container runtime default profile should be used.
       Unconfined - no profile should be applied.
       +unionDiscriminator
       
      optional string type = 1;
      Specified by:
      hasType in interface V1.SeccompProfileOrBuilder
    • getType

      public String getType()
       type indicates which kind of seccomp profile will be applied.
       Valid options are:
       Localhost - a profile defined in a file on the node should be used.
       RuntimeDefault - the container runtime default profile should be used.
       Unconfined - no profile should be applied.
       +unionDiscriminator
       
      optional string type = 1;
      Specified by:
      getType in interface V1.SeccompProfileOrBuilder
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       type indicates which kind of seccomp profile will be applied.
       Valid options are:
       Localhost - a profile defined in a file on the node should be used.
       RuntimeDefault - the container runtime default profile should be used.
       Unconfined - no profile should be applied.
       +unionDiscriminator
       
      optional string type = 1;
      Specified by:
      getTypeBytes in interface V1.SeccompProfileOrBuilder
    • setType

      public V1.SeccompProfile.Builder setType(String value)
       type indicates which kind of seccomp profile will be applied.
       Valid options are:
       Localhost - a profile defined in a file on the node should be used.
       RuntimeDefault - the container runtime default profile should be used.
       Unconfined - no profile should be applied.
       +unionDiscriminator
       
      optional string type = 1;
    • clearType

      public V1.SeccompProfile.Builder clearType()
       type indicates which kind of seccomp profile will be applied.
       Valid options are:
       Localhost - a profile defined in a file on the node should be used.
       RuntimeDefault - the container runtime default profile should be used.
       Unconfined - no profile should be applied.
       +unionDiscriminator
       
      optional string type = 1;
    • setTypeBytes

      public V1.SeccompProfile.Builder setTypeBytes(com.google.protobuf.ByteString value)
       type indicates which kind of seccomp profile will be applied.
       Valid options are:
       Localhost - a profile defined in a file on the node should be used.
       RuntimeDefault - the container runtime default profile should be used.
       Unconfined - no profile should be applied.
       +unionDiscriminator
       
      optional string type = 1;
    • hasLocalhostProfile

      public boolean hasLocalhostProfile()
       localhostProfile indicates a profile defined in a file on the node should be used.
       The profile must be preconfigured on the node to work.
       Must be a descending path, relative to the kubelet's configured seccomp profile location.
       Must only be set if type is "Localhost".
       +optional
       
      optional string localhostProfile = 2;
      Specified by:
      hasLocalhostProfile in interface V1.SeccompProfileOrBuilder
    • getLocalhostProfile

      public String getLocalhostProfile()
       localhostProfile indicates a profile defined in a file on the node should be used.
       The profile must be preconfigured on the node to work.
       Must be a descending path, relative to the kubelet's configured seccomp profile location.
       Must only be set if type is "Localhost".
       +optional
       
      optional string localhostProfile = 2;
      Specified by:
      getLocalhostProfile in interface V1.SeccompProfileOrBuilder
    • getLocalhostProfileBytes

      public com.google.protobuf.ByteString getLocalhostProfileBytes()
       localhostProfile indicates a profile defined in a file on the node should be used.
       The profile must be preconfigured on the node to work.
       Must be a descending path, relative to the kubelet's configured seccomp profile location.
       Must only be set if type is "Localhost".
       +optional
       
      optional string localhostProfile = 2;
      Specified by:
      getLocalhostProfileBytes in interface V1.SeccompProfileOrBuilder
    • setLocalhostProfile

      public V1.SeccompProfile.Builder setLocalhostProfile(String value)
       localhostProfile indicates a profile defined in a file on the node should be used.
       The profile must be preconfigured on the node to work.
       Must be a descending path, relative to the kubelet's configured seccomp profile location.
       Must only be set if type is "Localhost".
       +optional
       
      optional string localhostProfile = 2;
    • clearLocalhostProfile

      public V1.SeccompProfile.Builder clearLocalhostProfile()
       localhostProfile indicates a profile defined in a file on the node should be used.
       The profile must be preconfigured on the node to work.
       Must be a descending path, relative to the kubelet's configured seccomp profile location.
       Must only be set if type is "Localhost".
       +optional
       
      optional string localhostProfile = 2;
    • setLocalhostProfileBytes

      public V1.SeccompProfile.Builder setLocalhostProfileBytes(com.google.protobuf.ByteString value)
       localhostProfile indicates a profile defined in a file on the node should be used.
       The profile must be preconfigured on the node to work.
       Must be a descending path, relative to the kubelet's configured seccomp profile location.
       Must only be set if type is "Localhost".
       +optional
       
      optional string localhostProfile = 2;
    • setUnknownFields

      public final V1.SeccompProfile.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<V1.SeccompProfile.Builder>
    • mergeUnknownFields

      public final V1.SeccompProfile.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<V1.SeccompProfile.Builder>