Class PublishLifecycleEventRequest.Builder

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

public static final class PublishLifecycleEventRequest.Builder extends com.google.protobuf.GeneratedMessage.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 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<PublishLifecycleEventRequest.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<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.GeneratedMessage.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

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

      public PublishLifecycleEventRequest.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<PublishLifecycleEventRequest.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<PublishLifecycleEventRequest.Builder>
    • mergeFrom

      public PublishLifecycleEventRequest.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<PublishLifecycleEventRequest.Builder>
      Throws:
      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.
    • getServiceLevel

       The interactivity of this build.
       
      .google.devtools.build.v1.PublishLifecycleEventRequest.ServiceLevel service_level = 1;
      Specified by:
      getServiceLevel in interface PublishLifecycleEventRequestOrBuilder
      Returns:
      The serviceLevel.
    • setServiceLevel

       The interactivity of this build.
       
      .google.devtools.build.v1.PublishLifecycleEventRequest.ServiceLevel service_level = 1;
      Parameters:
      value - The 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()
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasBuildEvent in interface PublishLifecycleEventRequestOrBuilder
      Returns:
      Whether the buildEvent field is set.
    • getBuildEvent

      public OrderedBuildEvent getBuildEvent()
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBuildEvent in interface PublishLifecycleEventRequestOrBuilder
      Returns:
      The buildEvent.
    • setBuildEvent

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

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

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

      public PublishLifecycleEventRequest.Builder clearBuildEvent()
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
    • getBuildEventBuilder

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

      public OrderedBuildEventOrBuilder getBuildEventOrBuilder()
       Required. 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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBuildEventOrBuilder in interface PublishLifecycleEventRequestOrBuilder
    • 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 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, 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(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(Iterable<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 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 PublishLifecycleEventRequestOrBuilder
      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 PublishLifecycleEventRequestOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public PublishLifecycleEventRequest.Builder setProjectId(String 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 projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public PublishLifecycleEventRequest.Builder 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 PublishLifecycleEventRequest.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 parent lifecycle event
       for the current request's event before continuing processing.
       - InvocationAttemptStarted and BuildFinished events require a BuildEnqueued
       parent event.
       - InvocationAttemptFinished events require an InvocationAttemptStarted
       parent event.
       
      bool check_preceding_lifecycle_events_present = 7;
      Specified by:
      getCheckPrecedingLifecycleEventsPresent in interface PublishLifecycleEventRequestOrBuilder
      Returns:
      The checkPrecedingLifecycleEventsPresent.
    • setCheckPrecedingLifecycleEventsPresent

      public PublishLifecycleEventRequest.Builder setCheckPrecedingLifecycleEventsPresent(boolean value)
       Whether to require a previously received matching parent lifecycle event
       for the current request's event before continuing processing.
       - InvocationAttemptStarted and BuildFinished events require a BuildEnqueued
       parent event.
       - InvocationAttemptFinished events require an InvocationAttemptStarted
       parent event.
       
      bool check_preceding_lifecycle_events_present = 7;
      Parameters:
      value - The checkPrecedingLifecycleEventsPresent to set.
      Returns:
      This builder for chaining.
    • clearCheckPrecedingLifecycleEventsPresent

      public PublishLifecycleEventRequest.Builder clearCheckPrecedingLifecycleEventsPresent()
       Whether to require a previously received matching parent lifecycle event
       for the current request's event before continuing processing.
       - InvocationAttemptStarted and BuildFinished events require a BuildEnqueued
       parent event.
       - InvocationAttemptFinished events require an InvocationAttemptStarted
       parent event.
       
      bool check_preceding_lifecycle_events_present = 7;
      Returns:
      This builder for chaining.