Package com.buildless.service.v1
Class Event.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
com.buildless.service.v1.Event.Builder
- All Implemented Interfaces:
EventOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
Event
public static final class Event.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
implements EventOrBuilder
Defines the structure for an event which is delivered to the _Telemetry Service_. Events are mostly generic objects, which may be expressed in streaming or unary form. For the latter, `fin` should be set to `true` (or, for the last event in a stream).Protobuf type
buildless.service.v1.Event-
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.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.Specifies the payload of the event being delivered.Specifies 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.getScope()Scope or operational context ID for this event.com.google.protobuf.ByteStringScope or operational context ID for this event.booleanhasEvent()Specifies the payload of the event being delivered.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeEvent(TelemetryEvent value) Specifies the payload of the event being delivered.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Event.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.setEvent(TelemetryEvent value) Specifies the payload of the event being delivered.setEvent(TelemetryEvent.Builder builderForValue) 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.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 Event.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<Event.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<Event.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<Event.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<Event.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
setRepeatedField
public Event.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<Event.Builder>
-
addRepeatedField
public Event.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<Event.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Event.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
mergeFrom
public Event.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<Event.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", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Specified by:
getCollectionin interfaceEventOrBuilder- 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", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Specified by:
getCollectionBytesin interfaceEventOrBuilder- 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", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- 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", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- 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", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- 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", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getFinin interfaceEventOrBuilder- 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", (.google.api.field_behavior) = OPTIONAL];- 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", (.google.api.field_behavior) = OPTIONAL];- 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", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getIndexin interfaceEventOrBuilder- 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", (.google.api.field_behavior) = OPTIONAL];- 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", (.google.api.field_behavior) = OPTIONAL];- 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", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getScopein interfaceEventOrBuilder- 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", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getScopeBytesin interfaceEventOrBuilder- 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", (.google.api.field_behavior) = OPTIONAL];- 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", (.google.api.field_behavior) = OPTIONAL];- 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", (.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for scope to set.- Returns:
- This builder for chaining.
-
hasEvent
public boolean hasEvent()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.
.buildless.telemetry.TelemetryEvent event = 5 [json_name = "event", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Specified by:
hasEventin interfaceEventOrBuilder- Returns:
- Whether the event field is set.
-
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.
.buildless.telemetry.TelemetryEvent event = 5 [json_name = "event", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Specified by:
getEventin interfaceEventOrBuilder- Returns:
- The 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.
.buildless.telemetry.TelemetryEvent event = 5 [json_name = "event", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... } -
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.
.buildless.telemetry.TelemetryEvent event = 5 [json_name = "event", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... } -
mergeEvent
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.
.buildless.telemetry.TelemetryEvent event = 5 [json_name = "event", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... } -
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.
.buildless.telemetry.TelemetryEvent event = 5 [json_name = "event", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... } -
getEventBuilder
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.
.buildless.telemetry.TelemetryEvent event = 5 [json_name = "event", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... } -
getEventOrBuilder
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.
.buildless.telemetry.TelemetryEvent event = 5 [json_name = "event", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Specified by:
getEventOrBuilderin interfaceEventOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-