Class EventContext

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.buildless.telemetry.EventContext
All Implemented Interfaces:
EventContextOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class EventContext extends com.google.protobuf.GeneratedMessageV3 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
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    ## Telemetry Context Describes reference structures which connect `TelemetryEvent` objects with other objects, either within the Buildless model, or externally, via integrations.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Action name that took place on the specified `resource`.
    com.google.protobuf.ByteString
    Action name that took place on the specified `resource`.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Event name or ID which occurred within the scope of this context type.
    com.google.protobuf.ByteString
    Event name or ID which occurred within the scope of this context type.
    com.google.protobuf.Parser<EventContext>
     
    Specifies a resource which this context relates to.
    com.google.protobuf.ByteString
    Specifies a resource which this context relates to.
    int
     
    Type specification for this event context reference.
    com.google.protobuf.ByteString
    Type specification for this event context reference.
    int
     
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<EventContext>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getType

      public String 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:
      getType in interface EventContextOrBuilder
      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:
      getTypeBytes in interface EventContextOrBuilder
      Returns:
      The bytes for type.
    • getResource

      public String 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:
      getResource in interface EventContextOrBuilder
      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:
      getResourceBytes in interface EventContextOrBuilder
      Returns:
      The bytes for resource.
    • getAction

      public String 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:
      getAction in interface EventContextOrBuilder
      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:
      getActionBytes in interface EventContextOrBuilder
      Returns:
      The bytes for action.
    • getEvent

      public String 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:
      getEvent in interface EventContextOrBuilder
      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:
      getEventBytes in interface EventContextOrBuilder
      Returns:
      The bytes for event.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static EventContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventContext parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EventContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EventContext parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EventContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EventContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EventContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public EventContext.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static EventContext.Builder newBuilder()
    • newBuilder

      public static EventContext.Builder newBuilder(EventContext prototype)
    • toBuilder

      public EventContext.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected EventContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static EventContext getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<EventContext> parser()
    • getParserForType

      public com.google.protobuf.Parser<EventContext> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public EventContext getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder