Class SegmentEventFilter.Builder (0.56.0)

public static final class SegmentEventFilter.Builder extends GeneratedMessageV3.Builder<SegmentEventFilter.Builder> implements SegmentEventFilterOrBuilder

Creates a filter that matches events of a single event name. If a parameter filter expression 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.data.v1alpha.SegmentEventFilter

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SegmentEventFilter build()
Returns
Type Description
SegmentEventFilter

buildPartial()

public SegmentEventFilter buildPartial()
Returns
Type Description
SegmentEventFilter

clear()

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

clearEventName()

public SegmentEventFilter.Builder clearEventName()

This filter matches events of this single event name. Event name is required.

optional string event_name = 1;

Returns
Type Description
SegmentEventFilter.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSegmentParameterFilterExpression()

public SegmentEventFilter.Builder clearSegmentParameterFilterExpression()

If specified, this filter matches events that match both the single event name and the parameter filter expressions.

Inside the parameter filter expression, only parameter filters are available.

optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2;

Returns
Type Description
SegmentEventFilter.Builder

clone()

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

getDefaultInstanceForType()

public SegmentEventFilter getDefaultInstanceForType()
Returns
Type Description
SegmentEventFilter

getDescriptorForType()

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

getEventName()

public String getEventName()

This filter matches events of this single event name. Event name is required.

optional string event_name = 1;

Returns
Type Description
String

The eventName.

getEventNameBytes()

public ByteString getEventNameBytes()

This filter matches events of this single event name. Event name is required.

optional string event_name = 1;

Returns
Type Description
ByteString

The bytes for eventName.

getSegmentParameterFilterExpression()

public SegmentParameterFilterExpression getSegmentParameterFilterExpression()

If specified, this filter matches events that match both the single event name and the parameter filter expressions.

Inside the parameter filter expression, only parameter filters are available.

optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2;

Returns
Type Description
SegmentParameterFilterExpression

The segmentParameterFilterExpression.

getSegmentParameterFilterExpressionBuilder()

public SegmentParameterFilterExpression.Builder getSegmentParameterFilterExpressionBuilder()

If specified, this filter matches events that match both the single event name and the parameter filter expressions.

Inside the parameter filter expression, only parameter filters are available.

optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2;

Returns
Type Description
SegmentParameterFilterExpression.Builder

getSegmentParameterFilterExpressionOrBuilder()

public SegmentParameterFilterExpressionOrBuilder getSegmentParameterFilterExpressionOrBuilder()

If specified, this filter matches events that match both the single event name and the parameter filter expressions.

Inside the parameter filter expression, only parameter filters are available.

optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2;

Returns
Type Description
SegmentParameterFilterExpressionOrBuilder

hasEventName()

public boolean hasEventName()

This filter matches events of this single event name. Event name is required.

optional string event_name = 1;

Returns
Type Description
boolean

Whether the eventName field is set.

hasSegmentParameterFilterExpression()

public boolean hasSegmentParameterFilterExpression()

If specified, this filter matches events that match both the single event name and the parameter filter expressions.

Inside the parameter filter expression, only parameter filters are available.

optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2;

Returns
Type Description
boolean

Whether the segmentParameterFilterExpression field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SegmentEventFilter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSegmentParameterFilterExpression(SegmentParameterFilterExpression value)

public SegmentEventFilter.Builder mergeSegmentParameterFilterExpression(SegmentParameterFilterExpression value)

If specified, this filter matches events that match both the single event name and the parameter filter expressions.

Inside the parameter filter expression, only parameter filters are available.

optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2;

Parameter
Name Description
value SegmentParameterFilterExpression
Returns
Type Description
SegmentEventFilter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEventName(String value)

public SegmentEventFilter.Builder setEventName(String value)

This filter matches events of this single event name. Event name is required.

optional string event_name = 1;

Parameter
Name Description
value String

The eventName to set.

Returns
Type Description
SegmentEventFilter.Builder

This builder for chaining.

setEventNameBytes(ByteString value)

public SegmentEventFilter.Builder setEventNameBytes(ByteString value)

This filter matches events of this single event name. Event name is required.

optional string event_name = 1;

Parameter
Name Description
value ByteString

The bytes for eventName to set.

Returns
Type Description
SegmentEventFilter.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSegmentParameterFilterExpression(SegmentParameterFilterExpression value)

public SegmentEventFilter.Builder setSegmentParameterFilterExpression(SegmentParameterFilterExpression value)

If specified, this filter matches events that match both the single event name and the parameter filter expressions.

Inside the parameter filter expression, only parameter filters are available.

optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2;

Parameter
Name Description
value SegmentParameterFilterExpression
Returns
Type Description
SegmentEventFilter.Builder

setSegmentParameterFilterExpression(SegmentParameterFilterExpression.Builder builderForValue)

public SegmentEventFilter.Builder setSegmentParameterFilterExpression(SegmentParameterFilterExpression.Builder builderForValue)

If specified, this filter matches events that match both the single event name and the parameter filter expressions.

Inside the parameter filter expression, only parameter filters are available.

optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2;

Parameter
Name Description
builderForValue SegmentParameterFilterExpression.Builder
Returns
Type Description
SegmentEventFilter.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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