Class SegmentFilter.Builder (0.22.0)

public static final class SegmentFilter.Builder extends GeneratedMessageV3.Builder<SegmentFilter.Builder> implements SegmentFilterOrBuilder

An expression to filter dimension or metric values.

Protobuf type google.analytics.data.v1alpha.SegmentFilter

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SegmentFilter build()
Returns
TypeDescription
SegmentFilter

buildPartial()

public SegmentFilter buildPartial()
Returns
TypeDescription
SegmentFilter

clear()

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

clearBetweenFilter()

public SegmentFilter.Builder clearBetweenFilter()

A filter for between two values.

.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;

Returns
TypeDescription
SegmentFilter.Builder

clearField(Descriptors.FieldDescriptor field)

public SegmentFilter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SegmentFilter.Builder
Overrides

clearFieldName()

public SegmentFilter.Builder clearFieldName()

The dimension name or metric name.

string field_name = 1;

Returns
TypeDescription
SegmentFilter.Builder

This builder for chaining.

clearFilterScoping()

public SegmentFilter.Builder clearFilterScoping()

Specifies the scope for the filter.

.google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8;

Returns
TypeDescription
SegmentFilter.Builder

clearInListFilter()

public SegmentFilter.Builder clearInListFilter()

A filter for in list values.

.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;

Returns
TypeDescription
SegmentFilter.Builder

clearNumericFilter()

public SegmentFilter.Builder clearNumericFilter()

A filter for numeric or date values.

.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;

Returns
TypeDescription
SegmentFilter.Builder

clearOneFilter()

public SegmentFilter.Builder clearOneFilter()
Returns
TypeDescription
SegmentFilter.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStringFilter()

public SegmentFilter.Builder clearStringFilter()

Strings related filter.

.google.analytics.data.v1alpha.StringFilter string_filter = 4;

Returns
TypeDescription
SegmentFilter.Builder

clone()

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

getBetweenFilter()

public BetweenFilter getBetweenFilter()

A filter for between two values.

.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;

Returns
TypeDescription
BetweenFilter

The betweenFilter.

getBetweenFilterBuilder()

public BetweenFilter.Builder getBetweenFilterBuilder()

A filter for between two values.

.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;

Returns
TypeDescription
BetweenFilter.Builder

getBetweenFilterOrBuilder()

public BetweenFilterOrBuilder getBetweenFilterOrBuilder()

A filter for between two values.

.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;

Returns
TypeDescription
BetweenFilterOrBuilder

getDefaultInstanceForType()

public SegmentFilter getDefaultInstanceForType()
Returns
TypeDescription
SegmentFilter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFieldName()

public String getFieldName()

The dimension name or metric name.

string field_name = 1;

Returns
TypeDescription
String

The fieldName.

getFieldNameBytes()

public ByteString getFieldNameBytes()

The dimension name or metric name.

string field_name = 1;

Returns
TypeDescription
ByteString

The bytes for fieldName.

getFilterScoping()

public SegmentFilterScoping getFilterScoping()

Specifies the scope for the filter.

.google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8;

Returns
TypeDescription
SegmentFilterScoping

The filterScoping.

getFilterScopingBuilder()

public SegmentFilterScoping.Builder getFilterScopingBuilder()

Specifies the scope for the filter.

.google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8;

Returns
TypeDescription
SegmentFilterScoping.Builder

getFilterScopingOrBuilder()

public SegmentFilterScopingOrBuilder getFilterScopingOrBuilder()

Specifies the scope for the filter.

.google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8;

Returns
TypeDescription
SegmentFilterScopingOrBuilder

getInListFilter()

public InListFilter getInListFilter()

A filter for in list values.

.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;

Returns
TypeDescription
InListFilter

The inListFilter.

getInListFilterBuilder()

public InListFilter.Builder getInListFilterBuilder()

A filter for in list values.

.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;

Returns
TypeDescription
InListFilter.Builder

getInListFilterOrBuilder()

public InListFilterOrBuilder getInListFilterOrBuilder()

A filter for in list values.

.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;

Returns
TypeDescription
InListFilterOrBuilder

getNumericFilter()

public NumericFilter getNumericFilter()

A filter for numeric or date values.

.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;

Returns
TypeDescription
NumericFilter

The numericFilter.

getNumericFilterBuilder()

public NumericFilter.Builder getNumericFilterBuilder()

A filter for numeric or date values.

.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;

Returns
TypeDescription
NumericFilter.Builder

getNumericFilterOrBuilder()

public NumericFilterOrBuilder getNumericFilterOrBuilder()

A filter for numeric or date values.

.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;

Returns
TypeDescription
NumericFilterOrBuilder

getOneFilterCase()

public SegmentFilter.OneFilterCase getOneFilterCase()
Returns
TypeDescription
SegmentFilter.OneFilterCase

getStringFilter()

public StringFilter getStringFilter()

Strings related filter.

.google.analytics.data.v1alpha.StringFilter string_filter = 4;

Returns
TypeDescription
StringFilter

The stringFilter.

getStringFilterBuilder()

public StringFilter.Builder getStringFilterBuilder()

Strings related filter.

.google.analytics.data.v1alpha.StringFilter string_filter = 4;

Returns
TypeDescription
StringFilter.Builder

getStringFilterOrBuilder()

public StringFilterOrBuilder getStringFilterOrBuilder()

Strings related filter.

.google.analytics.data.v1alpha.StringFilter string_filter = 4;

Returns
TypeDescription
StringFilterOrBuilder

hasBetweenFilter()

public boolean hasBetweenFilter()

A filter for between two values.

.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;

Returns
TypeDescription
boolean

Whether the betweenFilter field is set.

hasFilterScoping()

public boolean hasFilterScoping()

Specifies the scope for the filter.

