Class Generated.UpdateOptions

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

    public static final class Generated.UpdateOptions
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.UpdateOptionsOrBuilder
     UpdateOptions may be provided when updating an API object.
     All fields in UpdateOptions should also be present in PatchOptions.
     
    Protobuf type k8s.io.apimachinery.pkg.apis.meta.v1.UpdateOptions
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Generated.UpdateOptions.Builder
      UpdateOptions may be provided when updating 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DRYRUN_FIELD_NUMBER  
      static int FIELDMANAGER_FIELD_NUMBER  
      static int FIELDVALIDATION_FIELD_NUMBER  
      static com.google.protobuf.Parser<Generated.UpdateOptions> PARSER
      Deprecated.
      • Fields inherited from class com.google.protobuf.GeneratedMessageV3

        alwaysUseFieldBuilders, unknownFields
      • Fields inherited from class com.google.protobuf.AbstractMessage

        memoizedSize
      • Fields inherited from class com.google.protobuf.AbstractMessageLite

        memoizedHashCode
    • 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.UpdateOptionsOrBuilder
        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.UpdateOptionsOrBuilder
        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.UpdateOptionsOrBuilder
        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.UpdateOptionsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the dryRun at the given index.
      • 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.
         +optional
         
        optional string fieldManager = 2;
        Specified by:
        hasFieldManager in interface Generated.UpdateOptionsOrBuilder
        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.
         +optional
         
        optional string fieldManager = 2;
        Specified by:
        getFieldManager in interface Generated.UpdateOptionsOrBuilder
        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.
         +optional
         
        optional string fieldManager = 2;
        Specified by:
        getFieldManagerBytes in interface Generated.UpdateOptionsOrBuilder
        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 = 3;
        Specified by:
        hasFieldValidation in interface Generated.UpdateOptionsOrBuilder
        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 = 3;
        Specified by:
        getFieldValidation in interface Generated.UpdateOptionsOrBuilder
        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 = 3;
        Specified by:
        getFieldValidationBytes in interface Generated.UpdateOptionsOrBuilder
        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.UpdateOptions parseFrom​(ByteBuffer data)
                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<Generated.UpdateOptions> 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.UpdateOptions getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder