Class EventMapping (0.55.0)

public final class EventMapping extends GeneratedMessageV3 implements EventMappingOrBuilder

Event setting conditions to match an event.

Protobuf type google.analytics.admin.v1alpha.EventMapping

Static Fields

EVENT_NAME_FIELD_NUMBER

public static final int EVENT_NAME_FIELD_NUMBER
Field Value
Type Description
int

MAX_EVENT_COUNT_FIELD_NUMBER

public static final int MAX_EVENT_COUNT_FIELD_NUMBER
Field Value
Type Description
int

MAX_EVENT_VALUE_FIELD_NUMBER

public static final int MAX_EVENT_VALUE_FIELD_NUMBER
Field Value
Type Description
int

MIN_EVENT_COUNT_FIELD_NUMBER

public static final int MIN_EVENT_COUNT_FIELD_NUMBER
Field Value
Type Description
int

MIN_EVENT_VALUE_FIELD_NUMBER

public static final int MIN_EVENT_VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EventMapping getDefaultInstance()
Returns
Type Description
EventMapping

getDescriptor()

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

newBuilder()

public static EventMapping.Builder newBuilder()
Returns
Type Description
EventMapping.Builder

newBuilder(EventMapping prototype)

public static EventMapping.Builder newBuilder(EventMapping prototype)
Parameter
Name Description
prototype EventMapping
Returns
Type Description
EventMapping.Builder

parseDelimitedFrom(InputStream input)

public static EventMapping parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EventMapping
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventMapping parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventMapping
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static EventMapping parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
EventMapping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EventMapping parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventMapping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EventMapping parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
EventMapping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EventMapping parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventMapping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EventMapping parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
EventMapping
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EventMapping parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventMapping
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static EventMapping parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EventMapping
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventMapping parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventMapping
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static EventMapping parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
EventMapping
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EventMapping parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventMapping
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<EventMapping> parser()
Returns
Type Description
Parser<EventMapping>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public EventMapping getDefaultInstanceForType()
Returns
Type Description
EventMapping

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.

getParserForType()

public Parser<EventMapping> getParserForType()
Returns
Type Description
Parser<EventMapping>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public EventMapping.Builder newBuilderForType()
Returns
Type Description
EventMapping.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EventMapping.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EventMapping.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public EventMapping.Builder toBuilder()
Returns
Type Description
EventMapping.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException