Class AudienceFilterExpression (0.64.0)

public final class AudienceFilterExpression extends GeneratedMessageV3 implements AudienceFilterExpressionOrBuilder

A logical expression of Audience dimension, metric, or event filters.

Protobuf type google.analytics.admin.v1alpha.AudienceFilterExpression

Static Fields

AND_GROUP_FIELD_NUMBER

public static final int AND_GROUP_FIELD_NUMBER
Field Value
Type Description
int

DIMENSION_OR_METRIC_FILTER_FIELD_NUMBER

public static final int DIMENSION_OR_METRIC_FILTER_FIELD_NUMBER
Field Value
Type Description
int

EVENT_FILTER_FIELD_NUMBER

public static final int EVENT_FILTER_FIELD_NUMBER
Field Value
Type Description
int

NOT_EXPRESSION_FIELD_NUMBER

public static final int NOT_EXPRESSION_FIELD_NUMBER
Field Value
Type Description
int

OR_GROUP_FIELD_NUMBER

public static final int OR_GROUP_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AudienceFilterExpression getDefaultInstance()
Returns
Type Description
AudienceFilterExpression

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AudienceFilterExpression.Builder newBuilder()
Returns
Type Description
AudienceFilterExpression.Builder

newBuilder(AudienceFilterExpression prototype)

public static AudienceFilterExpression.Builder newBuilder(AudienceFilterExpression prototype)
Parameter
Name Description
prototype AudienceFilterExpression
Returns
Type Description
AudienceFilterExpression.Builder

parseDelimitedFrom(InputStream input)

public static AudienceFilterExpression parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AudienceFilterExpression
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AudienceFilterExpression parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudienceFilterExpression
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AudienceFilterExpression parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AudienceFilterExpression
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AudienceFilterExpression parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudienceFilterExpression
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AudienceFilterExpression parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AudienceFilterExpression
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AudienceFilterExpression parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudienceFilterExpression
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AudienceFilterExpression parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AudienceFilterExpression
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AudienceFilterExpression parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudienceFilterExpression
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AudienceFilterExpression parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AudienceFilterExpression
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AudienceFilterExpression parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudienceFilterExpression
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AudienceFilterExpression parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AudienceFilterExpression
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AudienceFilterExpression parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AudienceFilterExpression
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AudienceFilterExpression> parser()
Returns
Type Description
Parser<AudienceFilterExpression>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAndGroup()

public AudienceFilterExpressionList getAndGroup()

A list of expressions to be AND’ed together. It can only contain AudienceFilterExpressions with or_group. This must be set for the top level AudienceFilterExpression.

.google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1;

Returns
Type Description
AudienceFilterExpressionList

The andGroup.

getAndGroupOrBuilder()

public AudienceFilterExpressionListOrBuilder getAndGroupOrBuilder()

A list of expressions to be AND’ed together. It can only contain AudienceFilterExpressions with or_group. This must be set for the top level AudienceFilterExpression.

.google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1;

Returns
Type Description
AudienceFilterExpressionListOrBuilder

getDefaultInstanceForType()

public AudienceFilterExpression getDefaultInstanceForType()
Returns
Type Description
AudienceFilterExpression

getDimensionOrMetricFilter()

public AudienceDimensionOrMetricFilter getDimensionOrMetricFilter()

A filter on a single dimension or metric. This cannot be set on the top level AudienceFilterExpression.

.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4;

Returns
Type Description
AudienceDimensionOrMetricFilter

The dimensionOrMetricFilter.

getDimensionOrMetricFilterOrBuilder()

public AudienceDimensionOrMetricFilterOrBuilder getDimensionOrMetricFilterOrBuilder()

A filter on a single dimension or metric. This cannot be set on the top level AudienceFilterExpression.

.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4;

Returns
Type Description
AudienceDimensionOrMetricFilterOrBuilder

getEventFilter()

public AudienceEventFilter getEventFilter()

Creates a filter that matches a specific event. This cannot be set on the top level AudienceFilterExpression.

.google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5;

Returns
Type Description
AudienceEventFilter

The eventFilter.

getEventFilterOrBuilder()

public AudienceEventFilterOrBuilder getEventFilterOrBuilder()

Creates a filter that matches a specific event. This cannot be set on the top level AudienceFilterExpression.

.google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5;

Returns
Type Description
AudienceEventFilterOrBuilder

getExprCase()

public AudienceFilterExpression.ExprCase getExprCase()
Returns
Type Description
AudienceFilterExpression.ExprCase

getNotExpression()

public AudienceFilterExpression getNotExpression()

A filter expression to be NOT'ed (For example, inverted, complemented). It can only include a dimension_or_metric_filter. This cannot be set on the top level AudienceFilterExpression.

.google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3;

Returns
Type Description
AudienceFilterExpression

The notExpression.

getNotExpressionOrBuilder()

public AudienceFilterExpressionOrBuilder getNotExpressionOrBuilder()

A filter expression to be NOT'ed (For example, inverted, complemented). It can only include a dimension_or_metric_filter. This cannot be set on the top level AudienceFilterExpression.

.google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3;

Returns
Type Description
AudienceFilterExpressionOrBuilder

getOrGroup()

public AudienceFilterExpressionList getOrGroup()

A list of expressions to OR’ed together. It cannot contain AudienceFilterExpressions with and_group or or_group.

.google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2;

Returns
Type Description
AudienceFilterExpressionList

The orGroup.

getOrGroupOrBuilder()

public AudienceFilterExpressionListOrBuilder getOrGroupOrBuilder()

A list of expressions to OR’ed together. It cannot contain AudienceFilterExpressions with and_group or or_group.

.google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2;

Returns
Type Description
AudienceFilterExpressionListOrBuilder

getParserForType()

public Parser<AudienceFilterExpression> getParserForType()
Returns
Type Description
Parser<AudienceFilterExpression>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAndGroup()

public boolean hasAndGroup()

A list of expressions to be AND’ed together. It can only contain AudienceFilterExpressions with or_group. This must be set for the top level AudienceFilterExpression.

.google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1;

Returns
Type Description
boolean

Whether the andGroup field is set.

hasDimensionOrMetricFilter()

public boolean hasDimensionOrMetricFilter()

A filter on a single dimension or metric. This cannot be set on the top level AudienceFilterExpression.

.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4;

Returns
Type Description
boolean

Whether the dimensionOrMetricFilter field is set.

hasEventFilter()

public boolean hasEventFilter()

Creates a filter that matches a specific event. This cannot be set on the top level AudienceFilterExpression.

.google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5;

Returns
Type Description
boolean

Whether the eventFilter field is set.

hasNotExpression()

public boolean hasNotExpression()

A filter expression to be NOT'ed (For example, inverted, complemented). It can only include a dimension_or_metric_filter. This cannot be set on the top level AudienceFilterExpression.

.google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3;

Returns
Type Description
boolean

Whether the notExpression field is set.

hasOrGroup()

public boolean hasOrGroup()

A list of expressions to OR’ed together. It cannot contain AudienceFilterExpressions with and_group or or_group.

.google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2;

Returns
Type Description
boolean

Whether the orGroup field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AudienceFilterExpression.Builder newBuilderForType()
Returns
Type Description
AudienceFilterExpression.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AudienceFilterExpression.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AudienceFilterExpression.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AudienceFilterExpression.Builder toBuilder()
Returns
Type Description
AudienceFilterExpression.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException