Class CloudEvent.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CloudEventOrBuilder, java.lang.Cloneable
    Enclosing class:
    CloudEvent

    public static final class CloudEvent.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<CloudEvent.Builder>
    implements CloudEventOrBuilder
    Protobuf type dev.sigstore.events.v1.CloudEvent
    • 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.Builder<CloudEvent.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<CloudEvent.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CloudEvent.Builder>
      • clear

        public CloudEvent.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<CloudEvent.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CloudEvent.Builder>
      • getDefaultInstanceForType

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

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

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

        public CloudEvent.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudEvent.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CloudEvent.Builder>
      • mergeFrom

        public CloudEvent.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudEvent.Builder>
        Throws:
        java.io.IOException
      • 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.
      • setId

        public CloudEvent.Builder setId​(java.lang.String value)
         Required Attributes
         
        string id = 1;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public CloudEvent.Builder clearId()
         Required Attributes
         
        string id = 1;
        Returns:
        This builder for chaining.
      • setIdBytes

        public CloudEvent.Builder setIdBytes​(com.google.protobuf.ByteString value)
         Required Attributes
         
        string id = 1;
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • 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.
      • setSource

        public CloudEvent.Builder setSource​(java.lang.String value)
         URI-reference
         
        string source = 2;
        Parameters:
        value - The source to set.
        Returns:
        This builder for chaining.
      • clearSource

        public CloudEvent.Builder clearSource()
         URI-reference
         
        string source = 2;
        Returns:
        This builder for chaining.
      • setSourceBytes

        public CloudEvent.Builder setSourceBytes​(com.google.protobuf.ByteString value)
         URI-reference
         
        string source = 2;
        Parameters:
        value - The bytes for source to set.
        Returns:
        This builder for chaining.
      • 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.
      • setSpecVersion

        public CloudEvent.Builder setSpecVersion​(java.lang.String value)
        string spec_version = 3;
        Parameters:
        value - The specVersion to set.
        Returns:
        This builder for chaining.
      • clearSpecVersion

        public CloudEvent.Builder clearSpecVersion()
        string spec_version = 3;
        Returns:
        This builder for chaining.
      • setSpecVersionBytes

        public CloudEvent.Builder setSpecVersionBytes​(com.google.protobuf.ByteString value)
        string spec_version = 3;
        Parameters:
        value - The bytes for specVersion to set.
        Returns:
        This builder for chaining.
      • 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.
      • setType

        public CloudEvent.Builder setType​(java.lang.String value)
        string type = 4;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public CloudEvent.Builder clearType()
        string type = 4;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public CloudEvent.Builder setTypeBytes​(com.google.protobuf.ByteString value)
        string type = 4;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • 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
      • removeAttributes

        public CloudEvent.Builder removeAttributes​(java.lang.String key)
         Optional & Extension Attributes
         
        map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
      • getMutableAttributes

        @Deprecated
        public java.util.Map<java.lang.String,​CloudEvent.CloudEventAttributeValue> getMutableAttributes()
        Deprecated.
        Use alternate mutation accessors instead.
      • putAllAttributes

        public CloudEvent.Builder putAllAttributes​(java.util.Map<java.lang.String,​CloudEvent.CloudEventAttributeValue> values)
         Optional & Extension Attributes
         
        map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
      • putAttributesBuilderIfAbsent

        public CloudEvent.CloudEventAttributeValue.Builder putAttributesBuilderIfAbsent​(java.lang.String key)
         Optional & Extension Attributes
         
        map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
      • 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.
      • setBinaryData

        public CloudEvent.Builder setBinaryData​(com.google.protobuf.ByteString value)
        bytes binary_data = 6;
        Parameters:
        value - The binaryData to set.
        Returns:
        This builder for chaining.
      • clearBinaryData

        public CloudEvent.Builder clearBinaryData()
        bytes binary_data = 6;
        Returns:
        This builder for chaining.
      • 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.
      • setTextData

        public CloudEvent.Builder setTextData​(java.lang.String value)
        string text_data = 7;
        Parameters:
        value - The textData to set.
        Returns:
        This builder for chaining.
      • clearTextData

        public CloudEvent.Builder clearTextData()
        string text_data = 7;
        Returns:
        This builder for chaining.
      • setTextDataBytes

        public CloudEvent.Builder setTextDataBytes​(com.google.protobuf.ByteString value)
        string text_data = 7;
        Parameters:
        value - The bytes for textData to set.
        Returns:
        This builder for chaining.
      • 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.
      • setProtoData

        public CloudEvent.Builder setProtoData​(com.google.protobuf.Any value)
        .google.protobuf.Any proto_data = 8;
      • setProtoData

        public CloudEvent.Builder setProtoData​(com.google.protobuf.Any.Builder builderForValue)
        .google.protobuf.Any proto_data = 8;
      • mergeProtoData

        public CloudEvent.Builder mergeProtoData​(com.google.protobuf.Any value)
        .google.protobuf.Any proto_data = 8;
      • clearProtoData

        public CloudEvent.Builder clearProtoData()
        .google.protobuf.Any proto_data = 8;
      • getProtoDataBuilder

        public com.google.protobuf.Any.Builder getProtoDataBuilder()
        .google.protobuf.Any proto_data = 8;