Class UserSegmentSequenceGroup.Builder (0.19.0)

public static final class UserSegmentSequenceGroup.Builder extends GeneratedMessageV3.Builder<UserSegmentSequenceGroup.Builder> implements UserSegmentSequenceGroupOrBuilder

Define conditions that must occur in a specific order for the user to be a member of the segment.

Protobuf type google.analytics.data.v1alpha.UserSegmentSequenceGroup

Static Methods

getDescriptor()

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

Methods

addAllUserSequenceSteps(Iterable<? extends UserSequenceStep> values)

public UserSegmentSequenceGroup.Builder addAllUserSequenceSteps(Iterable<? extends UserSequenceStep> values)

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.analytics.data.v1alpha.UserSequenceStep>
Returns
TypeDescription
UserSegmentSequenceGroup.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUserSequenceSteps(UserSequenceStep value)

public UserSegmentSequenceGroup.Builder addUserSequenceSteps(UserSequenceStep value)

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Parameter
NameDescription
valueUserSequenceStep
Returns
TypeDescription
UserSegmentSequenceGroup.Builder

addUserSequenceSteps(UserSequenceStep.Builder builderForValue)

public UserSegmentSequenceGroup.Builder addUserSequenceSteps(UserSequenceStep.Builder builderForValue)

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Parameter
NameDescription
builderForValueUserSequenceStep.Builder
Returns
TypeDescription
UserSegmentSequenceGroup.Builder

addUserSequenceSteps(int index, UserSequenceStep value)

public UserSegmentSequenceGroup.Builder addUserSequenceSteps(int index, UserSequenceStep value)

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Parameters
NameDescription
indexint
valueUserSequenceStep
Returns
TypeDescription
UserSegmentSequenceGroup.Builder

addUserSequenceSteps(int index, UserSequenceStep.Builder builderForValue)

public UserSegmentSequenceGroup.Builder addUserSequenceSteps(int index, UserSequenceStep.Builder builderForValue)

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Parameters
NameDescription
indexint
builderForValueUserSequenceStep.Builder
Returns
TypeDescription
UserSegmentSequenceGroup.Builder

addUserSequenceStepsBuilder()

public UserSequenceStep.Builder addUserSequenceStepsBuilder()

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Returns
TypeDescription
UserSequenceStep.Builder

addUserSequenceStepsBuilder(int index)

public UserSequenceStep.Builder addUserSequenceStepsBuilder(int index)

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
UserSequenceStep.Builder

build()

public UserSegmentSequenceGroup build()
Returns
TypeDescription
UserSegmentSequenceGroup

buildPartial()

public UserSegmentSequenceGroup buildPartial()
Returns
TypeDescription
UserSegmentSequenceGroup

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSequenceMaximumDuration()

public UserSegmentSequenceGroup.Builder clearSequenceMaximumDuration()

Defines the time period in which the whole sequence must occur; for example, 30 Minutes. sequenceMaximumDuration is inclusive of the endpoint at the microsecond granularity. For example a sequence with a maximum duration of 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 microsecond. sequenceMaximumDuration is optional, and if unspecified, sequences can be completed in any time duration.

.google.protobuf.Duration sequence_maximum_duration = 2;

Returns
TypeDescription
UserSegmentSequenceGroup.Builder

clearSequenceScoping()

public UserSegmentSequenceGroup.Builder clearSequenceScoping()

All sequence steps must be satisfied in the scoping for the user to match the sequence. For example if sequenceScoping = USER_CRITERIA_WITHIN_SAME_SESSION, all sequence steps must complete within one session for the user to match the sequence. sequenceScoping = USER_CRITERIA_WITHIN_SAME_EVENT is not supported. Optional. If unspecified, conditionScoping = ACROSS_ALL_SESSIONS is used.

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

Returns
TypeDescription
UserSegmentSequenceGroup.Builder

This builder for chaining.

clearUserSequenceSteps()

public UserSegmentSequenceGroup.Builder clearUserSequenceSteps()

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Returns
TypeDescription
UserSegmentSequenceGroup.Builder

clone()

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

getDefaultInstanceForType()

public UserSegmentSequenceGroup getDefaultInstanceForType()
Returns
TypeDescription
UserSegmentSequenceGroup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSequenceMaximumDuration()

public Duration getSequenceMaximumDuration()

Defines the time period in which the whole sequence must occur; for example, 30 Minutes. sequenceMaximumDuration is inclusive of the endpoint at the microsecond granularity. For example a sequence with a maximum duration of 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 microsecond. sequenceMaximumDuration is optional, and if unspecified, sequences can be completed in any time duration.

.google.protobuf.Duration sequence_maximum_duration = 2;

Returns
TypeDescription
Duration

The sequenceMaximumDuration.

getSequenceMaximumDurationBuilder()

public Duration.Builder getSequenceMaximumDurationBuilder()

Defines the time period in which the whole sequence must occur; for example, 30 Minutes. sequenceMaximumDuration is inclusive of the endpoint at the microsecond granularity. For example a sequence with a maximum duration of 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 microsecond. sequenceMaximumDuration is optional, and if unspecified, sequences can be completed in any time duration.

.google.protobuf.Duration sequence_maximum_duration = 2;

Returns
TypeDescription
Builder

getSequenceMaximumDurationOrBuilder()

public DurationOrBuilder getSequenceMaximumDurationOrBuilder()

Defines the time period in which the whole sequence must occur; for example, 30 Minutes. sequenceMaximumDuration is inclusive of the endpoint at the microsecond granularity. For example a sequence with a maximum duration of 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 microsecond. sequenceMaximumDuration is optional, and if unspecified, sequences can be completed in any time duration.

.google.protobuf.Duration sequence_maximum_duration = 2;

Returns
TypeDescription
DurationOrBuilder

getSequenceScoping()

public UserCriteriaScoping getSequenceScoping()

All sequence steps must be satisfied in the scoping for the user to match the sequence. For example if sequenceScoping = USER_CRITERIA_WITHIN_SAME_SESSION, all sequence steps must complete within one session for the user to match the sequence. sequenceScoping = USER_CRITERIA_WITHIN_SAME_EVENT is not supported. Optional. If unspecified, conditionScoping = ACROSS_ALL_SESSIONS is used.

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

Returns
TypeDescription
UserCriteriaScoping

The sequenceScoping.

getSequenceScopingValue()

public int getSequenceScopingValue()

All sequence steps must be satisfied in the scoping for the user to match the sequence. For example if sequenceScoping = USER_CRITERIA_WITHIN_SAME_SESSION, all sequence steps must complete within one session for the user to match the sequence. sequenceScoping = USER_CRITERIA_WITHIN_SAME_EVENT is not supported. Optional. If unspecified, conditionScoping = ACROSS_ALL_SESSIONS is used.

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

Returns
TypeDescription
int

The enum numeric value on the wire for sequenceScoping.

getUserSequenceSteps(int index)

public UserSequenceStep getUserSequenceSteps(int index)

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
UserSequenceStep

getUserSequenceStepsBuilder(int index)

public UserSequenceStep.Builder getUserSequenceStepsBuilder(int index)

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
UserSequenceStep.Builder

getUserSequenceStepsBuilderList()

public List<UserSequenceStep.Builder> getUserSequenceStepsBuilderList()

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Returns
TypeDescription
List<Builder>

getUserSequenceStepsCount()

public int getUserSequenceStepsCount()

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Returns
TypeDescription
int

getUserSequenceStepsList()

public List<UserSequenceStep> getUserSequenceStepsList()

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Returns
TypeDescription
List<UserSequenceStep>

getUserSequenceStepsOrBuilder(int index)

public UserSequenceStepOrBuilder getUserSequenceStepsOrBuilder(int index)

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
UserSequenceStepOrBuilder

getUserSequenceStepsOrBuilderList()

public List<? extends UserSequenceStepOrBuilder> getUserSequenceStepsOrBuilderList()

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Returns
TypeDescription
List<? extends com.google.analytics.data.v1alpha.UserSequenceStepOrBuilder>

hasSequenceMaximumDuration()

public boolean hasSequenceMaximumDuration()

Defines the time period in which the whole sequence must occur; for example, 30 Minutes. sequenceMaximumDuration is inclusive of the endpoint at the microsecond granularity. For example a sequence with a maximum duration of 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 microsecond. sequenceMaximumDuration is optional, and if unspecified, sequences can be completed in any time duration.

.google.protobuf.Duration sequence_maximum_duration = 2;

Returns
TypeDescription
boolean

Whether the sequenceMaximumDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UserSegmentSequenceGroup other)

public UserSegmentSequenceGroup.Builder mergeFrom(UserSegmentSequenceGroup other)
Parameter
NameDescription
otherUserSegmentSequenceGroup
Returns
TypeDescription
UserSegmentSequenceGroup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSequenceMaximumDuration(Duration value)

public UserSegmentSequenceGroup.Builder mergeSequenceMaximumDuration(Duration value)

Defines the time period in which the whole sequence must occur; for example, 30 Minutes. sequenceMaximumDuration is inclusive of the endpoint at the microsecond granularity. For example a sequence with a maximum duration of 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 microsecond. sequenceMaximumDuration is optional, and if unspecified, sequences can be completed in any time duration.

.google.protobuf.Duration sequence_maximum_duration = 2;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
UserSegmentSequenceGroup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeUserSequenceSteps(int index)

public UserSegmentSequenceGroup.Builder removeUserSequenceSteps(int index)

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
UserSegmentSequenceGroup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSequenceMaximumDuration(Duration value)

public UserSegmentSequenceGroup.Builder setSequenceMaximumDuration(Duration value)

Defines the time period in which the whole sequence must occur; for example, 30 Minutes. sequenceMaximumDuration is inclusive of the endpoint at the microsecond granularity. For example a sequence with a maximum duration of 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 microsecond. sequenceMaximumDuration is optional, and if unspecified, sequences can be completed in any time duration.

.google.protobuf.Duration sequence_maximum_duration = 2;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
UserSegmentSequenceGroup.Builder

setSequenceMaximumDuration(Duration.Builder builderForValue)

public UserSegmentSequenceGroup.Builder setSequenceMaximumDuration(Duration.Builder builderForValue)

Defines the time period in which the whole sequence must occur; for example, 30 Minutes. sequenceMaximumDuration is inclusive of the endpoint at the microsecond granularity. For example a sequence with a maximum duration of 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 microsecond. sequenceMaximumDuration is optional, and if unspecified, sequences can be completed in any time duration.

.google.protobuf.Duration sequence_maximum_duration = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UserSegmentSequenceGroup.Builder

setSequenceScoping(UserCriteriaScoping value)

public UserSegmentSequenceGroup.Builder setSequenceScoping(UserCriteriaScoping value)

All sequence steps must be satisfied in the scoping for the user to match the sequence. For example if sequenceScoping = USER_CRITERIA_WITHIN_SAME_SESSION, all sequence steps must complete within one session for the user to match the sequence. sequenceScoping = USER_CRITERIA_WITHIN_SAME_EVENT is not supported. Optional. If unspecified, conditionScoping = ACROSS_ALL_SESSIONS is used.

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

Parameter
NameDescription
valueUserCriteriaScoping

The sequenceScoping to set.

Returns
TypeDescription
UserSegmentSequenceGroup.Builder

This builder for chaining.

setSequenceScopingValue(int value)

public UserSegmentSequenceGroup.Builder setSequenceScopingValue(int value)

All sequence steps must be satisfied in the scoping for the user to match the sequence. For example if sequenceScoping = USER_CRITERIA_WITHIN_SAME_SESSION, all sequence steps must complete within one session for the user to match the sequence. sequenceScoping = USER_CRITERIA_WITHIN_SAME_EVENT is not supported. Optional. If unspecified, conditionScoping = ACROSS_ALL_SESSIONS is used.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
UserSegmentSequenceGroup.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserSequenceSteps(int index, UserSequenceStep value)

public UserSegmentSequenceGroup.Builder setUserSequenceSteps(int index, UserSequenceStep value)

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Parameters
NameDescription
indexint
valueUserSequenceStep
Returns
TypeDescription
UserSegmentSequenceGroup.Builder

setUserSequenceSteps(int index, UserSequenceStep.Builder builderForValue)

public UserSegmentSequenceGroup.Builder setUserSequenceSteps(int index, UserSequenceStep.Builder builderForValue)

An ordered sequence of condition steps. A user's events must complete each step in order for the user to match the UserSegmentSequenceGroup.

repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3;

Parameters
NameDescription
indexint
builderForValueUserSequenceStep.Builder
Returns
TypeDescription
UserSegmentSequenceGroup.Builder