Package dev.sigstore.proto.events.v1
Class CloudEvent
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- dev.sigstore.proto.events.v1.CloudEvent
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CloudEventOrBuilder,java.io.Serializable
public final class CloudEvent extends com.google.protobuf.GeneratedMessage implements CloudEventOrBuilder
Protobuf typedev.sigstore.events.v1.CloudEvent- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCloudEvent.BuilderProtobuf typedev.sigstore.events.v1.CloudEventstatic classCloudEvent.CloudEventAttributeValueProtobuf typedev.sigstore.events.v1.CloudEvent.CloudEventAttributeValuestatic interfaceCloudEvent.CloudEventAttributeValueOrBuilderstatic classCloudEvent.DataCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intATTRIBUTES_FIELD_NUMBERstatic intBINARY_DATA_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intPROTO_DATA_FIELD_NUMBERstatic intSOURCE_FIELD_NUMBERstatic intSPEC_VERSION_FIELD_NUMBERstatic intTEXT_DATA_FIELD_NUMBERstatic intTYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsAttributes(java.lang.String key)Optional & Extension Attributesbooleanequals(java.lang.Object obj)java.util.Map<java.lang.String,CloudEvent.CloudEventAttributeValue>getAttributes()Deprecated.intgetAttributesCount()Optional & Extension Attributesjava.util.Map<java.lang.String,CloudEvent.CloudEventAttributeValue>getAttributesMap()Optional & Extension AttributesCloudEvent.CloudEventAttributeValuegetAttributesOrDefault(java.lang.String key, CloudEvent.CloudEventAttributeValue defaultValue)Optional & Extension AttributesCloudEvent.CloudEventAttributeValuegetAttributesOrThrow(java.lang.String key)Optional & Extension Attributescom.google.protobuf.ByteStringgetBinaryData()bytes binary_data = 6;CloudEvent.DataCasegetDataCase()static CloudEventgetDefaultInstance()CloudEventgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetId()Required Attributescom.google.protobuf.ByteStringgetIdBytes()Required Attributescom.google.protobuf.Parser<CloudEvent>getParserForType()com.google.protobuf.AnygetProtoData().google.protobuf.Any proto_data = 8;com.google.protobuf.AnyOrBuildergetProtoDataOrBuilder().google.protobuf.Any proto_data = 8;intgetSerializedSize()java.lang.StringgetSource()URI-referencecom.google.protobuf.ByteStringgetSourceBytes()URI-referencejava.lang.StringgetSpecVersion()string spec_version = 3;com.google.protobuf.ByteStringgetSpecVersionBytes()string spec_version = 3;java.lang.StringgetTextData()string text_data = 7;com.google.protobuf.ByteStringgetTextDataBytes()string text_data = 7;java.lang.StringgetType()string type = 4;com.google.protobuf.ByteStringgetTypeBytes()string type = 4;booleanhasBinaryData()bytes binary_data = 6;inthashCode()booleanhasProtoData().google.protobuf.Any proto_data = 8;booleanhasTextData()string text_data = 7;protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static CloudEvent.BuildernewBuilder()static CloudEvent.BuildernewBuilder(CloudEvent prototype)CloudEvent.BuildernewBuilderForType()protected CloudEvent.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static CloudEventparseDelimitedFrom(java.io.InputStream input)static CloudEventparseDelimitedFrom(java.io.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(java.io.InputStream input)static CloudEventparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloudEventparseFrom(java.nio.ByteBuffer data)static CloudEventparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<CloudEvent>parser()CloudEvent.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, 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, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SPEC_VERSION_FIELD_NUMBER
public static final int SPEC_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTRIBUTES_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BINARY_DATA_FIELD_NUMBER
public static final int BINARY_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXT_DATA_FIELD_NUMBER
public static final int TEXT_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROTO_DATA_FIELD_NUMBER
public static final int PROTO_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getDataCase
public CloudEvent.DataCase getDataCase()
- Specified by:
getDataCasein interfaceCloudEventOrBuilder
-
getId
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;- Specified by:
getAttributesCountin interfaceCloudEventOrBuilder
-
containsAttributes
public boolean containsAttributes(java.lang.String key)
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;- Specified by:
containsAttributesin interfaceCloudEventOrBuilder
-
getAttributes
@Deprecated public java.util.Map<java.lang.String,CloudEvent.CloudEventAttributeValue> getAttributes()
Deprecated.UsegetAttributesMap()instead.- Specified by:
getAttributesin interfaceCloudEventOrBuilder
-
getAttributesMap
public java.util.Map<java.lang.String,CloudEvent.CloudEventAttributeValue> getAttributesMap()
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;- Specified by:
getAttributesMapin interfaceCloudEventOrBuilder
-
getAttributesOrDefault
public CloudEvent.CloudEventAttributeValue getAttributesOrDefault(java.lang.String key, CloudEvent.CloudEventAttributeValue defaultValue)
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;- Specified by:
getAttributesOrDefaultin interfaceCloudEventOrBuilder
-
getAttributesOrThrow
public CloudEvent.CloudEventAttributeValue getAttributesOrThrow(java.lang.String key)
Optional & Extension Attributes
map<string, .dev.sigstore.events.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
public java.lang.String 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.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- 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(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudEvent parseFrom(java.nio.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
public static CloudEvent parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static CloudEvent parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static CloudEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static CloudEvent parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static CloudEvent parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static CloudEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public CloudEvent.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CloudEvent.Builder newBuilder()
-
newBuilder
public static CloudEvent.Builder newBuilder(CloudEvent prototype)
-
toBuilder
public CloudEvent.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CloudEvent.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static CloudEvent getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CloudEvent> parser()
-
getParserForType
public com.google.protobuf.Parser<CloudEvent> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public CloudEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-