Class SegmentEventFilter.Builder (0.26.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SegmentEventFilter build()
Returns
TypeDescription
SegmentEventFilter

buildPartial()

public SegmentEventFilter buildPartial()
Returns
TypeDescription
SegmentEventFilter

clear()

public SegmentEventFilter.Builder clear()
Returns
TypeDescription
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
TypeDescription
SegmentEventFilter.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SegmentEventFilter getDefaultInstanceForType()
Returns
TypeDescription
SegmentEventFilter

getDescriptorForType()

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

hasEventName()

public boolean hasEventName()

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

optional string event_name = 1;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the segmentParameterFilterExpression field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SegmentEventFilter other)

public SegmentEventFilter.Builder mergeFrom(SegmentEventFilter other)
Parameter
NameDescription
otherSegmentEventFilter
Returns
TypeDescription
SegmentEventFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SegmentEventFilter.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSegmentParameterFilterExpression
Returns
TypeDescription
SegmentEventFilter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SegmentEventFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The eventName to set.

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

The bytes for eventName to set.

Returns
TypeDescription
SegmentEventFilter.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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