Class TagsAndNamesCriterion.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TagsAndNamesCriterionOrBuilder, Cloneable
    Enclosing class:
    TagsAndNamesCriterion

    public static final class TagsAndNamesCriterion.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<TagsAndNamesCriterion.Builder>
    implements TagsAndNamesCriterionOrBuilder
     The criterion based on event tags and event names. The event meets this criterion if ALL tags from this criterion
     are present in the tags of the event AND if the event name is present in one of the names of the this criterion. 
     
    Protobuf type io.axoniq.axonserver.grpc.event.dcb.TagsAndNamesCriterion
    • 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<TagsAndNamesCriterion.Builder>
      • clear

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

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

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

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

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

        public TagsAndNamesCriterion.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws 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<TagsAndNamesCriterion.Builder>
        Throws:
        IOException
      • getNameList

        public com.google.protobuf.ProtocolStringList getNameList()
         A list of event names. The event meets this criterion if its name is in one of the names in this list. 
         
        repeated string name = 1;
        Specified by:
        getNameList in interface TagsAndNamesCriterionOrBuilder
        Returns:
        A list containing the name.
      • getNameCount

        public int getNameCount()
         A list of event names. The event meets this criterion if its name is in one of the names in this list. 
         
        repeated string name = 1;
        Specified by:
        getNameCount in interface TagsAndNamesCriterionOrBuilder
        Returns:
        The count of name.
      • getName

        public String getName​(int index)
         A list of event names. The event meets this criterion if its name is in one of the names in this list. 
         
        repeated string name = 1;
        Specified by:
        getName in interface TagsAndNamesCriterionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The name at the given index.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes​(int index)
         A list of event names. The event meets this criterion if its name is in one of the names in this list. 
         
        repeated string name = 1;
        Specified by:
        getNameBytes in interface TagsAndNamesCriterionOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the name at the given index.
      • setName

        public TagsAndNamesCriterion.Builder setName​(int index,
                                                     String value)
         A list of event names. The event meets this criterion if its name is in one of the names in this list. 
         
        repeated string name = 1;
        Parameters:
        index - The index to set the value at.
        value - The name to set.
        Returns:
        This builder for chaining.
      • addName

        public TagsAndNamesCriterion.Builder addName​(String value)
         A list of event names. The event meets this criterion if its name is in one of the names in this list. 
         
        repeated string name = 1;
        Parameters:
        value - The name to add.
        Returns:
        This builder for chaining.
      • addAllName

        public TagsAndNamesCriterion.Builder addAllName​(Iterable<String> values)
         A list of event names. The event meets this criterion if its name is in one of the names in this list. 
         
        repeated string name = 1;
        Parameters:
        values - The name to add.
        Returns:
        This builder for chaining.
      • clearName

        public TagsAndNamesCriterion.Builder clearName()
         A list of event names. The event meets this criterion if its name is in one of the names in this list. 
         
        repeated string name = 1;
        Returns:
        This builder for chaining.
      • addNameBytes

        public TagsAndNamesCriterion.Builder addNameBytes​(com.google.protobuf.ByteString value)
         A list of event names. The event meets this criterion if its name is in one of the names in this list. 
         
        repeated string name = 1;
        Parameters:
        value - The bytes of the name to add.
        Returns:
        This builder for chaining.
      • getTagList

        public List<Tag> getTagList()
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
        Specified by:
        getTagList in interface TagsAndNamesCriterionOrBuilder
      • getTagCount

        public int getTagCount()
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
        Specified by:
        getTagCount in interface TagsAndNamesCriterionOrBuilder
      • getTag

        public Tag getTag​(int index)
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
        Specified by:
        getTag in interface TagsAndNamesCriterionOrBuilder
      • setTag

        public TagsAndNamesCriterion.Builder setTag​(int index,
                                                    Tag value)
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
      • setTag

        public TagsAndNamesCriterion.Builder setTag​(int index,
                                                    Tag.Builder builderForValue)
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
      • addTag

        public TagsAndNamesCriterion.Builder addTag​(Tag value)
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
      • addTag

        public TagsAndNamesCriterion.Builder addTag​(int index,
                                                    Tag value)
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
      • addTag

        public TagsAndNamesCriterion.Builder addTag​(Tag.Builder builderForValue)
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
      • addTag

        public TagsAndNamesCriterion.Builder addTag​(int index,
                                                    Tag.Builder builderForValue)
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
      • addAllTag

        public TagsAndNamesCriterion.Builder addAllTag​(Iterable<? extends Tag> values)
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
      • clearTag

        public TagsAndNamesCriterion.Builder clearTag()
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
      • removeTag

        public TagsAndNamesCriterion.Builder removeTag​(int index)
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
      • getTagBuilder

        public Tag.Builder getTagBuilder​(int index)
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
      • getTagOrBuilder

        public TagOrBuilder getTagOrBuilder​(int index)
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
        Specified by:
        getTagOrBuilder in interface TagsAndNamesCriterionOrBuilder
      • getTagOrBuilderList

        public List<? extends TagOrBuilder> getTagOrBuilderList()
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
        Specified by:
        getTagOrBuilderList in interface TagsAndNamesCriterionOrBuilder
      • addTagBuilder

        public Tag.Builder addTagBuilder()
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
      • addTagBuilder

        public Tag.Builder addTagBuilder​(int index)
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;
      • getTagBuilderList

        public List<Tag.Builder> getTagBuilderList()
         A list of event tags. The event meets this criterion if it contains all the tags from this list. It meets the
         criterion if it contains more than provided list here, but it MUST contain all from the list. 
         
        repeated .io.axoniq.axonserver.grpc.event.dcb.Tag tag = 2;