Class Generated.StatusCause

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

    public static final class Generated.StatusCause
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Generated.StatusCause.Builder
      StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.
      • 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 FIELD_FIELD_NUMBER  
      static int MESSAGE_FIELD_NUMBER  
      static com.google.protobuf.Parser<Generated.StatusCause> PARSER
      Deprecated.
      static int REASON_FIELD_NUMBER  
      • 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
      • 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.
      • 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.
      • 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.
      • 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.StatusCause parseFrom​(ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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