Class EventSegment (0.59.0)

public final class EventSegment extends GeneratedMessageV3 implements EventSegmentOrBuilder

Event segments are subsets of events that were triggered on your site or app. for example, all purchase events made in a particular location; app_exception events that occurred on a specific operating system.

Protobuf type google.analytics.data.v1alpha.EventSegment

Static Fields

EVENT_INCLUSION_CRITERIA_FIELD_NUMBER

public static final int EVENT_INCLUSION_CRITERIA_FIELD_NUMBER
Field Value
Type Description
int

EXCLUSION_FIELD_NUMBER

public static final int EXCLUSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EventSegment getDefaultInstance()
Returns
Type Description
EventSegment

getDescriptor()

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

newBuilder()

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

newBuilder(EventSegment prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public EventSegment getDefaultInstanceForType()
Returns
Type Description
EventSegment

getEventInclusionCriteria()

public EventSegmentCriteria getEventInclusionCriteria()

Defines which events are included in this segment. Optional.

.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;

Returns
Type Description
EventSegmentCriteria

The eventInclusionCriteria.

getEventInclusionCriteriaOrBuilder()

public EventSegmentCriteriaOrBuilder getEventInclusionCriteriaOrBuilder()

Defines which events are included in this segment. Optional.

.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;

Returns
Type Description
EventSegmentCriteriaOrBuilder

getExclusion()

public EventSegmentExclusion getExclusion()

Defines which events are excluded in this segment. Optional.

.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;

Returns
Type Description
EventSegmentExclusion

The exclusion.

getExclusionOrBuilder()

public EventSegmentExclusionOrBuilder getExclusionOrBuilder()

Defines which events are excluded in this segment. Optional.

.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;

Returns
Type Description
EventSegmentExclusionOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasEventInclusionCriteria()

public boolean hasEventInclusionCriteria()

Defines which events are included in this segment. Optional.

.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;

Returns
Type Description
boolean

Whether the eventInclusionCriteria field is set.

hasExclusion()

public boolean hasExclusion()

Defines which events are excluded in this segment. Optional.

.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;

Returns
Type Description
boolean

Whether the exclusion 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 EventSegment.Builder newBuilderForType()
Returns
Type Description
EventSegment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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