Class EventSegment.Builder (0.55.0)

public static final class EventSegment.Builder extends GeneratedMessageV3.Builder<EventSegment.Builder> implements EventSegmentOrBuilder

Event segments are subsets of events that were triggered on your site or app. for example, all purchase events made in a particular location; app_exception events that occurred on a specific operating system.

Protobuf type google.analytics.data.v1alpha.EventSegment

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EventSegment build()
Returns
Type Description
EventSegment

buildPartial()

public EventSegment buildPartial()
Returns
Type Description
EventSegment

clear()

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

clearEventInclusionCriteria()

public EventSegment.Builder clearEventInclusionCriteria()

Defines which events are included in this segment. Optional.

.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;

Returns
Type Description
EventSegment.Builder

clearExclusion()

public EventSegment.Builder clearExclusion()

Defines which events are excluded in this segment. Optional.

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

Returns
Type Description
EventSegment.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public EventSegment getDefaultInstanceForType()
Returns
Type Description
EventSegment

getDescriptorForType()

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

getEventInclusionCriteria()

public EventSegmentCriteria getEventInclusionCriteria()

Defines which events are included in this segment. Optional.

.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;

Returns
Type Description
EventSegmentCriteria

The eventInclusionCriteria.

getEventInclusionCriteriaBuilder()

public EventSegmentCriteria.Builder getEventInclusionCriteriaBuilder()

Defines which events are included in this segment. Optional.

.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;

Returns
Type Description
EventSegmentCriteria.Builder

getEventInclusionCriteriaOrBuilder()

public EventSegmentCriteriaOrBuilder getEventInclusionCriteriaOrBuilder()

Defines which events are included in this segment. Optional.

.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;

Returns
Type Description
EventSegmentCriteriaOrBuilder

getExclusion()

public EventSegmentExclusion getExclusion()

Defines which events are excluded in this segment. Optional.

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

Returns
Type Description
EventSegmentExclusion

The exclusion.

getExclusionBuilder()

public EventSegmentExclusion.Builder getExclusionBuilder()

Defines which events are excluded in this segment. Optional.

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

Returns
Type Description
EventSegmentExclusion.Builder

getExclusionOrBuilder()

public EventSegmentExclusionOrBuilder getExclusionOrBuilder()

Defines which events are excluded in this segment. Optional.

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

Returns
Type Description
EventSegmentExclusionOrBuilder

hasEventInclusionCriteria()

public boolean hasEventInclusionCriteria()

Defines which events are included in this segment. Optional.

.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;

Returns
Type Description
boolean

Whether the eventInclusionCriteria field is set.

hasExclusion()

public boolean hasExclusion()

Defines which events are excluded in this segment. Optional.

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

Returns
Type Description
boolean

Whether the exclusion field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEventInclusionCriteria(EventSegmentCriteria value)

public EventSegment.Builder mergeEventInclusionCriteria(EventSegmentCriteria value)

Defines which events are included in this segment. Optional.

.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;

Parameter
Name Description
value EventSegmentCriteria
Returns
Type Description
EventSegment.Builder

mergeExclusion(EventSegmentExclusion value)

public EventSegment.Builder mergeExclusion(EventSegmentExclusion value)

Defines which events are excluded in this segment. Optional.

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

Parameter
Name Description
value EventSegmentExclusion
Returns
Type Description
EventSegment.Builder

mergeFrom(EventSegment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEventInclusionCriteria(EventSegmentCriteria value)

public EventSegment.Builder setEventInclusionCriteria(EventSegmentCriteria value)

Defines which events are included in this segment. Optional.

.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;

Parameter
Name Description
value EventSegmentCriteria
Returns
Type Description
EventSegment.Builder

setEventInclusionCriteria(EventSegmentCriteria.Builder builderForValue)

public EventSegment.Builder setEventInclusionCriteria(EventSegmentCriteria.Builder builderForValue)

Defines which events are included in this segment. Optional.

.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;

Parameter
Name Description
builderForValue EventSegmentCriteria.Builder
Returns
Type Description
EventSegment.Builder

setExclusion(EventSegmentExclusion value)

public EventSegment.Builder setExclusion(EventSegmentExclusion value)

Defines which events are excluded in this segment. Optional.

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

Parameter
Name Description
value EventSegmentExclusion
Returns
Type Description
EventSegment.Builder

setExclusion(EventSegmentExclusion.Builder builderForValue)

public EventSegment.Builder setExclusion(EventSegmentExclusion.Builder builderForValue)

Defines which events are excluded in this segment. Optional.

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

Parameter
Name Description
builderForValue EventSegmentExclusion.Builder
Returns
Type Description
EventSegment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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