Interface CloudEventOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
CloudEvent, CloudEvent.Builder

@Generated public interface CloudEventOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getId

      String getId()
       Required. Identifies the event. Producers MUST ensure that source + id is
       unique for each distinct event.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The id.
    • getIdBytes

      com.google.protobuf.ByteString getIdBytes()
       Required. Identifies the event. Producers MUST ensure that source + id is
       unique for each distinct event.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for id.
    • getSource

      String getSource()
       Required. Identifies the context in which an event happened.
       URI-reference
       
      string source = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The source.
    • getSourceBytes

      com.google.protobuf.ByteString getSourceBytes()
       Required. Identifies the context in which an event happened.
       URI-reference
       
      string source = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for source.
    • getSpecVersion

      String getSpecVersion()
       Required. The version of the CloudEvents specification which the event
       uses.
       
      string spec_version = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The specVersion.
    • getSpecVersionBytes

      com.google.protobuf.ByteString getSpecVersionBytes()
       Required. The version of the CloudEvents specification which the event
       uses.
       
      string spec_version = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for specVersion.
    • getType

      String getType()
       Required. This attribute contains a value describing the type of event
       related to the originating occurrence.
       
      string type = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The type.
    • getTypeBytes

      com.google.protobuf.ByteString getTypeBytes()
       Required. This attribute contains a value describing the type of event
       related to the originating occurrence.
       
      string type = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for type.
    • getAttributesCount

      int getAttributesCount()
       Optional. Used for Optional & Extension Attributes
       
      map<string, .google.cloud.eventarc.publishing.v1.CloudEvent.CloudEventAttributeValue> attributes = 5 [(.google.api.field_behavior) = OPTIONAL];
    • containsAttributes

      boolean containsAttributes(String key)
       Optional. Used for Optional & Extension Attributes
       
      map<string, .google.cloud.eventarc.publishing.v1.CloudEvent.CloudEventAttributeValue> attributes = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getAttributes

      Deprecated.
      Use getAttributesMap() instead.
    • getAttributesMap

       Optional. Used for Optional & Extension Attributes
       
      map<string, .google.cloud.eventarc.publishing.v1.CloudEvent.CloudEventAttributeValue> attributes = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getAttributesOrDefault

       Optional. Used for Optional & Extension Attributes
       
      map<string, .google.cloud.eventarc.publishing.v1.CloudEvent.CloudEventAttributeValue> attributes = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getAttributesOrThrow

      CloudEvent.CloudEventAttributeValue getAttributesOrThrow(String key)
       Optional. Used for Optional & Extension Attributes
       
      map<string, .google.cloud.eventarc.publishing.v1.CloudEvent.CloudEventAttributeValue> attributes = 5 [(.google.api.field_behavior) = OPTIONAL];
    • hasBinaryData

      boolean hasBinaryData()
       Optional. Binary data.
       
      bytes binary_data = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the binaryData field is set.
    • getBinaryData

      com.google.protobuf.ByteString getBinaryData()
       Optional. Binary data.
       
      bytes binary_data = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The binaryData.
    • hasTextData

      boolean hasTextData()
       Optional. Text data.
       
      string text_data = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the textData field is set.
    • getTextData

      String getTextData()
       Optional. Text data.
       
      string text_data = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The textData.
    • getTextDataBytes

      com.google.protobuf.ByteString getTextDataBytes()
       Optional. Text data.
       
      string text_data = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for textData.
    • hasProtoData

      boolean hasProtoData()
       Optional. Proto data.
      
       NOTE: The `protoData` field only functions as expected when the payload
       is specifically a `CloudEvent` message type, and can't be used for
       arbitrary protocol buffer messages. For any other protocol buffer type,
       you must serialize your proto message into bytes, and use the
       `binaryData` field instead.
       
      .google.protobuf.Any proto_data = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the protoData field is set.
    • getProtoData

      com.google.protobuf.Any getProtoData()
       Optional. Proto data.
      
       NOTE: The `protoData` field only functions as expected when the payload
       is specifically a `CloudEvent` message type, and can't be used for
       arbitrary protocol buffer messages. For any other protocol buffer type,
       you must serialize your proto message into bytes, and use the
       `binaryData` field instead.
       
      .google.protobuf.Any proto_data = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The protoData.
    • getProtoDataOrBuilder

      com.google.protobuf.AnyOrBuilder getProtoDataOrBuilder()
       Optional. Proto data.
      
       NOTE: The `protoData` field only functions as expected when the payload
       is specifically a `CloudEvent` message type, and can't be used for
       arbitrary protocol buffer messages. For any other protocol buffer type,
       you must serialize your proto message into bytes, and use the
       `binaryData` field instead.
       
      .google.protobuf.Any proto_data = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getDataCase

      CloudEvent.DataCase getDataCase()