Class UserSegmentExclusion (0.22.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
TypeDescription
int

USER_EXCLUSION_DURATION_FIELD_NUMBER

public static final int USER_EXCLUSION_DURATION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UserSegmentExclusion getDefaultInstance()
Returns
TypeDescription
UserSegmentExclusion

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static UserSegmentExclusion.Builder newBuilder()
Returns
TypeDescription
UserSegmentExclusion.Builder

newBuilder(UserSegmentExclusion prototype)

public static UserSegmentExclusion.Builder newBuilder(UserSegmentExclusion prototype)
Parameter
NameDescription
prototypeUserSegmentExclusion
Returns
TypeDescription
UserSegmentExclusion.Builder

parseDelimitedFrom(InputStream input)

public static UserSegmentExclusion parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UserSegmentExclusion
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UserSegmentExclusion parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserSegmentExclusion
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static UserSegmentExclusion parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
UserSegmentExclusion
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UserSegmentExclusion parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserSegmentExclusion
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UserSegmentExclusion parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
UserSegmentExclusion
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UserSegmentExclusion parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserSegmentExclusion
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UserSegmentExclusion parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
UserSegmentExclusion
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UserSegmentExclusion parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserSegmentExclusion
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static UserSegmentExclusion parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UserSegmentExclusion
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UserSegmentExclusion parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserSegmentExclusion
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static UserSegmentExclusion parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
UserSegmentExclusion
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UserSegmentExclusion parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserSegmentExclusion
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<UserSegmentExclusion> parser()
Returns
TypeDescription
Parser<UserSegmentExclusion>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public UserSegmentExclusion getDefaultInstanceForType()
Returns
TypeDescription
UserSegmentExclusion

getParserForType()

public Parser<UserSegmentExclusion> getParserForType()
Returns
TypeDescription
Parser<UserSegmentExclusion>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public UserSegmentExclusion.Builder newBuilderForType()
Returns
TypeDescription
UserSegmentExclusion.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UserSegmentExclusion.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
UserSegmentExclusion.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public UserSegmentExclusion.Builder toBuilder()
Returns
TypeDescription
UserSegmentExclusion.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException