Class SessionSegmentExclusion.Builder (0.66.0)

public static final class SessionSegmentExclusion.Builder extends GeneratedMessageV3.Builder<SessionSegmentExclusion.Builder> implements SessionSegmentExclusionOrBuilder

Specifies which sessions are excluded in this segment.

Protobuf type google.analytics.data.v1alpha.SessionSegmentExclusion

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SessionSegmentExclusion build()
Returns
Type Description
SessionSegmentExclusion

buildPartial()

public SessionSegmentExclusion buildPartial()
Returns
Type Description
SessionSegmentExclusion

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSessionExclusionCriteria()

public SessionSegmentExclusion.Builder clearSessionExclusionCriteria()

If a session meets this condition, the session is excluded from membership in the segment for the sessionExclusionDuration.

.google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2;

Returns
Type Description
SessionSegmentExclusion.Builder

clearSessionExclusionDuration()

public SessionSegmentExclusion.Builder clearSessionExclusionDuration()

Specifies how long an exclusion will last if a session matches the sessionExclusionCriteria.

Optional. If unspecified, a sessionExclusionDuration of SESSION_EXCLUSION_TEMPORARY is used.

.google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1;

Returns
Type Description
SessionSegmentExclusion.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SessionSegmentExclusion getDefaultInstanceForType()
Returns
Type Description
SessionSegmentExclusion

getDescriptorForType()

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

getSessionExclusionCriteria()

public SessionSegmentCriteria getSessionExclusionCriteria()

If a session meets this condition, the session is excluded from membership in the segment for the sessionExclusionDuration.

.google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2;

Returns
Type Description
SessionSegmentCriteria

The sessionExclusionCriteria.

getSessionExclusionCriteriaBuilder()

public SessionSegmentCriteria.Builder getSessionExclusionCriteriaBuilder()

If a session meets this condition, the session is excluded from membership in the segment for the sessionExclusionDuration.

.google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2;

Returns
Type Description
SessionSegmentCriteria.Builder

getSessionExclusionCriteriaOrBuilder()

public SessionSegmentCriteriaOrBuilder getSessionExclusionCriteriaOrBuilder()

If a session meets this condition, the session is excluded from membership in the segment for the sessionExclusionDuration.

.google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2;

Returns
Type Description
SessionSegmentCriteriaOrBuilder

getSessionExclusionDuration()

public SessionExclusionDuration getSessionExclusionDuration()

Specifies how long an exclusion will last if a session matches the sessionExclusionCriteria.

Optional. If unspecified, a sessionExclusionDuration of SESSION_EXCLUSION_TEMPORARY is used.

.google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1;

Returns
Type Description
SessionExclusionDuration

The sessionExclusionDuration.

getSessionExclusionDurationValue()

public int getSessionExclusionDurationValue()

Specifies how long an exclusion will last if a session matches the sessionExclusionCriteria.

Optional. If unspecified, a sessionExclusionDuration of SESSION_EXCLUSION_TEMPORARY is used.

.google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1;

Returns
Type Description
int

The enum numeric value on the wire for sessionExclusionDuration.

hasSessionExclusionCriteria()

public boolean hasSessionExclusionCriteria()

If a session meets this condition, the session is excluded from membership in the segment for the sessionExclusionDuration.

.google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2;

Returns
Type Description
boolean

Whether the sessionExclusionCriteria field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SessionSegmentExclusion other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSessionExclusionCriteria(SessionSegmentCriteria value)

public SessionSegmentExclusion.Builder mergeSessionExclusionCriteria(SessionSegmentCriteria value)

If a session meets this condition, the session is excluded from membership in the segment for the sessionExclusionDuration.

.google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2;

Parameter
Name Description
value SessionSegmentCriteria
Returns
Type Description
SessionSegmentExclusion.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSessionExclusionCriteria(SessionSegmentCriteria value)

public SessionSegmentExclusion.Builder setSessionExclusionCriteria(SessionSegmentCriteria value)

If a session meets this condition, the session is excluded from membership in the segment for the sessionExclusionDuration.

.google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2;

Parameter
Name Description
value SessionSegmentCriteria
Returns
Type Description
SessionSegmentExclusion.Builder

setSessionExclusionCriteria(SessionSegmentCriteria.Builder builderForValue)

public SessionSegmentExclusion.Builder setSessionExclusionCriteria(SessionSegmentCriteria.Builder builderForValue)

If a session meets this condition, the session is excluded from membership in the segment for the sessionExclusionDuration.

.google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2;

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

setSessionExclusionDuration(SessionExclusionDuration value)

public SessionSegmentExclusion.Builder setSessionExclusionDuration(SessionExclusionDuration value)

Specifies how long an exclusion will last if a session matches the sessionExclusionCriteria.

Optional. If unspecified, a sessionExclusionDuration of SESSION_EXCLUSION_TEMPORARY is used.

.google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1;

Parameter
Name Description
value SessionExclusionDuration

The sessionExclusionDuration to set.

Returns
Type Description
SessionSegmentExclusion.Builder

This builder for chaining.

setSessionExclusionDurationValue(int value)

public SessionSegmentExclusion.Builder setSessionExclusionDurationValue(int value)

Specifies how long an exclusion will last if a session matches the sessionExclusionCriteria.

Optional. If unspecified, a sessionExclusionDuration of SESSION_EXCLUSION_TEMPORARY is used.

.google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for sessionExclusionDuration to set.

Returns
Type Description
SessionSegmentExclusion.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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