Package com.google.devtools.build.v1
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 Summary
Modifier and TypeMethodDescriptionaddAllNotificationKeywords(Iterable<String> values) The keywords to be attached to the notification which notifies the start of a new build event stream.addNotificationKeywords(String value) The keywords to be attached to the notification which notifies the start of a new build event stream.addNotificationKeywordsBytes(com.google.protobuf.ByteString value) The keywords to be attached to the notification which notifies the start of a new build event stream.build()clear()Whether to require a previously received matching InvocationAttemptStarted event before continuing event processing for the event in the current request.The keywords to be attached to the notification which notifies the start of a new build event stream.Required.Required.booleanWhether to require a previously received matching InvocationAttemptStarted event before continuing event processing for the event in the current request.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetNotificationKeywords(int index) The keywords to be attached to the notification which notifies the start of a new build event stream.com.google.protobuf.ByteStringgetNotificationKeywordsBytes(int index) The keywords to be attached to the notification which notifies the start of a new build event stream.intThe keywords to be attached to the notification which notifies the start of a new build event stream.com.google.protobuf.ProtocolStringListThe keywords to be attached to the notification which notifies the start of a new build event stream.Required.Required.Required.Required.com.google.protobuf.ByteStringRequired.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.setCheckPrecedingLifecycleEventsPresent(boolean value) Whether to require a previously received matching InvocationAttemptStarted event before continuing event processing for the event in the current request.setNotificationKeywords(int index, String value) The keywords to be attached to the notification which notifies the start of a new build event stream.Required.setOrderedBuildEvent(OrderedBuildEvent.Builder builderForValue) Required.setProjectId(String value) Required.setProjectIdBytes(com.google.protobuf.ByteString value) Required.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<PublishBuildToolEventStreamRequest.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<PublishBuildToolEventStreamRequest.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<PublishBuildToolEventStreamRequest.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<PublishBuildToolEventStreamRequest.Builder>
-
mergeFrom
public PublishBuildToolEventStreamRequest.Builder mergeFrom(PublishBuildToolEventStreamRequest other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasOrderedBuildEventin interfacePublishBuildToolEventStreamRequestOrBuilder- Returns:
- Whether the orderedBuildEvent field is set.
-
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:
getOrderedBuildEventin interfacePublishBuildToolEventStreamRequestOrBuilder- 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
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
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
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
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:
getOrderedBuildEventOrBuilderin interfacePublishBuildToolEventStreamRequestOrBuilder
-
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:
getNotificationKeywordsListin interfacePublishBuildToolEventStreamRequestOrBuilder- 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:
getNotificationKeywordsCountin interfacePublishBuildToolEventStreamRequestOrBuilder- Returns:
- The count of notificationKeywords.
-
getNotificationKeywords
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:
getNotificationKeywordsin interfacePublishBuildToolEventStreamRequestOrBuilder- 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:
getNotificationKeywordsBytesin interfacePublishBuildToolEventStreamRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the notificationKeywords at the given index.
-
setNotificationKeywords
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
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
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
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 interfacePublishBuildToolEventStreamRequestOrBuilder- 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 interfacePublishBuildToolEventStreamRequestOrBuilder- 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:
getCheckPrecedingLifecycleEventsPresentin interfacePublishBuildToolEventStreamRequestOrBuilder- 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
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.
-