Class Generated.StatusCause.Builder

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

    public static final class Generated.StatusCause.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.StatusCause.Builder>
    implements Generated.StatusCauseOrBuilder
     StatusCause provides more information about an api.Status failure, including
     cases when multiple errors are encountered.
     
    Protobuf type k8s.io.apimachinery.pkg.apis.meta.v1.StatusCause
    • 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.StatusCause.Builder>
      • clear

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

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

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

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

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

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

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

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

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

        public Generated.StatusCause.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.StatusCause.Builder>
        Throws:
        IOException
      • hasReason

        public boolean hasReason()
         A machine-readable description of the cause of the error. If this value is
         empty there is no information available.
         +optional
         
        optional string reason = 1;
        Specified by:
        hasReason in interface Generated.StatusCauseOrBuilder
        Returns:
        Whether the reason field is set.
      • getReason

        public String getReason()
         A machine-readable description of the cause of the error. If this value is
         empty there is no information available.
         +optional
         
        optional string reason = 1;
        Specified by:
        getReason in interface Generated.StatusCauseOrBuilder
        Returns:
        The reason.
      • getReasonBytes

        public com.google.protobuf.ByteString getReasonBytes()
         A machine-readable description of the cause of the error. If this value is
         empty there is no information available.
         +optional
         
        optional string reason = 1;
        Specified by:
        getReasonBytes in interface Generated.StatusCauseOrBuilder
        Returns:
        The bytes for reason.
      • setReason

        public Generated.StatusCause.Builder setReason​(String value)
         A machine-readable description of the cause of the error. If this value is
         empty there is no information available.
         +optional
         
        optional string reason = 1;
        Parameters:
        value - The reason to set.
        Returns:
        This builder for chaining.
      • clearReason

        public Generated.StatusCause.Builder clearReason()
         A machine-readable description of the cause of the error. If this value is
         empty there is no information available.
         +optional
         
        optional string reason = 1;
        Returns:
        This builder for chaining.
      • setReasonBytes

        public Generated.StatusCause.Builder setReasonBytes​(com.google.protobuf.ByteString value)
         A machine-readable description of the cause of the error. If this value is
         empty there is no information available.
         +optional
         
        optional string reason = 1;
        Parameters:
        value - The bytes for reason to set.
        Returns:
        This builder for chaining.
      • hasMessage

        public boolean hasMessage()
         A human-readable description of the cause of the error.  This field may be
         presented as-is to a reader.
         +optional
         
        optional string message = 2;
        Specified by:
        hasMessage in interface Generated.StatusCauseOrBuilder
        Returns:
        Whether the message field is set.
      • getMessage

        public String getMessage()
         A human-readable description of the cause of the error.  This field may be
         presented as-is to a reader.
         +optional
         
        optional string message = 2;
        Specified by:
        getMessage in interface Generated.StatusCauseOrBuilder
        Returns:
        The message.
      • getMessageBytes

        public com.google.protobuf.ByteString getMessageBytes()
         A human-readable description of the cause of the error.  This field may be
         presented as-is to a reader.
         +optional
         
        optional string message = 2;
        Specified by:
        getMessageBytes in interface Generated.StatusCauseOrBuilder
        Returns:
        The bytes for message.
      • setMessage

        public Generated.StatusCause.Builder setMessage​(String value)
         A human-readable description of the cause of the error.  This field may be
         presented as-is to a reader.
         +optional
         
        optional string message = 2;
        Parameters:
        value - The message to set.
        Returns:
        This builder for chaining.
      • clearMessage

        public Generated.StatusCause.Builder clearMessage()
         A human-readable description of the cause of the error.  This field may be
         presented as-is to a reader.
         +optional
         
        optional string message = 2;
        Returns:
        This builder for chaining.
      • setMessageBytes

        public Generated.StatusCause.Builder setMessageBytes​(com.google.protobuf.ByteString value)
         A human-readable description of the cause of the error.  This field may be
         presented as-is to a reader.
         +optional
         
        optional string message = 2;
        Parameters:
        value - The bytes for message to set.
        Returns:
        This builder for chaining.
      • hasField

        public boolean hasField()
         The field of the resource that has caused this error, as named by its JSON
         serialization. May include dot and postfix notation for nested attributes.
         Arrays are zero-indexed.  Fields may appear more than once in an array of
         causes due to fields having multiple errors.
         Optional.
        
         Examples:
           "name" - the field "name" on the current resource
           "items[0].name" - the field "name" on the first array entry in "items"
         +optional
         
        optional string field = 3;
        Specified by:
        hasField in interface Generated.StatusCauseOrBuilder
        Returns:
        Whether the field field is set.
      • getField

        public String getField()
         The field of the resource that has caused this error, as named by its JSON
         serialization. May include dot and postfix notation for nested attributes.
         Arrays are zero-indexed.  Fields may appear more than once in an array of
         causes due to fields having multiple errors.
         Optional.
        
         Examples:
           "name" - the field "name" on the current resource
           "items[0].name" - the field "name" on the first array entry in "items"
         +optional
         
        optional string field = 3;
        Specified by:
        getField in interface Generated.StatusCauseOrBuilder
        Returns:
        The field.
      • getFieldBytes

        public com.google.protobuf.ByteString getFieldBytes()
         The field of the resource that has caused this error, as named by its JSON
         serialization. May include dot and postfix notation for nested attributes.
         Arrays are zero-indexed.  Fields may appear more than once in an array of
         causes due to fields having multiple errors.
         Optional.
        
         Examples:
           "name" - the field "name" on the current resource
           "items[0].name" - the field "name" on the first array entry in "items"
         +optional
         
        optional string field = 3;
        Specified by:
        getFieldBytes in interface Generated.StatusCauseOrBuilder
        Returns:
        The bytes for field.
      • setField

        public Generated.StatusCause.Builder setField​(String value)
         The field of the resource that has caused this error, as named by its JSON
         serialization. May include dot and postfix notation for nested attributes.
         Arrays are zero-indexed.  Fields may appear more than once in an array of
         causes due to fields having multiple errors.
         Optional.
        
         Examples:
           "name" - the field "name" on the current resource
           "items[0].name" - the field "name" on the first array entry in "items"
         +optional
         
        optional string field = 3;
        Parameters:
        value - The field to set.
        Returns:
        This builder for chaining.
      • clearField

        public Generated.StatusCause.Builder clearField()
         The field of the resource that has caused this error, as named by its JSON
         serialization. May include dot and postfix notation for nested attributes.
         Arrays are zero-indexed.  Fields may appear more than once in an array of
         causes due to fields having multiple errors.
         Optional.
        
         Examples:
           "name" - the field "name" on the current resource
           "items[0].name" - the field "name" on the first array entry in "items"
         +optional
         
        optional string field = 3;
        Returns:
        This builder for chaining.
      • setFieldBytes

        public Generated.StatusCause.Builder setFieldBytes​(com.google.protobuf.ByteString value)
         The field of the resource that has caused this error, as named by its JSON
         serialization. May include dot and postfix notation for nested attributes.
         Arrays are zero-indexed.  Fields may appear more than once in an array of
         causes due to fields having multiple errors.
         Optional.
        
         Examples:
           "name" - the field "name" on the current resource
           "items[0].name" - the field "name" on the first array entry in "items"
         +optional
         
        optional string field = 3;
        Parameters:
        value - The bytes for field to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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