Class SessionSegment.Builder (0.56.0)

public static final class SessionSegment.Builder extends GeneratedMessageV3.Builder<SessionSegment.Builder> 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SessionSegment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SessionSegment.Builder
Overrides

build()

public SessionSegment build()
Returns
Type Description
SessionSegment

buildPartial()

public SessionSegment buildPartial()
Returns
Type Description
SessionSegment

clear()

public SessionSegment.Builder clear()
Returns
Type Description
SessionSegment.Builder
Overrides

clearExclusion()

public SessionSegment.Builder clearExclusion()

Defines which sessions are excluded in this segment. Optional.

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

Returns
Type Description
SessionSegment.Builder

clearField(Descriptors.FieldDescriptor field)

public SessionSegment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SessionSegment.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SessionSegment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SessionSegment.Builder
Overrides

clearSessionInclusionCriteria()

public SessionSegment.Builder clearSessionInclusionCriteria()

Defines which sessions are included in this segment. Optional.

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

Returns
Type Description
SessionSegment.Builder

clone()

public SessionSegment.Builder clone()
Returns
Type Description
SessionSegment.Builder
Overrides

getDefaultInstanceForType()

public SessionSegment getDefaultInstanceForType()
Returns
Type Description
SessionSegment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getExclusionBuilder()

public SessionSegmentExclusion.Builder getExclusionBuilder()

Defines which sessions are excluded in this segment. Optional.

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

Returns
Type Description
SessionSegmentExclusion.Builder

getExclusionOrBuilder()

public SessionSegmentExclusionOrBuilder getExclusionOrBuilder()

Defines which sessions are excluded in this segment. Optional.

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

Returns
Type Description
SessionSegmentExclusionOrBuilder

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.

getSessionInclusionCriteriaBuilder()

public SessionSegmentCriteria.Builder getSessionInclusionCriteriaBuilder()

Defines which sessions are included in this segment. Optional.

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

Returns
Type Description
SessionSegmentCriteria.Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExclusion(SessionSegmentExclusion value)

public SessionSegment.Builder mergeExclusion(SessionSegmentExclusion value)

Defines which sessions are excluded in this segment. Optional.

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

Parameter
Name Description
value SessionSegmentExclusion
Returns
Type Description
SessionSegment.Builder

mergeFrom(SessionSegment other)

public SessionSegment.Builder mergeFrom(SessionSegment other)
Parameter
Name Description
other SessionSegment
Returns
Type Description
SessionSegment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SessionSegment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SessionSegment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SessionSegment.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SessionSegment.Builder
Overrides

mergeSessionInclusionCriteria(SessionSegmentCriteria value)

public SessionSegment.Builder mergeSessionInclusionCriteria(SessionSegmentCriteria value)

Defines which sessions are included in this segment. Optional.

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

Parameter
Name Description
value SessionSegmentCriteria
Returns
Type Description
SessionSegment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SessionSegment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SessionSegment.Builder
Overrides

setExclusion(SessionSegmentExclusion value)

public SessionSegment.Builder setExclusion(SessionSegmentExclusion value)

Defines which sessions are excluded in this segment. Optional.

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

Parameter
Name Description
value SessionSegmentExclusion
Returns
Type Description
SessionSegment.Builder

setExclusion(SessionSegmentExclusion.Builder builderForValue)

public SessionSegment.Builder setExclusion(SessionSegmentExclusion.Builder builderForValue)

Defines which sessions are excluded in this segment. Optional.

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

Parameter
Name Description
builderForValue SessionSegmentExclusion.Builder
Returns
Type Description
SessionSegment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SessionSegment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SessionSegment.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SessionSegment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SessionSegment.Builder
Overrides

setSessionInclusionCriteria(SessionSegmentCriteria value)

public SessionSegment.Builder setSessionInclusionCriteria(SessionSegmentCriteria value)

Defines which sessions are included in this segment. Optional.

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

Parameter
Name Description
value SessionSegmentCriteria
Returns
Type Description
SessionSegment.Builder

setSessionInclusionCriteria(SessionSegmentCriteria.Builder builderForValue)

public SessionSegment.Builder setSessionInclusionCriteria(SessionSegmentCriteria.Builder builderForValue)

Defines which sessions are included in this segment. Optional.

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

Parameter
Name Description
builderForValue SessionSegmentCriteria.Builder
Returns
Type Description
SessionSegment.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SessionSegment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SessionSegment.Builder
Overrides