Class EventSegmentExclusion.Builder (0.65.0)

public static final class EventSegmentExclusion.Builder extends GeneratedMessageV3.Builder<EventSegmentExclusion.Builder> implements EventSegmentExclusionOrBuilder

Specifies which events are excluded in this segment.

Protobuf type google.analytics.data.v1alpha.EventSegmentExclusion

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EventSegmentExclusion build()
Returns
Type Description
EventSegmentExclusion

buildPartial()

public EventSegmentExclusion buildPartial()
Returns
Type Description
EventSegmentExclusion

clear()

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

clearEventExclusionCriteria()

public EventSegmentExclusion.Builder clearEventExclusionCriteria()

If an event meets this condition, the event is excluded from membership in the segment for the eventExclusionDuration.

.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;

Returns
Type Description
EventSegmentExclusion.Builder

clearEventExclusionDuration()

public EventSegmentExclusion.Builder clearEventExclusionDuration()

eventExclusionDuration should always be PERMANENTLY_EXCLUDE.

Optional. If unspecified, an eventExclusionDuration of EVENT_EXCLUSION_PERMANENT is used.

.google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;

Returns
Type Description
EventSegmentExclusion.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public EventSegmentExclusion getDefaultInstanceForType()
Returns
Type Description
EventSegmentExclusion

getDescriptorForType()

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

getEventExclusionCriteria()

public EventSegmentCriteria getEventExclusionCriteria()

If an event meets this condition, the event is excluded from membership in the segment for the eventExclusionDuration.

.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;

Returns
Type Description
EventSegmentCriteria

The eventExclusionCriteria.

getEventExclusionCriteriaBuilder()

public EventSegmentCriteria.Builder getEventExclusionCriteriaBuilder()

If an event meets this condition, the event is excluded from membership in the segment for the eventExclusionDuration.

.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;

Returns
Type Description
EventSegmentCriteria.Builder

getEventExclusionCriteriaOrBuilder()

public EventSegmentCriteriaOrBuilder getEventExclusionCriteriaOrBuilder()

If an event meets this condition, the event is excluded from membership in the segment for the eventExclusionDuration.

.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;

Returns
Type Description
EventSegmentCriteriaOrBuilder

getEventExclusionDuration()

public EventExclusionDuration getEventExclusionDuration()

eventExclusionDuration should always be PERMANENTLY_EXCLUDE.

Optional. If unspecified, an eventExclusionDuration of EVENT_EXCLUSION_PERMANENT is used.

.google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;

Returns
Type Description
EventExclusionDuration

The eventExclusionDuration.

getEventExclusionDurationValue()

public int getEventExclusionDurationValue()

eventExclusionDuration should always be PERMANENTLY_EXCLUDE.

Optional. If unspecified, an eventExclusionDuration of EVENT_EXCLUSION_PERMANENT is used.

.google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;

Returns
Type Description
int

The enum numeric value on the wire for eventExclusionDuration.

hasEventExclusionCriteria()

public boolean hasEventExclusionCriteria()

If an event meets this condition, the event is excluded from membership in the segment for the eventExclusionDuration.

.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;

Returns
Type Description
boolean

Whether the eventExclusionCriteria field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEventExclusionCriteria(EventSegmentCriteria value)

public EventSegmentExclusion.Builder mergeEventExclusionCriteria(EventSegmentCriteria value)

If an event meets this condition, the event is excluded from membership in the segment for the eventExclusionDuration.

.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;

Parameter
Name Description
value EventSegmentCriteria
Returns
Type Description
EventSegmentExclusion.Builder

mergeFrom(EventSegmentExclusion other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEventExclusionCriteria(EventSegmentCriteria value)

public EventSegmentExclusion.Builder setEventExclusionCriteria(EventSegmentCriteria value)

If an event meets this condition, the event is excluded from membership in the segment for the eventExclusionDuration.

.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;

Parameter
Name Description
value EventSegmentCriteria
Returns
Type Description
EventSegmentExclusion.Builder

setEventExclusionCriteria(EventSegmentCriteria.Builder builderForValue)

public EventSegmentExclusion.Builder setEventExclusionCriteria(EventSegmentCriteria.Builder builderForValue)

If an event meets this condition, the event is excluded from membership in the segment for the eventExclusionDuration.

.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;

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

setEventExclusionDuration(EventExclusionDuration value)

public EventSegmentExclusion.Builder setEventExclusionDuration(EventExclusionDuration value)

eventExclusionDuration should always be PERMANENTLY_EXCLUDE.

Optional. If unspecified, an eventExclusionDuration of EVENT_EXCLUSION_PERMANENT is used.

.google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;

Parameter
Name Description
value EventExclusionDuration

The eventExclusionDuration to set.

Returns
Type Description
EventSegmentExclusion.Builder

This builder for chaining.

setEventExclusionDurationValue(int value)

public EventSegmentExclusion.Builder setEventExclusionDurationValue(int value)

eventExclusionDuration should always be PERMANENTLY_EXCLUDE.

Optional. If unspecified, an eventExclusionDuration of EVENT_EXCLUSION_PERMANENT is used.

.google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;

Parameter
Name Description
value int

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

Returns
Type Description
EventSegmentExclusion.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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