Class PubSub.Bulk.Builder

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

    public static final class PubSub.Bulk.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<PubSub.Bulk.Builder>
    implements PubSub.BulkOrBuilder
     *
     Bulk of KeyValues.
     
    Protobuf type cz.o2.proxima.io.pubsub.proto.Bulk
    • 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.Bulk.Builder>
      • clear

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

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

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

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

        public PubSub.Bulk.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.Bulk.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.Bulk.Builder>
      • mergeFrom

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

        public int getKvCount()
         bulk of KeyValues
         
        repeated .cz.o2.proxima.io.pubsub.proto.KeyValue kv = 1;
        Specified by:
        getKvCount in interface PubSub.BulkOrBuilder
      • addAllKv

        public PubSub.Bulk.Builder addAllKv​(java.lang.Iterable<? extends PubSub.KeyValue> values)
         bulk of KeyValues
         
        repeated .cz.o2.proxima.io.pubsub.proto.KeyValue kv = 1;
      • clearKv

        public PubSub.Bulk.Builder clearKv()
         bulk of KeyValues
         
        repeated .cz.o2.proxima.io.pubsub.proto.KeyValue kv = 1;
      • removeKv

        public PubSub.Bulk.Builder removeKv​(int index)
         bulk of KeyValues
         
        repeated .cz.o2.proxima.io.pubsub.proto.KeyValue kv = 1;
      • getKvBuilder

        public PubSub.KeyValue.Builder getKvBuilder​(int index)
         bulk of KeyValues
         
        repeated .cz.o2.proxima.io.pubsub.proto.KeyValue kv = 1;
      • addKvBuilder

        public PubSub.KeyValue.Builder addKvBuilder()
         bulk of KeyValues
         
        repeated .cz.o2.proxima.io.pubsub.proto.KeyValue kv = 1;
      • addKvBuilder

        public PubSub.KeyValue.Builder addKvBuilder​(int index)
         bulk of KeyValues
         
        repeated .cz.o2.proxima.io.pubsub.proto.KeyValue kv = 1;
      • getKvBuilderList

        public java.util.List<PubSub.KeyValue.Builder> getKvBuilderList()
         bulk of KeyValues
         
        repeated .cz.o2.proxima.io.pubsub.proto.KeyValue kv = 1;
      • getUuidList

        public com.google.protobuf.ProtocolStringList getUuidList()
         UUIDs associated with the KeyValues
         
        repeated string uuid = 2;
        Specified by:
        getUuidList in interface PubSub.BulkOrBuilder
        Returns:
        A list containing the uuid.
      • getUuidCount

        public int getUuidCount()
         UUIDs associated with the KeyValues
         
        repeated string uuid = 2;
        Specified by:
        getUuidCount in interface PubSub.BulkOrBuilder
        Returns:
        The count of uuid.
      • getUuid

        public java.lang.String getUuid​(int index)
         UUIDs associated with the KeyValues
         
        repeated string uuid = 2;
        Specified by:
        getUuid in interface PubSub.BulkOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The uuid at the given index.
      • getUuidBytes

        public com.google.protobuf.ByteString getUuidBytes​(int index)
         UUIDs associated with the KeyValues
         
        repeated string uuid = 2;
        Specified by:
        getUuidBytes in interface PubSub.BulkOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the uuid at the given index.
      • setUuid

        public PubSub.Bulk.Builder setUuid​(int index,
                                           java.lang.String value)
         UUIDs associated with the KeyValues
         
        repeated string uuid = 2;
        Parameters:
        index - The index to set the value at.
        value - The uuid to set.
        Returns:
        This builder for chaining.
      • addUuid

        public PubSub.Bulk.Builder addUuid​(java.lang.String value)
         UUIDs associated with the KeyValues
         
        repeated string uuid = 2;
        Parameters:
        value - The uuid to add.
        Returns:
        This builder for chaining.
      • addAllUuid

        public PubSub.Bulk.Builder addAllUuid​(java.lang.Iterable<java.lang.String> values)
         UUIDs associated with the KeyValues
         
        repeated string uuid = 2;
        Parameters:
        values - The uuid to add.
        Returns:
        This builder for chaining.
      • clearUuid

        public PubSub.Bulk.Builder clearUuid()
         UUIDs associated with the KeyValues
         
        repeated string uuid = 2;
        Returns:
        This builder for chaining.
      • addUuidBytes

        public PubSub.Bulk.Builder addUuidBytes​(com.google.protobuf.ByteString value)
         UUIDs associated with the KeyValues
         
        repeated string uuid = 2;
        Parameters:
        value - The bytes of the uuid to add.
        Returns:
        This builder for chaining.