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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SessionSegmentExclusion build()
Returns
TypeDescription
SessionSegmentExclusion

buildPartial()

public SessionSegmentExclusion buildPartial()
Returns
TypeDescription
SessionSegmentExclusion

clear()

public SessionSegmentExclusion.Builder clear()
Returns
TypeDescription
SessionSegmentExclusion.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SessionSegmentExclusion getDefaultInstanceForType()
Returns
TypeDescription
SessionSegmentExclusion

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the sessionExclusionCriteria field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SessionSegmentExclusion other)

public SessionSegmentExclusion.Builder mergeFrom(SessionSegmentExclusion other)
Parameter
NameDescription
otherSessionSegmentExclusion
Returns
TypeDescription
SessionSegmentExclusion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SessionSegmentExclusion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SessionSegmentExclusion.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

The sessionExclusionDuration to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
SessionSegmentExclusion.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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