Class UserSegmentCriteria.Builder (0.60.0)

public static final class UserSegmentCriteria.Builder extends GeneratedMessageV3.Builder<UserSegmentCriteria.Builder> implements UserSegmentCriteriaOrBuilder

A user matches a criteria if the user's events meet the conditions in the criteria.

Protobuf type google.analytics.data.v1alpha.UserSegmentCriteria

Static Methods

getDescriptor()

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

Methods

addAllAndConditionGroups(Iterable<? extends UserSegmentConditionGroup> values)

public UserSegmentCriteria.Builder addAllAndConditionGroups(Iterable<? extends UserSegmentConditionGroup> values)

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Parameter
Name Description
values Iterable<? extends com.google.analytics.data.v1alpha.UserSegmentConditionGroup>
Returns
Type Description
UserSegmentCriteria.Builder

addAllAndSequenceGroups(Iterable<? extends UserSegmentSequenceGroup> values)

public UserSegmentCriteria.Builder addAllAndSequenceGroups(Iterable<? extends UserSegmentSequenceGroup> values)

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Parameter
Name Description
values Iterable<? extends com.google.analytics.data.v1alpha.UserSegmentSequenceGroup>
Returns
Type Description
UserSegmentCriteria.Builder

addAndConditionGroups(UserSegmentConditionGroup value)

public UserSegmentCriteria.Builder addAndConditionGroups(UserSegmentConditionGroup value)

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Parameter
Name Description
value UserSegmentConditionGroup
Returns
Type Description
UserSegmentCriteria.Builder

addAndConditionGroups(UserSegmentConditionGroup.Builder builderForValue)

public UserSegmentCriteria.Builder addAndConditionGroups(UserSegmentConditionGroup.Builder builderForValue)

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Parameter
Name Description
builderForValue UserSegmentConditionGroup.Builder
Returns
Type Description
UserSegmentCriteria.Builder

addAndConditionGroups(int index, UserSegmentConditionGroup value)

public UserSegmentCriteria.Builder addAndConditionGroups(int index, UserSegmentConditionGroup value)

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Parameters
Name Description
index int
value UserSegmentConditionGroup
Returns
Type Description
UserSegmentCriteria.Builder

addAndConditionGroups(int index, UserSegmentConditionGroup.Builder builderForValue)

public UserSegmentCriteria.Builder addAndConditionGroups(int index, UserSegmentConditionGroup.Builder builderForValue)

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Parameters
Name Description
index int
builderForValue UserSegmentConditionGroup.Builder
Returns
Type Description
UserSegmentCriteria.Builder

addAndConditionGroupsBuilder()

public UserSegmentConditionGroup.Builder addAndConditionGroupsBuilder()

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Returns
Type Description
UserSegmentConditionGroup.Builder

addAndConditionGroupsBuilder(int index)

public UserSegmentConditionGroup.Builder addAndConditionGroupsBuilder(int index)

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Parameter
Name Description
index int
Returns
Type Description
UserSegmentConditionGroup.Builder

addAndSequenceGroups(UserSegmentSequenceGroup value)

public UserSegmentCriteria.Builder addAndSequenceGroups(UserSegmentSequenceGroup value)

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Parameter
Name Description
value UserSegmentSequenceGroup
Returns
Type Description
UserSegmentCriteria.Builder

addAndSequenceGroups(UserSegmentSequenceGroup.Builder builderForValue)

public UserSegmentCriteria.Builder addAndSequenceGroups(UserSegmentSequenceGroup.Builder builderForValue)

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Parameter
Name Description
builderForValue UserSegmentSequenceGroup.Builder
Returns
Type Description
UserSegmentCriteria.Builder

addAndSequenceGroups(int index, UserSegmentSequenceGroup value)

public UserSegmentCriteria.Builder addAndSequenceGroups(int index, UserSegmentSequenceGroup value)

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Parameters
Name Description
index int
value UserSegmentSequenceGroup
Returns
Type Description
UserSegmentCriteria.Builder

addAndSequenceGroups(int index, UserSegmentSequenceGroup.Builder builderForValue)

public UserSegmentCriteria.Builder addAndSequenceGroups(int index, UserSegmentSequenceGroup.Builder builderForValue)

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Parameters
Name Description
index int
builderForValue UserSegmentSequenceGroup.Builder
Returns
Type Description
UserSegmentCriteria.Builder

addAndSequenceGroupsBuilder()

public UserSegmentSequenceGroup.Builder addAndSequenceGroupsBuilder()

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Returns
Type Description
UserSegmentSequenceGroup.Builder

addAndSequenceGroupsBuilder(int index)

public UserSegmentSequenceGroup.Builder addAndSequenceGroupsBuilder(int index)

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Parameter
Name Description
index int
Returns
Type Description
UserSegmentSequenceGroup.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UserSegmentCriteria build()
Returns
Type Description
UserSegmentCriteria

buildPartial()

public UserSegmentCriteria buildPartial()
Returns
Type Description
UserSegmentCriteria

clear()

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

clearAndConditionGroups()

public UserSegmentCriteria.Builder clearAndConditionGroups()

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Returns
Type Description
UserSegmentCriteria.Builder

clearAndSequenceGroups()

public UserSegmentCriteria.Builder clearAndSequenceGroups()

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Returns
Type Description
UserSegmentCriteria.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAndConditionGroups(int index)

public UserSegmentConditionGroup getAndConditionGroups(int index)

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Parameter
Name Description
index int
Returns
Type Description
UserSegmentConditionGroup

getAndConditionGroupsBuilder(int index)

public UserSegmentConditionGroup.Builder getAndConditionGroupsBuilder(int index)

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Parameter
Name Description
index int
Returns
Type Description
UserSegmentConditionGroup.Builder

getAndConditionGroupsBuilderList()

public List<UserSegmentConditionGroup.Builder> getAndConditionGroupsBuilderList()

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Returns
Type Description
List<Builder>

getAndConditionGroupsCount()

public int getAndConditionGroupsCount()

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Returns
Type Description
int

getAndConditionGroupsList()

public List<UserSegmentConditionGroup> getAndConditionGroupsList()

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Returns
Type Description
List<UserSegmentConditionGroup>

getAndConditionGroupsOrBuilder(int index)

public UserSegmentConditionGroupOrBuilder getAndConditionGroupsOrBuilder(int index)

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Parameter
Name Description
index int
Returns
Type Description
UserSegmentConditionGroupOrBuilder

getAndConditionGroupsOrBuilderList()

public List<? extends UserSegmentConditionGroupOrBuilder> getAndConditionGroupsOrBuilderList()

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Returns
Type Description
List<? extends com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder>

getAndSequenceGroups(int index)

public UserSegmentSequenceGroup getAndSequenceGroups(int index)

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Parameter
Name Description
index int
Returns
Type Description
UserSegmentSequenceGroup

getAndSequenceGroupsBuilder(int index)

public UserSegmentSequenceGroup.Builder getAndSequenceGroupsBuilder(int index)

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Parameter
Name Description
index int
Returns
Type Description
UserSegmentSequenceGroup.Builder

getAndSequenceGroupsBuilderList()

public List<UserSegmentSequenceGroup.Builder> getAndSequenceGroupsBuilderList()

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Returns
Type Description
List<Builder>

getAndSequenceGroupsCount()

public int getAndSequenceGroupsCount()

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Returns
Type Description
int

getAndSequenceGroupsList()

public List<UserSegmentSequenceGroup> getAndSequenceGroupsList()

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Returns
Type Description
List<UserSegmentSequenceGroup>

getAndSequenceGroupsOrBuilder(int index)

public UserSegmentSequenceGroupOrBuilder getAndSequenceGroupsOrBuilder(int index)

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Parameter
Name Description
index int
Returns
Type Description
UserSegmentSequenceGroupOrBuilder

getAndSequenceGroupsOrBuilderList()

public List<? extends UserSegmentSequenceGroupOrBuilder> getAndSequenceGroupsOrBuilderList()

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Returns
Type Description
List<? extends com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder>

getDefaultInstanceForType()

public UserSegmentCriteria getDefaultInstanceForType()
Returns
Type Description
UserSegmentCriteria

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserSegmentCriteria other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAndConditionGroups(int index)

public UserSegmentCriteria.Builder removeAndConditionGroups(int index)

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Parameter
Name Description
index int
Returns
Type Description
UserSegmentCriteria.Builder

removeAndSequenceGroups(int index)

public UserSegmentCriteria.Builder removeAndSequenceGroups(int index)

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Parameter
Name Description
index int
Returns
Type Description
UserSegmentCriteria.Builder

setAndConditionGroups(int index, UserSegmentConditionGroup value)

public UserSegmentCriteria.Builder setAndConditionGroups(int index, UserSegmentConditionGroup value)

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Parameters
Name Description
index int
value UserSegmentConditionGroup
Returns
Type Description
UserSegmentCriteria.Builder

setAndConditionGroups(int index, UserSegmentConditionGroup.Builder builderForValue)

public UserSegmentCriteria.Builder setAndConditionGroups(int index, UserSegmentConditionGroup.Builder builderForValue)

A user matches this criteria if the user matches each of these andConditionGroups and each of the andSequenceGroups. andConditionGroups may be empty if andSequenceGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;

Parameters
Name Description
index int
builderForValue UserSegmentConditionGroup.Builder
Returns
Type Description
UserSegmentCriteria.Builder

setAndSequenceGroups(int index, UserSegmentSequenceGroup value)

public UserSegmentCriteria.Builder setAndSequenceGroups(int index, UserSegmentSequenceGroup value)

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Parameters
Name Description
index int
value UserSegmentSequenceGroup
Returns
Type Description
UserSegmentCriteria.Builder

setAndSequenceGroups(int index, UserSegmentSequenceGroup.Builder builderForValue)

public UserSegmentCriteria.Builder setAndSequenceGroups(int index, UserSegmentSequenceGroup.Builder builderForValue)

A user matches this criteria if the user matches each of these andSequenceGroups and each of the andConditionGroups. andSequenceGroups may be empty if andConditionGroups are specified.

repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;

Parameters
Name Description
index int
builderForValue UserSegmentSequenceGroup.Builder
Returns
Type Description
UserSegmentCriteria.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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