Class Generated.PatchOptions

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Generated.PatchOptionsOrBuilder
    Enclosing class:
    Generated

    public static final class Generated.PatchOptions
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.PatchOptionsOrBuilder
     PatchOptions may be provided when patching an API object.
     PatchOptions is meant to be a superset of UpdateOptions.
     
    Protobuf type k8s.io.apimachinery.pkg.apis.meta.v1.PatchOptions
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Generated.PatchOptions.Builder
      PatchOptions may be provided when patching 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
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.PatchOptionsOrBuilder
        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.PatchOptionsOrBuilder
        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.PatchOptionsOrBuilder
        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.PatchOptionsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the dryRun at the given index.
      • hasForce

        public boolean hasForce()
         Force is going to "force" Apply requests. It means user will
         re-acquire conflicting fields owned by other people. Force
         flag must be unset for non-apply patch requests.
         +optional
         
        optional bool force = 2;
        Specified by:
        hasForce in interface Generated.PatchOptionsOrBuilder
        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. Force
         flag must be unset for non-apply patch requests.
         +optional
         
        optional bool force = 2;
        Specified by:
        getForce in interface Generated.PatchOptionsOrBuilder
        Returns:
        The force.
      • 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 for apply requests
         (application/apply-patch) but optional for non-apply patch
         types (JsonPatch, MergePatch, StrategicMergePatch).
         +optional
         
        optional string fieldManager = 3;
        Specified by:
        hasFieldManager in interface Generated.PatchOptionsOrBuilder
        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 for apply requests
         (application/apply-patch) but optional for non-apply patch
         types (JsonPatch, MergePatch, StrategicMergePatch).
         +optional
         
        optional string fieldManager = 3;
        Specified by:
        getFieldManager in interface Generated.PatchOptionsOrBuilder
        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 for apply requests
         (application/apply-patch) but optional for non-apply patch
         types (JsonPatch, MergePatch, StrategicMergePatch).
         +optional
         
        optional string fieldManager = 3;
        Specified by:
        getFieldManagerBytes in interface Generated.PatchOptionsOrBuilder
        Returns:
        The bytes for fieldManager.
      • hasFieldValidation

        public boolean hasFieldValidation()
         fieldValidation instructs the server on how to handle
         objects in the request (POST/PUT/PATCH) containing unknown
         or duplicate fields. Valid values are:
         - Ignore: This will ignore any unknown fields that are silently
         dropped from the object, and will ignore all but the last duplicate
         field that the decoder encounters. This is the default behavior
         prior to v1.23.
         - Warn: This will send a warning via the standard warning response
         header for each unknown field that is dropped from the object, and
         for each duplicate field that is encountered. The request will
         still succeed if there are no other errors, and will only persist
         the last of any duplicate fields. This is the default in v1.23+
         - Strict: This will fail the request with a BadRequest error if
         any unknown fields would be dropped from the object, or if any
         duplicate fields are present. The error returned from the server
         will contain all unknown and duplicate fields encountered.
         +optional
         
        optional string fieldValidation = 4;
        Specified by:
        hasFieldValidation in interface Generated.PatchOptionsOrBuilder
        Returns:
        Whether the fieldValidation field is set.
      • getFieldValidation

        public String getFieldValidation()
         fieldValidation instructs the server on how to handle
         objects in the request (POST/PUT/PATCH) containing unknown
         or duplicate fields. Valid values are:
         - Ignore: This will ignore any unknown fields that are silently
         dropped from the object, and will ignore all but the last duplicate
         field that the decoder encounters. This is the default behavior
         prior to v1.23.
         - Warn: This will send a warning via the standard warning response
         header for each unknown field that is dropped from the object, and
         for each duplicate field that is encountered. The request will
         still succeed if there are no other errors, and will only persist
         the last of any duplicate fields. This is the default in v1.23+
         - Strict: This will fail the request with a BadRequest error if
         any unknown fields would be dropped from the object, or if any
         duplicate fields are present. The error returned from the server
         will contain all unknown and duplicate fields encountered.
         +optional
         
        optional string fieldValidation = 4;
        Specified by:
        getFieldValidation in interface Generated.PatchOptionsOrBuilder
        Returns:
        The fieldValidation.
      • getFieldValidationBytes

        public com.google.protobuf.ByteString getFieldValidationBytes()
         fieldValidation instructs the server on how to handle
         objects in the request (POST/PUT/PATCH) containing unknown
         or duplicate fields. Valid values are:
         - Ignore: This will ignore any unknown fields that are silently
         dropped from the object, and will ignore all but the last duplicate
         field that the decoder encounters. This is the default behavior
         prior to v1.23.
         - Warn: This will send a warning via the standard warning response
         header for each unknown field that is dropped from the object, and
         for each duplicate field that is encountered. The request will
         still succeed if there are no other errors, and will only persist
         the last of any duplicate fields. This is the default in v1.23+
         - Strict: This will fail the request with a BadRequest error if
         any unknown fields would be dropped from the object, or if any
         duplicate fields are present. The error returned from the server
         will contain all unknown and duplicate fields encountered.
         +optional
         
        optional string fieldValidation = 4;
        Specified by:
        getFieldValidationBytes in interface Generated.PatchOptionsOrBuilder
        Returns:
        The bytes for fieldValidation.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Generated.PatchOptions parseFrom​(ByteBuffer data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.PatchOptions parseFrom​(ByteBuffer data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.PatchOptions parseFrom​(com.google.protobuf.ByteString data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.PatchOptions 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.PatchOptions parseFrom​(byte[] data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.PatchOptions parseFrom​(byte[] data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public Generated.PatchOptions.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Generated.PatchOptions.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Generated.PatchOptions.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Generated.PatchOptions> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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