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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EventMapping build()
Returns
TypeDescription
EventMapping

buildPartial()

public EventMapping buildPartial()
Returns
TypeDescription
EventMapping

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EventMapping.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
EventMapping.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public EventMapping getDefaultInstanceForType()
Returns
TypeDescription
EventMapping

getDescriptorForType()

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

Whether the minEventValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EventMapping other)

public EventMapping.Builder mergeFrom(EventMapping other)
Parameter
NameDescription
otherEventMapping
Returns
TypeDescription
EventMapping.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EventMapping.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The eventName to set.

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

The bytes for eventName to set.

Returns
TypeDescription
EventMapping.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public EventMapping.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The maxEventCount to set.

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

The maxEventValue to set.

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

The minEventCount to set.

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

The minEventValue to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EventMapping.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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