Class EventMapping.Builder (0.59.0)

public static final class EventMapping.Builder extends GeneratedMessageV3.Builder<EventMapping.Builder> implements EventMappingOrBuilder

Event setting conditions to match an event.

Protobuf type google.analytics.admin.v1alpha.EventMapping

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EventMapping build()
Returns
Type Description
EventMapping

buildPartial()

public EventMapping buildPartial()
Returns
Type Description
EventMapping

clear()

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

clearEventName()

public EventMapping.Builder clearEventName()

Required. Name of the GA4 event. It must always be set. The max allowed display name length is 40 UTF-16 code units.

string event_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EventMapping.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMaxEventCount()

public EventMapping.Builder clearMaxEventCount()

The maximum number of times the event occurred. If not set, maximum event count won't be checked.

optional int64 max_event_count = 3;

Returns
Type Description
EventMapping.Builder

This builder for chaining.

clearMaxEventValue()

public EventMapping.Builder clearMaxEventValue()

The maximum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, maximum event value won't be checked.

optional double max_event_value = 5;

Returns
Type Description
EventMapping.Builder

This builder for chaining.

clearMinEventCount()

public EventMapping.Builder clearMinEventCount()

At least one of the following four min/max values must be set. The values set will be ANDed together to qualify an event. The minimum number of times the event occurred. If not set, minimum event count won't be checked.

optional int64 min_event_count = 2;

Returns
Type Description
EventMapping.Builder

This builder for chaining.

clearMinEventValue()

public EventMapping.Builder clearMinEventValue()

The minimum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, minimum event value won't be checked.

optional double min_event_value = 4;

Returns
Type Description
EventMapping.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public EventMapping getDefaultInstanceForType()
Returns
Type Description
EventMapping

getDescriptorForType()

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

getEventName()

public String getEventName()

Required. Name of the GA4 event. It must always be set. The max allowed display name length is 40 UTF-16 code units.

string event_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The eventName.

getEventNameBytes()

public ByteString getEventNameBytes()

Required. Name of the GA4 event. It must always be set. The max allowed display name length is 40 UTF-16 code units.

string event_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for eventName.

getMaxEventCount()

public long getMaxEventCount()

The maximum number of times the event occurred. If not set, maximum event count won't be checked.

optional int64 max_event_count = 3;

Returns
Type Description
long

The maxEventCount.

getMaxEventValue()

public double getMaxEventValue()

The maximum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, maximum event value won't be checked.

optional double max_event_value = 5;

Returns
Type Description
double

The maxEventValue.

getMinEventCount()

public long getMinEventCount()

At least one of the following four min/max values must be set. The values set will be ANDed together to qualify an event. The minimum number of times the event occurred. If not set, minimum event count won't be checked.

optional int64 min_event_count = 2;

Returns
Type Description
long

The minEventCount.

getMinEventValue()

public double getMinEventValue()

The minimum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, minimum event value won't be checked.

optional double min_event_value = 4;

Returns
Type Description
double

The minEventValue.

hasMaxEventCount()

public boolean hasMaxEventCount()

The maximum number of times the event occurred. If not set, maximum event count won't be checked.

optional int64 max_event_count = 3;

Returns
Type Description
boolean

Whether the maxEventCount field is set.

hasMaxEventValue()

public boolean hasMaxEventValue()

The maximum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, maximum event value won't be checked.

optional double max_event_value = 5;

Returns
Type Description
boolean

Whether the maxEventValue field is set.

hasMinEventCount()

public boolean hasMinEventCount()

At least one of the following four min/max values must be set. The values set will be ANDed together to qualify an event. The minimum number of times the event occurred. If not set, minimum event count won't be checked.

optional int64 min_event_count = 2;

Returns
Type Description
boolean

Whether the minEventCount field is set.

hasMinEventValue()

public boolean hasMinEventValue()

The minimum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, minimum event value won't be checked.

optional double min_event_value = 4;

Returns
Type Description
boolean

Whether the minEventValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EventMapping other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEventName(String value)

public EventMapping.Builder setEventName(String value)

Required. Name of the GA4 event. It must always be set. The max allowed display name length is 40 UTF-16 code units.

string event_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The eventName to set.

Returns
Type Description
EventMapping.Builder

This builder for chaining.

setEventNameBytes(ByteString value)

public EventMapping.Builder setEventNameBytes(ByteString value)

Required. Name of the GA4 event. It must always be set. The max allowed display name length is 40 UTF-16 code units.

string event_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for eventName to set.

Returns
Type Description
EventMapping.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaxEventCount(long value)

public EventMapping.Builder setMaxEventCount(long value)

The maximum number of times the event occurred. If not set, maximum event count won't be checked.

optional int64 max_event_count = 3;

Parameter
Name Description
value long

The maxEventCount to set.

Returns
Type Description
EventMapping.Builder

This builder for chaining.

setMaxEventValue(double value)

public EventMapping.Builder setMaxEventValue(double value)

The maximum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, maximum event value won't be checked.

optional double max_event_value = 5;

Parameter
Name Description
value double

The maxEventValue to set.

Returns
Type Description
EventMapping.Builder

This builder for chaining.

setMinEventCount(long value)

public EventMapping.Builder setMinEventCount(long value)

At least one of the following four min/max values must be set. The values set will be ANDed together to qualify an event. The minimum number of times the event occurred. If not set, minimum event count won't be checked.

optional int64 min_event_count = 2;

Parameter
Name Description
value long

The minEventCount to set.

Returns
Type Description
EventMapping.Builder

This builder for chaining.

setMinEventValue(double value)

public EventMapping.Builder setMinEventValue(double value)

The minimum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, minimum event value won't be checked.

optional double min_event_value = 4;

Parameter
Name Description
value double

The minEventValue to set.

Returns
Type Description
EventMapping.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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