Class IndexDatapoint.Restriction.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.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.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
      • getDefaultInstanceForType

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

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

        public IndexDatapoint.Restriction 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.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
      • mergeFrom

        public IndexDatapoint.Restriction.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<IndexDatapoint.Restriction.Builder>
        Throws:
        IOException
      • getNamespaceBytes

        public com.google.protobuf.ByteString getNamespaceBytes()
         The namespace of this restriction. eg: color.
         
        string namespace = 1;
        Specified by:
        getNamespaceBytes in interface IndexDatapoint.RestrictionOrBuilder
        Returns:
        The bytes for namespace.
      • setNamespace

        public IndexDatapoint.Restriction.Builder setNamespace​(String value)
         The namespace of this restriction. eg: color.
         
        string namespace = 1;
        Parameters:
        value - The namespace to set.
        Returns:
        This builder for chaining.
      • clearNamespace

        public IndexDatapoint.Restriction.Builder clearNamespace()
         The namespace of this restriction. eg: color.
         
        string namespace = 1;
        Returns:
        This builder for chaining.
      • setNamespaceBytes

        public IndexDatapoint.Restriction.Builder setNamespaceBytes​(com.google.protobuf.ByteString value)
         The namespace of this restriction. eg: color.
         
        string namespace = 1;
        Parameters:
        value - The bytes for namespace to set.
        Returns:
        This builder for chaining.
      • getAllowListList

        public com.google.protobuf.ProtocolStringList getAllowListList()
         The attributes to allow in this namespace. eg: 'red'
         
        repeated string allow_list = 2;
        Specified by:
        getAllowListList in interface IndexDatapoint.RestrictionOrBuilder
        Returns:
        A list containing the allowList.
      • getAllowList

        public String getAllowList​(int index)
         The attributes to allow in this namespace. eg: 'red'
         
        repeated string allow_list = 2;
        Specified by:
        getAllowList in interface IndexDatapoint.RestrictionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The allowList at the given index.
      • getAllowListBytes

        public com.google.protobuf.ByteString getAllowListBytes​(int index)
         The attributes to allow in this namespace. eg: 'red'
         
        repeated string allow_list = 2;
        Specified by:
        getAllowListBytes in interface IndexDatapoint.RestrictionOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the allowList at the given index.
      • setAllowList

        public IndexDatapoint.Restriction.Builder setAllowList​(int index,
                                                               String value)
         The attributes to allow in this namespace. eg: 'red'
         
        repeated string allow_list = 2;
        Parameters:
        index - The index to set the value at.
        value - The allowList to set.
        Returns:
        This builder for chaining.
      • addAllowList

        public IndexDatapoint.Restriction.Builder addAllowList​(String value)
         The attributes to allow in this namespace. eg: 'red'
         
        repeated string allow_list = 2;
        Parameters:
        value - The allowList to add.
        Returns:
        This builder for chaining.
      • addAllAllowList

        public IndexDatapoint.Restriction.Builder addAllAllowList​(Iterable<String> values)
         The attributes to allow in this namespace. eg: 'red'
         
        repeated string allow_list = 2;
        Parameters:
        values - The allowList to add.
        Returns:
        This builder for chaining.
      • clearAllowList

        public IndexDatapoint.Restriction.Builder clearAllowList()
         The attributes to allow in this namespace. eg: 'red'
         
        repeated string allow_list = 2;
        Returns:
        This builder for chaining.
      • addAllowListBytes

        public IndexDatapoint.Restriction.Builder addAllowListBytes​(com.google.protobuf.ByteString value)
         The attributes to allow in this namespace. eg: 'red'
         
        repeated string allow_list = 2;
        Parameters:
        value - The bytes of the allowList to add.
        Returns:
        This builder for chaining.
      • getDenyListList

        public com.google.protobuf.ProtocolStringList getDenyListList()
         The attributes to deny in this namespace. eg: 'blue'
         
        repeated string deny_list = 3;
        Specified by:
        getDenyListList in interface IndexDatapoint.RestrictionOrBuilder
        Returns:
        A list containing the denyList.
      • getDenyList

        public String getDenyList​(int index)
         The attributes to deny in this namespace. eg: 'blue'
         
        repeated string deny_list = 3;
        Specified by:
        getDenyList in interface IndexDatapoint.RestrictionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The denyList at the given index.
      • getDenyListBytes

        public com.google.protobuf.ByteString getDenyListBytes​(int index)
         The attributes to deny in this namespace. eg: 'blue'
         
        repeated string deny_list = 3;
        Specified by:
        getDenyListBytes in interface IndexDatapoint.RestrictionOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the denyList at the given index.
      • setDenyList

        public IndexDatapoint.Restriction.Builder setDenyList​(int index,
                                                              String value)
         The attributes to deny in this namespace. eg: 'blue'
         
        repeated string deny_list = 3;
        Parameters:
        index - The index to set the value at.
        value - The denyList to set.
        Returns:
        This builder for chaining.
      • addDenyList

        public IndexDatapoint.Restriction.Builder addDenyList​(String value)
         The attributes to deny in this namespace. eg: 'blue'
         
        repeated string deny_list = 3;
        Parameters:
        value - The denyList to add.
        Returns:
        This builder for chaining.
      • addAllDenyList

        public IndexDatapoint.Restriction.Builder addAllDenyList​(Iterable<String> values)
         The attributes to deny in this namespace. eg: 'blue'
         
        repeated string deny_list = 3;
        Parameters:
        values - The denyList to add.
        Returns:
        This builder for chaining.
      • clearDenyList

        public IndexDatapoint.Restriction.Builder clearDenyList()
         The attributes to deny in this namespace. eg: 'blue'
         
        repeated string deny_list = 3;
        Returns:
        This builder for chaining.
      • addDenyListBytes

        public IndexDatapoint.Restriction.Builder addDenyListBytes​(com.google.protobuf.ByteString value)
         The attributes to deny in this namespace. eg: 'blue'
         
        repeated string deny_list = 3;
        Parameters:
        value - The bytes of the denyList to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final IndexDatapoint.Restriction.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
      • mergeUnknownFields

        public final IndexDatapoint.Restriction.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>