Class BuildEvent

  • All Implemented Interfaces:
    BuildEventOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class BuildEvent
    extends com.google.protobuf.GeneratedMessageV3
    implements BuildEventOrBuilder
     An event representing some state change that occurred in the build. This
     message does not include field for uniquely identifying an event.
     
    Protobuf type google.devtools.build.v1.BuildEvent
    See Also:
    Serialized Form
    • Field Detail

      • EVENT_TIME_FIELD_NUMBER

        public static final int EVENT_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INVOCATION_ATTEMPT_STARTED_FIELD_NUMBER

        public static final int INVOCATION_ATTEMPT_STARTED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INVOCATION_ATTEMPT_FINISHED_FIELD_NUMBER

        public static final int INVOCATION_ATTEMPT_FINISHED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BUILD_ENQUEUED_FIELD_NUMBER

        public static final int BUILD_ENQUEUED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BUILD_FINISHED_FIELD_NUMBER

        public static final int BUILD_FINISHED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONSOLE_OUTPUT_FIELD_NUMBER

        public static final int CONSOLE_OUTPUT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • COMPONENT_STREAM_FINISHED_FIELD_NUMBER

        public static final int COMPONENT_STREAM_FINISHED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BAZEL_EVENT_FIELD_NUMBER

        public static final int BAZEL_EVENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BUILD_EXECUTION_EVENT_FIELD_NUMBER

        public static final int BUILD_EXECUTION_EVENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SOURCE_FETCH_EVENT_FIELD_NUMBER

        public static final int SOURCE_FETCH_EVENT_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields 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
      • hasEventTime

        public boolean hasEventTime()
         The timestamp of this event.
         
        .google.protobuf.Timestamp event_time = 1;
        Specified by:
        hasEventTime in interface BuildEventOrBuilder
        Returns:
        Whether the eventTime field is set.
      • getEventTime

        public com.google.protobuf.Timestamp getEventTime()
         The timestamp of this event.
         
        .google.protobuf.Timestamp event_time = 1;
        Specified by:
        getEventTime in interface BuildEventOrBuilder
        Returns:
        The eventTime.
      • getEventTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder()
         The timestamp of this event.
         
        .google.protobuf.Timestamp event_time = 1;
        Specified by:
        getEventTimeOrBuilder in interface BuildEventOrBuilder
      • hasInvocationAttemptStarted

        public boolean hasInvocationAttemptStarted()
         An invocation attempt has started.
         
        .google.devtools.build.v1.BuildEvent.InvocationAttemptStarted invocation_attempt_started = 51;
        Specified by:
        hasInvocationAttemptStarted in interface BuildEventOrBuilder
        Returns:
        Whether the invocationAttemptStarted field is set.
      • hasInvocationAttemptFinished

        public boolean hasInvocationAttemptFinished()
         An invocation attempt has finished.
         
        .google.devtools.build.v1.BuildEvent.InvocationAttemptFinished invocation_attempt_finished = 52;
        Specified by:
        hasInvocationAttemptFinished in interface BuildEventOrBuilder
        Returns:
        Whether the invocationAttemptFinished field is set.
      • hasBuildEnqueued

        public boolean hasBuildEnqueued()
         The build is enqueued (just inserted to the build queue or put back
         into the build queue due to a previous build failure).
         
        .google.devtools.build.v1.BuildEvent.BuildEnqueued build_enqueued = 53;
        Specified by:
        hasBuildEnqueued in interface BuildEventOrBuilder
        Returns:
        Whether the buildEnqueued field is set.
      • getBuildEnqueued

        public BuildEvent.BuildEnqueued getBuildEnqueued()
         The build is enqueued (just inserted to the build queue or put back
         into the build queue due to a previous build failure).
         
        .google.devtools.build.v1.BuildEvent.BuildEnqueued build_enqueued = 53;
        Specified by:
        getBuildEnqueued in interface BuildEventOrBuilder
        Returns:
        The buildEnqueued.
      • hasBuildFinished

        public boolean hasBuildFinished()
         The build has finished. Set when the build is terminated.
         
        .google.devtools.build.v1.BuildEvent.BuildFinished build_finished = 55;
        Specified by:
        hasBuildFinished in interface BuildEventOrBuilder
        Returns:
        Whether the buildFinished field is set.
      • getBuildFinished

        public BuildEvent.BuildFinished getBuildFinished()
         The build has finished. Set when the build is terminated.
         
        .google.devtools.build.v1.BuildEvent.BuildFinished build_finished = 55;
        Specified by:
        getBuildFinished in interface BuildEventOrBuilder
        Returns:
        The buildFinished.
      • hasConsoleOutput

        public boolean hasConsoleOutput()
         An event containing printed text.
         
        .google.devtools.build.v1.BuildEvent.ConsoleOutput console_output = 56;
        Specified by:
        hasConsoleOutput in interface BuildEventOrBuilder
        Returns:
        Whether the consoleOutput field is set.
      • hasComponentStreamFinished

        public boolean hasComponentStreamFinished()
         Indicates the end of a build event stream (with the same StreamId) from
         a build component executing the requested build task.
         *** This field does not indicate the WatchBuild RPC is finished. ***
         
        .google.devtools.build.v1.BuildEvent.BuildComponentStreamFinished component_stream_finished = 59;
        Specified by:
        hasComponentStreamFinished in interface BuildEventOrBuilder
        Returns:
        Whether the componentStreamFinished field is set.
      • getComponentStreamFinished

        public BuildEvent.BuildComponentStreamFinished getComponentStreamFinished()
         Indicates the end of a build event stream (with the same StreamId) from
         a build component executing the requested build task.
         *** This field does not indicate the WatchBuild RPC is finished. ***
         
        .google.devtools.build.v1.BuildEvent.BuildComponentStreamFinished component_stream_finished = 59;
        Specified by:
        getComponentStreamFinished in interface BuildEventOrBuilder
        Returns:
        The componentStreamFinished.
      • getComponentStreamFinishedOrBuilder

        public BuildEvent.BuildComponentStreamFinishedOrBuilder getComponentStreamFinishedOrBuilder()
         Indicates the end of a build event stream (with the same StreamId) from
         a build component executing the requested build task.
         *** This field does not indicate the WatchBuild RPC is finished. ***
         
        .google.devtools.build.v1.BuildEvent.BuildComponentStreamFinished component_stream_finished = 59;
        Specified by:
        getComponentStreamFinishedOrBuilder in interface BuildEventOrBuilder
      • hasBazelEvent

        public boolean hasBazelEvent()
         Structured build event generated by Bazel about its execution progress.
         
        .google.protobuf.Any bazel_event = 60;
        Specified by:
        hasBazelEvent in interface BuildEventOrBuilder
        Returns:
        Whether the bazelEvent field is set.
      • getBazelEvent

        public com.google.protobuf.Any getBazelEvent()
         Structured build event generated by Bazel about its execution progress.
         
        .google.protobuf.Any bazel_event = 60;
        Specified by:
        getBazelEvent in interface BuildEventOrBuilder
        Returns:
        The bazelEvent.
      • getBazelEventOrBuilder

        public com.google.protobuf.AnyOrBuilder getBazelEventOrBuilder()
         Structured build event generated by Bazel about its execution progress.
         
        .google.protobuf.Any bazel_event = 60;
        Specified by:
        getBazelEventOrBuilder in interface BuildEventOrBuilder
      • hasBuildExecutionEvent

        public boolean hasBuildExecutionEvent()
         An event that contains supplemental tool-specific information about
         build execution.
         
        .google.protobuf.Any build_execution_event = 61;
        Specified by:
        hasBuildExecutionEvent in interface BuildEventOrBuilder
        Returns:
        Whether the buildExecutionEvent field is set.
      • getBuildExecutionEvent

        public com.google.protobuf.Any getBuildExecutionEvent()
         An event that contains supplemental tool-specific information about
         build execution.
         
        .google.protobuf.Any build_execution_event = 61;
        Specified by:
        getBuildExecutionEvent in interface BuildEventOrBuilder
        Returns:
        The buildExecutionEvent.
      • getBuildExecutionEventOrBuilder

        public com.google.protobuf.AnyOrBuilder getBuildExecutionEventOrBuilder()
         An event that contains supplemental tool-specific information about
         build execution.
         
        .google.protobuf.Any build_execution_event = 61;
        Specified by:
        getBuildExecutionEventOrBuilder in interface BuildEventOrBuilder
      • hasSourceFetchEvent

        public boolean hasSourceFetchEvent()
         An event that contains supplemental tool-specific information about
         source fetching.
         
        .google.protobuf.Any source_fetch_event = 62;
        Specified by:
        hasSourceFetchEvent in interface BuildEventOrBuilder
        Returns:
        Whether the sourceFetchEvent field is set.
      • getSourceFetchEvent

        public com.google.protobuf.Any getSourceFetchEvent()
         An event that contains supplemental tool-specific information about
         source fetching.
         
        .google.protobuf.Any source_fetch_event = 62;
        Specified by:
        getSourceFetchEvent in interface BuildEventOrBuilder
        Returns:
        The sourceFetchEvent.
      • getSourceFetchEventOrBuilder

        public com.google.protobuf.AnyOrBuilder getSourceFetchEventOrBuilder()
         An event that contains supplemental tool-specific information about
         source fetching.
         
        .google.protobuf.Any source_fetch_event = 62;
        Specified by:
        getSourceFetchEventOrBuilder in interface BuildEventOrBuilder
      • 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 java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.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​(java.lang.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 BuildEvent parseFrom​(java.nio.ByteBuffer data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

        public static BuildEvent parseFrom​(com.google.protobuf.ByteString data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static BuildEvent parseFrom​(byte[] data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

        public static BuildEvent parseFrom​(java.io.InputStream input)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static BuildEvent parseFrom​(java.io.InputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static BuildEvent parseDelimitedFrom​(java.io.InputStream input)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static BuildEvent parseDelimitedFrom​(java.io.InputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static BuildEvent parseFrom​(com.google.protobuf.CodedInputStream input)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

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

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

        protected BuildEvent.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static BuildEvent getDefaultInstance()
      • parser

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

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