Class Generated.Condition

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

    public static final class Generated.Condition
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.ConditionOrBuilder
     Condition contains details for one aspect of the current state of this API Resource.
     ---
     This struct is intended for direct use as an array at the field path .status.conditions.  For example,
    
            type FooStatus struct{
                // Represents the observations of a foo's current state.
                // Known .status.conditions.type are: "Available", "Progressing", and "Degraded"
                // +patchMergeKey=type
                // +patchStrategy=merge
                // +listType=map
                // +listMapKey=type
                Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
    
                // other fields
            }
     
    Protobuf type k8s.io.apimachinery.pkg.apis.meta.v1.Condition
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Generated.Condition.Builder
      Condition contains details for one aspect of the current state of this API Resource.
      • 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
      • hasType

        public boolean hasType()
         type of condition in CamelCase or in foo.example.com/CamelCase.
         ---
         Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
         useful (see .node.status.conditions), the ability to deconflict is important.
         The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
         +required
         +kubebuilder:validation:Required
         +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
         +kubebuilder:validation:MaxLength=316
         
        optional string type = 1;
        Specified by:
        hasType in interface Generated.ConditionOrBuilder
        Returns:
        Whether the type field is set.
      • getType

        public String getType()
         type of condition in CamelCase or in foo.example.com/CamelCase.
         ---
         Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
         useful (see .node.status.conditions), the ability to deconflict is important.
         The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
         +required
         +kubebuilder:validation:Required
         +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
         +kubebuilder:validation:MaxLength=316
         
        optional string type = 1;
        Specified by:
        getType in interface Generated.ConditionOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         type of condition in CamelCase or in foo.example.com/CamelCase.
         ---
         Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
         useful (see .node.status.conditions), the ability to deconflict is important.
         The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
         +required
         +kubebuilder:validation:Required
         +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
         +kubebuilder:validation:MaxLength=316
         
        optional string type = 1;
        Specified by:
        getTypeBytes in interface Generated.ConditionOrBuilder
        Returns:
        The bytes for type.
      • hasStatus

        public boolean hasStatus()
         status of the condition, one of True, False, Unknown.
         +required
         +kubebuilder:validation:Required
         +kubebuilder:validation:Enum=True;False;Unknown
         
        optional string status = 2;
        Specified by:
        hasStatus in interface Generated.ConditionOrBuilder
        Returns:
        Whether the status field is set.
      • getStatus

        public String getStatus()
         status of the condition, one of True, False, Unknown.
         +required
         +kubebuilder:validation:Required
         +kubebuilder:validation:Enum=True;False;Unknown
         
        optional string status = 2;
        Specified by:
        getStatus in interface Generated.ConditionOrBuilder
        Returns:
        The status.
      • getStatusBytes

        public com.google.protobuf.ByteString getStatusBytes()
         status of the condition, one of True, False, Unknown.
         +required
         +kubebuilder:validation:Required
         +kubebuilder:validation:Enum=True;False;Unknown
         
        optional string status = 2;
        Specified by:
        getStatusBytes in interface Generated.ConditionOrBuilder
        Returns:
        The bytes for status.
      • hasObservedGeneration

        public boolean hasObservedGeneration()
         observedGeneration represents the .metadata.generation that the condition was set based upon.
         For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
         with respect to the current state of the instance.
         +optional
         +kubebuilder:validation:Minimum=0
         
        optional int64 observedGeneration = 3;
        Specified by:
        hasObservedGeneration in interface Generated.ConditionOrBuilder
        Returns:
        Whether the observedGeneration field is set.
      • getObservedGeneration

        public long getObservedGeneration()
         observedGeneration represents the .metadata.generation that the condition was set based upon.
         For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
         with respect to the current state of the instance.
         +optional
         +kubebuilder:validation:Minimum=0
         
        optional int64 observedGeneration = 3;
        Specified by:
        getObservedGeneration in interface Generated.ConditionOrBuilder
        Returns:
        The observedGeneration.
      • hasLastTransitionTime

        public boolean hasLastTransitionTime()
         lastTransitionTime is the last time the condition transitioned from one status to another.
         This should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.
         +required
         +kubebuilder:validation:Required
         +kubebuilder:validation:Type=string
         +kubebuilder:validation:Format=date-time
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4;
        Specified by:
        hasLastTransitionTime in interface Generated.ConditionOrBuilder
        Returns:
        Whether the lastTransitionTime field is set.
      • getLastTransitionTime

        public Generated.Time getLastTransitionTime()
         lastTransitionTime is the last time the condition transitioned from one status to another.
         This should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.
         +required
         +kubebuilder:validation:Required
         +kubebuilder:validation:Type=string
         +kubebuilder:validation:Format=date-time
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4;
        Specified by:
        getLastTransitionTime in interface Generated.ConditionOrBuilder
        Returns:
        The lastTransitionTime.
      • getLastTransitionTimeOrBuilder

        public Generated.TimeOrBuilder getLastTransitionTimeOrBuilder()
         lastTransitionTime is the last time the condition transitioned from one status to another.
         This should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.
         +required
         +kubebuilder:validation:Required
         +kubebuilder:validation:Type=string
         +kubebuilder:validation:Format=date-time
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4;
        Specified by:
        getLastTransitionTimeOrBuilder in interface Generated.ConditionOrBuilder
      • hasReason

        public boolean hasReason()
         reason contains a programmatic identifier indicating the reason for the condition's last transition.
         Producers of specific condition types may define expected values and meanings for this field,
         and whether the values are considered a guaranteed API.
         The value should be a CamelCase string.
         This field may not be empty.
         +required
         +kubebuilder:validation:Required
         +kubebuilder:validation:MaxLength=1024
         +kubebuilder:validation:MinLength=1
         +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
         
        optional string reason = 5;
        Specified by:
        hasReason in interface Generated.ConditionOrBuilder
        Returns:
        Whether the reason field is set.
      • getReason

        public String getReason()
         reason contains a programmatic identifier indicating the reason for the condition's last transition.
         Producers of specific condition types may define expected values and meanings for this field,
         and whether the values are considered a guaranteed API.
         The value should be a CamelCase string.
         This field may not be empty.
         +required
         +kubebuilder:validation:Required
         +kubebuilder:validation:MaxLength=1024
         +kubebuilder:validation:MinLength=1
         +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
         
        optional string reason = 5;
        Specified by:
        getReason in interface Generated.ConditionOrBuilder
        Returns:
        The reason.
      • getReasonBytes

        public com.google.protobuf.ByteString getReasonBytes()
         reason contains a programmatic identifier indicating the reason for the condition's last transition.
         Producers of specific condition types may define expected values and meanings for this field,
         and whether the values are considered a guaranteed API.
         The value should be a CamelCase string.
         This field may not be empty.
         +required
         +kubebuilder:validation:Required
         +kubebuilder:validation:MaxLength=1024
         +kubebuilder:validation:MinLength=1
         +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
         
        optional string reason = 5;
        Specified by:
        getReasonBytes in interface Generated.ConditionOrBuilder
        Returns:
        The bytes for reason.
      • hasMessage

        public boolean hasMessage()
         message is a human readable message indicating details about the transition.
         This may be an empty string.
         +required
         +kubebuilder:validation:Required
         +kubebuilder:validation:MaxLength=32768
         
        optional string message = 6;
        Specified by:
        hasMessage in interface Generated.ConditionOrBuilder
        Returns:
        Whether the message field is set.
      • getMessage

        public String getMessage()
         message is a human readable message indicating details about the transition.
         This may be an empty string.
         +required
         +kubebuilder:validation:Required
         +kubebuilder:validation:MaxLength=32768
         
        optional string message = 6;
        Specified by:
        getMessage in interface Generated.ConditionOrBuilder
        Returns:
        The message.
      • getMessageBytes

        public com.google.protobuf.ByteString getMessageBytes()
         message is a human readable message indicating details about the transition.
         This may be an empty string.
         +required
         +kubebuilder:validation:Required
         +kubebuilder:validation:MaxLength=32768
         
        optional string message = 6;
        Specified by:
        getMessageBytes in interface Generated.ConditionOrBuilder
        Returns:
        The bytes for message.
      • 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.Condition parseFrom​(ByteBuffer data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

        public static Generated.Condition parseFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

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

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