Class Generated.ApplyOptions.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Generated.ApplyOptionsOrBuilder
    Enclosing class:
    Generated.ApplyOptions

    public static final class Generated.ApplyOptions.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.ApplyOptions.Builder>
    implements Generated.ApplyOptionsOrBuilder
     ApplyOptions may be provided when applying an API object.
     FieldManager is required for apply requests.
     ApplyOptions is equivalent to PatchOptions. It is provided as a convenience with documentation
     that speaks specifically to how the options fields relate to apply.
     
    Protobuf type k8s.io.apimachinery.pkg.apis.meta.v1.ApplyOptions
    • 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.ApplyOptions.Builder>
      • clear

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

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

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

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

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

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

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

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

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

        public Generated.ApplyOptions.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.ApplyOptions.Builder>
        Throws:
        IOException
      • 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 = 1;
        Specified by:
        getDryRunList in interface Generated.ApplyOptionsOrBuilder
        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 = 1;
        Specified by:
        getDryRunCount in interface Generated.ApplyOptionsOrBuilder
        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 = 1;
        Specified by:
        getDryRun in interface Generated.ApplyOptionsOrBuilder
        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 = 1;
        Specified by:
        getDryRunBytes in interface Generated.ApplyOptionsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the dryRun at the given index.
      • setDryRun

        public Generated.ApplyOptions.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 = 1;
        Parameters:
        index - The index to set the value at.
        value - The dryRun to set.
        Returns:
        This builder for chaining.
      • addDryRun

        public Generated.ApplyOptions.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 = 1;
        Parameters:
        value - The dryRun to add.
        Returns:
        This builder for chaining.
      • addAllDryRun

        public Generated.ApplyOptions.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 = 1;
        Parameters:
        values - The dryRun to add.
        Returns:
        This builder for chaining.
      • clearDryRun

        public Generated.ApplyOptions.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 = 1;
        Returns:
        This builder for chaining.
      • addDryRunBytes

        public Generated.ApplyOptions.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 = 1;
        Parameters:
        value - The bytes of the dryRun to add.
        Returns:
        This builder for chaining.
      • hasForce

        public boolean hasForce()
         Force is going to "force" Apply requests. It means user will
         re-acquire conflicting fields owned by other people.
         
        optional bool force = 2;
        Specified by:
        hasForce in interface Generated.ApplyOptionsOrBuilder
        Returns:
        Whether the force field is set.
      • getForce

        public boolean getForce()
         Force is going to "force" Apply requests. It means user will
         re-acquire conflicting fields owned by other people.
         
        optional bool force = 2;
        Specified by:
        getForce in interface Generated.ApplyOptionsOrBuilder
        Returns:
        The force.
      • setForce

        public Generated.ApplyOptions.Builder setForce​(boolean value)
         Force is going to "force" Apply requests. It means user will
         re-acquire conflicting fields owned by other people.
         
        optional bool force = 2;
        Parameters:
        value - The force to set.
        Returns:
        This builder for chaining.
      • clearForce

        public Generated.ApplyOptions.Builder clearForce()
         Force is going to "force" Apply requests. It means user will
         re-acquire conflicting fields owned by other people.
         
        optional bool force = 2;
        Returns:
        This builder for chaining.
      • hasFieldManager

        public boolean hasFieldManager()
         fieldManager is a name associated with the actor or entity
         that is making these changes. The value must be less than or
         128 characters long, and only contain printable characters,
         as defined by https://golang.org/pkg/unicode/#IsPrint. This
         field is required.
         
        optional string fieldManager = 3;
        Specified by:
        hasFieldManager in interface Generated.ApplyOptionsOrBuilder
        Returns:
        Whether the fieldManager field is set.
      • getFieldManager

        public String getFieldManager()
         fieldManager is a name associated with the actor or entity
         that is making these changes. The value must be less than or
         128 characters long, and only contain printable characters,
         as defined by https://golang.org/pkg/unicode/#IsPrint. This
         field is required.
         
        optional string fieldManager = 3;
        Specified by:
        getFieldManager in interface Generated.ApplyOptionsOrBuilder
        Returns:
        The fieldManager.
      • getFieldManagerBytes

        public com.google.protobuf.ByteString getFieldManagerBytes()
         fieldManager is a name associated with the actor or entity
         that is making these changes. The value must be less than or
         128 characters long, and only contain printable characters,
         as defined by https://golang.org/pkg/unicode/#IsPrint. This
         field is required.
         
        optional string fieldManager = 3;
        Specified by:
        getFieldManagerBytes in interface Generated.ApplyOptionsOrBuilder
        Returns:
        The bytes for fieldManager.
      • setFieldManager

        public Generated.ApplyOptions.Builder setFieldManager​(String value)
         fieldManager is a name associated with the actor or entity
         that is making these changes. The value must be less than or
         128 characters long, and only contain printable characters,
         as defined by https://golang.org/pkg/unicode/#IsPrint. This
         field is required.
         
        optional string fieldManager = 3;
        Parameters:
        value - The fieldManager to set.
        Returns:
        This builder for chaining.
      • clearFieldManager

        public Generated.ApplyOptions.Builder clearFieldManager()
         fieldManager is a name associated with the actor or entity
         that is making these changes. The value must be less than or
         128 characters long, and only contain printable characters,
         as defined by https://golang.org/pkg/unicode/#IsPrint. This
         field is required.
         
        optional string fieldManager = 3;
        Returns:
        This builder for chaining.
      • setFieldManagerBytes

        public Generated.ApplyOptions.Builder setFieldManagerBytes​(com.google.protobuf.ByteString value)
         fieldManager is a name associated with the actor or entity
         that is making these changes. The value must be less than or
         128 characters long, and only contain printable characters,
         as defined by https://golang.org/pkg/unicode/#IsPrint. This
         field is required.
         
        optional string fieldManager = 3;
        Parameters:
        value - The bytes for fieldManager to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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