Class FilterExpression.Builder (0.60.0)

public static final class FilterExpression.Builder extends GeneratedMessageV3.Builder<FilterExpression.Builder> implements FilterExpressionOrBuilder

To express dimension or metric filters. The fields in the same FilterExpression need to be either all dimensions or all metrics.

Protobuf type google.analytics.data.v1beta.FilterExpression

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FilterExpression.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FilterExpression.Builder
Overrides

build()

public FilterExpression build()
Returns
Type Description
FilterExpression

buildPartial()

public FilterExpression buildPartial()
Returns
Type Description
FilterExpression

clear()

public FilterExpression.Builder clear()
Returns
Type Description
FilterExpression.Builder
Overrides

clearAndGroup()

public FilterExpression.Builder clearAndGroup()

The FilterExpressions in and_group have an AND relationship.

.google.analytics.data.v1beta.FilterExpressionList and_group = 1;

Returns
Type Description
FilterExpression.Builder

clearExpr()

public FilterExpression.Builder clearExpr()
Returns
Type Description
FilterExpression.Builder

clearField(Descriptors.FieldDescriptor field)

public FilterExpression.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FilterExpression.Builder
Overrides

clearFilter()

public FilterExpression.Builder clearFilter()

A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions or all metrics.

.google.analytics.data.v1beta.Filter filter = 4;

Returns
Type Description
FilterExpression.Builder

clearNotExpression()

public FilterExpression.Builder clearNotExpression()

The FilterExpression is NOT of not_expression.

.google.analytics.data.v1beta.FilterExpression not_expression = 3;

Returns
Type Description
FilterExpression.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public FilterExpression.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FilterExpression.Builder
Overrides

clearOrGroup()

public FilterExpression.Builder clearOrGroup()

The FilterExpressions in or_group have an OR relationship.

.google.analytics.data.v1beta.FilterExpressionList or_group = 2;

Returns
Type Description
FilterExpression.Builder

clone()

public FilterExpression.Builder clone()
Returns
Type Description
FilterExpression.Builder
Overrides

getAndGroup()

public FilterExpressionList getAndGroup()

The FilterExpressions in and_group have an AND relationship.

.google.analytics.data.v1beta.FilterExpressionList and_group = 1;

Returns
Type Description
FilterExpressionList

The andGroup.

getAndGroupBuilder()

public FilterExpressionList.Builder getAndGroupBuilder()

The FilterExpressions in and_group have an AND relationship.

.google.analytics.data.v1beta.FilterExpressionList and_group = 1;

Returns
Type Description
FilterExpressionList.Builder

getAndGroupOrBuilder()

public FilterExpressionListOrBuilder getAndGroupOrBuilder()

The FilterExpressions in and_group have an AND relationship.

.google.analytics.data.v1beta.FilterExpressionList and_group = 1;

Returns
Type Description
FilterExpressionListOrBuilder

getDefaultInstanceForType()

public FilterExpression getDefaultInstanceForType()
Returns
Type Description
FilterExpression

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExprCase()

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

getFilter()

public Filter getFilter()

A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions or all metrics.

.google.analytics.data.v1beta.Filter filter = 4;

Returns
Type Description
Filter

The filter.

getFilterBuilder()

public Filter.Builder getFilterBuilder()

A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions or all metrics.

.google.analytics.data.v1beta.Filter filter = 4;

Returns
Type Description
Filter.Builder

getFilterOrBuilder()

public FilterOrBuilder getFilterOrBuilder()

A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions or all metrics.

.google.analytics.data.v1beta.Filter filter = 4;

Returns
Type Description
FilterOrBuilder

getNotExpression()

public FilterExpression getNotExpression()

The FilterExpression is NOT of not_expression.

.google.analytics.data.v1beta.FilterExpression not_expression = 3;

Returns
Type Description
FilterExpression

The notExpression.

getNotExpressionBuilder()

public FilterExpression.Builder getNotExpressionBuilder()

The FilterExpression is NOT of not_expression.

.google.analytics.data.v1beta.FilterExpression not_expression = 3;

Returns
Type Description
FilterExpression.Builder

getNotExpressionOrBuilder()

public FilterExpressionOrBuilder getNotExpressionOrBuilder()

The FilterExpression is NOT of not_expression.

.google.analytics.data.v1beta.FilterExpression not_expression = 3;

Returns
Type Description
FilterExpressionOrBuilder

getOrGroup()

public FilterExpressionList getOrGroup()

The FilterExpressions in or_group have an OR relationship.

.google.analytics.data.v1beta.FilterExpressionList or_group = 2;

Returns
Type Description
FilterExpressionList

The orGroup.

getOrGroupBuilder()

public FilterExpressionList.Builder getOrGroupBuilder()

The FilterExpressions in or_group have an OR relationship.

.google.analytics.data.v1beta.FilterExpressionList or_group = 2;

Returns
Type Description
FilterExpressionList.Builder

getOrGroupOrBuilder()

public FilterExpressionListOrBuilder getOrGroupOrBuilder()

The FilterExpressions in or_group have an OR relationship.

.google.analytics.data.v1beta.FilterExpressionList or_group = 2;

Returns
Type Description
FilterExpressionListOrBuilder

hasAndGroup()

public boolean hasAndGroup()

The FilterExpressions in and_group have an AND relationship.

.google.analytics.data.v1beta.FilterExpressionList and_group = 1;

