Class EventSegment.Builder (0.32.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EventSegment build()
Returns
TypeDescription
EventSegment

buildPartial()

public EventSegment buildPartial()
Returns
TypeDescription
EventSegment

clear()

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

clearExclusion()

public EventSegment.Builder clearExclusion()

Defines which events are excluded in this segment. Optional.

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

Returns
TypeDescription
EventSegment.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public EventSegment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
EventSegment.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public EventSegment getDefaultInstanceForType()
Returns
TypeDescription
EventSegment

getDescriptorForType()

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

getExclusion()

public EventSegmentExclusion getExclusion()

Defines which events are excluded in this segment. Optional.

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

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

getExclusionOrBuilder()

public EventSegmentExclusionOrBuilder getExclusionOrBuilder()

Defines which events are excluded in this segment. Optional.

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

Returns
TypeDescription
EventSegmentExclusionOrBuilder

hasEventInclusionCriteria()

public boolean hasEventInclusionCriteria()

Defines which events are included in this segment. Optional.

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

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

Whether the exclusion field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueEventSegmentCriteria
Returns
TypeDescription
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
NameDescription
valueEventSegmentExclusion
Returns
TypeDescription
EventSegment.Builder

mergeFrom(EventSegment other)

public EventSegment.Builder mergeFrom(EventSegment other)
Parameter
NameDescription
otherEventSegment
Returns
TypeDescription
EventSegment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public EventSegment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
EventSegment.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EventSegment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueEventSegmentCriteria
Returns
TypeDescription
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
NameDescription
builderForValueEventSegmentCriteria.Builder
Returns
TypeDescription
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
NameDescription
valueEventSegmentExclusion
Returns
TypeDescription
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
NameDescription
builderForValueEventSegmentExclusion.Builder
Returns
TypeDescription
EventSegment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public EventSegment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EventSegment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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