Class SessionSegment.Builder (0.15.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SessionSegment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SessionSegment.Builder
Overrides

build()

public SessionSegment build()
Returns
TypeDescription
SessionSegment

buildPartial()

public SessionSegment buildPartial()
Returns
TypeDescription
SessionSegment

clear()

public SessionSegment.Builder clear()
Returns
TypeDescription
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
TypeDescription
SessionSegment.Builder

clearField(Descriptors.FieldDescriptor field)

public SessionSegment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SessionSegment.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SessionSegment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SessionSegment.Builder

clone()

public SessionSegment.Builder clone()
Returns
TypeDescription
SessionSegment.Builder
Overrides

getDefaultInstanceForType()

public SessionSegment getDefaultInstanceForType()
Returns
TypeDescription
SessionSegment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getExclusionBuilder()

public SessionSegmentExclusion.Builder getExclusionBuilder()

Defines which sessions are excluded in this segment. Optional.

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

Returns
TypeDescription
SessionSegmentExclusion.Builder

getExclusionOrBuilder()

public SessionSegmentExclusionOrBuilder getExclusionOrBuilder()

Defines which sessions are excluded in this segment. Optional.

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

Returns
TypeDescription
SessionSegmentExclusionOrBuilder

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.

getSessionInclusionCriteriaBuilder()

public SessionSegmentCriteria.Builder getSessionInclusionCriteriaBuilder()

Defines which sessions are included in this segment. Optional.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueSessionSegmentExclusion
Returns
TypeDescription
SessionSegment.Builder

mergeFrom(SessionSegment other)

public SessionSegment.Builder mergeFrom(SessionSegment other)
Parameter
NameDescription
otherSessionSegment
Returns
TypeDescription
SessionSegment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SessionSegment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SessionSegment.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SessionSegment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSessionSegmentCriteria
Returns
TypeDescription
SessionSegment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SessionSegment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueSessionSegmentExclusion
Returns
TypeDescription
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
NameDescription
builderForValueSessionSegmentExclusion.Builder
Returns
TypeDescription
SessionSegment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SessionSegment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SessionSegment.Builder
Overrides

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

public SessionSegment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSessionSegmentCriteria
Returns
TypeDescription
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
NameDescription
builderForValueSessionSegmentCriteria.Builder
Returns
TypeDescription
SessionSegment.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SessionSegment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SessionSegment.Builder
Overrides