.google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8;

Returns
TypeDescription
boolean

Whether the filterScoping field is set.

hasInListFilter()

public boolean hasInListFilter()

A filter for in list values.

.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;

Returns
TypeDescription
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 = 6;

Returns
TypeDescription
boolean

Whether the numericFilter field is set.

hasStringFilter()

public boolean hasStringFilter()

Strings related filter.

.google.analytics.data.v1alpha.StringFilter string_filter = 4;

Returns
TypeDescription
boolean

Whether the stringFilter field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBetweenFilter(BetweenFilter value)

public SegmentFilter.Builder mergeBetweenFilter(BetweenFilter value)

A filter for between two values.

.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;

Parameter
NameDescription
valueBetweenFilter
Returns
TypeDescription
SegmentFilter.Builder

mergeFilterScoping(SegmentFilterScoping value)

public SegmentFilter.Builder mergeFilterScoping(SegmentFilterScoping value)

Specifies the scope for the filter.

.google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8;

Parameter
NameDescription
valueSegmentFilterScoping
Returns
TypeDescription
SegmentFilter.Builder

mergeFrom(SegmentFilter other)

public SegmentFilter.Builder mergeFrom(SegmentFilter other)
Parameter
NameDescription
otherSegmentFilter
Returns
TypeDescription
SegmentFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInListFilter(InListFilter value)

public SegmentFilter.Builder mergeInListFilter(InListFilter value)

A filter for in list values.

.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;

Parameter
NameDescription
valueInListFilter
Returns
TypeDescription
SegmentFilter.Builder

mergeNumericFilter(NumericFilter value)

public SegmentFilter.Builder mergeNumericFilter(NumericFilter value)

A filter for numeric or date values.

.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;

Parameter
NameDescription
valueNumericFilter
Returns
TypeDescription
SegmentFilter.Builder

mergeStringFilter(StringFilter value)

public SegmentFilter.Builder mergeStringFilter(StringFilter value)

Strings related filter.

.google.analytics.data.v1alpha.StringFilter string_filter = 4;

Parameter
NameDescription
valueStringFilter
Returns
TypeDescription
SegmentFilter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBetweenFilter(BetweenFilter value)

public SegmentFilter.Builder setBetweenFilter(BetweenFilter value)

A filter for between two values.

.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;

Parameter
NameDescription
valueBetweenFilter
Returns
TypeDescription
SegmentFilter.Builder

setBetweenFilter(BetweenFilter.Builder builderForValue)

public SegmentFilter.Builder setBetweenFilter(BetweenFilter.Builder builderForValue)

A filter for between two values.

.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;

Parameter
NameDescription
builderForValueBetweenFilter.Builder
Returns
TypeDescription
SegmentFilter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFieldName(String value)

public SegmentFilter.Builder setFieldName(String value)

The dimension name or metric name.

string field_name = 1;

Parameter
NameDescription
valueString

The fieldName to set.

Returns
TypeDescription
SegmentFilter.Builder

This builder for chaining.

setFieldNameBytes(ByteString value)

public SegmentFilter.Builder setFieldNameBytes(ByteString value)

The dimension name or metric name.

string field_name = 1;

Parameter
NameDescription
valueByteString

The bytes for fieldName to set.

Returns
TypeDescription
SegmentFilter.Builder

This builder for chaining.

setFilterScoping(SegmentFilterScoping value)

public SegmentFilter.Builder setFilterScoping(SegmentFilterScoping value)

Specifies the scope for the filter.

.google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8;

Parameter
NameDescription
valueSegmentFilterScoping
Returns
TypeDescription
SegmentFilter.Builder

setFilterScoping(SegmentFilterScoping.Builder builderForValue)

public SegmentFilter.Builder setFilterScoping(SegmentFilterScoping.Builder builderForValue)

Specifies the scope for the filter.

.google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8;

Parameter
NameDescription
builderForValueSegmentFilterScoping.Builder
Returns
TypeDescription
SegmentFilter.Builder

setInListFilter(InListFilter value)

public SegmentFilter.Builder setInListFilter(InListFilter value)

A filter for in list values.

.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;

Parameter
NameDescription
valueInListFilter
Returns
TypeDescription
SegmentFilter.Builder

setInListFilter(InListFilter.Builder builderForValue)

public SegmentFilter.Builder setInListFilter(InListFilter.Builder builderForValue)

A filter for in list values.

.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;

Parameter
NameDescription
builderForValueInListFilter.Builder
Returns
TypeDescription
SegmentFilter.Builder

setNumericFilter(NumericFilter value)

public SegmentFilter.Builder setNumericFilter(NumericFilter value)

A filter for numeric or date values.

.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;

Parameter
NameDescription
valueNumericFilter
Returns
TypeDescription
SegmentFilter.Builder

setNumericFilter(NumericFilter.Builder builderForValue)

public SegmentFilter.Builder setNumericFilter(NumericFilter.Builder builderForValue)

A filter for numeric or date values.

.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;

Parameter
NameDescription
builderForValueNumericFilter.Builder
Returns
TypeDescription
SegmentFilter.Builder

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

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

setStringFilter(StringFilter value)

public SegmentFilter.Builder setStringFilter(StringFilter value)

Strings related filter.

.google.analytics.data.v1alpha.StringFilter string_filter = 4;

Parameter
NameDescription
valueStringFilter
Returns
TypeDescription
SegmentFilter.Builder

setStringFilter(StringFilter.Builder builderForValue)

public SegmentFilter.Builder setStringFilter(StringFilter.Builder builderForValue)

Strings related filter.

.google.analytics.data.v1alpha.StringFilter string_filter = 4;

Parameter
NameDescription
builderForValueStringFilter.Builder
Returns
TypeDescription
SegmentFilter.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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