Class UserSegmentCriteria.Builder (0.46.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.analytics.data.v1alpha.UserSegmentConditionGroup>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.analytics.data.v1alpha.UserSegmentSequenceGroup>
Returns
TypeDescription
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
NameDescription
valueUserSegmentConditionGroup
Returns
TypeDescription
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
NameDescription
builderForValueUserSegmentConditionGroup.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueUserSegmentConditionGroup
Returns
TypeDescription
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
NameDescription
indexint
builderForValueUserSegmentConditionGroup.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueUserSegmentSequenceGroup
Returns
TypeDescription
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
NameDescription
builderForValueUserSegmentSequenceGroup.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueUserSegmentSequenceGroup
Returns
TypeDescription
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
NameDescription
indexint
builderForValueUserSegmentSequenceGroup.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
UserSegmentSequenceGroup.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UserSegmentCriteria build()
Returns
TypeDescription
UserSegmentCriteria

buildPartial()

public UserSegmentCriteria buildPartial()
Returns
TypeDescription
UserSegmentCriteria

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public UserSegmentCriteria.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder>

getDefaultInstanceForType()

public UserSegmentCriteria getDefaultInstanceForType()
Returns
TypeDescription
UserSegmentCriteria

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UserSegmentCriteria other)

public UserSegmentCriteria.Builder mergeFrom(UserSegmentCriteria other)
Parameter
NameDescription
otherUserSegmentCriteria
Returns
TypeDescription
UserSegmentCriteria.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UserSegmentCriteria.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueUserSegmentConditionGroup
Returns
TypeDescription
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
NameDescription
indexint
builderForValueUserSegmentConditionGroup.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueUserSegmentSequenceGroup
Returns
TypeDescription
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
NameDescription
indexint
builderForValueUserSegmentSequenceGroup.Builder
Returns
TypeDescription
UserSegmentCriteria.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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