Class RowFilter.Condition.Builder

  • All Implemented Interfaces:
    RowFilter.ConditionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    RowFilter.Condition

    public static final class RowFilter.Condition.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RowFilter.Condition.Builder>
    implements RowFilter.ConditionOrBuilder
     A RowFilter which evaluates one of two possible RowFilters, depending on
     whether or not a predicate RowFilter outputs any cells from the input row.
    
     IMPORTANT NOTE: The predicate filter does not execute atomically with the
     true and false filters, which may lead to inconsistent or unexpected
     results. Additionally, Condition filters have poor performance, especially
     when filters are set for the false condition.
     
    Protobuf type google.bigtable.v2.RowFilter.Condition
    • 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<RowFilter.Condition.Builder>
      • clear

        public RowFilter.Condition.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.GeneratedMessageV3.Builder<RowFilter.Condition.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<RowFilter.Condition.Builder>
      • getDefaultInstanceForType

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

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

        public RowFilter.Condition buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public RowFilter.Condition.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<RowFilter.Condition.Builder>
      • setField

        public RowFilter.Condition.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<RowFilter.Condition.Builder>
      • clearField

        public RowFilter.Condition.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RowFilter.Condition.Builder>
      • clearOneof

        public RowFilter.Condition.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RowFilter.Condition.Builder>
      • setRepeatedField

        public RowFilter.Condition.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            int index,
                                                            Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RowFilter.Condition.Builder>
      • addRepeatedField

        public RowFilter.Condition.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RowFilter.Condition.Builder>
      • mergeFrom

        public RowFilter.Condition.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<RowFilter.Condition.Builder>
      • isInitialized

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

        public RowFilter.Condition.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<RowFilter.Condition.Builder>
        Throws:
        IOException
      • hasPredicateFilter

        public boolean hasPredicateFilter()
         If `predicate_filter` outputs any cells, then `true_filter` will be
         evaluated on the input row. Otherwise, `false_filter` will be evaluated.
         
        .google.bigtable.v2.RowFilter predicate_filter = 1;
        Specified by:
        hasPredicateFilter in interface RowFilter.ConditionOrBuilder
        Returns:
        Whether the predicateFilter field is set.
      • getPredicateFilter

        public RowFilter getPredicateFilter()
         If `predicate_filter` outputs any cells, then `true_filter` will be
         evaluated on the input row. Otherwise, `false_filter` will be evaluated.
         
        .google.bigtable.v2.RowFilter predicate_filter = 1;
        Specified by:
        getPredicateFilter in interface RowFilter.ConditionOrBuilder
        Returns:
        The predicateFilter.
      • setPredicateFilter

        public RowFilter.Condition.Builder setPredicateFilter​(RowFilter value)
         If `predicate_filter` outputs any cells, then `true_filter` will be
         evaluated on the input row. Otherwise, `false_filter` will be evaluated.
         
        .google.bigtable.v2.RowFilter predicate_filter = 1;
      • setPredicateFilter

        public RowFilter.Condition.Builder setPredicateFilter​(RowFilter.Builder builderForValue)
         If `predicate_filter` outputs any cells, then `true_filter` will be
         evaluated on the input row. Otherwise, `false_filter` will be evaluated.
         
        .google.bigtable.v2.RowFilter predicate_filter = 1;
      • mergePredicateFilter

        public RowFilter.Condition.Builder mergePredicateFilter​(RowFilter value)
         If `predicate_filter` outputs any cells, then `true_filter` will be
         evaluated on the input row. Otherwise, `false_filter` will be evaluated.
         
        .google.bigtable.v2.RowFilter predicate_filter = 1;
      • clearPredicateFilter

        public RowFilter.Condition.Builder clearPredicateFilter()
         If `predicate_filter` outputs any cells, then `true_filter` will be
         evaluated on the input row. Otherwise, `false_filter` will be evaluated.
         
        .google.bigtable.v2.RowFilter predicate_filter = 1;
      • getPredicateFilterBuilder

        public RowFilter.Builder getPredicateFilterBuilder()
         If `predicate_filter` outputs any cells, then `true_filter` will be
         evaluated on the input row. Otherwise, `false_filter` will be evaluated.
         
        .google.bigtable.v2.RowFilter predicate_filter = 1;
      • getPredicateFilterOrBuilder

        public RowFilterOrBuilder getPredicateFilterOrBuilder()
         If `predicate_filter` outputs any cells, then `true_filter` will be
         evaluated on the input row. Otherwise, `false_filter` will be evaluated.
         
        .google.bigtable.v2.RowFilter predicate_filter = 1;
        Specified by:
        getPredicateFilterOrBuilder in interface RowFilter.ConditionOrBuilder
      • hasTrueFilter

        public boolean hasTrueFilter()
         The filter to apply to the input row if `predicate_filter` returns any
         results. If not provided, no results will be returned in the true case.
         
        .google.bigtable.v2.RowFilter true_filter = 2;
        Specified by:
        hasTrueFilter in interface RowFilter.ConditionOrBuilder
        Returns:
        Whether the trueFilter field is set.
      • getTrueFilter

        public RowFilter getTrueFilter()
         The filter to apply to the input row if `predicate_filter` returns any
         results. If not provided, no results will be returned in the true case.
         
        .google.bigtable.v2.RowFilter true_filter = 2;
        Specified by:
        getTrueFilter in interface RowFilter.ConditionOrBuilder
        Returns:
        The trueFilter.
      • setTrueFilter

        public RowFilter.Condition.Builder setTrueFilter​(RowFilter value)
         The filter to apply to the input row if `predicate_filter` returns any
         results. If not provided, no results will be returned in the true case.
         
        .google.bigtable.v2.RowFilter true_filter = 2;
      • setTrueFilter

        public RowFilter.Condition.Builder setTrueFilter​(RowFilter.Builder builderForValue)
         The filter to apply to the input row if `predicate_filter` returns any
         results. If not provided, no results will be returned in the true case.
         
        .google.bigtable.v2.RowFilter true_filter = 2;
      • mergeTrueFilter

        public RowFilter.Condition.Builder mergeTrueFilter​(RowFilter value)
         The filter to apply to the input row if `predicate_filter` returns any
         results. If not provided, no results will be returned in the true case.
         
        .google.bigtable.v2.RowFilter true_filter = 2;
      • clearTrueFilter

        public RowFilter.Condition.Builder clearTrueFilter()
         The filter to apply to the input row if `predicate_filter` returns any
         results. If not provided, no results will be returned in the true case.
         
        .google.bigtable.v2.RowFilter true_filter = 2;
      • getTrueFilterBuilder

        public RowFilter.Builder getTrueFilterBuilder()
         The filter to apply to the input row if `predicate_filter` returns any
         results. If not provided, no results will be returned in the true case.
         
        .google.bigtable.v2.RowFilter true_filter = 2;
      • getTrueFilterOrBuilder

        public RowFilterOrBuilder getTrueFilterOrBuilder()
         The filter to apply to the input row if `predicate_filter` returns any
         results. If not provided, no results will be returned in the true case.
         
        .google.bigtable.v2.RowFilter true_filter = 2;
        Specified by:
        getTrueFilterOrBuilder in interface RowFilter.ConditionOrBuilder
      • hasFalseFilter

        public boolean hasFalseFilter()
         The filter to apply to the input row if `predicate_filter` does not
         return any results. If not provided, no results will be returned in the
         false case.
         
        .google.bigtable.v2.RowFilter false_filter = 3;
        Specified by:
        hasFalseFilter in interface RowFilter.ConditionOrBuilder
        Returns:
        Whether the falseFilter field is set.
      • getFalseFilter

        public RowFilter getFalseFilter()
         The filter to apply to the input row if `predicate_filter` does not
         return any results. If not provided, no results will be returned in the
         false case.
         
        .google.bigtable.v2.RowFilter false_filter = 3;
        Specified by:
        getFalseFilter in interface RowFilter.ConditionOrBuilder
        Returns:
        The falseFilter.
      • setFalseFilter

        public RowFilter.Condition.Builder setFalseFilter​(RowFilter value)
         The filter to apply to the input row if `predicate_filter` does not
         return any results. If not provided, no results will be returned in the
         false case.
         
        .google.bigtable.v2.RowFilter false_filter = 3;
      • setFalseFilter

        public RowFilter.Condition.Builder setFalseFilter​(RowFilter.Builder builderForValue)
         The filter to apply to the input row if `predicate_filter` does not
         return any results. If not provided, no results will be returned in the
         false case.
         
        .google.bigtable.v2.RowFilter false_filter = 3;
      • mergeFalseFilter

        public RowFilter.Condition.Builder mergeFalseFilter​(RowFilter value)
         The filter to apply to the input row if `predicate_filter` does not
         return any results. If not provided, no results will be returned in the
         false case.
         
        .google.bigtable.v2.RowFilter false_filter = 3;
      • clearFalseFilter

        public RowFilter.Condition.Builder clearFalseFilter()
         The filter to apply to the input row if `predicate_filter` does not
         return any results. If not provided, no results will be returned in the
         false case.
         
        .google.bigtable.v2.RowFilter false_filter = 3;
      • getFalseFilterBuilder

        public RowFilter.Builder getFalseFilterBuilder()
         The filter to apply to the input row if `predicate_filter` does not
         return any results. If not provided, no results will be returned in the
         false case.
         
        .google.bigtable.v2.RowFilter false_filter = 3;
      • getFalseFilterOrBuilder

        public RowFilterOrBuilder getFalseFilterOrBuilder()
         The filter to apply to the input row if `predicate_filter` does not
         return any results. If not provided, no results will be returned in the
         false case.
         
        .google.bigtable.v2.RowFilter false_filter = 3;
        Specified by:
        getFalseFilterOrBuilder in interface RowFilter.ConditionOrBuilder
      • setUnknownFields

        public final RowFilter.Condition.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<RowFilter.Condition.Builder>
      • mergeUnknownFields

        public final RowFilter.Condition.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<RowFilter.Condition.Builder>