Class EventSegmentExclusion.Builder (0.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EventSegmentExclusion build()
Returns
TypeDescription
EventSegmentExclusion

buildPartial()

public EventSegmentExclusion buildPartial()
Returns
TypeDescription
EventSegmentExclusion

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public EventSegmentExclusion getDefaultInstanceForType()
Returns
TypeDescription
EventSegmentExclusion

getDescriptorForType()

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

Whether the eventExclusionCriteria field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

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

mergeFrom(EventSegmentExclusion other)

public EventSegmentExclusion.Builder mergeFrom(EventSegmentExclusion other)
Parameter
NameDescription
otherEventSegmentExclusion
Returns
TypeDescription
EventSegmentExclusion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The eventExclusionDuration to set.

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

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

Returns
TypeDescription
EventSegmentExclusion.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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