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

MAX_EVENT_COUNT_FIELD_NUMBER

public static final int MAX_EVENT_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_EVENT_VALUE_FIELD_NUMBER

public static final int MAX_EVENT_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_EVENT_COUNT_FIELD_NUMBER

public static final int MIN_EVENT_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_EVENT_VALUE_FIELD_NUMBER

public static final int MIN_EVENT_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static EventMapping getDefaultInstance()
Returns
TypeDescription
EventMapping

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static EventMapping.Builder newBuilder()
Returns
TypeDescription
EventMapping.Builder

newBuilder(EventMapping prototype)

public static EventMapping.Builder newBuilder(EventMapping prototype)
Parameter
NameDescription
prototypeEventMapping
Returns
TypeDescription
EventMapping.Builder

parseDelimitedFrom(InputStream input)

public static EventMapping parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EventMapping
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventMapping parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventMapping
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static EventMapping parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
EventMapping
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EventMapping parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventMapping
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EventMapping parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
EventMapping
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EventMapping parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventMapping
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EventMapping parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
EventMapping
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EventMapping parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventMapping
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static EventMapping parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EventMapping
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventMapping parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventMapping
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static EventMapping parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
EventMapping
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EventMapping parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventMapping
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<EventMapping> parser()
Returns
TypeDescription
Parser<EventMapping>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<EventMapping> getParserForType()
Returns
TypeDescription
Parser<EventMapping>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public EventMapping.Builder newBuilderForType()
Returns
TypeDescription
EventMapping.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EventMapping.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
EventMapping.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public EventMapping.Builder toBuilder()
Returns
TypeDescription
EventMapping.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException