Class Generated.DeleteOptions
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.apimachinery.pkg.apis.meta.v1.Generated.DeleteOptions
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Generated.DeleteOptionsOrBuilder
- Enclosing class:
- Generated
public static final class Generated.DeleteOptions extends com.google.protobuf.GeneratedMessageV3 implements Generated.DeleteOptionsOrBuilder
DeleteOptions may be provided when deleting an API object.
Protobuf typek8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.DeleteOptions.BuilderDeleteOptions may be provided when deleting an API object.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDRYRUN_FIELD_NUMBERstatic intGRACEPERIODSECONDS_FIELD_NUMBERstatic intIGNORESTOREREADERRORWITHCLUSTERBREAKINGPOTENTIAL_FIELD_NUMBERstatic intORPHANDEPENDENTS_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.DeleteOptions>PARSERDeprecated.static intPRECONDITIONS_FIELD_NUMBERstatic intPROPAGATIONPOLICY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static Generated.DeleteOptionsgetDefaultInstance()Generated.DeleteOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDryRun(int index)When present, indicates that modifications should not be persisted.com.google.protobuf.ByteStringgetDryRunBytes(int index)When present, indicates that modifications should not be persisted.intgetDryRunCount()When present, indicates that modifications should not be persisted.com.google.protobuf.ProtocolStringListgetDryRunList()When present, indicates that modifications should not be persisted.longgetGracePeriodSeconds()The duration in seconds before the object should be deleted.booleangetIgnoreStoreReadErrorWithClusterBreakingPotential()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.booleangetOrphanDependents()Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.com.google.protobuf.Parser<Generated.DeleteOptions>getParserForType()Generated.PreconditionsgetPreconditions()Must be fulfilled before a deletion is carried out.Generated.PreconditionsOrBuildergetPreconditionsOrBuilder()Must be fulfilled before a deletion is carried out.StringgetPropagationPolicy()Whether and how garbage collection will be performed.com.google.protobuf.ByteStringgetPropagationPolicyBytes()Whether and how garbage collection will be performed.intgetSerializedSize()booleanhasGracePeriodSeconds()The duration in seconds before the object should be deleted.inthashCode()booleanhasIgnoreStoreReadErrorWithClusterBreakingPotential()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.booleanhasOrphanDependents()Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.booleanhasPreconditions()Must be fulfilled before a deletion is carried out.booleanhasPropagationPolicy()Whether and how garbage collection will be performed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Generated.DeleteOptions.BuildernewBuilder()static Generated.DeleteOptions.BuildernewBuilder(Generated.DeleteOptions prototype)Generated.DeleteOptions.BuildernewBuilderForType()protected Generated.DeleteOptions.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.DeleteOptionsparseDelimitedFrom(InputStream input)static Generated.DeleteOptionsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.DeleteOptionsparseFrom(byte[] data)static Generated.DeleteOptionsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.DeleteOptionsparseFrom(com.google.protobuf.ByteString data)static Generated.DeleteOptionsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.DeleteOptionsparseFrom(com.google.protobuf.CodedInputStream input)static Generated.DeleteOptionsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.DeleteOptionsparseFrom(InputStream input)static Generated.DeleteOptionsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.DeleteOptionsparseFrom(ByteBuffer data)static Generated.DeleteOptionsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.DeleteOptions>parser()Generated.DeleteOptions.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
GRACEPERIODSECONDS_FIELD_NUMBER
public static final int GRACEPERIODSECONDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRECONDITIONS_FIELD_NUMBER
public static final int PRECONDITIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ORPHANDEPENDENTS_FIELD_NUMBER
public static final int ORPHANDEPENDENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROPAGATIONPOLICY_FIELD_NUMBER
public static final int PROPAGATIONPOLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DRYRUN_FIELD_NUMBER
public static final int DRYRUN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IGNORESTOREREADERRORWITHCLUSTERBREAKINGPOTENTIAL_FIELD_NUMBER
public static final int IGNORESTOREREADERRORWITHCLUSTERBREAKINGPOTENTIAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.DeleteOptions> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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:
hasGracePeriodSecondsin interfaceGenerated.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:
getGracePeriodSecondsin interfaceGenerated.DeleteOptionsOrBuilder- Returns:
- The gracePeriodSeconds.
-
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:
hasPreconditionsin interfaceGenerated.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:
getPreconditionsin interfaceGenerated.DeleteOptionsOrBuilder- Returns:
- The preconditions.
-
getPreconditionsOrBuilder
public Generated.PreconditionsOrBuilder getPreconditionsOrBuilder()
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:
getPreconditionsOrBuilderin interfaceGenerated.DeleteOptionsOrBuilder
-
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:
hasOrphanDependentsin interfaceGenerated.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:
getOrphanDependentsin interfaceGenerated.DeleteOptionsOrBuilder- Returns:
- The orphanDependents.
-
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:
hasPropagationPolicyin interfaceGenerated.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:
getPropagationPolicyin interfaceGenerated.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:
getPropagationPolicyBytesin interfaceGenerated.DeleteOptionsOrBuilder- Returns:
- The bytes for propagationPolicy.
-
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:
getDryRunListin interfaceGenerated.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:
getDryRunCountin interfaceGenerated.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:
getDryRunin interfaceGenerated.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:
getDryRunBytesin interfaceGenerated.DeleteOptionsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the dryRun at the given index.
-
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:
hasIgnoreStoreReadErrorWithClusterBreakingPotentialin interfaceGenerated.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:
getIgnoreStoreReadErrorWithClusterBreakingPotentialin interfaceGenerated.DeleteOptionsOrBuilder- Returns:
- The ignoreStoreReadErrorWithClusterBreakingPotential.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Generated.DeleteOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.DeleteOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.DeleteOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.DeleteOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.DeleteOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.DeleteOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.DeleteOptions parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.DeleteOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.DeleteOptions parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.DeleteOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.DeleteOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.DeleteOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.DeleteOptions.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.DeleteOptions.Builder newBuilder()
-
newBuilder
public static Generated.DeleteOptions.Builder newBuilder(Generated.DeleteOptions prototype)
-
toBuilder
public Generated.DeleteOptions.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.DeleteOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.DeleteOptions getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.DeleteOptions> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.DeleteOptions> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.DeleteOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-