Package com.buildless.telemetry
Class EventContext.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<EventContext.Builder>
com.buildless.telemetry.EventContext.Builder
- All Implemented Interfaces:
EventContextOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
EventContext
public static final class EventContext.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<EventContext.Builder>
implements EventContextOrBuilder
## Telemetry Context Describes reference structures which connect `TelemetryEvent` objects with other objects, either within the Buildless model, or externally, via integrations. ## Context type structure Telemetry context is typed. Each context record linkage has a required `type` field which maps to an implementation protocol message. Implementation messages may be private and may be defined in the modules to which they relate.Protobuf type
buildless.telemetry.EventContext-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Action name that took place on the specified `resource`.Event name or ID which occurred within the scope of this context type.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Specifies a resource which this context relates to.Type specification for this event context reference.clone()Action name that took place on the specified `resource`.com.google.protobuf.ByteStringAction name that took place on the specified `resource`.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEvent()Event name or ID which occurred within the scope of this context type.com.google.protobuf.ByteStringEvent name or ID which occurred within the scope of this context type.Specifies a resource which this context relates to.com.google.protobuf.ByteStringSpecifies a resource which this context relates to.getType()Type specification for this event context reference.com.google.protobuf.ByteStringType specification for this event context reference.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(EventContext other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final EventContext.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Action name that took place on the specified `resource`.setActionBytes(com.google.protobuf.ByteString value) Action name that took place on the specified `resource`.Event name or ID which occurred within the scope of this context type.setEventBytes(com.google.protobuf.ByteString value) Event name or ID which occurred within the scope of this context type.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResource(String value) Specifies a resource which this context relates to.setResourceBytes(com.google.protobuf.ByteString value) Specifies a resource which this context relates to.Type specification for this event context reference.setTypeBytes(com.google.protobuf.ByteString value) Type specification for this event context reference.final EventContext.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<EventContext.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<EventContext.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<EventContext.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<EventContext.Builder>
-
setField
public EventContext.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<EventContext.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EventContext.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<EventContext.Builder>
-
setRepeatedField
public EventContext.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<EventContext.Builder>
-
addRepeatedField
public EventContext.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<EventContext.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EventContext.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<EventContext.Builder>
-
mergeFrom
public EventContext.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<EventContext.Builder>- Throws:
IOException
-
getType
Type specification for this event context reference. This value should be a well-formed type URL which points to the protocol message implementing this context type.
string type = 1 [json_name = "type", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Specified by:
getTypein interfaceEventContextOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Type specification for this event context reference. This value should be a well-formed type URL which points to the protocol message implementing this context type.
string type = 1 [json_name = "type", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Specified by:
getTypeBytesin interfaceEventContextOrBuilder- Returns:
- The bytes for type.
-
setType
Type specification for this event context reference. This value should be a well-formed type URL which points to the protocol message implementing this context type.
string type = 1 [json_name = "type", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Type specification for this event context reference. This value should be a well-formed type URL which points to the protocol message implementing this context type.
string type = 1 [json_name = "type", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setTypeBytes
Type specification for this event context reference. This value should be a well-formed type URL which points to the protocol message implementing this context type.
string type = 1 [json_name = "type", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
getResource
Specifies a resource which this context relates to. Optional, and only specifies when a resource relates to an event context payload.
string resource = 2 [json_name = "resource", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Specified by:
getResourcein interfaceEventContextOrBuilder- Returns:
- The resource.
-
getResourceBytes
public com.google.protobuf.ByteString getResourceBytes()Specifies a resource which this context relates to. Optional, and only specifies when a resource relates to an event context payload.
string resource = 2 [json_name = "resource", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Specified by:
getResourceBytesin interfaceEventContextOrBuilder- Returns:
- The bytes for resource.
-
setResource
Specifies a resource which this context relates to. Optional, and only specifies when a resource relates to an event context payload.
string resource = 2 [json_name = "resource", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Parameters:
value- The resource to set.- Returns:
- This builder for chaining.
-
clearResource
Specifies a resource which this context relates to. Optional, and only specifies when a resource relates to an event context payload.
string resource = 2 [json_name = "resource", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setResourceBytes
Specifies a resource which this context relates to. Optional, and only specifies when a resource relates to an event context payload.
string resource = 2 [json_name = "resource", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Parameters:
value- The bytes for resource to set.- Returns:
- This builder for chaining.
-
getAction
Action name that took place on the specified `resource`. Only allowed when a `resource` is specified, in which case `resource` is required.
string action = 3 [json_name = "action", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Specified by:
getActionin interfaceEventContextOrBuilder- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()Action name that took place on the specified `resource`. Only allowed when a `resource` is specified, in which case `resource` is required.
string action = 3 [json_name = "action", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Specified by:
getActionBytesin interfaceEventContextOrBuilder- Returns:
- The bytes for action.
-
setAction
Action name that took place on the specified `resource`. Only allowed when a `resource` is specified, in which case `resource` is required.
string action = 3 [json_name = "action", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Parameters:
value- The action to set.- Returns:
- This builder for chaining.
-
clearAction
Action name that took place on the specified `resource`. Only allowed when a `resource` is specified, in which case `resource` is required.
string action = 3 [json_name = "action", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setActionBytes
Action name that took place on the specified `resource`. Only allowed when a `resource` is specified, in which case `resource` is required.
string action = 3 [json_name = "action", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Parameters:
value- The bytes for action to set.- Returns:
- This builder for chaining.
-
getEvent
Event name or ID which occurred within the scope of this context type. This value is required for all context types and effectively describes available detail, or the event which triggered this context.
string event = 4 [json_name = "event", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Specified by:
getEventin interfaceEventContextOrBuilder- Returns:
- The event.
-
getEventBytes
public com.google.protobuf.ByteString getEventBytes()Event name or ID which occurred within the scope of this context type. This value is required for all context types and effectively describes available detail, or the event which triggered this context.
string event = 4 [json_name = "event", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Specified by:
getEventBytesin interfaceEventContextOrBuilder- Returns:
- The bytes for event.
-
setEvent
Event name or ID which occurred within the scope of this context type. This value is required for all context types and effectively describes available detail, or the event which triggered this context.
string event = 4 [json_name = "event", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Parameters:
value- The event to set.- Returns:
- This builder for chaining.
-
clearEvent
Event name or ID which occurred within the scope of this context type. This value is required for all context types and effectively describes available detail, or the event which triggered this context.
string event = 4 [json_name = "event", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setEventBytes
Event name or ID which occurred within the scope of this context type. This value is required for all context types and effectively describes available detail, or the event which triggered this context.
string event = 4 [json_name = "event", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Parameters:
value- The bytes for event to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final EventContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EventContext.Builder>
-
mergeUnknownFields
public final EventContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EventContext.Builder>
-