Class SessionSegmentConditionGroup.Builder (0.55.0)

public static final class SessionSegmentConditionGroup.Builder extends GeneratedMessageV3.Builder<SessionSegmentConditionGroup.Builder> implements SessionSegmentConditionGroupOrBuilder

Conditions tell Analytics what data to include in or exclude from the segment.

Protobuf type google.analytics.data.v1alpha.SessionSegmentConditionGroup

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SessionSegmentConditionGroup build()
Returns
Type Description
SessionSegmentConditionGroup

buildPartial()

public SessionSegmentConditionGroup buildPartial()
Returns
Type Description
SessionSegmentConditionGroup

clear()

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

clearConditionScoping()

public SessionSegmentConditionGroup.Builder clearConditionScoping()

Data is included or excluded from the segment based on if it matches the condition group. This scoping defines how many events the segmentFilterExpression is evaluated on before the condition group is determined to be matched or not. For example if conditionScoping = SESSION_CRITERIA_WITHIN_SAME_SESSION, the expression is evaluated on all events in a session, and then, the condition group is determined to be matched or not for this session. For example if conditionScoping = SESSION_CRITERIA_WITHIN_SAME_EVENT, the expression is evaluated on a single event, and then, the condition group is determined to be matched or not for this session.

Optional. If unspecified, a conditionScoping of WITHIN_SAME_SESSION is used.

.google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1;

Returns
Type Description
SessionSegmentConditionGroup.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSegmentFilterExpression()

public SessionSegmentConditionGroup.Builder clearSegmentFilterExpression()

Data is included or excluded from the segment based on if it matches this expression. Expressions express criteria on dimension, metrics, and/or parameters.

.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;

Returns
Type Description
SessionSegmentConditionGroup.Builder

clone()

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

getConditionScoping()

public SessionCriteriaScoping getConditionScoping()

Data is included or excluded from the segment based on if it matches the condition group. This scoping defines how many events the segmentFilterExpression is evaluated on before the condition group is determined to be matched or not. For example if conditionScoping = SESSION_CRITERIA_WITHIN_SAME_SESSION, the expression is evaluated on all events in a session, and then, the condition group is determined to be matched or not for this session. For example if conditionScoping = SESSION_CRITERIA_WITHIN_SAME_EVENT, the expression is evaluated on a single event, and then, the condition group is determined to be matched or not for this session.

Optional. If unspecified, a conditionScoping of WITHIN_SAME_SESSION is used.

.google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1;

Returns
Type Description
SessionCriteriaScoping

The conditionScoping.

getConditionScopingValue()

public int getConditionScopingValue()

Data is included or excluded from the segment based on if it matches the condition group. This scoping defines how many events the segmentFilterExpression is evaluated on before the condition group is determined to be matched or not. For example if conditionScoping = SESSION_CRITERIA_WITHIN_SAME_SESSION, the expression is evaluated on all events in a session, and then, the condition group is determined to be matched or not for this session. For example if conditionScoping = SESSION_CRITERIA_WITHIN_SAME_EVENT, the expression is evaluated on a single event, and then, the condition group is determined to be matched or not for this session.

Optional. If unspecified, a conditionScoping of WITHIN_SAME_SESSION is used.

.google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1;

Returns
Type Description
int

The enum numeric value on the wire for conditionScoping.

getDefaultInstanceForType()

public SessionSegmentConditionGroup getDefaultInstanceForType()
Returns
Type Description
SessionSegmentConditionGroup

getDescriptorForType()

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

getSegmentFilterExpression()

public SegmentFilterExpression getSegmentFilterExpression()

Data is included or excluded from the segment based on if it matches this expression. Expressions express criteria on dimension, metrics, and/or parameters.

.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;

Returns
Type Description
SegmentFilterExpression

The segmentFilterExpression.

getSegmentFilterExpressionBuilder()

public SegmentFilterExpression.Builder getSegmentFilterExpressionBuilder()

