Class PublishBuildToolEventStreamRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PublishBuildToolEventStreamRequest.Builder>
com.google.devtools.build.v1.PublishBuildToolEventStreamRequest.Builder
All Implemented Interfaces:
PublishBuildToolEventStreamRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PublishBuildToolEventStreamRequest

public static final class PublishBuildToolEventStreamRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<PublishBuildToolEventStreamRequest.Builder> implements PublishBuildToolEventStreamRequestOrBuilder
 Streaming request message for PublishBuildToolEventStream.
 
Protobuf type google.devtools.build.v1.PublishBuildToolEventStreamRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PublishBuildToolEventStreamRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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

      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
    • mergeFrom

      public PublishBuildToolEventStreamRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PublishBuildToolEventStreamRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public PublishBuildToolEventStreamRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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:
      IOException
    • hasOrderedBuildEvent

      public boolean hasOrderedBuildEvent()
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasOrderedBuildEvent in interface PublishBuildToolEventStreamRequestOrBuilder
      Returns:
      Whether the orderedBuildEvent field is set.
    • getOrderedBuildEvent

      public OrderedBuildEvent getOrderedBuildEvent()
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOrderedBuildEvent in interface PublishBuildToolEventStreamRequestOrBuilder
      Returns:
      The orderedBuildEvent.
    • setOrderedBuildEvent

       Required. 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 [(.google.api.field_behavior) = REQUIRED];
    • setOrderedBuildEvent

      public PublishBuildToolEventStreamRequest.Builder setOrderedBuildEvent(OrderedBuildEvent.Builder builderForValue)
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
    • mergeOrderedBuildEvent

      public PublishBuildToolEventStreamRequest.Builder mergeOrderedBuildEvent(OrderedBuildEvent value)
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
    • clearOrderedBuildEvent

      public PublishBuildToolEventStreamRequest.Builder clearOrderedBuildEvent()
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
    • getOrderedBuildEventBuilder

      public OrderedBuildEvent.Builder getOrderedBuildEventBuilder()
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
    • getOrderedBuildEventOrBuilder

      public OrderedBuildEventOrBuilder getOrderedBuildEventOrBuilder()
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOrderedBuildEventOrBuilder in interface PublishBuildToolEventStreamRequestOrBuilder
    • 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 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, 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(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(Iterable<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 String getProjectId()
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectId in interface PublishBuildToolEventStreamRequestOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectIdBytes in interface PublishBuildToolEventStreamRequestOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public PublishBuildToolEventStreamRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getCheckPrecedingLifecycleEventsPresent

      public boolean getCheckPrecedingLifecycleEventsPresent()
       Whether to require a previously received matching InvocationAttemptStarted
       event before continuing event processing for the event in the current
       request. BES only performs this check for events with sequence_number 1
       i.e. the first event in the stream.
       
      bool check_preceding_lifecycle_events_present = 7;
      Specified by:
      getCheckPrecedingLifecycleEventsPresent in interface PublishBuildToolEventStreamRequestOrBuilder
      Returns:
      The checkPrecedingLifecycleEventsPresent.
    • setCheckPrecedingLifecycleEventsPresent

      public PublishBuildToolEventStreamRequest.Builder setCheckPrecedingLifecycleEventsPresent(boolean value)
       Whether to require a previously received matching InvocationAttemptStarted
       event before continuing event processing for the event in the current
       request. BES only performs this check for events with sequence_number 1
       i.e. the first event in the stream.
       
      bool check_preceding_lifecycle_events_present = 7;
      Parameters:
      value - The checkPrecedingLifecycleEventsPresent to set.
      Returns:
      This builder for chaining.
    • clearCheckPrecedingLifecycleEventsPresent

      public PublishBuildToolEventStreamRequest.Builder clearCheckPrecedingLifecycleEventsPresent()
       Whether to require a previously received matching InvocationAttemptStarted
       event before continuing event processing for the event in the current
       request. BES only performs this check for events with sequence_number 1
       i.e. the first event in the stream.
       
      bool check_preceding_lifecycle_events_present = 7;
      Returns:
      This builder for chaining.