Package com.buildless.telemetry
Class IngestedEvent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<IngestedEvent.Builder>
com.buildless.telemetry.IngestedEvent.Builder
- All Implemented Interfaces:
IngestedEventOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
IngestedEvent
public static final class IngestedEvent.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<IngestedEvent.Builder>
implements IngestedEventOrBuilder
## Telemetry: Event Describes the structure of an event which is being processed by the Buildless platform. This structure is used when emitting various events back out via webhooks.Protobuf type
buildless.telemetry.IngestedEvent-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Specifies the collection to which this event belongs.Specifies the payload of the event being delivered.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearFin()Whether this event is a standalone event (`true`), or part of a series (`false`).Index of this event within the ordinal context of all events sent for a given event stream or session.Specifies the timestamp indicating when this event was ingested.Specifies the timestamp indicating when this event occurred.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Scope or operational context ID for this event.clone()Specifies the collection to which this event belongs.com.google.protobuf.ByteStringSpecifies the collection to which this event belongs.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEvent()Specifies the payload of the event being delivered.com.google.protobuf.ByteStringSpecifies the payload of the event being delivered.booleangetFin()Whether this event is a standalone event (`true`), or part of a series (`false`).intgetIndex()Index of this event within the ordinal context of all events sent for a given event stream or session.longSpecifies the timestamp indicating when this event was ingested.longSpecifies the timestamp indicating when this event occurred.getScope()Scope or operational context ID for this event.com.google.protobuf.ByteStringScope or operational context ID for this event.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(IngestedEvent other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final IngestedEvent.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCollection(String value) Specifies the collection to which this event belongs.setCollectionBytes(com.google.protobuf.ByteString value) Specifies the collection to which this event belongs.Specifies the payload of the event being delivered.setEventBytes(com.google.protobuf.ByteString value) Specifies the payload of the event being delivered.setFin(boolean value) Whether this event is a standalone event (`true`), or part of a series (`false`).setIndex(int value) Index of this event within the ordinal context of all events sent for a given event stream or session.setIngested(long value) Specifies the timestamp indicating when this event was ingested.setOccurred(long value) Specifies the timestamp indicating when this event occurred.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Scope or operational context ID for this event.setScopeBytes(com.google.protobuf.ByteString value) Scope or operational context ID for this event.final IngestedEvent.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<IngestedEvent.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestedEvent.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.GeneratedMessageV3.Builder<IngestedEvent.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<IngestedEvent.Builder>
-
setField
public IngestedEvent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestedEvent.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestedEvent.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestedEvent.Builder>
-
setRepeatedField
public IngestedEvent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestedEvent.Builder>
-
addRepeatedField
public IngestedEvent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestedEvent.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IngestedEvent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestedEvent.Builder>
-
mergeFrom
public IngestedEvent.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<IngestedEvent.Builder>- Throws:
IOException
-
getCollection
Specifies the collection to which this event belongs. Named event collections are used for certain types of events which are grouped together for reporting purposes.
string collection = 1 [json_name = "collection"];- Specified by:
getCollectionin interfaceIngestedEventOrBuilder- Returns:
- The collection.
-
getCollectionBytes
public com.google.protobuf.ByteString getCollectionBytes()Specifies the collection to which this event belongs. Named event collections are used for certain types of events which are grouped together for reporting purposes.
string collection = 1 [json_name = "collection"];- Specified by:
getCollectionBytesin interfaceIngestedEventOrBuilder- Returns:
- The bytes for collection.
-
setCollection
Specifies the collection to which this event belongs. Named event collections are used for certain types of events which are grouped together for reporting purposes.
string collection = 1 [json_name = "collection"];- Parameters:
value- The collection to set.- Returns:
- This builder for chaining.
-
clearCollection
Specifies the collection to which this event belongs. Named event collections are used for certain types of events which are grouped together for reporting purposes.
string collection = 1 [json_name = "collection"];- Returns:
- This builder for chaining.
-
setCollectionBytes
Specifies the collection to which this event belongs. Named event collections are used for certain types of events which are grouped together for reporting purposes.
string collection = 1 [json_name = "collection"];- Parameters:
value- The bytes for collection to set.- Returns:
- This builder for chaining.
-
getFin
public boolean getFin()Whether this event is a standalone event (`true`), or part of a series (`false`). Only applicable when sending streams of events.
bool fin = 2 [json_name = "fin"];- Specified by:
getFinin interfaceIngestedEventOrBuilder- Returns:
- The fin.
-
setFin
Whether this event is a standalone event (`true`), or part of a series (`false`). Only applicable when sending streams of events.
bool fin = 2 [json_name = "fin"];- Parameters:
value- The fin to set.- Returns:
- This builder for chaining.
-
clearFin
Whether this event is a standalone event (`true`), or part of a series (`false`). Only applicable when sending streams of events.
bool fin = 2 [json_name = "fin"];- Returns:
- This builder for chaining.
-
getIndex
public int getIndex()Index of this event within the ordinal context of all events sent for a given event stream or session. Only applicable in circumstances where events have a natural order.
uint32 index = 3 [json_name = "index"];- Specified by:
getIndexin interfaceIngestedEventOrBuilder- Returns:
- The index.
-
setIndex
Index of this event within the ordinal context of all events sent for a given event stream or session. Only applicable in circumstances where events have a natural order.
uint32 index = 3 [json_name = "index"];- Parameters:
value- The index to set.- Returns:
- This builder for chaining.
-
clearIndex
Index of this event within the ordinal context of all events sent for a given event stream or session. Only applicable in circumstances where events have a natural order.
uint32 index = 3 [json_name = "index"];- Returns:
- This builder for chaining.
-
getScope
Scope or operational context ID for this event. This value may be mixed into the event's ID and other data. This value is optional. For example, it may be filled in with a build ID in CI systems.
string scope = 4 [json_name = "scope"];- Specified by:
getScopein interfaceIngestedEventOrBuilder- Returns:
- The scope.
-
getScopeBytes
public com.google.protobuf.ByteString getScopeBytes()Scope or operational context ID for this event. This value may be mixed into the event's ID and other data. This value is optional. For example, it may be filled in with a build ID in CI systems.
string scope = 4 [json_name = "scope"];- Specified by:
getScopeBytesin interfaceIngestedEventOrBuilder- Returns:
- The bytes for scope.
-
setScope
Scope or operational context ID for this event. This value may be mixed into the event's ID and other data. This value is optional. For example, it may be filled in with a build ID in CI systems.
string scope = 4 [json_name = "scope"];- Parameters:
value- The scope to set.- Returns:
- This builder for chaining.
-
clearScope
Scope or operational context ID for this event. This value may be mixed into the event's ID and other data. This value is optional. For example, it may be filled in with a build ID in CI systems.
string scope = 4 [json_name = "scope"];- Returns:
- This builder for chaining.
-
setScopeBytes
Scope or operational context ID for this event. This value may be mixed into the event's ID and other data. This value is optional. For example, it may be filled in with a build ID in CI systems.
string scope = 4 [json_name = "scope"];- Parameters:
value- The bytes for scope to set.- Returns:
- This builder for chaining.
-
getEvent
Specifies the payload of the event being delivered. This field is required and constitutes the actual content of the event which should be validated, enriched, and persisted.
string event = 5 [json_name = "event"];- Specified by:
getEventin interfaceIngestedEventOrBuilder- Returns:
- The event.
-
getEventBytes
public com.google.protobuf.ByteString getEventBytes()Specifies the payload of the event being delivered. This field is required and constitutes the actual content of the event which should be validated, enriched, and persisted.
string event = 5 [json_name = "event"];- Specified by:
getEventBytesin interfaceIngestedEventOrBuilder- Returns:
- The bytes for event.
-
setEvent
Specifies the payload of the event being delivered. This field is required and constitutes the actual content of the event which should be validated, enriched, and persisted.
string event = 5 [json_name = "event"];- Parameters:
value- The event to set.- Returns:
- This builder for chaining.
-
clearEvent
Specifies the payload of the event being delivered. This field is required and constitutes the actual content of the event which should be validated, enriched, and persisted.
string event = 5 [json_name = "event"];- Returns:
- This builder for chaining.
-
setEventBytes
Specifies the payload of the event being delivered. This field is required and constitutes the actual content of the event which should be validated, enriched, and persisted.
string event = 5 [json_name = "event"];- Parameters:
value- The bytes for event to set.- Returns:
- This builder for chaining.
-
getOccurred
public long getOccurred()Specifies the timestamp indicating when this event occurred.
uint64 occurred = 6 [json_name = "occurred"];- Specified by:
getOccurredin interfaceIngestedEventOrBuilder- Returns:
- The occurred.
-
setOccurred
Specifies the timestamp indicating when this event occurred.
uint64 occurred = 6 [json_name = "occurred"];- Parameters:
value- The occurred to set.- Returns:
- This builder for chaining.
-
clearOccurred
Specifies the timestamp indicating when this event occurred.
uint64 occurred = 6 [json_name = "occurred"];- Returns:
- This builder for chaining.
-
getIngested
public long getIngested()Specifies the timestamp indicating when this event was ingested.
uint64 ingested = 7 [json_name = "ingested"];- Specified by:
getIngestedin interfaceIngestedEventOrBuilder- Returns:
- The ingested.
-
setIngested
Specifies the timestamp indicating when this event was ingested.
uint64 ingested = 7 [json_name = "ingested"];- Parameters:
value- The ingested to set.- Returns:
- This builder for chaining.
-
clearIngested
Specifies the timestamp indicating when this event was ingested.
uint64 ingested = 7 [json_name = "ingested"];- Returns:
- This builder for chaining.
-
setUnknownFields
public final IngestedEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestedEvent.Builder>
-
mergeUnknownFields
public final IngestedEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestedEvent.Builder>
-