Data is included or excluded from the segment based on if it matches this expression. Expressions express criteria on dimension, metrics, and/or parameters.

.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;

Returns
Type Description
SegmentFilterExpression.Builder

getSegmentFilterExpressionOrBuilder()

public SegmentFilterExpressionOrBuilder getSegmentFilterExpressionOrBuilder()

Data is included or excluded from the segment based on if it matches this expression. Expressions express criteria on dimension, metrics, and/or parameters.

.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;

Returns
Type Description
SegmentFilterExpressionOrBuilder

hasSegmentFilterExpression()

public boolean hasSegmentFilterExpression()

Data is included or excluded from the segment based on if it matches this expression. Expressions express criteria on dimension, metrics, and/or parameters.

.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;

Returns
Type Description
boolean

Whether the segmentFilterExpression field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SessionSegmentConditionGroup other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSegmentFilterExpression(SegmentFilterExpression value)

public SessionSegmentConditionGroup.Builder mergeSegmentFilterExpression(SegmentFilterExpression value)

Data is included or excluded from the segment based on if it matches this expression. Expressions express criteria on dimension, metrics, and/or parameters.

.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;

Parameter
Name Description
value SegmentFilterExpression
Returns
Type Description
SessionSegmentConditionGroup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConditionScoping(SessionCriteriaScoping value)

public SessionSegmentConditionGroup.Builder setConditionScoping(SessionCriteriaScoping value)

Data is included or excluded from the segment based on if it matches the condition group. This scoping defines how many events the segmentFilterExpression is evaluated on before the condition group is determined to be matched or not. For example if conditionScoping = SESSION_CRITERIA_WITHIN_SAME_SESSION, the expression is evaluated on all events in a session, and then, the condition group is determined to be matched or not for this session. For example if conditionScoping = SESSION_CRITERIA_WITHIN_SAME_EVENT, the expression is evaluated on a single event, and then, the condition group is determined to be matched or not for this session.

Optional. If unspecified, a conditionScoping of WITHIN_SAME_SESSION is used.

.google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1;

Parameter
Name Description
value SessionCriteriaScoping

The conditionScoping to set.

Returns
Type Description
SessionSegmentConditionGroup.Builder

This builder for chaining.

setConditionScopingValue(int value)

public SessionSegmentConditionGroup.Builder setConditionScopingValue(int value)

Data is included or excluded from the segment based on if it matches the condition group. This scoping defines how many events the segmentFilterExpression is evaluated on before the condition group is determined to be matched or not. For example if conditionScoping = SESSION_CRITERIA_WITHIN_SAME_SESSION, the expression is evaluated on all events in a session, and then, the condition group is determined to be matched or not for this session. For example if conditionScoping = SESSION_CRITERIA_WITHIN_SAME_EVENT, the expression is evaluated on a single event, and then, the condition group is determined to be matched or not for this session.

Optional. If unspecified, a conditionScoping of WITHIN_SAME_SESSION is used.

.google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1;

Parameter
Name Description
value int

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

Returns
Type Description
SessionSegmentConditionGroup.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSegmentFilterExpression(SegmentFilterExpression value)

public SessionSegmentConditionGroup.Builder setSegmentFilterExpression(SegmentFilterExpression value)

Data is included or excluded from the segment based on if it matches this expression. Expressions express criteria on dimension, metrics, and/or parameters.

.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;

Parameter
Name Description
value SegmentFilterExpression
Returns
Type Description
SessionSegmentConditionGroup.Builder

setSegmentFilterExpression(SegmentFilterExpression.Builder builderForValue)

public SessionSegmentConditionGroup.Builder setSegmentFilterExpression(SegmentFilterExpression.Builder builderForValue)

Data is included or excluded from the segment based on if it matches this expression. Expressions express criteria on dimension, metrics, and/or parameters.

.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;

Parameter
Name Description
builderForValue SegmentFilterExpression.Builder
Returns
Type Description
SessionSegmentConditionGroup.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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