Package com.google.devtools.build.v1
Class PublishLifecycleEventRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devtools.build.v1.PublishLifecycleEventRequest
- All Implemented Interfaces:
PublishLifecycleEventRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class PublishLifecycleEventRequest
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classPublishes 'lifecycle events' that update the high-level state of a build: - BuildEnqueued: When a build is scheduled.static enumThe service level of the build request.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanRequired.Required.booleanWhether to require a previously received matching parent lifecycle event for the current request's event before continuing processing.static PublishLifecycleEventRequeststatic final com.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.com.google.protobuf.Parser<PublishLifecycleEventRequest>Required.com.google.protobuf.ByteStringRequired.intThe 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.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.inthashCode()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 booleannewBuilder(PublishLifecycleEventRequest prototype) protected PublishLifecycleEventRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static PublishLifecycleEventRequestparseDelimitedFrom(InputStream input) static PublishLifecycleEventRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PublishLifecycleEventRequestparseFrom(byte[] data) static PublishLifecycleEventRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PublishLifecycleEventRequestparseFrom(com.google.protobuf.ByteString data) static PublishLifecycleEventRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PublishLifecycleEventRequestparseFrom(com.google.protobuf.CodedInputStream input) static PublishLifecycleEventRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PublishLifecycleEventRequestparseFrom(InputStream input) static PublishLifecycleEventRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PublishLifecycleEventRequestparseFrom(ByteBuffer data) static PublishLifecycleEventRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<PublishLifecycleEventRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SERVICE_LEVEL_FIELD_NUMBER
public static final int SERVICE_LEVEL_FIELD_NUMBER- See Also:
-
BUILD_EVENT_FIELD_NUMBER
public static final int BUILD_EVENT_FIELD_NUMBER- See Also:
-
STREAM_TIMEOUT_FIELD_NUMBER
public static final int STREAM_TIMEOUT_FIELD_NUMBER- See Also:
-
NOTIFICATION_KEYWORDS_FIELD_NUMBER
public static final int NOTIFICATION_KEYWORDS_FIELD_NUMBER- See Also:
-
PROJECT_ID_FIELD_NUMBER
public static final int PROJECT_ID_FIELD_NUMBER- See Also:
-
CHECK_PRECEDING_LIFECYCLE_EVENTS_PRESENT_FIELD_NUMBER
public static final int CHECK_PRECEDING_LIFECYCLE_EVENTS_PRESENT_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
getServiceLevel
The interactivity of this build.
.google.devtools.build.v1.PublishLifecycleEventRequest.ServiceLevel service_level = 1;- Specified by:
getServiceLevelin interfacePublishLifecycleEventRequestOrBuilder- Returns:
- The serviceLevel.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PublishLifecycleEventRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PublishLifecycleEventRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PublishLifecycleEventRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PublishLifecycleEventRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PublishLifecycleEventRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PublishLifecycleEventRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PublishLifecycleEventRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static PublishLifecycleEventRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static PublishLifecycleEventRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static PublishLifecycleEventRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static PublishLifecycleEventRequest.Builder newBuilder(PublishLifecycleEventRequest prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PublishLifecycleEventRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-