Class UserSegmentExclusion.Builder (0.59.0)

public static final class UserSegmentExclusion.Builder extends GeneratedMessageV3.Builder<UserSegmentExclusion.Builder> implements UserSegmentExclusionOrBuilder

Specifies which users are excluded in this segment.

Protobuf type google.analytics.data.v1alpha.UserSegmentExclusion

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UserSegmentExclusion build()
Returns
Type Description
UserSegmentExclusion

buildPartial()

public UserSegmentExclusion buildPartial()
Returns
Type Description
UserSegmentExclusion

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUserExclusionCriteria()

public UserSegmentExclusion.Builder clearUserExclusionCriteria()

If a user meets this condition, the user is excluded from membership in the segment for the userExclusionDuration.

.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2;

Returns
Type Description
UserSegmentExclusion.Builder

clearUserExclusionDuration()

public UserSegmentExclusion.Builder clearUserExclusionDuration()

Specifies how long an exclusion will last if a user matches the userExclusionCriteria.

Optional. If unspecified, userExclusionDuration of USER_EXCLUSION_TEMPORARY is used.

.google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1;

Returns
Type Description
UserSegmentExclusion.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UserSegmentExclusion getDefaultInstanceForType()
Returns
Type Description
UserSegmentExclusion

getDescriptorForType()

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

getUserExclusionCriteria()

public UserSegmentCriteria getUserExclusionCriteria()

If a user meets this condition, the user is excluded from membership in the segment for the userExclusionDuration.

.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2;

Returns
Type Description
UserSegmentCriteria

The userExclusionCriteria.

getUserExclusionCriteriaBuilder()

public UserSegmentCriteria.Builder getUserExclusionCriteriaBuilder()

If a user meets this condition, the user is excluded from membership in the segment for the userExclusionDuration.

.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2;

Returns
Type Description
UserSegmentCriteria.Builder

getUserExclusionCriteriaOrBuilder()

public UserSegmentCriteriaOrBuilder getUserExclusionCriteriaOrBuilder()

If a user meets this condition, the user is excluded from membership in the segment for the userExclusionDuration.

.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2;

Returns
Type Description
UserSegmentCriteriaOrBuilder

getUserExclusionDuration()

public UserExclusionDuration getUserExclusionDuration()

Specifies how long an exclusion will last if a user matches the userExclusionCriteria.

Optional. If unspecified, userExclusionDuration of USER_EXCLUSION_TEMPORARY is used.

.google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1;

Returns
Type Description
UserExclusionDuration

The userExclusionDuration.

getUserExclusionDurationValue()

public int getUserExclusionDurationValue()

Specifies how long an exclusion will last if a user matches the userExclusionCriteria.

Optional. If unspecified, userExclusionDuration of USER_EXCLUSION_TEMPORARY is used.

.google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1;

Returns
Type Description
int

The enum numeric value on the wire for userExclusionDuration.

hasUserExclusionCriteria()

public boolean hasUserExclusionCriteria()

If a user meets this condition, the user is excluded from membership in the segment for the userExclusionDuration.

.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2;

Returns
Type Description
boolean

Whether the userExclusionCriteria field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UserSegmentExclusion other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUserExclusionCriteria(UserSegmentCriteria value)

public UserSegmentExclusion.Builder mergeUserExclusionCriteria(UserSegmentCriteria value)

If a user meets this condition, the user is excluded from membership in the segment for the userExclusionDuration.

.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2;

Parameter
Name Description
value UserSegmentCriteria
Returns
Type Description
UserSegmentExclusion.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserExclusionCriteria(UserSegmentCriteria value)

public UserSegmentExclusion.Builder setUserExclusionCriteria(UserSegmentCriteria value)

If a user meets this condition, the user is excluded from membership in the segment for the userExclusionDuration.

.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2;

Parameter
Name Description
value UserSegmentCriteria
Returns
Type Description
UserSegmentExclusion.Builder

setUserExclusionCriteria(UserSegmentCriteria.Builder builderForValue)

public UserSegmentExclusion.Builder setUserExclusionCriteria(UserSegmentCriteria.Builder builderForValue)

If a user meets this condition, the user is excluded from membership in the segment for the userExclusionDuration.

.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2;

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

setUserExclusionDuration(UserExclusionDuration value)

public UserSegmentExclusion.Builder setUserExclusionDuration(UserExclusionDuration value)

Specifies how long an exclusion will last if a user matches the userExclusionCriteria.

Optional. If unspecified, userExclusionDuration of USER_EXCLUSION_TEMPORARY is used.

.google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1;

Parameter
Name Description
value UserExclusionDuration

The userExclusionDuration to set.

Returns
Type Description
UserSegmentExclusion.Builder

This builder for chaining.

setUserExclusionDurationValue(int value)

public UserSegmentExclusion.Builder setUserExclusionDurationValue(int value)

Specifies how long an exclusion will last if a user matches the userExclusionCriteria.

Optional. If unspecified, userExclusionDuration of USER_EXCLUSION_TEMPORARY is used.

.google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1;

Parameter
Name Description
value int

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

Returns
Type Description
UserSegmentExclusion.Builder

This builder for chaining.