Package io.cloudevents.v1.proto
Class CloudEvent
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.cloudevents.v1.proto.CloudEvent
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,CloudEventOrBuilder
,Serializable
public final class CloudEvent
extends com.google.protobuf.GeneratedMessageV3
implements CloudEventOrBuilder
Protobuf type
io.cloudevents.v1.CloudEvent
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Protobuf typeio.cloudevents.v1.CloudEvent
static final class
Protobuf typeio.cloudevents.v1.CloudEvent.CloudEventAttributeValue
static interface
static enum
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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 Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
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 TypeMethodDescriptionboolean
containsAttributes
(String key) Optional & Extension Attributesboolean
Deprecated.int
Optional & Extension AttributesOptional & Extension AttributesgetAttributesOrDefault
(String key, CloudEvent.CloudEventAttributeValue defaultValue) Optional & Extension AttributesOptional & Extension Attributescom.google.protobuf.ByteString
bytes binary_data = 6;
static CloudEvent
static final com.google.protobuf.Descriptors.Descriptor
getId()
Required Attributescom.google.protobuf.ByteString
Required Attributescom.google.protobuf.Parser<CloudEvent>
com.google.protobuf.Any
.google.protobuf.Any proto_data = 8;
com.google.protobuf.AnyOrBuilder
.google.protobuf.Any proto_data = 8;
int
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;
final com.google.protobuf.UnknownFieldSet
int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) final boolean
static CloudEvent.Builder
static CloudEvent.Builder
newBuilder
(CloudEvent prototype) protected CloudEvent.Builder
newBuilderForType
(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) 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
(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 CloudEvent
parseFrom
(ByteBuffer data) static CloudEvent
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CloudEvent>
parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
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, newInstance, 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, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER- See Also:
-
SPEC_VERSION_FIELD_NUMBER
public static final int SPEC_VERSION_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
ATTRIBUTES_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER- See Also:
-
BINARY_DATA_FIELD_NUMBER
public static final int BINARY_DATA_FIELD_NUMBER- See Also:
-
TEXT_DATA_FIELD_NUMBER
public static final int TEXT_DATA_FIELD_NUMBER- See Also:
-
PROTO_DATA_FIELD_NUMBER
public static final int PROTO_DATA_FIELD_NUMBER- See Also:
-
-
Method Details
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getDataCase
- Specified by:
getDataCase
in interfaceCloudEventOrBuilder
-
getId
Required Attributes
string id = 1;
- Specified by:
getId
in interfaceCloudEventOrBuilder
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Required Attributes
string id = 1;
- Specified by:
getIdBytes
in interfaceCloudEventOrBuilder
-
getSource
URI-reference
string source = 2;
- Specified by:
getSource
in interfaceCloudEventOrBuilder
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()URI-reference
string source = 2;
- Specified by:
getSourceBytes
in interfaceCloudEventOrBuilder
-
getSpecVersion
string spec_version = 3;
- Specified by:
getSpecVersion
in interfaceCloudEventOrBuilder
-
getSpecVersionBytes
public com.google.protobuf.ByteString getSpecVersionBytes()string spec_version = 3;
- Specified by:
getSpecVersionBytes
in interfaceCloudEventOrBuilder
-
getType
string type = 4;
- Specified by:
getType
in interfaceCloudEventOrBuilder
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()string type = 4;
- Specified by:
getTypeBytes
in interfaceCloudEventOrBuilder
-
getAttributesCount
public int getAttributesCount()Description copied from interface:CloudEventOrBuilder
Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
- Specified by:
getAttributesCount
in interfaceCloudEventOrBuilder
-
containsAttributes
Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
- Specified by:
containsAttributes
in interfaceCloudEventOrBuilder
-
getAttributes
Deprecated.UsegetAttributesMap()
instead.- Specified by:
getAttributes
in interfaceCloudEventOrBuilder
-
getAttributesMap
Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
- Specified by:
getAttributesMap
in interfaceCloudEventOrBuilder
-
getAttributesOrDefault
public CloudEvent.CloudEventAttributeValue getAttributesOrDefault(String key, CloudEvent.CloudEventAttributeValue defaultValue) Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
- Specified by:
getAttributesOrDefault
in interfaceCloudEventOrBuilder
-
getAttributesOrThrow
Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
- Specified by:
getAttributesOrThrow
in interfaceCloudEventOrBuilder
-
getBinaryData
public com.google.protobuf.ByteString getBinaryData()bytes binary_data = 6;
- Specified by:
getBinaryData
in interfaceCloudEventOrBuilder
-
getTextData
string text_data = 7;
- Specified by:
getTextData
in interfaceCloudEventOrBuilder
-
getTextDataBytes
public com.google.protobuf.ByteString getTextDataBytes()string text_data = 7;
- Specified by:
getTextDataBytes
in interfaceCloudEventOrBuilder
-
getProtoData
public com.google.protobuf.Any getProtoData().google.protobuf.Any proto_data = 8;
- Specified by:
getProtoData
in interfaceCloudEventOrBuilder
-
getProtoDataOrBuilder
public com.google.protobuf.AnyOrBuilder getProtoDataOrBuilder().google.protobuf.Any proto_data = 8;
- Specified by:
getProtoDataOrBuilder
in interfaceCloudEventOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CloudEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudEvent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudEvent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudEvent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CloudEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CloudEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CloudEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CloudEvent.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-