public final class CloudEvent extends com.google.protobuf.GeneratedMessageV3 implements CloudEventOrBuilder
io.cloudevents.v1.CloudEvent| Modifier and Type | Class and Description |
|---|---|
static class |
CloudEvent.Builder
Protobuf type
io.cloudevents.v1.CloudEvent |
static class |
CloudEvent.CloudEventAttributeValue
Protobuf type
io.cloudevents.v1.CloudEvent.CloudEventAttributeValue |
static interface |
CloudEvent.CloudEventAttributeValueOrBuilder |
static class |
CloudEvent.DataCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRIBUTES_FIELD_NUMBER |
static int |
BINARY_DATA_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
PROTO_DATA_FIELD_NUMBER |
static int |
SOURCE_FIELD_NUMBER |
static int |
SPEC_VERSION_FIELD_NUMBER |
static int |
TEXT_DATA_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAttributes(String key)
Optional & Extension Attributes
|
boolean |
equals(Object obj) |
Map<String,CloudEvent.CloudEventAttributeValue> |
getAttributes()
Deprecated.
|
int |
getAttributesCount()
Optional & Extension Attributes
|
Map<String,CloudEvent.CloudEventAttributeValue> |
getAttributesMap()
Optional & Extension Attributes
|
CloudEvent.CloudEventAttributeValue |
getAttributesOrDefault(String key,
CloudEvent.CloudEventAttributeValue defaultValue)
Optional & Extension Attributes
|
CloudEvent.CloudEventAttributeValue |
getAttributesOrThrow(String key)
Optional & Extension Attributes
|
com.google.protobuf.ByteString |
getBinaryData()
bytes binary_data = 6; |
CloudEvent.DataCase |
getDataCase() |
static CloudEvent |
getDefaultInstance() |
CloudEvent |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getId()
Required Attributes
|
com.google.protobuf.ByteString |
getIdBytes()
Required Attributes
|
com.google.protobuf.Parser<CloudEvent> |
getParserForType() |
com.google.protobuf.Any |
getProtoData()
.google.protobuf.Any proto_data = 8; |
com.google.protobuf.AnyOrBuilder |
getProtoDataOrBuilder()
.google.protobuf.Any proto_data = 8; |
int |
getSerializedSize() |
String |
getSource()
URI-reference
|
com.google.protobuf.ByteString |
getSourceBytes()
URI-reference
|
String |
getSpecVersion()
string spec_version = 3; |
com.google.protobuf.ByteString |
getSpecVersionBytes()
string spec_version = 3; |
String |
getTextData()
string text_data = 7; |
com.google.protobuf.ByteString |
getTextDataBytes()
string text_data = 7; |
String |
getType()
string type = 4; |
com.google.protobuf.ByteString |
getTypeBytes()
string type = 4; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasBinaryData()
bytes binary_data = 6; |
int |
hashCode() |
boolean |
hasProtoData()
.google.protobuf.Any proto_data = 8; |
boolean |
hasTextData()
string text_data = 7; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static CloudEvent.Builder |
newBuilder() |
static CloudEvent.Builder |
newBuilder(CloudEvent prototype) |
CloudEvent.Builder |
newBuilderForType() |
protected CloudEvent.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CloudEvent |
parseDelimitedFrom(InputStream input) |
static CloudEvent |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CloudEvent |
parseFrom(byte[] data) |
static CloudEvent |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CloudEvent |
parseFrom(ByteBuffer data) |
static CloudEvent |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CloudEvent |
parseFrom(com.google.protobuf.ByteString data) |
static CloudEvent |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CloudEvent |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CloudEvent |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CloudEvent |
parseFrom(InputStream input) |
static CloudEvent |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CloudEvent> |
parser() |
CloudEvent.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ID_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
public static final int SPEC_VERSION_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
public static final int BINARY_DATA_FIELD_NUMBER
public static final int TEXT_DATA_FIELD_NUMBER
public static final int PROTO_DATA_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public CloudEvent.DataCase getDataCase()
getDataCase in interface CloudEventOrBuilderpublic String getId()
Required Attributes
string id = 1;getId in interface CloudEventOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
Required Attributes
string id = 1;getIdBytes in interface CloudEventOrBuilderpublic String getSource()
URI-reference
string source = 2;getSource in interface CloudEventOrBuilderpublic com.google.protobuf.ByteString getSourceBytes()
URI-reference
string source = 2;getSourceBytes in interface CloudEventOrBuilderpublic String getSpecVersion()
string spec_version = 3;getSpecVersion in interface CloudEventOrBuilderpublic com.google.protobuf.ByteString getSpecVersionBytes()
string spec_version = 3;getSpecVersionBytes in interface CloudEventOrBuilderpublic String getType()
string type = 4;getType in interface CloudEventOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
string type = 4;getTypeBytes in interface CloudEventOrBuilderpublic int getAttributesCount()
CloudEventOrBuilderOptional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;getAttributesCount in interface CloudEventOrBuilderpublic boolean containsAttributes(String key)
Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;containsAttributes in interface CloudEventOrBuilder@Deprecated public Map<String,CloudEvent.CloudEventAttributeValue> getAttributes()
getAttributesMap() instead.getAttributes in interface CloudEventOrBuilderpublic Map<String,CloudEvent.CloudEventAttributeValue> getAttributesMap()
Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;getAttributesMap in interface CloudEventOrBuilderpublic CloudEvent.CloudEventAttributeValue getAttributesOrDefault(String key, CloudEvent.CloudEventAttributeValue defaultValue)
Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;getAttributesOrDefault in interface CloudEventOrBuilderpublic CloudEvent.CloudEventAttributeValue getAttributesOrThrow(String key)
Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;getAttributesOrThrow in interface CloudEventOrBuilderpublic boolean hasBinaryData()
bytes binary_data = 6;hasBinaryData in interface CloudEventOrBuilderpublic com.google.protobuf.ByteString getBinaryData()
bytes binary_data = 6;getBinaryData in interface CloudEventOrBuilderpublic boolean hasTextData()
string text_data = 7;hasTextData in interface CloudEventOrBuilderpublic String getTextData()
string text_data = 7;getTextData in interface CloudEventOrBuilderpublic com.google.protobuf.ByteString getTextDataBytes()
string text_data = 7;getTextDataBytes in interface CloudEventOrBuilderpublic boolean hasProtoData()
.google.protobuf.Any proto_data = 8;hasProtoData in interface CloudEventOrBuilderpublic com.google.protobuf.Any getProtoData()
.google.protobuf.Any proto_data = 8;getProtoData in interface CloudEventOrBuilderpublic com.google.protobuf.AnyOrBuilder getProtoDataOrBuilder()
.google.protobuf.Any proto_data = 8;getProtoDataOrBuilder in interface CloudEventOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static CloudEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CloudEvent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CloudEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CloudEvent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CloudEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CloudEvent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CloudEvent parseFrom(InputStream input) throws IOException
IOExceptionpublic static CloudEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CloudEvent parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CloudEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CloudEvent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CloudEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CloudEvent.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CloudEvent.Builder newBuilder()
public static CloudEvent.Builder newBuilder(CloudEvent prototype)
public CloudEvent.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CloudEvent.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CloudEvent getDefaultInstance()
public static com.google.protobuf.Parser<CloudEvent> parser()
public com.google.protobuf.Parser<CloudEvent> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CloudEvent getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023. All rights reserved.