Package com.google.devtools.build.v1
Class PublishLifecycleEventRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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,java.io.Serializable
public final class PublishLifecycleEventRequest extends com.google.protobuf.GeneratedMessageV3 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 typegoogle.devtools.build.v1.PublishLifecycleEventRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPublishLifecycleEventRequest.BuilderPublishes 'lifecycle events' that update the high-level state of a build: - BuildEnqueued: When a build is scheduled.static classPublishLifecycleEventRequest.ServiceLevelThe service level of the build request.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBUILD_EVENT_FIELD_NUMBERstatic intNOTIFICATION_KEYWORDS_FIELD_NUMBERstatic intPROJECT_ID_FIELD_NUMBERstatic intSERVICE_LEVEL_FIELD_NUMBERstatic intSTREAM_TIMEOUT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)OrderedBuildEventgetBuildEvent()The lifecycle build event.OrderedBuildEventOrBuildergetBuildEventOrBuilder()The lifecycle build event.static PublishLifecycleEventRequestgetDefaultInstance()PublishLifecycleEventRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetNotificationKeywords(int index)Additional information about a build request.com.google.protobuf.ByteStringgetNotificationKeywordsBytes(int index)Additional information about a build request.intgetNotificationKeywordsCount()Additional information about a build request.com.google.protobuf.ProtocolStringListgetNotificationKeywordsList()Additional information about a build request.com.google.protobuf.Parser<PublishLifecycleEventRequest>getParserForType()java.lang.StringgetProjectId()The project this build is associated with.com.google.protobuf.ByteStringgetProjectIdBytes()The project this build is associated with.intgetSerializedSize()PublishLifecycleEventRequest.ServiceLevelgetServiceLevel()The interactivity of this build.intgetServiceLevelValue()The interactivity of this build.com.google.protobuf.DurationgetStreamTimeout()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.com.google.protobuf.DurationOrBuildergetStreamTimeoutOrBuilder()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.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasBuildEvent()The lifecycle build event.inthashCode()booleanhasStreamTimeout()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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static PublishLifecycleEventRequest.BuildernewBuilder()static PublishLifecycleEventRequest.BuildernewBuilder(PublishLifecycleEventRequest prototype)PublishLifecycleEventRequest.BuildernewBuilderForType()protected PublishLifecycleEventRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static PublishLifecycleEventRequestparseDelimitedFrom(java.io.InputStream input)static PublishLifecycleEventRequestparseDelimitedFrom(java.io.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(java.io.InputStream input)static PublishLifecycleEventRequestparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PublishLifecycleEventRequestparseFrom(java.nio.ByteBuffer data)static PublishLifecycleEventRequestparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<PublishLifecycleEventRequest>parser()PublishLifecycleEventRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SERVICE_LEVEL_FIELD_NUMBER
public static final int SERVICE_LEVEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUILD_EVENT_FIELD_NUMBER
public static final int BUILD_EVENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STREAM_TIMEOUT_FIELD_NUMBER
public static final int STREAM_TIMEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NOTIFICATION_KEYWORDS_FIELD_NUMBER
public static final int NOTIFICATION_KEYWORDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROJECT_ID_FIELD_NUMBER
public static final int PROJECT_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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
public PublishLifecycleEventRequest.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()
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;- Specified by:
hasBuildEventin interfacePublishLifecycleEventRequestOrBuilder- Returns:
- Whether the buildEvent field is set.
-
getBuildEvent
public OrderedBuildEvent getBuildEvent()
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;- Specified by:
getBuildEventin interfacePublishLifecycleEventRequestOrBuilder- Returns:
- The buildEvent.
-
getBuildEventOrBuilder
public OrderedBuildEventOrBuilder getBuildEventOrBuilder()
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;- 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
public java.lang.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:
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
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:
getProjectIdin interfacePublishLifecycleEventRequestOrBuilder- 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:
getProjectIdBytesin interfacePublishLifecycleEventRequestOrBuilder- Returns:
- The bytes for projectId.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- 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(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PublishLifecycleEventRequest parseFrom(java.nio.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
public static PublishLifecycleEventRequest parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static PublishLifecycleEventRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static PublishLifecycleEventRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static PublishLifecycleEventRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static PublishLifecycleEventRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static PublishLifecycleEventRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public PublishLifecycleEventRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static PublishLifecycleEventRequest.Builder newBuilder()
-
newBuilder
public static PublishLifecycleEventRequest.Builder newBuilder(PublishLifecycleEventRequest prototype)
-
toBuilder
public PublishLifecycleEventRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PublishLifecycleEventRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static PublishLifecycleEventRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<PublishLifecycleEventRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<PublishLifecycleEventRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PublishLifecycleEventRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-