- 0.62.0 (latest)
- 0.61.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > EventMapping.BuilderImplements
EventMappingOrBuilderStatic 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 |
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 |
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 |
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 |
clone()
public EventMapping.Builder clone()
Returns | |
---|---|
Type | Description |
EventMapping.Builder |
getDefaultInstanceForType()
public EventMapping getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
EventMapping |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public EventMapping.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
EventMapping.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EventMapping.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
EventMapping.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final EventMapping.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
EventMapping.Builder |