Class 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 type dev.sigstore.events.v1.CloudEvent
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CloudEvent.Builder
      Protobuf type dev.sigstore.events.v1.CloudEvent
      static class  CloudEvent.CloudEventAttributeValue
      Protobuf type dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue
      static interface  CloudEvent.CloudEventAttributeValueOrBuilder  
      static class  CloudEvent.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
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

        com.google.protobuf.AbstractMessage.BuilderParent
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
      • getId

        public java.lang.String getId()
         Required Attributes
         
        string id = 1;
        Specified by:
        getId in interface CloudEventOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         Required Attributes
         
        string id = 1;
        Specified by:
        getIdBytes in interface CloudEventOrBuilder
        Returns:
        The bytes for id.
      • getSource

        public java.lang.String getSource()
         URI-reference
         
        string source = 2;
        Specified by:
        getSource in interface CloudEventOrBuilder
        Returns:
        The source.
      • getSourceBytes

        public com.google.protobuf.ByteString getSourceBytes()
         URI-reference
         
        string source = 2;
        Specified by:
        getSourceBytes in interface CloudEventOrBuilder
        Returns:
        The bytes for source.
      • getSpecVersion

        public java.lang.String getSpecVersion()
        string spec_version = 3;
        Specified by:
        getSpecVersion in interface CloudEventOrBuilder
        Returns:
        The specVersion.
      • getSpecVersionBytes

        public com.google.protobuf.ByteString getSpecVersionBytes()
        string spec_version = 3;
        Specified by:
        getSpecVersionBytes in interface CloudEventOrBuilder
        Returns:
        The bytes for specVersion.
      • getType

        public java.lang.String getType()
        string type = 4;
        Specified by:
        getType in interface CloudEventOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
        string type = 4;
        Specified by:
        getTypeBytes in interface CloudEventOrBuilder
        Returns:
        The bytes for type.
      • getAttributesCount

        public int getAttributesCount()
        Description copied from interface: CloudEventOrBuilder
         Optional & Extension Attributes
         
        map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
        Specified by:
        getAttributesCount in interface CloudEventOrBuilder
      • containsAttributes

        public boolean containsAttributes​(java.lang.String key)
         Optional & Extension Attributes
         
        map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
        Specified by:
        containsAttributes in interface CloudEventOrBuilder
      • hasBinaryData

        public boolean hasBinaryData()
        bytes binary_data = 6;
        Specified by:
        hasBinaryData in interface CloudEventOrBuilder
        Returns:
        Whether the binaryData field is set.
      • getBinaryData

        public com.google.protobuf.ByteString getBinaryData()
        bytes binary_data = 6;
        Specified by:
        getBinaryData in interface CloudEventOrBuilder
        Returns:
        The binaryData.
      • hasTextData

        public boolean hasTextData()
        string text_data = 7;
        Specified by:
        hasTextData in interface CloudEventOrBuilder
        Returns:
        Whether the textData field is set.
      • getTextData

        public java.lang.String getTextData()
        string text_data = 7;
        Specified by:
        getTextData in interface CloudEventOrBuilder
        Returns:
        The textData.
      • getTextDataBytes

        public com.google.protobuf.ByteString getTextDataBytes()
        string text_data = 7;
        Specified by:
        getTextDataBytes in interface CloudEventOrBuilder
        Returns:
        The bytes for textData.
      • hasProtoData

        public boolean hasProtoData()
        .google.protobuf.Any proto_data = 8;
        Specified by:
        hasProtoData in interface CloudEventOrBuilder
        Returns:
        Whether the protoData field is set.
      • getProtoData

        public com.google.protobuf.Any getProtoData()
        .google.protobuf.Any proto_data = 8;
        Specified by:
        getProtoData in interface CloudEventOrBuilder
        Returns:
        The protoData.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public CloudEvent.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected CloudEvent.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.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:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessage
      • getDefaultInstanceForType

        public CloudEvent getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder