Class UserSegmentExclusion.Builder (0.25.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UserSegmentExclusion build()
Returns
TypeDescription
UserSegmentExclusion

buildPartial()

public UserSegmentExclusion buildPartial()
Returns
TypeDescription
UserSegmentExclusion

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UserSegmentExclusion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UserSegmentExclusion.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UserSegmentExclusion getDefaultInstanceForType()
Returns
TypeDescription
UserSegmentExclusion

getDescriptorForType()

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

Whether the userExclusionCriteria field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UserSegmentExclusion other)

public UserSegmentExclusion.Builder mergeFrom(UserSegmentExclusion other)
Parameter
NameDescription
otherUserSegmentExclusion
Returns
TypeDescription
UserSegmentExclusion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UserSegmentExclusion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueUserSegmentCriteria
Returns
TypeDescription
UserSegmentExclusion.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UserSegmentExclusion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueUserSegmentCriteria
Returns
TypeDescription
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
NameDescription
builderForValueUserSegmentCriteria.Builder
Returns
TypeDescription
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
NameDescription
valueUserExclusionDuration

The userExclusionDuration to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
UserSegmentExclusion.Builder

This builder for chaining.