Returns
Type Description
boolean

Whether the andGroup field is set.

hasFilter()

public boolean hasFilter()

A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions or all metrics.

.google.analytics.data.v1beta.Filter filter = 4;

Returns
Type Description
boolean

Whether the filter field is set.

hasNotExpression()

public boolean hasNotExpression()

The FilterExpression is NOT of not_expression.

.google.analytics.data.v1beta.FilterExpression not_expression = 3;

Returns
Type Description
boolean

Whether the notExpression field is set.

hasOrGroup()

public boolean hasOrGroup()

The FilterExpressions in or_group have an OR relationship.

.google.analytics.data.v1beta.FilterExpressionList or_group = 2;

Returns
Type Description
boolean

Whether the orGroup field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAndGroup(FilterExpressionList value)

public FilterExpression.Builder mergeAndGroup(FilterExpressionList value)

The FilterExpressions in and_group have an AND relationship.

.google.analytics.data.v1beta.FilterExpressionList and_group = 1;

Parameter
Name Description
value FilterExpressionList
Returns
Type Description
FilterExpression.Builder

mergeFilter(Filter value)

public FilterExpression.Builder mergeFilter(Filter value)

A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions or all metrics.

.google.analytics.data.v1beta.Filter filter = 4;

Parameter
Name Description
value Filter
Returns
Type Description
FilterExpression.Builder

mergeFrom(FilterExpression other)

public FilterExpression.Builder mergeFrom(FilterExpression other)
Parameter
Name Description
other FilterExpression
Returns
Type Description
FilterExpression.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FilterExpression.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FilterExpression.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FilterExpression.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FilterExpression.Builder
Overrides

mergeNotExpression(FilterExpression value)

public FilterExpression.Builder mergeNotExpression(FilterExpression value)

The FilterExpression is NOT of not_expression.

.google.analytics.data.v1beta.FilterExpression not_expression = 3;

Parameter
Name Description
value FilterExpression
Returns
Type Description
FilterExpression.Builder

mergeOrGroup(FilterExpressionList value)

public FilterExpression.Builder mergeOrGroup(FilterExpressionList value)

The FilterExpressions in or_group have an OR relationship.

.google.analytics.data.v1beta.FilterExpressionList or_group = 2;

Parameter
Name Description
value FilterExpressionList
Returns
Type Description
FilterExpression.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FilterExpression.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FilterExpression.Builder
Overrides

setAndGroup(FilterExpressionList value)

public FilterExpression.Builder setAndGroup(FilterExpressionList value)

The FilterExpressions in and_group have an AND relationship.

.google.analytics.data.v1beta.FilterExpressionList and_group = 1;

Parameter
Name Description
value FilterExpressionList
Returns
Type Description
FilterExpression.Builder

setAndGroup(FilterExpressionList.Builder builderForValue)

public FilterExpression.Builder setAndGroup(FilterExpressionList.Builder builderForValue)

The FilterExpressions in and_group have an AND relationship.

.google.analytics.data.v1beta.FilterExpressionList and_group = 1;

Parameter
Name Description
builderForValue FilterExpressionList.Builder
Returns
Type Description
FilterExpression.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public FilterExpression.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FilterExpression.Builder
Overrides

setFilter(Filter value)

public FilterExpression.Builder setFilter(Filter value)

A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions or all metrics.

.google.analytics.data.v1beta.Filter filter = 4;

Parameter
Name Description
value Filter
Returns
Type Description
FilterExpression.Builder

setFilter(Filter.Builder builderForValue)

public FilterExpression.Builder setFilter(Filter.Builder builderForValue)

A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions or all metrics.

.google.analytics.data.v1beta.Filter filter = 4;

Parameter
Name Description
builderForValue Filter.Builder
Returns
Type Description
FilterExpression.Builder

setNotExpression(FilterExpression value)

public FilterExpression.Builder setNotExpression(FilterExpression value)

The FilterExpression is NOT of not_expression.

.google.analytics.data.v1beta.FilterExpression not_expression = 3;

Parameter
Name Description
value FilterExpression
Returns
Type Description
FilterExpression.Builder

setNotExpression(FilterExpression.Builder builderForValue)

public FilterExpression.Builder setNotExpression(FilterExpression.Builder builderForValue)

The FilterExpression is NOT of not_expression.

.google.analytics.data.v1beta.FilterExpression not_expression = 3;

Parameter
Name Description
builderForValue FilterExpression.Builder
Returns
Type Description
FilterExpression.Builder

setOrGroup(FilterExpressionList value)

public FilterExpression.Builder setOrGroup(FilterExpressionList value)

The FilterExpressions in or_group have an OR relationship.

.google.analytics.data.v1beta.FilterExpressionList or_group = 2;

Parameter
Name Description
value FilterExpressionList
Returns
Type Description
FilterExpression.Builder

setOrGroup(FilterExpressionList.Builder builderForValue)

public FilterExpression.Builder setOrGroup(FilterExpressionList.Builder builderForValue)

The FilterExpressions in or_group have an OR relationship.

.google.analytics.data.v1beta.FilterExpressionList or_group = 2;

Parameter
Name Description
builderForValue FilterExpressionList.Builder
Returns
Type Description
FilterExpression.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FilterExpression.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FilterExpression.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FilterExpression.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FilterExpression.Builder
Overrides