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

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

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

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

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

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

        public boolean hasType()
         type indicates which kind of AppArmor profile will be applied.
         Valid options are:
           Localhost - a profile pre-loaded on the node.
           RuntimeDefault - the container runtime's default profile.
           Unconfined - no AppArmor enforcement.
         +unionDiscriminator
         
        optional string type = 1;
        Specified by:
        hasType in interface Generated.AppArmorProfileOrBuilder
        Returns:
        Whether the type field is set.
      • getType

        public String getType()
         type indicates which kind of AppArmor profile will be applied.
         Valid options are:
           Localhost - a profile pre-loaded on the node.
           RuntimeDefault - the container runtime's default profile.
           Unconfined - no AppArmor enforcement.
         +unionDiscriminator
         
        optional string type = 1;
        Specified by:
        getType in interface Generated.AppArmorProfileOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         type indicates which kind of AppArmor profile will be applied.
         Valid options are:
           Localhost - a profile pre-loaded on the node.
           RuntimeDefault - the container runtime's default profile.
           Unconfined - no AppArmor enforcement.
         +unionDiscriminator
         
        optional string type = 1;
        Specified by:
        getTypeBytes in interface Generated.AppArmorProfileOrBuilder
        Returns:
        The bytes for type.
      • setType

        public Generated.AppArmorProfile.Builder setType​(String value)
         type indicates which kind of AppArmor profile will be applied.
         Valid options are:
           Localhost - a profile pre-loaded on the node.
           RuntimeDefault - the container runtime's default profile.
           Unconfined - no AppArmor enforcement.
         +unionDiscriminator
         
        optional string type = 1;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public Generated.AppArmorProfile.Builder clearType()
         type indicates which kind of AppArmor profile will be applied.
         Valid options are:
           Localhost - a profile pre-loaded on the node.
           RuntimeDefault - the container runtime's default profile.
           Unconfined - no AppArmor enforcement.
         +unionDiscriminator
         
        optional string type = 1;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public Generated.AppArmorProfile.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         type indicates which kind of AppArmor profile will be applied.
         Valid options are:
           Localhost - a profile pre-loaded on the node.
           RuntimeDefault - the container runtime's default profile.
           Unconfined - no AppArmor enforcement.
         +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 loaded on the node that should be used.
         The profile must be preconfigured on the node to work.
         Must match the loaded name of the profile.
         Must be set if and only if type is "Localhost".
         +optional
         
        optional string localhostProfile = 2;
        Specified by:
        hasLocalhostProfile in interface Generated.AppArmorProfileOrBuilder
        Returns:
        Whether the localhostProfile field is set.
      • getLocalhostProfile

        public String getLocalhostProfile()
         localhostProfile indicates a profile loaded on the node that should be used.
         The profile must be preconfigured on the node to work.
         Must match the loaded name of the profile.
         Must be set if and only if type is "Localhost".
         +optional
         
        optional string localhostProfile = 2;
        Specified by:
        getLocalhostProfile in interface Generated.AppArmorProfileOrBuilder
        Returns:
        The localhostProfile.
      • getLocalhostProfileBytes

        public com.google.protobuf.ByteString getLocalhostProfileBytes()
         localhostProfile indicates a profile loaded on the node that should be used.
         The profile must be preconfigured on the node to work.
         Must match the loaded name of the profile.
         Must be set if and only if type is "Localhost".
         +optional
         
        optional string localhostProfile = 2;
        Specified by:
        getLocalhostProfileBytes in interface Generated.AppArmorProfileOrBuilder
        Returns:
        The bytes for localhostProfile.
      • setLocalhostProfile

        public Generated.AppArmorProfile.Builder setLocalhostProfile​(String value)
         localhostProfile indicates a profile loaded on the node that should be used.
         The profile must be preconfigured on the node to work.
         Must match the loaded name of the profile.
         Must be set if and only if type is "Localhost".
         +optional
         
        optional string localhostProfile = 2;
        Parameters:
        value - The localhostProfile to set.
        Returns:
        This builder for chaining.
      • clearLocalhostProfile

        public Generated.AppArmorProfile.Builder clearLocalhostProfile()
         localhostProfile indicates a profile loaded on the node that should be used.
         The profile must be preconfigured on the node to work.
         Must match the loaded name of the profile.
         Must be set if and only if type is "Localhost".
         +optional
         
        optional string localhostProfile = 2;
        Returns:
        This builder for chaining.
      • setLocalhostProfileBytes

        public Generated.AppArmorProfile.Builder setLocalhostProfileBytes​(com.google.protobuf.ByteString value)
         localhostProfile indicates a profile loaded on the node that should be used.
         The profile must be preconfigured on the node to work.
         Must match the loaded name of the profile.
         Must be set if and only if type is "Localhost".
         +optional
         
        optional string localhostProfile = 2;
        Parameters:
        value - The bytes for localhostProfile to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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