Send feedback
Class Filter (0.87.0)
Stay organized with collections
Save and categorize content based on your preferences.
public final class Filter extends GeneratedMessageV3 implements FilterOrBuilder
An expression to filter dimension or metric values.
Protobuf type google.analytics.data.v1alpha.Filter
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BETWEEN_FILTER_FIELD_NUMBER
public static final int BETWEEN_FILTER_FIELD_NUMBER
Field Value
Type
Description
int
EMPTY_FILTER_FIELD_NUMBER
public static final int EMPTY_FILTER_FIELD_NUMBER
Field Value
Type
Description
int
FIELD_NAME_FIELD_NUMBER
public static final int FIELD_NAME_FIELD_NUMBER
Field Value
Type
Description
int
IN_LIST_FILTER_FIELD_NUMBER
public static final int IN_LIST_FILTER_FIELD_NUMBER
Field Value
Type
Description
int
NUMERIC_FILTER_FIELD_NUMBER
public static final int NUMERIC_FILTER_FIELD_NUMBER
Field Value
Type
Description
int
STRING_FILTER_FIELD_NUMBER
public static final int STRING_FILTER_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Filter getDefaultInstance ()
Returns
Type
Description
Filter
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Filter . Builder newBuilder ()
newBuilder(Filter prototype)
public static Filter . Builder newBuilder ( Filter prototype )
Parameter
Name
Description
prototype
Filter
public static Filter parseDelimitedFrom ( InputStream input )
Returns
Type
Description
Filter
public static Filter parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Filter
parseFrom(byte[] data)
public static Filter parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Type
Description
Filter
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Filter parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Filter
parseFrom(ByteString data)
public static Filter parseFrom ( ByteString data )
Returns
Type
Description
Filter
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Filter parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Filter
public static Filter parseFrom ( CodedInputStream input )
Returns
Type
Description
Filter
public static Filter parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Filter
public static Filter parseFrom ( InputStream input )
Returns
Type
Description
Filter
public static Filter parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Filter
parseFrom(ByteBuffer data)
public static Filter parseFrom ( ByteBuffer data )
Returns
Type
Description
Filter
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Filter parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Filter
parser()
public static Parser<Filter> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getBetweenFilter()
public BetweenFilter getBetweenFilter ()
A filter for between two values.
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
getBetweenFilterOrBuilder()
public BetweenFilterOrBuilder getBetweenFilterOrBuilder ()
A filter for between two values.
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
getDefaultInstanceForType()
public Filter getDefaultInstanceForType ()
Returns
Type
Description
Filter
getEmptyFilter()
public EmptyFilter getEmptyFilter ()
A filter for empty values such as "(not set)" and "" values.
.google.analytics.data.v1alpha.EmptyFilter empty_filter = 6;
getEmptyFilterOrBuilder()
public EmptyFilterOrBuilder getEmptyFilterOrBuilder ()
A filter for empty values such as "(not set)" and "" values.
.google.analytics.data.v1alpha.EmptyFilter empty_filter = 6;
getFieldName()
public String getFieldName ()
The dimension name or metric name. Must be a name defined in dimensions
or metrics.
string field_name = 1;
Returns
Type
Description
String
The fieldName.
getFieldNameBytes()
public ByteString getFieldNameBytes ()
The dimension name or metric name. Must be a name defined in dimensions
or metrics.
string field_name = 1;
Returns
Type
Description
ByteString
The bytes for fieldName.
getInListFilter()
public InListFilter getInListFilter ()
A filter for in list values.
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
getInListFilterOrBuilder()
public InListFilterOrBuilder getInListFilterOrBuilder ()
A filter for in list values.
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
getNumericFilter()
public NumericFilter getNumericFilter ()
A filter for numeric or date values.
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
getNumericFilterOrBuilder()
public NumericFilterOrBuilder getNumericFilterOrBuilder ()
A filter for numeric or date values.
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
getOneFilterCase()
public Filter . OneFilterCase getOneFilterCase ()
getParserForType()
public Parser<Filter> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getStringFilter()
public StringFilter getStringFilter ()
Strings related filter.
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
getStringFilterOrBuilder()
public StringFilterOrBuilder getStringFilterOrBuilder ()
Strings related filter.
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
hasBetweenFilter()
public boolean hasBetweenFilter ()
A filter for between two values.
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
Returns
Type
Description
boolean
Whether the betweenFilter field is set.
hasEmptyFilter()
public boolean hasEmptyFilter ()
A filter for empty values such as "(not set)" and "" values.
.google.analytics.data.v1alpha.EmptyFilter empty_filter = 6;
Returns
Type
Description
boolean
Whether the emptyFilter field is set.
hasInListFilter()
public boolean hasInListFilter ()
A filter for in list values.
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
Returns
Type
Description
boolean
Whether the inListFilter field is set.
hasNumericFilter()
public boolean hasNumericFilter ()
A filter for numeric or date values.
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
Returns
Type
Description
boolean
Whether the numericFilter field is set.
hasStringFilter()
public boolean hasStringFilter ()
Strings related filter.
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
Returns
Type
Description
boolean
Whether the stringFilter field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Filter . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Filter . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Filter . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-10 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]