Class Meta.DeleteOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Meta.DeleteOptions.Builder>
io.kubernetes.client.proto.Meta.DeleteOptions.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Meta.DeleteOptionsOrBuilder, Cloneable
Enclosing class:
Meta.DeleteOptions

public static final class Meta.DeleteOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Meta.DeleteOptions.Builder> implements Meta.DeleteOptionsOrBuilder
 DeleteOptions may be provided when deleting an API object.
 
Protobuf type k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions
  • 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<Meta.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<Meta.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<Meta.DeleteOptions.Builder>
    • getDefaultInstanceForType

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

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

      public Meta.DeleteOptions buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<Meta.DeleteOptions.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public Meta.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<Meta.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 Meta.DeleteOptionsOrBuilder
    • 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 Meta.DeleteOptionsOrBuilder
    • setGracePeriodSeconds

      public Meta.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;
    • clearGracePeriodSeconds

      public Meta.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;
    • 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 Meta.DeleteOptionsOrBuilder
    • getPreconditions

      public Meta.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 Meta.DeleteOptionsOrBuilder
    • setPreconditions

      public Meta.DeleteOptions.Builder setPreconditions(Meta.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 Meta.DeleteOptions.Builder setPreconditions(Meta.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 Meta.DeleteOptions.Builder mergePreconditions(Meta.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 Meta.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 Meta.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;
    • getPreconditionsOrBuilder

      public Meta.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:
      getPreconditionsOrBuilder in interface Meta.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:
      hasOrphanDependents in interface Meta.DeleteOptionsOrBuilder
    • 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 Meta.DeleteOptionsOrBuilder
    • setOrphanDependents

      public Meta.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;
    • clearOrphanDependents

      public Meta.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;
    • 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 Meta.DeleteOptionsOrBuilder
    • 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 Meta.DeleteOptionsOrBuilder
    • 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 Meta.DeleteOptionsOrBuilder
    • setPropagationPolicy

      public Meta.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;
    • clearPropagationPolicy

      public Meta.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;
    • setPropagationPolicyBytes

      public Meta.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;
    • 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
       
      repeated string dryRun = 5;
      Specified by:
      getDryRunList in interface Meta.DeleteOptionsOrBuilder
    • 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
       
      repeated string dryRun = 5;
      Specified by:
      getDryRunCount in interface Meta.DeleteOptionsOrBuilder
    • 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
       
      repeated string dryRun = 5;
      Specified by:
      getDryRun in interface Meta.DeleteOptionsOrBuilder
    • 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
       
      repeated string dryRun = 5;
      Specified by:
      getDryRunBytes in interface Meta.DeleteOptionsOrBuilder
    • setDryRun

      public Meta.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
       
      repeated string dryRun = 5;
    • addDryRun

      public Meta.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
       
      repeated string dryRun = 5;
    • addAllDryRun

      public Meta.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
       
      repeated string dryRun = 5;
    • clearDryRun

      public Meta.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
       
      repeated string dryRun = 5;
    • addDryRunBytes

      public Meta.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
       
      repeated string dryRun = 5;
    • setUnknownFields

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

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