Class PublishLifecycleEventRequest.Builder

  • All Implemented Interfaces:
    PublishLifecycleEventRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    PublishLifecycleEventRequest

    public static final class PublishLifecycleEventRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<PublishLifecycleEventRequest.Builder>
    implements PublishLifecycleEventRequestOrBuilder
     Publishes 'lifecycle events' that update the high-level state of a build:
     - BuildEnqueued: When a build is scheduled.
     - InvocationAttemptStarted: When work for a build starts; there can be
         multiple invocations for a build (e.g. retries).
     - InvocationAttemptCompleted: When work for a build finishes.
     - BuildFinished: When a build is finished.
     
    Protobuf type google.devtools.build.v1.PublishLifecycleEventRequest
    • 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<PublishLifecycleEventRequest.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<PublishLifecycleEventRequest.Builder>
      • getDefaultInstanceForType

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

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

        public PublishLifecycleEventRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public PublishLifecycleEventRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                     int index,
                                                                     java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PublishLifecycleEventRequest.Builder>
      • addRepeatedField

        public PublishLifecycleEventRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                     java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PublishLifecycleEventRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PublishLifecycleEventRequest.Builder>
      • mergeFrom

        public PublishLifecycleEventRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws java.io.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<PublishLifecycleEventRequest.Builder>
        Throws:
        java.io.IOException
      • getServiceLevelValue

        public int getServiceLevelValue()
         The interactivity of this build.
         
        .google.devtools.build.v1.PublishLifecycleEventRequest.ServiceLevel service_level = 1;
        Specified by:
        getServiceLevelValue in interface PublishLifecycleEventRequestOrBuilder
        Returns:
        The enum numeric value on the wire for serviceLevel.
      • setServiceLevelValue

        public PublishLifecycleEventRequest.Builder setServiceLevelValue​(int value)
         The interactivity of this build.
         
        .google.devtools.build.v1.PublishLifecycleEventRequest.ServiceLevel service_level = 1;
        Parameters:
        value - The enum numeric value on the wire for serviceLevel to set.
        Returns:
        This builder for chaining.
      • clearServiceLevel

        public PublishLifecycleEventRequest.Builder clearServiceLevel()
         The interactivity of this build.
         
        .google.devtools.build.v1.PublishLifecycleEventRequest.ServiceLevel service_level = 1;
        Returns:
        This builder for chaining.
      • hasBuildEvent

        public boolean hasBuildEvent()
         The lifecycle build event. If this is a build tool event, the RPC will fail
         with INVALID_REQUEST.
         
        .google.devtools.build.v1.OrderedBuildEvent build_event = 2;
        Specified by:
        hasBuildEvent in interface PublishLifecycleEventRequestOrBuilder
        Returns:
        Whether the buildEvent field is set.
      • mergeBuildEvent

        public PublishLifecycleEventRequest.Builder mergeBuildEvent​(OrderedBuildEvent value)
         The lifecycle build event. If this is a build tool event, the RPC will fail
         with INVALID_REQUEST.
         
        .google.devtools.build.v1.OrderedBuildEvent build_event = 2;
      • clearBuildEvent

        public PublishLifecycleEventRequest.Builder clearBuildEvent()
         The lifecycle build event. If this is a build tool event, the RPC will fail
         with INVALID_REQUEST.
         
        .google.devtools.build.v1.OrderedBuildEvent build_event = 2;
      • getBuildEventBuilder

        public OrderedBuildEvent.Builder getBuildEventBuilder()
         The lifecycle build event. If this is a build tool event, the RPC will fail
         with INVALID_REQUEST.
         
        .google.devtools.build.v1.OrderedBuildEvent build_event = 2;
      • hasStreamTimeout

        public boolean hasStreamTimeout()
         If the next event for this build or invocation (depending on the event
         type) hasn't been published after this duration from when {build_event}
         is written to BES, consider this stream expired. If this field is not set,
         BES backend will use its own default value.
         
        .google.protobuf.Duration stream_timeout = 3;
        Specified by:
        hasStreamTimeout in interface PublishLifecycleEventRequestOrBuilder
        Returns:
        Whether the streamTimeout field is set.
      • getStreamTimeout

        public com.google.protobuf.Duration getStreamTimeout()
         If the next event for this build or invocation (depending on the event
         type) hasn't been published after this duration from when {build_event}
         is written to BES, consider this stream expired. If this field is not set,
         BES backend will use its own default value.
         
        .google.protobuf.Duration stream_timeout = 3;
        Specified by:
        getStreamTimeout in interface PublishLifecycleEventRequestOrBuilder
        Returns:
        The streamTimeout.
      • setStreamTimeout

        public PublishLifecycleEventRequest.Builder setStreamTimeout​(com.google.protobuf.Duration value)
         If the next event for this build or invocation (depending on the event
         type) hasn't been published after this duration from when {build_event}
         is written to BES, consider this stream expired. If this field is not set,
         BES backend will use its own default value.
         
        .google.protobuf.Duration stream_timeout = 3;
      • setStreamTimeout

        public PublishLifecycleEventRequest.Builder setStreamTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         If the next event for this build or invocation (depending on the event
         type) hasn't been published after this duration from when {build_event}
         is written to BES, consider this stream expired. If this field is not set,
         BES backend will use its own default value.
         
        .google.protobuf.Duration stream_timeout = 3;
      • mergeStreamTimeout

        public PublishLifecycleEventRequest.Builder mergeStreamTimeout​(com.google.protobuf.Duration value)
         If the next event for this build or invocation (depending on the event
         type) hasn't been published after this duration from when {build_event}
         is written to BES, consider this stream expired. If this field is not set,
         BES backend will use its own default value.
         
        .google.protobuf.Duration stream_timeout = 3;
      • clearStreamTimeout

        public PublishLifecycleEventRequest.Builder clearStreamTimeout()
         If the next event for this build or invocation (depending on the event
         type) hasn't been published after this duration from when {build_event}
         is written to BES, consider this stream expired. If this field is not set,
         BES backend will use its own default value.
         
        .google.protobuf.Duration stream_timeout = 3;
      • getStreamTimeoutBuilder

        public com.google.protobuf.Duration.Builder getStreamTimeoutBuilder()
         If the next event for this build or invocation (depending on the event
         type) hasn't been published after this duration from when {build_event}
         is written to BES, consider this stream expired. If this field is not set,
         BES backend will use its own default value.
         
        .google.protobuf.Duration stream_timeout = 3;
      • getStreamTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getStreamTimeoutOrBuilder()
         If the next event for this build or invocation (depending on the event
         type) hasn't been published after this duration from when {build_event}
         is written to BES, consider this stream expired. If this field is not set,
         BES backend will use its own default value.
         
        .google.protobuf.Duration stream_timeout = 3;
        Specified by:
        getStreamTimeoutOrBuilder in interface PublishLifecycleEventRequestOrBuilder
      • getNotificationKeywordsList

        public com.google.protobuf.ProtocolStringList getNotificationKeywordsList()
         Additional information about a build request. These are define by the event
         publishers, and the Build Event Service does not validate or interpret
         them. They are used while notifying internal systems of new builds and
         invocations if the OrderedBuildEvent.event type is
         BuildEnqueued/InvocationAttemptStarted.
         
        repeated string notification_keywords = 4;
        Specified by:
        getNotificationKeywordsList in interface PublishLifecycleEventRequestOrBuilder
        Returns:
        A list containing the notificationKeywords.
      • getNotificationKeywordsCount

        public int getNotificationKeywordsCount()
         Additional information about a build request. These are define by the event
         publishers, and the Build Event Service does not validate or interpret
         them. They are used while notifying internal systems of new builds and
         invocations if the OrderedBuildEvent.event type is
         BuildEnqueued/InvocationAttemptStarted.
         
        repeated string notification_keywords = 4;
        Specified by:
        getNotificationKeywordsCount in interface PublishLifecycleEventRequestOrBuilder
        Returns:
        The count of notificationKeywords.
      • getNotificationKeywords

        public java.lang.String getNotificationKeywords​(int index)
         Additional information about a build request. These are define by the event
         publishers, and the Build Event Service does not validate or interpret
         them. They are used while notifying internal systems of new builds and
         invocations if the OrderedBuildEvent.event type is
         BuildEnqueued/InvocationAttemptStarted.
         
        repeated string notification_keywords = 4;
        Specified by:
        getNotificationKeywords in interface PublishLifecycleEventRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The notificationKeywords at the given index.
      • getNotificationKeywordsBytes

        public com.google.protobuf.ByteString getNotificationKeywordsBytes​(int index)
         Additional information about a build request. These are define by the event
         publishers, and the Build Event Service does not validate or interpret
         them. They are used while notifying internal systems of new builds and
         invocations if the OrderedBuildEvent.event type is
         BuildEnqueued/InvocationAttemptStarted.
         
        repeated string notification_keywords = 4;
        Specified by:
        getNotificationKeywordsBytes in interface PublishLifecycleEventRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the notificationKeywords at the given index.
      • setNotificationKeywords

        public PublishLifecycleEventRequest.Builder setNotificationKeywords​(int index,
                                                                            java.lang.String value)
         Additional information about a build request. These are define by the event
         publishers, and the Build Event Service does not validate or interpret
         them. They are used while notifying internal systems of new builds and
         invocations if the OrderedBuildEvent.event type is
         BuildEnqueued/InvocationAttemptStarted.
         
        repeated string notification_keywords = 4;
        Parameters:
        index - The index to set the value at.
        value - The notificationKeywords to set.
        Returns:
        This builder for chaining.
      • addNotificationKeywords

        public PublishLifecycleEventRequest.Builder addNotificationKeywords​(java.lang.String value)
         Additional information about a build request. These are define by the event
         publishers, and the Build Event Service does not validate or interpret
         them. They are used while notifying internal systems of new builds and
         invocations if the OrderedBuildEvent.event type is
         BuildEnqueued/InvocationAttemptStarted.
         
        repeated string notification_keywords = 4;
        Parameters:
        value - The notificationKeywords to add.
        Returns:
        This builder for chaining.
      • addAllNotificationKeywords

        public PublishLifecycleEventRequest.Builder addAllNotificationKeywords​(java.lang.Iterable<java.lang.String> values)
         Additional information about a build request. These are define by the event
         publishers, and the Build Event Service does not validate or interpret
         them. They are used while notifying internal systems of new builds and
         invocations if the OrderedBuildEvent.event type is
         BuildEnqueued/InvocationAttemptStarted.
         
        repeated string notification_keywords = 4;
        Parameters:
        values - The notificationKeywords to add.
        Returns:
        This builder for chaining.
      • clearNotificationKeywords

        public PublishLifecycleEventRequest.Builder clearNotificationKeywords()
         Additional information about a build request. These are define by the event
         publishers, and the Build Event Service does not validate or interpret
         them. They are used while notifying internal systems of new builds and
         invocations if the OrderedBuildEvent.event type is
         BuildEnqueued/InvocationAttemptStarted.
         
        repeated string notification_keywords = 4;
        Returns:
        This builder for chaining.
      • addNotificationKeywordsBytes

        public PublishLifecycleEventRequest.Builder addNotificationKeywordsBytes​(com.google.protobuf.ByteString value)
         Additional information about a build request. These are define by the event
         publishers, and the Build Event Service does not validate or interpret
         them. They are used while notifying internal systems of new builds and
         invocations if the OrderedBuildEvent.event type is
         BuildEnqueued/InvocationAttemptStarted.
         
        repeated string notification_keywords = 4;
        Parameters:
        value - The bytes of the notificationKeywords to add.
        Returns:
        This builder for chaining.
      • getProjectId

        public java.lang.String getProjectId()
         The project this build is associated with.
         This should match the project used for the initial call to
         PublishLifecycleEvent (containing a BuildEnqueued message).
         
        string project_id = 6;
        Specified by:
        getProjectId in interface PublishLifecycleEventRequestOrBuilder
        Returns:
        The projectId.
      • getProjectIdBytes

        public com.google.protobuf.ByteString getProjectIdBytes()
         The project this build is associated with.
         This should match the project used for the initial call to
         PublishLifecycleEvent (containing a BuildEnqueued message).
         
        string project_id = 6;
        Specified by:
        getProjectIdBytes in interface PublishLifecycleEventRequestOrBuilder
        Returns:
        The bytes for projectId.
      • setProjectId

        public PublishLifecycleEventRequest.Builder setProjectId​(java.lang.String value)
         The project this build is associated with.
         This should match the project used for the initial call to
         PublishLifecycleEvent (containing a BuildEnqueued message).
         
        string project_id = 6;
        Parameters:
        value - The projectId to set.
        Returns:
        This builder for chaining.
      • clearProjectId

        public PublishLifecycleEventRequest.Builder clearProjectId()
         The project this build is associated with.
         This should match the project used for the initial call to
         PublishLifecycleEvent (containing a BuildEnqueued message).
         
        string project_id = 6;
        Returns:
        This builder for chaining.
      • setProjectIdBytes

        public PublishLifecycleEventRequest.Builder setProjectIdBytes​(com.google.protobuf.ByteString value)
         The project this build is associated with.
         This should match the project used for the initial call to
         PublishLifecycleEvent (containing a BuildEnqueued message).
         
        string project_id = 6;
        Parameters:
        value - The bytes for projectId to set.
        Returns:
        This builder for chaining.