Class FilterExpression.Builder (0.23.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.v1alpha.FilterExpression

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FilterExpression.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FilterExpression.Builder
Overrides

build()

public FilterExpression build()
Returns
TypeDescription
FilterExpression

buildPartial()

public FilterExpression buildPartial()
Returns
TypeDescription
FilterExpression

clear()

public FilterExpression.Builder clear()
Returns
TypeDescription
FilterExpression.Builder
Overrides

clearAndGroup()

public FilterExpression.Builder clearAndGroup()

The FilterExpressions in and_group have an AND relationship.

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

Returns
TypeDescription
FilterExpression.Builder

clearExpr()

public FilterExpression.Builder clearExpr()
Returns
TypeDescription
FilterExpression.Builder

clearField(Descriptors.FieldDescriptor field)

public FilterExpression.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.v1alpha.Filter filter = 4;

Returns
TypeDescription
FilterExpression.Builder

clearNotExpression()

public FilterExpression.Builder clearNotExpression()

The FilterExpression is NOT of not_expression.

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

Returns
TypeDescription
FilterExpression.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public FilterExpression.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FilterExpression.Builder
Overrides

clearOrGroup()

public FilterExpression.Builder clearOrGroup()

The FilterExpressions in or_group have an OR relationship.

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

Returns
TypeDescription
FilterExpression.Builder

clone()

public FilterExpression.Builder clone()
Returns
TypeDescription
FilterExpression.Builder
Overrides

getAndGroup()

public FilterExpressionList getAndGroup()

The FilterExpressions in and_group have an AND relationship.

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

Returns
TypeDescription
FilterExpressionList

The andGroup.

getAndGroupBuilder()

public FilterExpressionList.Builder getAndGroupBuilder()

The FilterExpressions in and_group have an AND relationship.

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

Returns
TypeDescription
FilterExpressionList.Builder

getAndGroupOrBuilder()

public FilterExpressionListOrBuilder getAndGroupOrBuilder()

The FilterExpressions in and_group have an AND relationship.

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

Returns
TypeDescription
FilterExpressionListOrBuilder

getDefaultInstanceForType()

public FilterExpression getDefaultInstanceForType()
Returns
TypeDescription
FilterExpression

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExprCase()

public FilterExpression.ExprCase getExprCase()
Returns
TypeDescription
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.v1alpha.Filter filter = 4;

Returns
TypeDescription
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.v1alpha.Filter filter = 4;

Returns
TypeDescription
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.v1alpha.Filter filter = 4;

Returns
TypeDescription
FilterOrBuilder

getNotExpression()

public FilterExpression getNotExpression()

The FilterExpression is NOT of not_expression.

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

Returns
TypeDescription
FilterExpression

The notExpression.

getNotExpressionBuilder()

public FilterExpression.Builder getNotExpressionBuilder()

The FilterExpression is NOT of not_expression.

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

Returns
TypeDescription
FilterExpression.Builder

getNotExpressionOrBuilder()

public FilterExpressionOrBuilder getNotExpressionOrBuilder()

The FilterExpression is NOT of not_expression.

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

Returns
TypeDescription
FilterExpressionOrBuilder

getOrGroup()

public FilterExpressionList getOrGroup()

The FilterExpressions in or_group have an OR relationship.

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

Returns
TypeDescription
FilterExpressionList

The orGroup.

getOrGroupBuilder()

public FilterExpressionList.Builder getOrGroupBuilder()

The FilterExpressions in or_group have an OR relationship.

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

Returns
TypeDescription
FilterExpressionList.Builder

getOrGroupOrBuilder()

public FilterExpressionListOrBuilder getOrGroupOrBuilder()

The FilterExpressions in or_group have an OR relationship.

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

Returns
TypeDescription
FilterExpressionListOrBuilder

hasAndGroup()

public boolean hasAndGroup()

The FilterExpressions in and_group have an AND relationship.

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

Returns
TypeDescription
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.v1alpha.Filter filter = 4;

Returns
TypeDescription
boolean

Whether the filter field is set.

hasNotExpression()

public boolean hasNotExpression()

The FilterExpression is NOT of not_expression.

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

Returns
TypeDescription
boolean

Whether the notExpression field is set.

hasOrGroup()

public boolean hasOrGroup()

The FilterExpressions in or_group have an OR relationship.

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

Returns
TypeDescription
boolean

Whether the orGroup field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAndGroup(FilterExpressionList value)

public FilterExpression.Builder mergeAndGroup(FilterExpressionList value)

The FilterExpressions in and_group have an AND relationship.

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

Parameter
NameDescription
valueFilterExpressionList
Returns
TypeDescription
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.v1alpha.Filter filter = 4;

Parameter
NameDescription
valueFilter
Returns
TypeDescription
FilterExpression.Builder

mergeFrom(FilterExpression other)

public FilterExpression.Builder mergeFrom(FilterExpression other)
Parameter
NameDescription
otherFilterExpression
Returns
TypeDescription
FilterExpression.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FilterExpression.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FilterExpression.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FilterExpression.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FilterExpression.Builder
Overrides

mergeNotExpression(FilterExpression value)

public FilterExpression.Builder mergeNotExpression(FilterExpression value)

The FilterExpression is NOT of not_expression.

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

Parameter
NameDescription
valueFilterExpression
Returns
TypeDescription
FilterExpression.Builder

mergeOrGroup(FilterExpressionList value)

public FilterExpression.Builder mergeOrGroup(FilterExpressionList value)

The FilterExpressions in or_group have an OR relationship.

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

Parameter
NameDescription
valueFilterExpressionList
Returns
TypeDescription
FilterExpression.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FilterExpression.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FilterExpression.Builder
Overrides

setAndGroup(FilterExpressionList value)

public FilterExpression.Builder setAndGroup(FilterExpressionList value)

The FilterExpressions in and_group have an AND relationship.

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

Parameter
NameDescription
valueFilterExpressionList
Returns
TypeDescription
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.v1alpha.FilterExpressionList and_group = 1;

Parameter
NameDescription
builderForValueFilterExpressionList.Builder
Returns
TypeDescription
FilterExpression.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public FilterExpression.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1alpha.Filter filter = 4;

Parameter
NameDescription
valueFilter
Returns
TypeDescription
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.v1alpha.Filter filter = 4;

Parameter
NameDescription
builderForValueFilter.Builder
Returns
TypeDescription
FilterExpression.Builder

setNotExpression(FilterExpression value)

public FilterExpression.Builder setNotExpression(FilterExpression value)

The FilterExpression is NOT of not_expression.

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

Parameter
NameDescription
valueFilterExpression
Returns
TypeDescription
FilterExpression.Builder

setNotExpression(FilterExpression.Builder builderForValue)

public FilterExpression.Builder setNotExpression(FilterExpression.Builder builderForValue)

The FilterExpression is NOT of not_expression.

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

Parameter
NameDescription
builderForValueFilterExpression.Builder
Returns
TypeDescription
FilterExpression.Builder

setOrGroup(FilterExpressionList value)

public FilterExpression.Builder setOrGroup(FilterExpressionList value)

The FilterExpressions in or_group have an OR relationship.

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

Parameter
NameDescription
valueFilterExpressionList
Returns
TypeDescription
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.v1alpha.FilterExpressionList or_group = 2;

Parameter
NameDescription
builderForValueFilterExpressionList.Builder
Returns
TypeDescription
FilterExpression.Builder

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

public FilterExpression.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FilterExpression.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FilterExpression.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FilterExpression.Builder
Overrides