Class AudienceEventFilter.Builder (0.22.0)

public static final class AudienceEventFilter.Builder extends GeneratedMessageV3.Builder<AudienceEventFilter.Builder> implements AudienceEventFilterOrBuilder

A filter that matches events of a single event name. If an event parameter is specified, only the subset of events that match both the single event name and the parameter filter expressions match this event filter.

Protobuf type google.analytics.admin.v1alpha.AudienceEventFilter

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AudienceEventFilter build()
Returns
TypeDescription
AudienceEventFilter

buildPartial()

public AudienceEventFilter buildPartial()
Returns
TypeDescription
AudienceEventFilter

clear()

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

clearEventName()

public AudienceEventFilter.Builder clearEventName()

Required. Immutable. The name of the event to match against.

string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
AudienceEventFilter.Builder

This builder for chaining.

clearEventParameterFilterExpression()

public AudienceEventFilter.Builder clearEventParameterFilterExpression()

Optional. If specified, this filter matches events that match both the single event name and the parameter filter expressions. AudienceEventFilter inside the parameter filter expression cannot be set (i.e., nested event filters are not supported). This should be a single and_group of dimension_or_metric_filter or not_expression; ANDs of ORs are not supported. Also, if it includes a filter for "eventCount", only that one will be considered; all the other filters will be ignored.

.google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AudienceEventFilter.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public AudienceEventFilter getDefaultInstanceForType()
Returns
TypeDescription
AudienceEventFilter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEventName()

public String getEventName()

Required. Immutable. The name of the event to match against.

string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The eventName.

getEventNameBytes()

public ByteString getEventNameBytes()

Required. Immutable. The name of the event to match against.

string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for eventName.

getEventParameterFilterExpression()

public AudienceFilterExpression getEventParameterFilterExpression()

Optional. If specified, this filter matches events that match both the single event name and the parameter filter expressions. AudienceEventFilter inside the parameter filter expression cannot be set (i.e., nested event filters are not supported). This should be a single and_group of dimension_or_metric_filter or not_expression; ANDs of ORs are not supported. Also, if it includes a filter for "eventCount", only that one will be considered; all the other filters will be ignored.

.google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AudienceFilterExpression

The eventParameterFilterExpression.

getEventParameterFilterExpressionBuilder()

public AudienceFilterExpression.Builder getEventParameterFilterExpressionBuilder()

Optional. If specified, this filter matches events that match both the single event name and the parameter filter expressions. AudienceEventFilter inside the parameter filter expression cannot be set (i.e., nested event filters are not supported). This should be a single and_group of dimension_or_metric_filter or not_expression; ANDs of ORs are not supported. Also, if it includes a filter for "eventCount", only that one will be considered; all the other filters will be ignored.

.google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AudienceFilterExpression.Builder

getEventParameterFilterExpressionOrBuilder()

public AudienceFilterExpressionOrBuilder getEventParameterFilterExpressionOrBuilder()

Optional. If specified, this filter matches events that match both the single event name and the parameter filter expressions. AudienceEventFilter inside the parameter filter expression cannot be set (i.e., nested event filters are not supported). This should be a single and_group of dimension_or_metric_filter or not_expression; ANDs of ORs are not supported. Also, if it includes a filter for "eventCount", only that one will be considered; all the other filters will be ignored.

.google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AudienceFilterExpressionOrBuilder

hasEventParameterFilterExpression()

public boolean hasEventParameterFilterExpression()

Optional. If specified, this filter matches events that match both the single event name and the parameter filter expressions. AudienceEventFilter inside the parameter filter expression cannot be set (i.e., nested event filters are not supported). This should be a single and_group of dimension_or_metric_filter or not_expression; ANDs of ORs are not supported. Also, if it includes a filter for "eventCount", only that one will be considered; all the other filters will be ignored.

.google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the eventParameterFilterExpression field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEventParameterFilterExpression(AudienceFilterExpression value)

public AudienceEventFilter.Builder mergeEventParameterFilterExpression(AudienceFilterExpression value)

Optional. If specified, this filter matches events that match both the single event name and the parameter filter expressions. AudienceEventFilter inside the parameter filter expression cannot be set (i.e., nested event filters are not supported). This should be a single and_group of dimension_or_metric_filter or not_expression; ANDs of ORs are not supported. Also, if it includes a filter for "eventCount", only that one will be considered; all the other filters will be ignored.

.google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAudienceFilterExpression
Returns
TypeDescription
AudienceEventFilter.Builder

mergeFrom(AudienceEventFilter other)

public AudienceEventFilter.Builder mergeFrom(AudienceEventFilter other)
Parameter
NameDescription
otherAudienceEventFilter
Returns
TypeDescription
AudienceEventFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEventName(String value)

public AudienceEventFilter.Builder setEventName(String value)

Required. Immutable. The name of the event to match against.

string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The eventName to set.

Returns
TypeDescription
AudienceEventFilter.Builder

This builder for chaining.

setEventNameBytes(ByteString value)

public AudienceEventFilter.Builder setEventNameBytes(ByteString value)

Required. Immutable. The name of the event to match against.

string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for eventName to set.

Returns
TypeDescription
AudienceEventFilter.Builder

This builder for chaining.

setEventParameterFilterExpression(AudienceFilterExpression value)

public AudienceEventFilter.Builder setEventParameterFilterExpression(AudienceFilterExpression value)

Optional. If specified, this filter matches events that match both the single event name and the parameter filter expressions. AudienceEventFilter inside the parameter filter expression cannot be set (i.e., nested event filters are not supported). This should be a single and_group of dimension_or_metric_filter or not_expression; ANDs of ORs are not supported. Also, if it includes a filter for "eventCount", only that one will be considered; all the other filters will be ignored.

.google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAudienceFilterExpression
Returns
TypeDescription
AudienceEventFilter.Builder

setEventParameterFilterExpression(AudienceFilterExpression.Builder builderForValue)

public AudienceEventFilter.Builder setEventParameterFilterExpression(AudienceFilterExpression.Builder builderForValue)

Optional. If specified, this filter matches events that match both the single event name and the parameter filter expressions. AudienceEventFilter inside the parameter filter expression cannot be set (i.e., nested event filters are not supported). This should be a single and_group of dimension_or_metric_filter or not_expression; ANDs of ORs are not supported. Also, if it includes a filter for "eventCount", only that one will be considered; all the other filters will be ignored.

.google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueAudienceFilterExpression.Builder
Returns
TypeDescription
AudienceEventFilter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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