Class UserSegmentExclusion (0.54.0)

public final class UserSegmentExclusion extends GeneratedMessageV3 implements UserSegmentExclusionOrBuilder

Specifies which users are excluded in this segment.

Protobuf type google.analytics.data.v1alpha.UserSegmentExclusion

Static Fields

USER_EXCLUSION_CRITERIA_FIELD_NUMBER

public static final int USER_EXCLUSION_CRITERIA_FIELD_NUMBER
Field Value
Type Description
int

USER_EXCLUSION_DURATION_FIELD_NUMBER

public static final int USER_EXCLUSION_DURATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static UserSegmentExclusion getDefaultInstance()
Returns
Type Description
UserSegmentExclusion

getDescriptor()

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

newBuilder()

public static UserSegmentExclusion.Builder newBuilder()
Returns
Type Description
UserSegmentExclusion.Builder

newBuilder(UserSegmentExclusion prototype)

public static UserSegmentExclusion.Builder newBuilder(UserSegmentExclusion prototype)
Parameter
Name Description
prototype UserSegmentExclusion
Returns
Type Description
UserSegmentExclusion.Builder

parseDelimitedFrom(InputStream input)

public static UserSegmentExclusion parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UserSegmentExclusion
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UserSegmentExclusion parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserSegmentExclusion
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static UserSegmentExclusion parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
UserSegmentExclusion
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UserSegmentExclusion parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserSegmentExclusion
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UserSegmentExclusion parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
UserSegmentExclusion
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UserSegmentExclusion parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserSegmentExclusion
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UserSegmentExclusion parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
UserSegmentExclusion
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UserSegmentExclusion parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserSegmentExclusion
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static UserSegmentExclusion parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UserSegmentExclusion
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UserSegmentExclusion parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserSegmentExclusion
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static UserSegmentExclusion parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
UserSegmentExclusion
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UserSegmentExclusion parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UserSegmentExclusion
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<UserSegmentExclusion> parser()
Returns
Type Description
Parser<UserSegmentExclusion>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public UserSegmentExclusion getDefaultInstanceForType()
Returns
Type Description
UserSegmentExclusion

getParserForType()

public Parser<UserSegmentExclusion> getParserForType()
Returns
Type Description
Parser<UserSegmentExclusion>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public UserSegmentExclusion.Builder newBuilderForType()
Returns
Type Description
UserSegmentExclusion.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UserSegmentExclusion.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
UserSegmentExclusion.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public UserSegmentExclusion.Builder toBuilder()
Returns
Type Description
UserSegmentExclusion.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException