Class PubSub.KeyValue.Builder

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

    public static final class PubSub.KeyValue.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<PubSub.KeyValue.Builder>
    implements PubSub.KeyValueOrBuilder
     *
     KeyValue sent to the PubSub by ingest.
     
    Protobuf type cz.o2.proxima.io.pubsub.proto.KeyValue
    • Method Detail

      • getDescriptor

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

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

        public PubSub.KeyValue.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<PubSub.KeyValue.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<PubSub.KeyValue.Builder>
      • getDefaultInstanceForType

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

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

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

        public PubSub.KeyValue.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<PubSub.KeyValue.Builder>
      • isInitialized

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

        public PubSub.KeyValue.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<PubSub.KeyValue.Builder>
        Throws:
        java.io.IOException
      • getKey

        public java.lang.String getKey()
         * Key of entity. 
         
        string key = 1;
        Specified by:
        getKey in interface PubSub.KeyValueOrBuilder
        Returns:
        The key.
      • getKeyBytes

        public com.google.protobuf.ByteString getKeyBytes()
         * Key of entity. 
         
        string key = 1;
        Specified by:
        getKeyBytes in interface PubSub.KeyValueOrBuilder
        Returns:
        The bytes for key.
      • setKey

        public PubSub.KeyValue.Builder setKey​(java.lang.String value)
         * Key of entity. 
         
        string key = 1;
        Parameters:
        value - The key to set.
        Returns:
        This builder for chaining.
      • clearKey

        public PubSub.KeyValue.Builder clearKey()
         * Key of entity. 
         
        string key = 1;
        Returns:
        This builder for chaining.
      • setKeyBytes

        public PubSub.KeyValue.Builder setKeyBytes​(com.google.protobuf.ByteString value)
         * Key of entity. 
         
        string key = 1;
        Parameters:
        value - The bytes for key to set.
        Returns:
        This builder for chaining.
      • getAttribute

        public java.lang.String getAttribute()
         * Attribute of entity. 
         
        string attribute = 2;
        Specified by:
        getAttribute in interface PubSub.KeyValueOrBuilder
        Returns:
        The attribute.
      • getAttributeBytes

        public com.google.protobuf.ByteString getAttributeBytes()
         * Attribute of entity. 
         
        string attribute = 2;
        Specified by:
        getAttributeBytes in interface PubSub.KeyValueOrBuilder
        Returns:
        The bytes for attribute.
      • setAttribute

        public PubSub.KeyValue.Builder setAttribute​(java.lang.String value)
         * Attribute of entity. 
         
        string attribute = 2;
        Parameters:
        value - The attribute to set.
        Returns:
        This builder for chaining.
      • clearAttribute

        public PubSub.KeyValue.Builder clearAttribute()
         * Attribute of entity. 
         
        string attribute = 2;
        Returns:
        This builder for chaining.
      • setAttributeBytes

        public PubSub.KeyValue.Builder setAttributeBytes​(com.google.protobuf.ByteString value)
         * Attribute of entity. 
         
        string attribute = 2;
        Parameters:
        value - The bytes for attribute to set.
        Returns:
        This builder for chaining.
      • getValue

        public com.google.protobuf.ByteString getValue()
         * Value (if not delete) 
         
        bytes value = 3;
        Specified by:
        getValue in interface PubSub.KeyValueOrBuilder
        Returns:
        The value.
      • setValue

        public PubSub.KeyValue.Builder setValue​(com.google.protobuf.ByteString value)
         * Value (if not delete) 
         
        bytes value = 3;
        Parameters:
        value - The value to set.
        Returns:
        This builder for chaining.
      • clearValue

        public PubSub.KeyValue.Builder clearValue()
         * Value (if not delete) 
         
        bytes value = 3;
        Returns:
        This builder for chaining.
      • getDelete

        public boolean getDelete()
         * Is this attribute delete? 
         
        bool delete = 4;
        Specified by:
        getDelete in interface PubSub.KeyValueOrBuilder
        Returns:
        The delete.
      • setDelete

        public PubSub.KeyValue.Builder setDelete​(boolean value)
         * Is this attribute delete? 
         
        bool delete = 4;
        Parameters:
        value - The delete to set.
        Returns:
        This builder for chaining.
      • clearDelete

        public PubSub.KeyValue.Builder clearDelete()
         * Is this attribute delete? 
         
        bool delete = 4;
        Returns:
        This builder for chaining.
      • getDeleteWildcard

        public boolean getDeleteWildcard()
         * Is this wildcard attribute delete? 
         
        bool deleteWildcard = 5;
        Specified by:
        getDeleteWildcard in interface PubSub.KeyValueOrBuilder
        Returns:
        The deleteWildcard.
      • setDeleteWildcard

        public PubSub.KeyValue.Builder setDeleteWildcard​(boolean value)
         * Is this wildcard attribute delete? 
         
        bool deleteWildcard = 5;
        Parameters:
        value - The deleteWildcard to set.
        Returns:
        This builder for chaining.
      • clearDeleteWildcard

        public PubSub.KeyValue.Builder clearDeleteWildcard()
         * Is this wildcard attribute delete? 
         
        bool deleteWildcard = 5;
        Returns:
        This builder for chaining.
      • getStamp

        public long getStamp()
         * Timestamp of the write. 
         
        uint64 stamp = 6;
        Specified by:
        getStamp in interface PubSub.KeyValueOrBuilder
        Returns:
        The stamp.
      • setStamp

        public PubSub.KeyValue.Builder setStamp​(long value)
         * Timestamp of the write. 
         
        uint64 stamp = 6;
        Parameters:
        value - The stamp to set.
        Returns:
        This builder for chaining.
      • clearStamp

        public PubSub.KeyValue.Builder clearStamp()
         * Timestamp of the write. 
         
        uint64 stamp = 6;
        Returns:
        This builder for chaining.