Class AudienceSimpleFilter.Builder (0.14.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AudienceSimpleFilter build()
Returns
TypeDescription
AudienceSimpleFilter

buildPartial()

public AudienceSimpleFilter buildPartial()
Returns
TypeDescription
AudienceSimpleFilter

clear()

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

clearField(Descriptors.FieldDescriptor field)

public AudienceSimpleFilter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
AudienceSimpleFilter.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AudienceSimpleFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AudienceSimpleFilter.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AudienceSimpleFilter getDefaultInstanceForType()
Returns
TypeDescription
AudienceSimpleFilter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the filterExpression field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAudienceFilterExpression
Returns
TypeDescription
AudienceSimpleFilter.Builder

mergeFrom(AudienceSimpleFilter other)

public AudienceSimpleFilter.Builder mergeFrom(AudienceSimpleFilter other)
Parameter
NameDescription
otherAudienceSimpleFilter
Returns
TypeDescription
AudienceSimpleFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public AudienceSimpleFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueAudienceFilterExpression
Returns
TypeDescription
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
NameDescription
builderForValueAudienceFilterExpression.Builder
Returns
TypeDescription
AudienceSimpleFilter.Builder

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

public AudienceSimpleFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueAudienceFilterScope

The scope to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
AudienceSimpleFilter.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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