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 classProtobuf typeio.cloudevents.v1.CloudEventstatic final classProtobuf typeio.cloudevents.v1.CloudEvent.CloudEventAttributeValuestatic interfacestatic enumNested 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsAttributes(String key) Optional & Extension AttributesbooleanDeprecated.intOptional & Extension AttributesOptional & Extension AttributesgetAttributesOrDefault(String key, CloudEvent.CloudEventAttributeValue defaultValue) Optional & Extension AttributesOptional & Extension Attributescom.google.protobuf.ByteStringbytes binary_data = 6;static CloudEventstatic final com.google.protobuf.Descriptors.DescriptorgetId()Required Attributescom.google.protobuf.ByteStringRequired 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;intURI-referencecom.google.protobuf.ByteStringURI-referencestring spec_version = 3;com.google.protobuf.ByteStringstring spec_version = 3;string text_data = 7;com.google.protobuf.ByteStringstring text_data = 7;getType()string type = 4;com.google.protobuf.ByteStringstring type = 4;booleanbytes binary_data = 6;inthashCode()boolean.google.protobuf.Any proto_data = 8;booleanstring text_data = 7;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) final booleanstatic CloudEvent.Builderstatic CloudEvent.BuildernewBuilder(CloudEvent prototype) protected CloudEvent.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static CloudEventparseDelimitedFrom(InputStream input) static CloudEventparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CloudEventparseFrom(byte[] data) static CloudEventparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CloudEventparseFrom(com.google.protobuf.ByteString data) static CloudEventparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CloudEventparseFrom(com.google.protobuf.CodedInputStream input) static CloudEventparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CloudEventparseFrom(InputStream input) static CloudEventparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CloudEventparseFrom(ByteBuffer data) static CloudEventparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CloudEvent>parser()voidwriteTo(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, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, 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
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getDataCase
- Specified by:
getDataCasein interfaceCloudEventOrBuilder
-
getId
Required Attributes
string id = 1;- Specified by:
getIdin interfaceCloudEventOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Required Attributes
string id = 1;- Specified by:
getIdBytesin interfaceCloudEventOrBuilder- Returns:
- The bytes for id.
-
getSource
URI-reference
string source = 2;- Specified by:
getSourcein interfaceCloudEventOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()URI-reference
string source = 2;- Specified by:
getSourceBytesin interfaceCloudEventOrBuilder- Returns:
- The bytes for source.
-
getSpecVersion
string spec_version = 3;- Specified by:
getSpecVersionin interfaceCloudEventOrBuilder- Returns:
- The specVersion.
-
getSpecVersionBytes
public com.google.protobuf.ByteString getSpecVersionBytes()string spec_version = 3;- Specified by:
getSpecVersionBytesin interfaceCloudEventOrBuilder- Returns:
- The bytes for specVersion.
-
getType
string type = 4;- Specified by:
getTypein interfaceCloudEventOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()string type = 4;- Specified by:
getTypeBytesin interfaceCloudEventOrBuilder- Returns:
- The bytes for type.
-
getAttributesCount
public int getAttributesCount()Description copied from interface:CloudEventOrBuilderOptional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;- Specified by:
getAttributesCountin interfaceCloudEventOrBuilder
-
containsAttributes
Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;- Specified by:
containsAttributesin interfaceCloudEventOrBuilder
-
getAttributes
Deprecated.UsegetAttributesMap()instead.- Specified by:
getAttributesin interfaceCloudEventOrBuilder
-
getAttributesMap
Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;- Specified by:
getAttributesMapin 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:
getAttributesOrDefaultin interfaceCloudEventOrBuilder
-
getAttributesOrThrow
Optional & Extension Attributes
map<string, .io.cloudevents.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;- Specified by:
getAttributesOrThrowin interfaceCloudEventOrBuilder
-
hasBinaryData
public boolean hasBinaryData()bytes binary_data = 6;- Specified by:
hasBinaryDatain interfaceCloudEventOrBuilder- Returns:
- Whether the binaryData field is set.
-
getBinaryData
public com.google.protobuf.ByteString getBinaryData()bytes binary_data = 6;- Specified by:
getBinaryDatain interfaceCloudEventOrBuilder- Returns:
- The binaryData.
-
hasTextData
public boolean hasTextData()string text_data = 7;- Specified by:
hasTextDatain interfaceCloudEventOrBuilder- Returns:
- Whether the textData field is set.
-
getTextData
string text_data = 7;- Specified by:
getTextDatain interfaceCloudEventOrBuilder- Returns:
- The textData.
-
getTextDataBytes
public com.google.protobuf.ByteString getTextDataBytes()string text_data = 7;- Specified by:
getTextDataBytesin interfaceCloudEventOrBuilder- Returns:
- The bytes for textData.
-
hasProtoData
public boolean hasProtoData().google.protobuf.Any proto_data = 8;- Specified by:
hasProtoDatain interfaceCloudEventOrBuilder- Returns:
- Whether the protoData field is set.
-
getProtoData
public com.google.protobuf.Any getProtoData().google.protobuf.Any proto_data = 8;- Specified by:
getProtoDatain interfaceCloudEventOrBuilder- Returns:
- The protoData.
-
getProtoDataOrBuilder
public com.google.protobuf.AnyOrBuilder getProtoDataOrBuilder().google.protobuf.Any proto_data = 8;- Specified by:
getProtoDataOrBuilderin interfaceCloudEventOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CloudEvent.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-