Class PublishBuildToolEventStreamRequest.Builder

    • 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<PublishBuildToolEventStreamRequest.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<PublishBuildToolEventStreamRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public PublishBuildToolEventStreamRequest.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<PublishBuildToolEventStreamRequest.Builder>
        Throws:
        java.io.IOException
      • hasOrderedBuildEvent

        public boolean hasOrderedBuildEvent()
         The build event with position info.
         New publishing clients should use this field rather than the 3 above.
         
        .google.devtools.build.v1.OrderedBuildEvent ordered_build_event = 4;
        Specified by:
        hasOrderedBuildEvent in interface PublishBuildToolEventStreamRequestOrBuilder
        Returns:
        Whether the orderedBuildEvent field is set.
      • setOrderedBuildEvent

        public PublishBuildToolEventStreamRequest.Builder setOrderedBuildEvent​(OrderedBuildEvent value)
         The build event with position info.
         New publishing clients should use this field rather than the 3 above.
         
        .google.devtools.build.v1.OrderedBuildEvent ordered_build_event = 4;
      • mergeOrderedBuildEvent

        public PublishBuildToolEventStreamRequest.Builder mergeOrderedBuildEvent​(OrderedBuildEvent value)
         The build event with position info.
         New publishing clients should use this field rather than the 3 above.
         
        .google.devtools.build.v1.OrderedBuildEvent ordered_build_event = 4;
      • clearOrderedBuildEvent

        public PublishBuildToolEventStreamRequest.Builder clearOrderedBuildEvent()
         The build event with position info.
         New publishing clients should use this field rather than the 3 above.
         
        .google.devtools.build.v1.OrderedBuildEvent ordered_build_event = 4;
      • getOrderedBuildEventBuilder

        public OrderedBuildEvent.Builder getOrderedBuildEventBuilder()
         The build event with position info.
         New publishing clients should use this field rather than the 3 above.
         
        .google.devtools.build.v1.OrderedBuildEvent ordered_build_event = 4;
      • getNotificationKeywordsList

        public com.google.protobuf.ProtocolStringList getNotificationKeywordsList()
         The keywords to be attached to the notification which notifies the start
         of a new build event stream. BES only reads this field when sequence_number
         or ordered_build_event.sequence_number is 1 in this message. If this field
         is empty, BES will not publish notification messages for this stream.
         
        repeated string notification_keywords = 5;
        Specified by:
        getNotificationKeywordsList in interface PublishBuildToolEventStreamRequestOrBuilder
        Returns:
        A list containing the notificationKeywords.
      • getNotificationKeywordsCount

        public int getNotificationKeywordsCount()
         The keywords to be attached to the notification which notifies the start
         of a new build event stream. BES only reads this field when sequence_number
         or ordered_build_event.sequence_number is 1 in this message. If this field
         is empty, BES will not publish notification messages for this stream.
         
        repeated string notification_keywords = 5;
        Specified by:
        getNotificationKeywordsCount in interface PublishBuildToolEventStreamRequestOrBuilder
        Returns:
        The count of notificationKeywords.
      • getNotificationKeywords

        public java.lang.String getNotificationKeywords​(int index)
         The keywords to be attached to the notification which notifies the start
         of a new build event stream. BES only reads this field when sequence_number
         or ordered_build_event.sequence_number is 1 in this message. If this field
         is empty, BES will not publish notification messages for this stream.
         
        repeated string notification_keywords = 5;
        Specified by:
        getNotificationKeywords in interface PublishBuildToolEventStreamRequestOrBuilder
        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)
         The keywords to be attached to the notification which notifies the start
         of a new build event stream. BES only reads this field when sequence_number
         or ordered_build_event.sequence_number is 1 in this message. If this field
         is empty, BES will not publish notification messages for this stream.
         
        repeated string notification_keywords = 5;
        Specified by:
        getNotificationKeywordsBytes in interface PublishBuildToolEventStreamRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the notificationKeywords at the given index.
      • setNotificationKeywords

        public PublishBuildToolEventStreamRequest.Builder setNotificationKeywords​(int index,
                                                                                  java.lang.String value)
         The keywords to be attached to the notification which notifies the start
         of a new build event stream. BES only reads this field when sequence_number
         or ordered_build_event.sequence_number is 1 in this message. If this field
         is empty, BES will not publish notification messages for this stream.
         
        repeated string notification_keywords = 5;
        Parameters:
        index - The index to set the value at.
        value - The notificationKeywords to set.
        Returns:
        This builder for chaining.
      • addNotificationKeywords

        public PublishBuildToolEventStreamRequest.Builder addNotificationKeywords​(java.lang.String value)
         The keywords to be attached to the notification which notifies the start
         of a new build event stream. BES only reads this field when sequence_number
         or ordered_build_event.sequence_number is 1 in this message. If this field
         is empty, BES will not publish notification messages for this stream.
         
        repeated string notification_keywords = 5;
        Parameters:
        value - The notificationKeywords to add.
        Returns:
        This builder for chaining.
      • addAllNotificationKeywords

        public PublishBuildToolEventStreamRequest.Builder addAllNotificationKeywords​(java.lang.Iterable<java.lang.String> values)
         The keywords to be attached to the notification which notifies the start
         of a new build event stream. BES only reads this field when sequence_number
         or ordered_build_event.sequence_number is 1 in this message. If this field
         is empty, BES will not publish notification messages for this stream.
         
        repeated string notification_keywords = 5;
        Parameters:
        values - The notificationKeywords to add.
        Returns:
        This builder for chaining.
      • clearNotificationKeywords

        public PublishBuildToolEventStreamRequest.Builder clearNotificationKeywords()
         The keywords to be attached to the notification which notifies the start
         of a new build event stream. BES only reads this field when sequence_number
         or ordered_build_event.sequence_number is 1 in this message. If this field
         is empty, BES will not publish notification messages for this stream.
         
        repeated string notification_keywords = 5;
        Returns:
        This builder for chaining.
      • addNotificationKeywordsBytes

        public PublishBuildToolEventStreamRequest.Builder addNotificationKeywordsBytes​(com.google.protobuf.ByteString value)
         The keywords to be attached to the notification which notifies the start
         of a new build event stream. BES only reads this field when sequence_number
         or ordered_build_event.sequence_number is 1 in this message. If this field
         is empty, BES will not publish notification messages for this stream.
         
        repeated string notification_keywords = 5;
        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 PublishBuildToolEventStreamRequestOrBuilder
        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 PublishBuildToolEventStreamRequestOrBuilder
        Returns:
        The bytes for projectId.
      • setProjectId

        public PublishBuildToolEventStreamRequest.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 PublishBuildToolEventStreamRequest.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 PublishBuildToolEventStreamRequest.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.