Package io.cloudevents.v1.proto
Interface CloudEventOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CloudEvent
,CloudEvent.Builder
public interface CloudEventOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsAttributes
(String key) Optional & Extension AttributesDeprecated.int
Optional & Extension AttributesOptional & Extension AttributesgetAttributesOrDefault
(String key, CloudEvent.CloudEventAttributeValue defaultValue) Optional & Extension AttributesOptional & Extension Attributescom.google.protobuf.ByteString
bytes binary_data = 6;
getId()
Required Attributescom.google.protobuf.ByteString
Required Attributescom.google.protobuf.Any
.google.protobuf.Any proto_data = 8;
com.google.protobuf.AnyOrBuilder
.google.protobuf.Any proto_data = 8;
URI-referencecom.google.protobuf.ByteString
URI-referencestring spec_version = 3;
com.google.protobuf.ByteString
string spec_version = 3;
string text_data = 7;
com.google.protobuf.ByteString
string text_data = 7;
getType()
string type = 4;
com.google.protobuf.ByteString
string type = 4;
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getId
String getId()Required Attributes
string id = 1;
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()Required Attributes
string id = 1;
-
getSource
String getSource()URI-reference
string source = 2;
-
getSourceBytes
com.google.protobuf.ByteString getSourceBytes()URI-reference
string source = 2;
-
getSpecVersion
String getSpecVersion()string spec_version = 3;
-
getSpecVersionBytes
com.google.protobuf.ByteString getSpecVersionBytes()string spec_version = 3;
-
getType
String getType()string type = 4;
-
getTypeBytes
com.google.protobuf.ByteString getTypeBytes()string type = 4;
-
getAttributesCount
int getAttributesCount()Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
-
containsAttributes
Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
-
getAttributes
Deprecated.UsegetAttributesMap()
instead. -
getAttributesMap
Map<String,CloudEvent.CloudEventAttributeValue> getAttributesMap()Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
-
getAttributesOrDefault
CloudEvent.CloudEventAttributeValue getAttributesOrDefault(String key, CloudEvent.CloudEventAttributeValue defaultValue) Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
-
getAttributesOrThrow
Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
-
getBinaryData
com.google.protobuf.ByteString getBinaryData()bytes binary_data = 6;
-
getTextData
String getTextData()string text_data = 7;
-
getTextDataBytes
com.google.protobuf.ByteString getTextDataBytes()string text_data = 7;
-
getProtoData
com.google.protobuf.Any getProtoData().google.protobuf.Any proto_data = 8;
-
getProtoDataOrBuilder
com.google.protobuf.AnyOrBuilder getProtoDataOrBuilder().google.protobuf.Any proto_data = 8;
-
getDataCase
CloudEvent.DataCase getDataCase()
-