Package com.google.devtools.build.v1
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 Summary
Modifier and TypeMethodDescriptionaddAllNotificationKeywords(Iterable<String> values) Additional information about a build request.addNotificationKeywords(String value) Additional information about a build request.addNotificationKeywordsBytes(com.google.protobuf.ByteString value) Additional information about a build request.build()clear()Required.Whether to require a previously received matching parent lifecycle event for the current request's event before continuing processing.Additional information about a build request.Required.The interactivity of this build.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.Required.Required.Required.booleanWhether to require a previously received matching parent lifecycle event for the current request's event before continuing processing.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetNotificationKeywords(int index) Additional information about a build request.com.google.protobuf.ByteStringgetNotificationKeywordsBytes(int index) Additional information about a build request.intAdditional information about a build request.com.google.protobuf.ProtocolStringListAdditional information about a build request.Required.com.google.protobuf.ByteStringRequired.The interactivity of this build.intThe interactivity of this build.com.google.protobuf.DurationIf 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.com.google.protobuf.Duration.BuilderIf 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.com.google.protobuf.DurationOrBuilderIf 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.booleanRequired.booleanIf 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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBuildEvent(OrderedBuildEvent value) Required.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.setBuildEvent(OrderedBuildEvent value) Required.setBuildEvent(OrderedBuildEvent.Builder builderForValue) Required.setCheckPrecedingLifecycleEventsPresent(boolean value) Whether to require a previously received matching parent lifecycle event for the current request's event before continuing processing.setNotificationKeywords(int index, String value) Additional information about a build request.setProjectId(String value) Required.setProjectIdBytes(com.google.protobuf.ByteString value) Required.The interactivity of this build.setServiceLevelValue(int value) The interactivity of this build.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.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.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PublishLifecycleEventRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PublishLifecycleEventRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PublishLifecycleEventRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PublishLifecycleEventRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getServiceLevelValuein interfacePublishLifecycleEventRequestOrBuilder- Returns:
- The enum numeric value on the wire for serviceLevel.
-
setServiceLevelValue
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:
getServiceLevelin interfacePublishLifecycleEventRequestOrBuilder- Returns:
- The serviceLevel.
-
setServiceLevel
public PublishLifecycleEventRequest.Builder setServiceLevel(PublishLifecycleEventRequest.ServiceLevel value) 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
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:
hasBuildEventin interfacePublishLifecycleEventRequestOrBuilder- Returns:
- Whether the buildEvent field is set.
-
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:
getBuildEventin interfacePublishLifecycleEventRequestOrBuilder- 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
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
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
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:
getBuildEventOrBuilderin interfacePublishLifecycleEventRequestOrBuilder
-
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:
hasStreamTimeoutin interfacePublishLifecycleEventRequestOrBuilder- 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:
getStreamTimeoutin interfacePublishLifecycleEventRequestOrBuilder- Returns:
- The streamTimeout.
-
setStreamTimeout
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
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
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:
getStreamTimeoutOrBuilderin interfacePublishLifecycleEventRequestOrBuilder
-
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:
getNotificationKeywordsListin interfacePublishLifecycleEventRequestOrBuilder- 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:
getNotificationKeywordsCountin interfacePublishLifecycleEventRequestOrBuilder- Returns:
- The count of notificationKeywords.
-
getNotificationKeywords
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:
getNotificationKeywordsin interfacePublishLifecycleEventRequestOrBuilder- 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:
getNotificationKeywordsBytesin interfacePublishLifecycleEventRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the notificationKeywords at the given index.
-
setNotificationKeywords
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
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
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
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
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:
getProjectIdin interfacePublishLifecycleEventRequestOrBuilder- 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:
getProjectIdBytesin interfacePublishLifecycleEventRequestOrBuilder- 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
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:
getCheckPrecedingLifecycleEventsPresentin interfacePublishLifecycleEventRequestOrBuilder- Returns:
- The checkPrecedingLifecycleEventsPresent.
-
setCheckPrecedingLifecycleEventsPresent
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
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.
-