Class Generated.SeccompProfile.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<Generated.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<Generated.SeccompProfile.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public Generated.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<Generated.SeccompProfile.Builder>
      • isInitialized

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

        public Generated.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<Generated.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 Generated.SeccompProfileOrBuilder
        Returns:
        Whether the type field is set.
      • 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 Generated.SeccompProfileOrBuilder
        Returns:
        The type.
      • 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 Generated.SeccompProfileOrBuilder
        Returns:
        The bytes for type.
      • setType

        public Generated.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;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public Generated.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;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public Generated.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;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • 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 be set if type is "Localhost". Must NOT be set for any other type.
         +optional
         
        optional string localhostProfile = 2;
        Specified by:
        hasLocalhostProfile in interface Generated.SeccompProfileOrBuilder
        Returns:
        Whether the localhostProfile field is set.
      • 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 be set if type is "Localhost". Must NOT be set for any other type.
         +optional
         
        optional string localhostProfile = 2;
        Specified by:
        getLocalhostProfile in interface Generated.SeccompProfileOrBuilder
        Returns:
        The localhostProfile.
      • 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 be set if type is "Localhost". Must NOT be set for any other type.
         +optional
         
        optional string localhostProfile = 2;
        Specified by:
        getLocalhostProfileBytes in interface Generated.SeccompProfileOrBuilder
        Returns:
        The bytes for localhostProfile.
      • setLocalhostProfile

        public Generated.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 be set if type is "Localhost". Must NOT be set for any other type.
         +optional
         
        optional string localhostProfile = 2;
        Parameters:
        value - The localhostProfile to set.
        Returns:
        This builder for chaining.
      • clearLocalhostProfile

        public Generated.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 be set if type is "Localhost". Must NOT be set for any other type.
         +optional
         
        optional string localhostProfile = 2;
        Returns:
        This builder for chaining.
      • setLocalhostProfileBytes

        public Generated.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 be set if type is "Localhost". Must NOT be set for any other type.
         +optional
         
        optional string localhostProfile = 2;
        Parameters:
        value - The bytes for localhostProfile to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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