Class SessionSegment (0.53.0)

public final class SessionSegment extends GeneratedMessageV3 implements SessionSegmentOrBuilder

Session segments are subsets of the sessions that occurred on your site or app: for example, all the sessions that originated from a particular advertising campaign.

Protobuf type google.analytics.data.v1alpha.SessionSegment

Static Fields

EXCLUSION_FIELD_NUMBER

public static final int EXCLUSION_FIELD_NUMBER
Field Value
Type Description
int

SESSION_INCLUSION_CRITERIA_FIELD_NUMBER

public static final int SESSION_INCLUSION_CRITERIA_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SessionSegment getDefaultInstance()
Returns
Type Description
SessionSegment

getDescriptor()

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

newBuilder()

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

newBuilder(SessionSegment prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SessionSegment getDefaultInstanceForType()
Returns
Type Description
SessionSegment

getExclusion()

public SessionSegmentExclusion getExclusion()

Defines which sessions are excluded in this segment. Optional.

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

Returns
Type Description
SessionSegmentExclusion

The exclusion.

getExclusionOrBuilder()

public SessionSegmentExclusionOrBuilder getExclusionOrBuilder()

Defines which sessions are excluded in this segment. Optional.

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

Returns
Type Description
SessionSegmentExclusionOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSessionInclusionCriteria()

public SessionSegmentCriteria getSessionInclusionCriteria()

Defines which sessions are included in this segment. Optional.

.google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1;

Returns
Type Description
SessionSegmentCriteria

The sessionInclusionCriteria.

getSessionInclusionCriteriaOrBuilder()

public SessionSegmentCriteriaOrBuilder getSessionInclusionCriteriaOrBuilder()

Defines which sessions are included in this segment. Optional.

.google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1;

Returns
Type Description
SessionSegmentCriteriaOrBuilder

hasExclusion()

public boolean hasExclusion()

Defines which sessions are excluded in this segment. Optional.

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

Returns
Type Description
boolean

Whether the exclusion field is set.

hasSessionInclusionCriteria()

public boolean hasSessionInclusionCriteria()

Defines which sessions are included in this segment. Optional.

.google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1;

Returns
Type Description
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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