Class SessionSegment (0.32.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
TypeDescription
int

SESSION_INCLUSION_CRITERIA_FIELD_NUMBER

public static final int SESSION_INCLUSION_CRITERIA_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SessionSegment getDefaultInstance()
Returns
TypeDescription
SessionSegment

getDescriptor()

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

newBuilder()

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

newBuilder(SessionSegment prototype)

public static SessionSegment.Builder newBuilder(SessionSegment prototype)
Parameter
NameDescription
prototypeSessionSegment
Returns
TypeDescription
SessionSegment.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SessionSegment getDefaultInstanceForType()
Returns
TypeDescription
SessionSegment

getExclusion()

public SessionSegmentExclusion getExclusion()

Defines which sessions are excluded in this segment. Optional.

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

Returns
TypeDescription
SessionSegmentExclusion

The exclusion.

getExclusionOrBuilder()

public SessionSegmentExclusionOrBuilder getExclusionOrBuilder()

Defines which sessions are excluded in this segment. Optional.

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

Returns
TypeDescription
SessionSegmentExclusionOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
SessionSegmentCriteriaOrBuilder

hasExclusion()

public boolean hasExclusion()

Defines which sessions are excluded in this segment. Optional.

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

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

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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