Class AudienceSimpleFilter.Builder (0.56.0)

public static final class AudienceSimpleFilter.Builder extends GeneratedMessageV3.Builder<AudienceSimpleFilter.Builder> implements AudienceSimpleFilterOrBuilder

Defines a simple filter that a user must satisfy to be a member of the Audience.

Protobuf type google.analytics.admin.v1alpha.AudienceSimpleFilter

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AudienceSimpleFilter build()
Returns
Type Description
AudienceSimpleFilter

buildPartial()

public AudienceSimpleFilter buildPartial()
Returns
Type Description
AudienceSimpleFilter

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFilterExpression()

public AudienceSimpleFilter.Builder clearFilterExpression()

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

.google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
AudienceSimpleFilter.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearScope()

public AudienceSimpleFilter.Builder clearScope()

Required. Immutable. Specifies the scope for this filter.

.google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
AudienceSimpleFilter.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AudienceSimpleFilter getDefaultInstanceForType()
Returns
Type Description
AudienceSimpleFilter

getDescriptorForType()

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

getFilterExpression()

public AudienceFilterExpression getFilterExpression()

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

.google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
AudienceFilterExpression

The filterExpression.

getFilterExpressionBuilder()

public AudienceFilterExpression.Builder getFilterExpressionBuilder()

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

.google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
AudienceFilterExpression.Builder

getFilterExpressionOrBuilder()

public AudienceFilterExpressionOrBuilder getFilterExpressionOrBuilder()

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

.google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
AudienceFilterExpressionOrBuilder

getScope()

public AudienceFilterScope getScope()

Required. Immutable. Specifies the scope for this filter.

.google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
AudienceFilterScope

The scope.

getScopeValue()

public int getScopeValue()

Required. Immutable. Specifies the scope for this filter.

.google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The enum numeric value on the wire for scope.

hasFilterExpression()

public boolean hasFilterExpression()

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

.google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the filterExpression field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFilterExpression(AudienceFilterExpression value)

public AudienceSimpleFilter.Builder mergeFilterExpression(AudienceFilterExpression value)

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

.google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value AudienceFilterExpression
Returns
Type Description
AudienceSimpleFilter.Builder

mergeFrom(AudienceSimpleFilter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilterExpression(AudienceFilterExpression value)

public AudienceSimpleFilter.Builder setFilterExpression(AudienceFilterExpression value)

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

.google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value AudienceFilterExpression
Returns
Type Description
AudienceSimpleFilter.Builder

setFilterExpression(AudienceFilterExpression.Builder builderForValue)

public AudienceSimpleFilter.Builder setFilterExpression(AudienceFilterExpression.Builder builderForValue)

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

.google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
builderForValue AudienceFilterExpression.Builder
Returns
Type Description
AudienceSimpleFilter.Builder

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

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

setScope(AudienceFilterScope value)

public AudienceSimpleFilter.Builder setScope(AudienceFilterScope value)

Required. Immutable. Specifies the scope for this filter.

.google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value AudienceFilterScope

The scope to set.

Returns
Type Description
AudienceSimpleFilter.Builder

This builder for chaining.

setScopeValue(int value)

public AudienceSimpleFilter.Builder setScopeValue(int value)

Required. Immutable. Specifies the scope for this filter.

.google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value int

The enum numeric value on the wire for scope to set.

Returns
Type Description
AudienceSimpleFilter.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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