Class EventSegment (0.16.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
TypeDescription
int

EXCLUSION_FIELD_NUMBER

public static final int EXCLUSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static EventSegment getDefaultInstance()
Returns
TypeDescription
EventSegment

getDescriptor()

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

newBuilder()

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

newBuilder(EventSegment prototype)

public static EventSegment.Builder newBuilder(EventSegment prototype)
Parameter
NameDescription
prototypeEventSegment
Returns
TypeDescription
EventSegment.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public EventSegment getDefaultInstanceForType()
Returns
TypeDescription
EventSegment

getEventInclusionCriteria()

public EventSegmentCriteria getEventInclusionCriteria()

Defines which events are included in this segment. Optional.

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

Returns
TypeDescription
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
TypeDescription
EventSegmentCriteriaOrBuilder

getExclusion()

public EventSegmentExclusion getExclusion()

Defines which events are excluded in this segment. Optional.

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

Returns
TypeDescription
EventSegmentExclusion

The exclusion.

getExclusionOrBuilder()

public EventSegmentExclusionOrBuilder getExclusionOrBuilder()

Defines which events are excluded in this segment. Optional.

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

Returns
TypeDescription
EventSegmentExclusionOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasEventInclusionCriteria()

public boolean hasEventInclusionCriteria()

Defines which events are included in this segment. Optional.

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

Returns
TypeDescription
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
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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