Class Generated.Status.Builder

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

    public static final class Generated.Status.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.Status.Builder>
    implements Generated.StatusOrBuilder
     Status is a return value for calls that don't return other objects.
     
    Protobuf type k8s.io.apimachinery.pkg.apis.meta.v1.Status
    • 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.Status.Builder>
      • clear

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

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

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

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

        public Generated.Status.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.Status.Builder>
      • setField

        public Generated.Status.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.Status.Builder>
      • clearField

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

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

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

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

        public Generated.Status.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Generated.Status.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.Status.Builder>
      • mergeFrom

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

        public boolean hasMetadata()
         Standard list metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
        Specified by:
        hasMetadata in interface Generated.StatusOrBuilder
        Returns:
        Whether the metadata field is set.
      • getMetadata

        public Generated.ListMeta getMetadata()
         Standard list metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
        Specified by:
        getMetadata in interface Generated.StatusOrBuilder
        Returns:
        The metadata.
      • setMetadata

        public Generated.Status.Builder setMetadata​(Generated.ListMeta value)
         Standard list metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
      • setMetadata

        public Generated.Status.Builder setMetadata​(Generated.ListMeta.Builder builderForValue)
         Standard list metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
      • mergeMetadata

        public Generated.Status.Builder mergeMetadata​(Generated.ListMeta value)
         Standard list metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
      • clearMetadata

        public Generated.Status.Builder clearMetadata()
         Standard list metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
      • getMetadataBuilder

        public Generated.ListMeta.Builder getMetadataBuilder()
         Standard list metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
      • getMetadataOrBuilder

        public Generated.ListMetaOrBuilder getMetadataOrBuilder()
         Standard list metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
        Specified by:
        getMetadataOrBuilder in interface Generated.StatusOrBuilder
      • hasStatus

        public boolean hasStatus()
         Status of the operation.
         One of: "Success" or "Failure".
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
         +optional
         
        optional string status = 2;
        Specified by:
        hasStatus in interface Generated.StatusOrBuilder
        Returns:
        Whether the status field is set.
      • getStatus

        public String getStatus()
         Status of the operation.
         One of: "Success" or "Failure".
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
         +optional
         
        optional string status = 2;
        Specified by:
        getStatus in interface Generated.StatusOrBuilder
        Returns:
        The status.
      • getStatusBytes

        public com.google.protobuf.ByteString getStatusBytes()
         Status of the operation.
         One of: "Success" or "Failure".
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
         +optional
         
        optional string status = 2;
        Specified by:
        getStatusBytes in interface Generated.StatusOrBuilder
        Returns:
        The bytes for status.
      • setStatus

        public Generated.Status.Builder setStatus​(String value)
         Status of the operation.
         One of: "Success" or "Failure".
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
         +optional
         
        optional string status = 2;
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public Generated.Status.Builder clearStatus()
         Status of the operation.
         One of: "Success" or "Failure".
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
         +optional
         
        optional string status = 2;
        Returns:
        This builder for chaining.
      • setStatusBytes

        public Generated.Status.Builder setStatusBytes​(com.google.protobuf.ByteString value)
         Status of the operation.
         One of: "Success" or "Failure".
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
         +optional
         
        optional string status = 2;
        Parameters:
        value - The bytes for status to set.
        Returns:
        This builder for chaining.
      • hasMessage

        public boolean hasMessage()
         A human-readable description of the status of this operation.
         +optional
         
        optional string message = 3;
        Specified by:
        hasMessage in interface Generated.StatusOrBuilder
        Returns:
        Whether the message field is set.
      • getMessage

        public String getMessage()
         A human-readable description of the status of this operation.
         +optional
         
        optional string message = 3;
        Specified by:
        getMessage in interface Generated.StatusOrBuilder
        Returns:
        The message.
      • getMessageBytes

        public com.google.protobuf.ByteString getMessageBytes()
         A human-readable description of the status of this operation.
         +optional
         
        optional string message = 3;
        Specified by:
        getMessageBytes in interface Generated.StatusOrBuilder
        Returns:
        The bytes for message.
      • setMessage

        public Generated.Status.Builder setMessage​(String value)
         A human-readable description of the status of this operation.
         +optional
         
        optional string message = 3;
        Parameters:
        value - The message to set.
        Returns:
        This builder for chaining.
      • clearMessage

        public Generated.Status.Builder clearMessage()
         A human-readable description of the status of this operation.
         +optional
         
        optional string message = 3;
        Returns:
        This builder for chaining.
      • setMessageBytes

        public Generated.Status.Builder setMessageBytes​(com.google.protobuf.ByteString value)
         A human-readable description of the status of this operation.
         +optional
         
        optional string message = 3;
        Parameters:
        value - The bytes for message to set.
        Returns:
        This builder for chaining.
      • hasReason

        public boolean hasReason()
         A machine-readable description of why this operation is in the
         "Failure" status. If this value is empty there
         is no information available. A Reason clarifies an HTTP status
         code but does not override it.
         +optional
         
        optional string reason = 4;
        Specified by:
        hasReason in interface Generated.StatusOrBuilder
        Returns:
        Whether the reason field is set.
      • getReason

        public String getReason()
         A machine-readable description of why this operation is in the
         "Failure" status. If this value is empty there
         is no information available. A Reason clarifies an HTTP status
         code but does not override it.
         +optional
         
        optional string reason = 4;
        Specified by:
        getReason in interface Generated.StatusOrBuilder
        Returns:
        The reason.
      • getReasonBytes

        public com.google.protobuf.ByteString getReasonBytes()
         A machine-readable description of why this operation is in the
         "Failure" status. If this value is empty there
         is no information available. A Reason clarifies an HTTP status
         code but does not override it.
         +optional
         
        optional string reason = 4;
        Specified by:
        getReasonBytes in interface Generated.StatusOrBuilder
        Returns:
        The bytes for reason.
      • setReason

        public Generated.Status.Builder setReason​(String value)
         A machine-readable description of why this operation is in the
         "Failure" status. If this value is empty there
         is no information available. A Reason clarifies an HTTP status
         code but does not override it.
         +optional
         
        optional string reason = 4;
        Parameters:
        value - The reason to set.
        Returns:
        This builder for chaining.
      • clearReason

        public Generated.Status.Builder clearReason()
         A machine-readable description of why this operation is in the
         "Failure" status. If this value is empty there
         is no information available. A Reason clarifies an HTTP status
         code but does not override it.
         +optional
         
        optional string reason = 4;
        Returns:
        This builder for chaining.
      • setReasonBytes

        public Generated.Status.Builder setReasonBytes​(com.google.protobuf.ByteString value)
         A machine-readable description of why this operation is in the
         "Failure" status. If this value is empty there
         is no information available. A Reason clarifies an HTTP status
         code but does not override it.
         +optional
         
        optional string reason = 4;
        Parameters:
        value - The bytes for reason to set.
        Returns:
        This builder for chaining.
      • hasDetails

        public boolean hasDetails()
         Extended data associated with the reason.  Each reason may define its
         own extended details. This field is optional and the data returned
         is not guaranteed to conform to any schema except that defined by
         the reason type.
         +optional
         +listType=atomic
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails details = 5;
        Specified by:
        hasDetails in interface Generated.StatusOrBuilder
        Returns:
        Whether the details field is set.
      • getDetails

        public Generated.StatusDetails getDetails()
         Extended data associated with the reason.  Each reason may define its
         own extended details. This field is optional and the data returned
         is not guaranteed to conform to any schema except that defined by
         the reason type.
         +optional
         +listType=atomic
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails details = 5;
        Specified by:
        getDetails in interface Generated.StatusOrBuilder
        Returns:
        The details.
      • setDetails

        public Generated.Status.Builder setDetails​(Generated.StatusDetails value)
         Extended data associated with the reason.  Each reason may define its
         own extended details. This field is optional and the data returned
         is not guaranteed to conform to any schema except that defined by
         the reason type.
         +optional
         +listType=atomic
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails details = 5;
      • setDetails

        public Generated.Status.Builder setDetails​(Generated.StatusDetails.Builder builderForValue)
         Extended data associated with the reason.  Each reason may define its
         own extended details. This field is optional and the data returned
         is not guaranteed to conform to any schema except that defined by
         the reason type.
         +optional
         +listType=atomic
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails details = 5;
      • mergeDetails

        public Generated.Status.Builder mergeDetails​(Generated.StatusDetails value)
         Extended data associated with the reason.  Each reason may define its
         own extended details. This field is optional and the data returned
         is not guaranteed to conform to any schema except that defined by
         the reason type.
         +optional
         +listType=atomic
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails details = 5;
      • clearDetails

        public Generated.Status.Builder clearDetails()
         Extended data associated with the reason.  Each reason may define its
         own extended details. This field is optional and the data returned
         is not guaranteed to conform to any schema except that defined by
         the reason type.
         +optional
         +listType=atomic
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails details = 5;
      • getDetailsBuilder

        public Generated.StatusDetails.Builder getDetailsBuilder()
         Extended data associated with the reason.  Each reason may define its
         own extended details. This field is optional and the data returned
         is not guaranteed to conform to any schema except that defined by
         the reason type.
         +optional
         +listType=atomic
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails details = 5;
      • getDetailsOrBuilder

        public Generated.StatusDetailsOrBuilder getDetailsOrBuilder()
         Extended data associated with the reason.  Each reason may define its
         own extended details. This field is optional and the data returned
         is not guaranteed to conform to any schema except that defined by
         the reason type.
         +optional
         +listType=atomic
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails details = 5;
        Specified by:
        getDetailsOrBuilder in interface Generated.StatusOrBuilder
      • hasCode

        public boolean hasCode()
         Suggested HTTP return code for this status, 0 if not set.
         +optional
         
        optional int32 code = 6;
        Specified by:
        hasCode in interface Generated.StatusOrBuilder
        Returns:
        Whether the code field is set.
      • getCode

        public int getCode()
         Suggested HTTP return code for this status, 0 if not set.
         +optional
         
        optional int32 code = 6;
        Specified by:
        getCode in interface Generated.StatusOrBuilder
        Returns:
        The code.
      • setCode

        public Generated.Status.Builder setCode​(int value)
         Suggested HTTP return code for this status, 0 if not set.
         +optional
         
        optional int32 code = 6;
        Parameters:
        value - The code to set.
        Returns:
        This builder for chaining.
      • clearCode

        public Generated.Status.Builder clearCode()
         Suggested HTTP return code for this status, 0 if not set.
         +optional
         
        optional int32 code = 6;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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