Class UserSegmentConditionGroup.Builder (0.44.0)

public static final class UserSegmentConditionGroup.Builder extends GeneratedMessageV3.Builder<UserSegmentConditionGroup.Builder> implements UserSegmentConditionGroupOrBuilder

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

Protobuf type google.analytics.data.v1alpha.UserSegmentConditionGroup

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UserSegmentConditionGroup build()
Returns
TypeDescription
UserSegmentConditionGroup

buildPartial()

public UserSegmentConditionGroup buildPartial()
Returns
TypeDescription
UserSegmentConditionGroup

clear()

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

clearConditionScoping()

public UserSegmentConditionGroup.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 = USER_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 user. For example if conditionScoping = USER_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 user.

Optional. If unspecified, conditionScoping = ACROSS_ALL_SESSIONS is used.

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

Returns
TypeDescription
UserSegmentConditionGroup.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSegmentFilterExpression()

public UserSegmentConditionGroup.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
TypeDescription
UserSegmentConditionGroup.Builder

clone()

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

getConditionScoping()

public UserCriteriaScoping 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 = USER_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 user. For example if conditionScoping = USER_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 user.

Optional. If unspecified, conditionScoping = ACROSS_ALL_SESSIONS is used.

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

Returns
TypeDescription
UserCriteriaScoping

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 = USER_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 user. For example if conditionScoping = USER_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 user.

Optional. If unspecified, conditionScoping = ACROSS_ALL_SESSIONS is used.

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

Returns
TypeDescription
int

The enum numeric value on the wire for conditionScoping.

getDefaultInstanceForType()

public UserSegmentConditionGroup getDefaultInstanceForType()
Returns
TypeDescription
UserSegmentConditionGroup

getDescriptorForType()

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

Whether the segmentFilterExpression field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UserSegmentConditionGroup other)

public UserSegmentConditionGroup.Builder mergeFrom(UserSegmentConditionGroup other)
Parameter
NameDescription
otherUserSegmentConditionGroup
Returns
TypeDescription
UserSegmentConditionGroup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSegmentFilterExpression(SegmentFilterExpression value)

public UserSegmentConditionGroup.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
NameDescription
valueSegmentFilterExpression
Returns
TypeDescription
UserSegmentConditionGroup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConditionScoping(UserCriteriaScoping value)

public UserSegmentConditionGroup.Builder setConditionScoping(UserCriteriaScoping 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 = USER_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 user. For example if conditionScoping = USER_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 user.

Optional. If unspecified, conditionScoping = ACROSS_ALL_SESSIONS is used.

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

Parameter
NameDescription
valueUserCriteriaScoping

The conditionScoping to set.

Returns
TypeDescription
UserSegmentConditionGroup.Builder

This builder for chaining.

setConditionScopingValue(int value)

public UserSegmentConditionGroup.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 = USER_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 user. For example if conditionScoping = USER_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 user.

Optional. If unspecified, conditionScoping = ACROSS_ALL_SESSIONS is used.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
UserSegmentConditionGroup.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSegmentFilterExpression(SegmentFilterExpression value)

public UserSegmentConditionGroup.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
NameDescription
valueSegmentFilterExpression
Returns
TypeDescription
UserSegmentConditionGroup.Builder

setSegmentFilterExpression(SegmentFilterExpression.Builder builderForValue)

public UserSegmentConditionGroup.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
NameDescription
builderForValueSegmentFilterExpression.Builder
Returns
TypeDescription
UserSegmentConditionGroup.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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