Send feedback
Class EventEditRule (0.63.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.63.0 keyboard_arrow_down
public final class EventEditRule extends GeneratedMessageV3 implements EventEditRuleOrBuilder
An Event Edit Rule defines conditions that will trigger the creation of an
entirely new event based upon matched criteria of a source event. Additional
mutations of the parameters from the source event can be defined.
Unlike Event Create rules, Event Edit Rules are applied in their defined
order.
Event Edit rules can't be used to modify an event created from an Event
Create rule.
Protobuf type google.analytics.admin.v1alpha.EventEditRule
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type
Description
int
EVENT_CONDITIONS_FIELD_NUMBER
public static final int EVENT_CONDITIONS_FIELD_NUMBER
Field Value
Type
Description
int
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
PARAMETER_MUTATIONS_FIELD_NUMBER
public static final int PARAMETER_MUTATIONS_FIELD_NUMBER
Field Value
Type
Description
int
PROCESSING_ORDER_FIELD_NUMBER
public static final int PROCESSING_ORDER_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static EventEditRule getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static EventEditRule . Builder newBuilder ()
newBuilder(EventEditRule prototype)
public static EventEditRule . Builder newBuilder ( EventEditRule prototype )
public static EventEditRule parseDelimitedFrom ( InputStream input )
public static EventEditRule parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static EventEditRule parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static EventEditRule parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static EventEditRule parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static EventEditRule parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static EventEditRule parseFrom ( CodedInputStream input )
public static EventEditRule parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static EventEditRule parseFrom ( InputStream input )
public static EventEditRule parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static EventEditRule parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static EventEditRule parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<EventEditRule> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public EventEditRule getDefaultInstanceForType ()
getDisplayName()
public String getDisplayName ()
Required. The display name of this event edit rule. Maximum of 255
characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The displayName.
getDisplayNameBytes()
public ByteString getDisplayNameBytes ()
Required. The display name of this event edit rule. Maximum of 255
characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for displayName.
getEventConditions(int index)
public MatchingCondition getEventConditions ( int index )
Required. Conditions on the source event must match for this rule to be
applied. Must have at least one condition, and can have up to 10 max.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
index
int
getEventConditionsCount()
public int getEventConditionsCount ()
Required. Conditions on the source event must match for this rule to be
applied. Must have at least one condition, and can have up to 10 max.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
int
getEventConditionsList()
public List<MatchingCondition> getEventConditionsList ()
Required. Conditions on the source event must match for this rule to be
applied. Must have at least one condition, and can have up to 10 max.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED];
getEventConditionsOrBuilder(int index)
public MatchingConditionOrBuilder getEventConditionsOrBuilder ( int index )
Required. Conditions on the source event must match for this rule to be
applied. Must have at least one condition, and can have up to 10 max.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
index
int
getEventConditionsOrBuilderList()
public List <? extends MatchingConditionOrBuilder > getEventConditionsOrBuilderList ()
Required. Conditions on the source event must match for this rule to be
applied. Must have at least one condition, and can have up to 10 max.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
List <? extends com.google.analytics.admin.v1alpha.MatchingConditionOrBuilder >
getName()
Identifier. Resource name for this EventEditRule resource.
Format:
properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns
Type
Description
String
The name.
getNameBytes()
public ByteString getNameBytes ()
Identifier. Resource name for this EventEditRule resource.
Format:
properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns
Type
Description
ByteString
The bytes for name.
getParameterMutations(int index)
public ParameterMutation getParameterMutations ( int index )
Required. Parameter mutations define parameter behavior on the new event,
and are applied in order. A maximum of 20 mutations can be applied.
repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
index
int
getParameterMutationsCount()
public int getParameterMutationsCount ()
Required. Parameter mutations define parameter behavior on the new event,
and are applied in order. A maximum of 20 mutations can be applied.
repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 4 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
int
getParameterMutationsList()
public List<ParameterMutation> getParameterMutationsList ()
Required. Parameter mutations define parameter behavior on the new event,
and are applied in order. A maximum of 20 mutations can be applied.
repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 4 [(.google.api.field_behavior) = REQUIRED];
getParameterMutationsOrBuilder(int index)
public ParameterMutationOrBuilder getParameterMutationsOrBuilder ( int index )
Required. Parameter mutations define parameter behavior on the new event,
and are applied in order. A maximum of 20 mutations can be applied.
repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
index
int
getParameterMutationsOrBuilderList()
public List <? extends ParameterMutationOrBuilder > getParameterMutationsOrBuilderList ()
Required. Parameter mutations define parameter behavior on the new event,
and are applied in order. A maximum of 20 mutations can be applied.
repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 4 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
List <? extends com.google.analytics.admin.v1alpha.ParameterMutationOrBuilder >
getParserForType()
public Parser<EventEditRule> getParserForType ()
Overrides
getProcessingOrder()
public long getProcessingOrder ()
Output only. The order for which this rule will be processed. Rules with an
order value lower than this will be processed before this rule, rules with
an order value higher than this will be processed after this rule. New
event edit rules will be assigned an order value at the end of the order.
This value does not apply to event create rules.
int64 processing_order = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
long
The processingOrder.
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public EventEditRule . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected EventEditRule . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public EventEditRule . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-09 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["This page provides a comprehensive list of versions for the `EventEditRule` class in the Google Analytics Admin API, ranging from version 0.14.0 to the latest version, 0.70.0."],["`EventEditRule` is a class used to define conditions for creating new events based on source events, including mutations of parameters from the source event, with these rules being applied in a specific order."],["The `EventEditRule` class is part of the `com.google.analytics.admin.v1alpha` package within the Google Analytics Admin API, built upon the `GeneratedMessageV3` class, and implements `EventEditRuleOrBuilder`."],["The class allows for the specification of conditions that determine when a new event is triggered, with the ability to apply up to 20 parameter mutations to modify the new event, and a maximum of 10 matching conditions for triggering this rule."],["There are various methods for parsing `EventEditRule` objects from different data sources, such as byte arrays, `ByteString`, `CodedInputStream`, `InputStream`, and `ByteBuffer`, providing flexibility in how the data is processed and used."]]],[]]