Class Generated.Event

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

    public static final class Generated.Event
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.EventOrBuilder
     Event is a report of an event somewhere in the cluster.  Events
     have a limited retention time and triggers and messages may evolve
     with time.  Event consumers should not rely on the timing of an event
     with a given Reason reflecting a consistent underlying trigger, or the
     continued existence of events with that Reason.  Events should be
     treated as informative, best-effort, supplemental data.
     
    Protobuf type k8s.io.api.core.v1.Event
    See Also:
    Serialized Form
    • 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
      • hasMetadata

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

        public Generated.ObjectMeta getMetadata()
         Standard object's metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
        Specified by:
        getMetadata in interface Generated.EventOrBuilder
        Returns:
        The metadata.
      • hasInvolvedObject

        public boolean hasInvolvedObject()
         The object that this event is about.
         
        optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2;
        Specified by:
        hasInvolvedObject in interface Generated.EventOrBuilder
        Returns:
        Whether the involvedObject field is set.
      • hasReason

        public boolean hasReason()
         This should be a short, machine understandable string that gives the reason
         for the transition into the object's current status.
         TODO: provide exact specification for format.
         +optional
         
        optional string reason = 3;
        Specified by:
        hasReason in interface Generated.EventOrBuilder
        Returns:
        Whether the reason field is set.
      • getReason

        public String getReason()
         This should be a short, machine understandable string that gives the reason
         for the transition into the object's current status.
         TODO: provide exact specification for format.
         +optional
         
        optional string reason = 3;
        Specified by:
        getReason in interface Generated.EventOrBuilder
        Returns:
        The reason.
      • getReasonBytes

        public com.google.protobuf.ByteString getReasonBytes()
         This should be a short, machine understandable string that gives the reason
         for the transition into the object's current status.
         TODO: provide exact specification for format.
         +optional
         
        optional string reason = 3;
        Specified by:
        getReasonBytes in interface Generated.EventOrBuilder
        Returns:
        The bytes for reason.
      • hasMessage

        public boolean hasMessage()
         A human-readable description of the status of this operation.
         TODO: decide on maximum length.
         +optional
         
        optional string message = 4;
        Specified by:
        hasMessage in interface Generated.EventOrBuilder
        Returns:
        Whether the message field is set.
      • getMessage

        public String getMessage()
         A human-readable description of the status of this operation.
         TODO: decide on maximum length.
         +optional
         
        optional string message = 4;
        Specified by:
        getMessage in interface Generated.EventOrBuilder
        Returns:
        The message.
      • getMessageBytes

        public com.google.protobuf.ByteString getMessageBytes()
         A human-readable description of the status of this operation.
         TODO: decide on maximum length.
         +optional
         
        optional string message = 4;
        Specified by:
        getMessageBytes in interface Generated.EventOrBuilder
        Returns:
        The bytes for message.
      • hasSource

        public boolean hasSource()
         The component reporting this event. Should be a short machine understandable string.
         +optional
         
        optional .k8s.io.api.core.v1.EventSource source = 5;
        Specified by:
        hasSource in interface Generated.EventOrBuilder
        Returns:
        Whether the source field is set.
      • getSource

        public Generated.EventSource getSource()
         The component reporting this event. Should be a short machine understandable string.
         +optional
         
        optional .k8s.io.api.core.v1.EventSource source = 5;
        Specified by:
        getSource in interface Generated.EventOrBuilder
        Returns:
        The source.
      • hasFirstTimestamp

        public boolean hasFirstTimestamp()
         The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6;
        Specified by:
        hasFirstTimestamp in interface Generated.EventOrBuilder
        Returns:
        Whether the firstTimestamp field is set.
      • getFirstTimestamp

        public Generated.Time getFirstTimestamp()
         The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6;
        Specified by:
        getFirstTimestamp in interface Generated.EventOrBuilder
        Returns:
        The firstTimestamp.
      • hasLastTimestamp

        public boolean hasLastTimestamp()
         The time at which the most recent occurrence of this event was recorded.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7;
        Specified by:
        hasLastTimestamp in interface Generated.EventOrBuilder
        Returns:
        Whether the lastTimestamp field is set.
      • getLastTimestamp

        public Generated.Time getLastTimestamp()
         The time at which the most recent occurrence of this event was recorded.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7;
        Specified by:
        getLastTimestamp in interface Generated.EventOrBuilder
        Returns:
        The lastTimestamp.
      • hasCount

        public boolean hasCount()
         The number of times this event has occurred.
         +optional
         
        optional int32 count = 8;
        Specified by:
        hasCount in interface Generated.EventOrBuilder
        Returns:
        Whether the count field is set.
      • getCount

        public int getCount()
         The number of times this event has occurred.
         +optional
         
        optional int32 count = 8;
        Specified by:
        getCount in interface Generated.EventOrBuilder
        Returns:
        The count.
      • hasType

        public boolean hasType()
         Type of this event (Normal, Warning), new types could be added in the future
         +optional
         
        optional string type = 9;
        Specified by:
        hasType in interface Generated.EventOrBuilder
        Returns:
        Whether the type field is set.
      • getType

        public String getType()
         Type of this event (Normal, Warning), new types could be added in the future
         +optional
         
        optional string type = 9;
        Specified by:
        getType in interface Generated.EventOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         Type of this event (Normal, Warning), new types could be added in the future
         +optional
         
        optional string type = 9;
        Specified by:
        getTypeBytes in interface Generated.EventOrBuilder
        Returns:
        The bytes for type.
      • hasEventTime

        public boolean hasEventTime()
         Time when this Event was first observed.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10;
        Specified by:
        hasEventTime in interface Generated.EventOrBuilder
        Returns:
        Whether the eventTime field is set.
      • hasSeries

        public boolean hasSeries()
         Data about the Event series this event represents or nil if it's a singleton Event.
         +optional
         
        optional .k8s.io.api.core.v1.EventSeries series = 11;
        Specified by:
        hasSeries in interface Generated.EventOrBuilder
        Returns:
        Whether the series field is set.
      • getSeries

        public Generated.EventSeries getSeries()
         Data about the Event series this event represents or nil if it's a singleton Event.
         +optional
         
        optional .k8s.io.api.core.v1.EventSeries series = 11;
        Specified by:
        getSeries in interface Generated.EventOrBuilder
        Returns:
        The series.
      • hasAction

        public boolean hasAction()
         What action was taken/failed regarding to the Regarding object.
         +optional
         
        optional string action = 12;
        Specified by:
        hasAction in interface Generated.EventOrBuilder
        Returns:
        Whether the action field is set.
      • getAction

        public String getAction()
         What action was taken/failed regarding to the Regarding object.
         +optional
         
        optional string action = 12;
        Specified by:
        getAction in interface Generated.EventOrBuilder
        Returns:
        The action.
      • getActionBytes

        public com.google.protobuf.ByteString getActionBytes()
         What action was taken/failed regarding to the Regarding object.
         +optional
         
        optional string action = 12;
        Specified by:
        getActionBytes in interface Generated.EventOrBuilder
        Returns:
        The bytes for action.
      • hasRelated

        public boolean hasRelated()
         Optional secondary object for more complex actions.
         +optional
         
        optional .k8s.io.api.core.v1.ObjectReference related = 13;
        Specified by:
        hasRelated in interface Generated.EventOrBuilder
        Returns:
        Whether the related field is set.
      • hasReportingComponent

        public boolean hasReportingComponent()
         Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
         +optional
         
        optional string reportingComponent = 14;
        Specified by:
        hasReportingComponent in interface Generated.EventOrBuilder
        Returns:
        Whether the reportingComponent field is set.
      • getReportingComponent

        public String getReportingComponent()
         Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
         +optional
         
        optional string reportingComponent = 14;
        Specified by:
        getReportingComponent in interface Generated.EventOrBuilder
        Returns:
        The reportingComponent.
      • getReportingComponentBytes

        public com.google.protobuf.ByteString getReportingComponentBytes()
         Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
         +optional
         
        optional string reportingComponent = 14;
        Specified by:
        getReportingComponentBytes in interface Generated.EventOrBuilder
        Returns:
        The bytes for reportingComponent.
      • hasReportingInstance

        public boolean hasReportingInstance()
         ID of the controller instance, e.g. `kubelet-xyzf`.
         +optional
         
        optional string reportingInstance = 15;
        Specified by:
        hasReportingInstance in interface Generated.EventOrBuilder
        Returns:
        Whether the reportingInstance field is set.
      • getReportingInstance

        public String getReportingInstance()
         ID of the controller instance, e.g. `kubelet-xyzf`.
         +optional
         
        optional string reportingInstance = 15;
        Specified by:
        getReportingInstance in interface Generated.EventOrBuilder
        Returns:
        The reportingInstance.
      • getReportingInstanceBytes

        public com.google.protobuf.ByteString getReportingInstanceBytes()
         ID of the controller instance, e.g. `kubelet-xyzf`.
         +optional
         
        optional string reportingInstance = 15;
        Specified by:
        getReportingInstanceBytes in interface Generated.EventOrBuilder
        Returns:
        The bytes for reportingInstance.
      • 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.Event parseFrom​(ByteBuffer data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        public static com.google.protobuf.Parser<Generated.Event> parser()
      • getParserForType

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