Class Generated.DeleteOptions.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.DeleteOptions.Builder>
      • clear

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

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

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

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

        public Generated.DeleteOptions.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<Generated.DeleteOptions.Builder>
      • clearField

        public Generated.DeleteOptions.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<Generated.DeleteOptions.Builder>
      • clearOneof

        public Generated.DeleteOptions.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<Generated.DeleteOptions.Builder>
      • setRepeatedField

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

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

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

        public boolean hasGracePeriodSeconds()
         The duration in seconds before the object should be deleted. Value must be non-negative integer.
         The value zero indicates delete immediately. If this value is nil, the default grace period for the
         specified type will be used.
         Defaults to a per object value if not specified. zero means delete immediately.
         +optional
         
        optional int64 gracePeriodSeconds = 1;
        Specified by:
        hasGracePeriodSeconds in interface Generated.DeleteOptionsOrBuilder
        Returns:
        Whether the gracePeriodSeconds field is set.
      • getGracePeriodSeconds

        public long getGracePeriodSeconds()
         The duration in seconds before the object should be deleted. Value must be non-negative integer.
         The value zero indicates delete immediately. If this value is nil, the default grace period for the
         specified type will be used.
         Defaults to a per object value if not specified. zero means delete immediately.
         +optional
         
        optional int64 gracePeriodSeconds = 1;
        Specified by:
        getGracePeriodSeconds in interface Generated.DeleteOptionsOrBuilder
        Returns:
        The gracePeriodSeconds.
      • setGracePeriodSeconds

        public Generated.DeleteOptions.Builder setGracePeriodSeconds​(long value)
         The duration in seconds before the object should be deleted. Value must be non-negative integer.
         The value zero indicates delete immediately. If this value is nil, the default grace period for the
         specified type will be used.
         Defaults to a per object value if not specified. zero means delete immediately.
         +optional
         
        optional int64 gracePeriodSeconds = 1;
        Parameters:
        value - The gracePeriodSeconds to set.
        Returns:
        This builder for chaining.
      • clearGracePeriodSeconds

        public Generated.DeleteOptions.Builder clearGracePeriodSeconds()
         The duration in seconds before the object should be deleted. Value must be non-negative integer.
         The value zero indicates delete immediately. If this value is nil, the default grace period for the
         specified type will be used.
         Defaults to a per object value if not specified. zero means delete immediately.
         +optional
         
        optional int64 gracePeriodSeconds = 1;
        Returns:
        This builder for chaining.
      • hasPreconditions

        public boolean hasPreconditions()
         Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
         returned.
         +k8s:conversion-gen=false
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
        Specified by:
        hasPreconditions in interface Generated.DeleteOptionsOrBuilder
        Returns:
        Whether the preconditions field is set.
      • getPreconditions

        public Generated.Preconditions getPreconditions()
         Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
         returned.
         +k8s:conversion-gen=false
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
        Specified by:
        getPreconditions in interface Generated.DeleteOptionsOrBuilder
        Returns:
        The preconditions.
      • setPreconditions

        public Generated.DeleteOptions.Builder setPreconditions​(Generated.Preconditions value)
         Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
         returned.
         +k8s:conversion-gen=false
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
      • setPreconditions

        public Generated.DeleteOptions.Builder setPreconditions​(Generated.Preconditions.Builder builderForValue)
         Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
         returned.
         +k8s:conversion-gen=false
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
      • mergePreconditions

        public Generated.DeleteOptions.Builder mergePreconditions​(Generated.Preconditions value)
         Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
         returned.
         +k8s:conversion-gen=false
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
      • clearPreconditions

        public Generated.DeleteOptions.Builder clearPreconditions()
         Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
         returned.
         +k8s:conversion-gen=false
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
      • getPreconditionsBuilder

        public Generated.Preconditions.Builder getPreconditionsBuilder()
         Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
         returned.
         +k8s:conversion-gen=false
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
      • hasOrphanDependents

        public boolean hasOrphanDependents()
         Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.
         Should the dependent objects be orphaned. If true/false, the "orphan"
         finalizer will be added to/removed from the object's finalizers list.
         Either this field or PropagationPolicy may be set, but not both.
         +optional
         
        optional bool orphanDependents = 3;
        Specified by:
        hasOrphanDependents in interface Generated.DeleteOptionsOrBuilder
        Returns:
        Whether the orphanDependents field is set.
      • getOrphanDependents

        public boolean getOrphanDependents()
         Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.
         Should the dependent objects be orphaned. If true/false, the "orphan"
         finalizer will be added to/removed from the object's finalizers list.
         Either this field or PropagationPolicy may be set, but not both.
         +optional
         
        optional bool orphanDependents = 3;
        Specified by:
        getOrphanDependents in interface Generated.DeleteOptionsOrBuilder
        Returns:
        The orphanDependents.
      • setOrphanDependents

        public Generated.DeleteOptions.Builder setOrphanDependents​(boolean value)
         Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.
         Should the dependent objects be orphaned. If true/false, the "orphan"
         finalizer will be added to/removed from the object's finalizers list.
         Either this field or PropagationPolicy may be set, but not both.
         +optional
         
        optional bool orphanDependents = 3;
        Parameters:
        value - The orphanDependents to set.
        Returns:
        This builder for chaining.
      • clearOrphanDependents

        public Generated.DeleteOptions.Builder clearOrphanDependents()
         Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.
         Should the dependent objects be orphaned. If true/false, the "orphan"
         finalizer will be added to/removed from the object's finalizers list.
         Either this field or PropagationPolicy may be set, but not both.
         +optional
         
        optional bool orphanDependents = 3;
        Returns:
        This builder for chaining.
      • hasPropagationPolicy

        public boolean hasPropagationPolicy()
         Whether and how garbage collection will be performed.
         Either this field or OrphanDependents may be set, but not both.
         The default policy is decided by the existing finalizer set in the
         metadata.finalizers and the resource-specific default policy.
         Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
         allow the garbage collector to delete the dependents in the background;
         'Foreground' - a cascading policy that deletes all dependents in the
         foreground.
         +optional
         
        optional string propagationPolicy = 4;
        Specified by:
        hasPropagationPolicy in interface Generated.DeleteOptionsOrBuilder
        Returns:
        Whether the propagationPolicy field is set.
      • getPropagationPolicy

        public String getPropagationPolicy()
         Whether and how garbage collection will be performed.
         Either this field or OrphanDependents may be set, but not both.
         The default policy is decided by the existing finalizer set in the
         metadata.finalizers and the resource-specific default policy.
         Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
         allow the garbage collector to delete the dependents in the background;
         'Foreground' - a cascading policy that deletes all dependents in the
         foreground.
         +optional
         
        optional string propagationPolicy = 4;
        Specified by:
        getPropagationPolicy in interface Generated.DeleteOptionsOrBuilder
        Returns:
        The propagationPolicy.
      • getPropagationPolicyBytes

        public com.google.protobuf.ByteString getPropagationPolicyBytes()
         Whether and how garbage collection will be performed.
         Either this field or OrphanDependents may be set, but not both.
         The default policy is decided by the existing finalizer set in the
         metadata.finalizers and the resource-specific default policy.
         Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
         allow the garbage collector to delete the dependents in the background;
         'Foreground' - a cascading policy that deletes all dependents in the
         foreground.
         +optional
         
        optional string propagationPolicy = 4;
        Specified by:
        getPropagationPolicyBytes in interface Generated.DeleteOptionsOrBuilder
        Returns:
        The bytes for propagationPolicy.
      • setPropagationPolicy

        public Generated.DeleteOptions.Builder setPropagationPolicy​(String value)
         Whether and how garbage collection will be performed.
         Either this field or OrphanDependents may be set, but not both.
         The default policy is decided by the existing finalizer set in the
         metadata.finalizers and the resource-specific default policy.
         Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
         allow the garbage collector to delete the dependents in the background;
         'Foreground' - a cascading policy that deletes all dependents in the
         foreground.
         +optional
         
        optional string propagationPolicy = 4;
        Parameters:
        value - The propagationPolicy to set.
        Returns:
        This builder for chaining.
      • clearPropagationPolicy

        public Generated.DeleteOptions.Builder clearPropagationPolicy()
         Whether and how garbage collection will be performed.
         Either this field or OrphanDependents may be set, but not both.
         The default policy is decided by the existing finalizer set in the
         metadata.finalizers and the resource-specific default policy.
         Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
         allow the garbage collector to delete the dependents in the background;
         'Foreground' - a cascading policy that deletes all dependents in the
         foreground.
         +optional
         
        optional string propagationPolicy = 4;
        Returns:
        This builder for chaining.
      • setPropagationPolicyBytes

        public Generated.DeleteOptions.Builder setPropagationPolicyBytes​(com.google.protobuf.ByteString value)
         Whether and how garbage collection will be performed.
         Either this field or OrphanDependents may be set, but not both.
         The default policy is decided by the existing finalizer set in the
         metadata.finalizers and the resource-specific default policy.
         Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
         allow the garbage collector to delete the dependents in the background;
         'Foreground' - a cascading policy that deletes all dependents in the
         foreground.
         +optional
         
        optional string propagationPolicy = 4;
        Parameters:
        value - The bytes for propagationPolicy to set.
        Returns:
        This builder for chaining.
      • getDryRunList

        public com.google.protobuf.ProtocolStringList getDryRunList()
         When present, indicates that modifications should not be
         persisted. An invalid or unrecognized dryRun directive will
         result in an error response and no further processing of the
         request. Valid values are:
         - All: all dry run stages will be processed
         +optional
         +listType=atomic
         
        repeated string dryRun = 5;
        Specified by:
        getDryRunList in interface Generated.DeleteOptionsOrBuilder
        Returns:
        A list containing the dryRun.
      • getDryRunCount

        public int getDryRunCount()
         When present, indicates that modifications should not be
         persisted. An invalid or unrecognized dryRun directive will
         result in an error response and no further processing of the
         request. Valid values are:
         - All: all dry run stages will be processed
         +optional
         +listType=atomic
         
        repeated string dryRun = 5;
        Specified by:
        getDryRunCount in interface Generated.DeleteOptionsOrBuilder
        Returns:
        The count of dryRun.
      • getDryRun

        public String getDryRun​(int index)
         When present, indicates that modifications should not be
         persisted. An invalid or unrecognized dryRun directive will
         result in an error response and no further processing of the
         request. Valid values are:
         - All: all dry run stages will be processed
         +optional
         +listType=atomic
         
        repeated string dryRun = 5;
        Specified by:
        getDryRun in interface Generated.DeleteOptionsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The dryRun at the given index.
      • getDryRunBytes

        public com.google.protobuf.ByteString getDryRunBytes​(int index)
         When present, indicates that modifications should not be
         persisted. An invalid or unrecognized dryRun directive will
         result in an error response and no further processing of the
         request. Valid values are:
         - All: all dry run stages will be processed
         +optional
         +listType=atomic
         
        repeated string dryRun = 5;
        Specified by:
        getDryRunBytes in interface Generated.DeleteOptionsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the dryRun at the given index.
      • setDryRun

        public Generated.DeleteOptions.Builder setDryRun​(int index,
                                                         String value)
         When present, indicates that modifications should not be
         persisted. An invalid or unrecognized dryRun directive will
         result in an error response and no further processing of the
         request. Valid values are:
         - All: all dry run stages will be processed
         +optional
         +listType=atomic
         
        repeated string dryRun = 5;
        Parameters:
        index - The index to set the value at.
        value - The dryRun to set.
        Returns:
        This builder for chaining.
      • addDryRun

        public Generated.DeleteOptions.Builder addDryRun​(String value)
         When present, indicates that modifications should not be
         persisted. An invalid or unrecognized dryRun directive will
         result in an error response and no further processing of the
         request. Valid values are:
         - All: all dry run stages will be processed
         +optional
         +listType=atomic
         
        repeated string dryRun = 5;
        Parameters:
        value - The dryRun to add.
        Returns:
        This builder for chaining.
      • addAllDryRun

        public Generated.DeleteOptions.Builder addAllDryRun​(Iterable<String> values)
         When present, indicates that modifications should not be
         persisted. An invalid or unrecognized dryRun directive will
         result in an error response and no further processing of the
         request. Valid values are:
         - All: all dry run stages will be processed
         +optional
         +listType=atomic
         
        repeated string dryRun = 5;
        Parameters:
        values - The dryRun to add.
        Returns:
        This builder for chaining.
      • clearDryRun

        public Generated.DeleteOptions.Builder clearDryRun()
         When present, indicates that modifications should not be
         persisted. An invalid or unrecognized dryRun directive will
         result in an error response and no further processing of the
         request. Valid values are:
         - All: all dry run stages will be processed
         +optional
         +listType=atomic
         
        repeated string dryRun = 5;
        Returns:
        This builder for chaining.
      • addDryRunBytes

        public Generated.DeleteOptions.Builder addDryRunBytes​(com.google.protobuf.ByteString value)
         When present, indicates that modifications should not be
         persisted. An invalid or unrecognized dryRun directive will
         result in an error response and no further processing of the
         request. Valid values are:
         - All: all dry run stages will be processed
         +optional
         +listType=atomic
         
        repeated string dryRun = 5;
        Parameters:
        value - The bytes of the dryRun to add.
        Returns:
        This builder for chaining.
      • hasIgnoreStoreReadErrorWithClusterBreakingPotential

        public boolean hasIgnoreStoreReadErrorWithClusterBreakingPotential()
         if set to true, it will trigger an unsafe deletion of the resource in
         case the normal deletion flow fails with a corrupt object error.
         A resource is considered corrupt if it can not be retrieved from
         the underlying storage successfully because of a) its data can
         not be transformed e.g. decryption failure, or b) it fails
         to decode into an object.
         NOTE: unsafe deletion ignores finalizer constraints, skips
         precondition checks, and removes the object from the storage.
         WARNING: This may potentially break the cluster if the workload
         associated with the resource being unsafe-deleted relies on normal
         deletion flow. Use only if you REALLY know what you are doing.
         The default value is false, and the user must opt in to enable it
         +optional
         
        optional bool ignoreStoreReadErrorWithClusterBreakingPotential = 6;
        Specified by:
        hasIgnoreStoreReadErrorWithClusterBreakingPotential in interface Generated.DeleteOptionsOrBuilder
        Returns:
        Whether the ignoreStoreReadErrorWithClusterBreakingPotential field is set.
      • getIgnoreStoreReadErrorWithClusterBreakingPotential

        public boolean getIgnoreStoreReadErrorWithClusterBreakingPotential()
         if set to true, it will trigger an unsafe deletion of the resource in
         case the normal deletion flow fails with a corrupt object error.
         A resource is considered corrupt if it can not be retrieved from
         the underlying storage successfully because of a) its data can
         not be transformed e.g. decryption failure, or b) it fails
         to decode into an object.
         NOTE: unsafe deletion ignores finalizer constraints, skips
         precondition checks, and removes the object from the storage.
         WARNING: This may potentially break the cluster if the workload
         associated with the resource being unsafe-deleted relies on normal
         deletion flow. Use only if you REALLY know what you are doing.
         The default value is false, and the user must opt in to enable it
         +optional
         
        optional bool ignoreStoreReadErrorWithClusterBreakingPotential = 6;
        Specified by:
        getIgnoreStoreReadErrorWithClusterBreakingPotential in interface Generated.DeleteOptionsOrBuilder
        Returns:
        The ignoreStoreReadErrorWithClusterBreakingPotential.
      • setIgnoreStoreReadErrorWithClusterBreakingPotential

        public Generated.DeleteOptions.Builder setIgnoreStoreReadErrorWithClusterBreakingPotential​(boolean value)
         if set to true, it will trigger an unsafe deletion of the resource in
         case the normal deletion flow fails with a corrupt object error.
         A resource is considered corrupt if it can not be retrieved from
         the underlying storage successfully because of a) its data can
         not be transformed e.g. decryption failure, or b) it fails
         to decode into an object.
         NOTE: unsafe deletion ignores finalizer constraints, skips
         precondition checks, and removes the object from the storage.
         WARNING: This may potentially break the cluster if the workload
         associated with the resource being unsafe-deleted relies on normal
         deletion flow. Use only if you REALLY know what you are doing.
         The default value is false, and the user must opt in to enable it
         +optional
         
        optional bool ignoreStoreReadErrorWithClusterBreakingPotential = 6;
        Parameters:
        value - The ignoreStoreReadErrorWithClusterBreakingPotential to set.
        Returns:
        This builder for chaining.
      • clearIgnoreStoreReadErrorWithClusterBreakingPotential

        public Generated.DeleteOptions.Builder clearIgnoreStoreReadErrorWithClusterBreakingPotential()
         if set to true, it will trigger an unsafe deletion of the resource in
         case the normal deletion flow fails with a corrupt object error.
         A resource is considered corrupt if it can not be retrieved from
         the underlying storage successfully because of a) its data can
         not be transformed e.g. decryption failure, or b) it fails
         to decode into an object.
         NOTE: unsafe deletion ignores finalizer constraints, skips
         precondition checks, and removes the object from the storage.
         WARNING: This may potentially break the cluster if the workload
         associated with the resource being unsafe-deleted relies on normal
         deletion flow. Use only if you REALLY know what you are doing.
         The default value is false, and the user must opt in to enable it
         +optional
         
        optional bool ignoreStoreReadErrorWithClusterBreakingPotential = 6;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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