Class EventEditRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EventEditRule.Builder>
com.google.analytics.admin.v1alpha.EventEditRule.Builder
- All Implemented Interfaces:
EventEditRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EventEditRule
public static final class EventEditRule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<EventEditRule.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllEventConditions(Iterable<? extends MatchingCondition> values) Required.addAllParameterMutations(Iterable<? extends ParameterMutation> values) Required.addEventConditions(int index, MatchingCondition value) Required.addEventConditions(int index, MatchingCondition.Builder builderForValue) Required.Required.addEventConditions(MatchingCondition.Builder builderForValue) Required.Required.addEventConditionsBuilder(int index) Required.addParameterMutations(int index, ParameterMutation value) Required.addParameterMutations(int index, ParameterMutation.Builder builderForValue) Required.Required.addParameterMutations(ParameterMutation.Builder builderForValue) Required.Required.addParameterMutationsBuilder(int index) Required.build()clear()Required.Required.Identifier.Required.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getEventConditions(int index) Required.getEventConditionsBuilder(int index) Required.Required.intRequired.Required.getEventConditionsOrBuilder(int index) Required.List<? extends MatchingConditionOrBuilder>Required.getName()Identifier.com.google.protobuf.ByteStringIdentifier.getParameterMutations(int index) Required.getParameterMutationsBuilder(int index) Required.Required.intRequired.Required.getParameterMutationsOrBuilder(int index) Required.List<? extends ParameterMutationOrBuilder>Required.longOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(EventEditRule other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeEventConditions(int index) Required.removeParameterMutations(int index) Required.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.setEventConditions(int index, MatchingCondition value) Required.setEventConditions(int index, MatchingCondition.Builder builderForValue) Required.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setParameterMutations(int index, ParameterMutation value) Required.setParameterMutations(int index, ParameterMutation.Builder builderForValue) Required.setProcessingOrder(long value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<EventEditRule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<EventEditRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<EventEditRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EventEditRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<EventEditRule.Builder>
-
mergeFrom
public EventEditRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EventEditRule.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceEventEditRuleOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];- Specified by:
getNameBytesin interfaceEventEditRuleOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
Required. The display name of this event edit rule. Maximum of 255 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNamein interfaceEventEditRuleOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Required. The display name of this event edit rule. Maximum of 255 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNameBytesin interfaceEventEditRuleOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Required. The display name of this event edit rule. Maximum of 255 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Required. The display name of this event edit rule. Maximum of 255 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Required. The display name of this event edit rule. Maximum of 255 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getEventConditionsListin interfaceEventEditRuleOrBuilder
-
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];- Specified by:
getEventConditionsCountin interfaceEventEditRuleOrBuilder
-
getEventConditions
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];- Specified by:
getEventConditionsin interfaceEventEditRuleOrBuilder
-
setEventConditions
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]; -
setEventConditions
public EventEditRule.Builder setEventConditions(int index, MatchingCondition.Builder builderForValue) 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]; -
addEventConditions
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]; -
addEventConditions
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]; -
addEventConditions
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]; -
addEventConditions
public EventEditRule.Builder addEventConditions(int index, MatchingCondition.Builder builderForValue) 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]; -
addAllEventConditions
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]; -
clearEventConditions
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]; -
removeEventConditions
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]; -
getEventConditionsBuilder
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
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];- Specified by:
getEventConditionsOrBuilderin interfaceEventEditRuleOrBuilder
-
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];- Specified by:
getEventConditionsOrBuilderListin interfaceEventEditRuleOrBuilder
-
addEventConditionsBuilder
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]; -
addEventConditionsBuilder
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]; -
getEventConditionsBuilderList
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]; -
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];- Specified by:
getParameterMutationsListin interfaceEventEditRuleOrBuilder
-
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];- Specified by:
getParameterMutationsCountin interfaceEventEditRuleOrBuilder
-
getParameterMutations
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];- Specified by:
getParameterMutationsin interfaceEventEditRuleOrBuilder
-
setParameterMutations
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]; -
setParameterMutations
public EventEditRule.Builder setParameterMutations(int index, ParameterMutation.Builder builderForValue) 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]; -
addParameterMutations
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]; -
addParameterMutations
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]; -
addParameterMutations
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]; -
addParameterMutations
public EventEditRule.Builder addParameterMutations(int index, ParameterMutation.Builder builderForValue) 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]; -
addAllParameterMutations
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]; -
clearParameterMutations
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]; -
removeParameterMutations
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]; -
getParameterMutationsBuilder
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
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];- Specified by:
getParameterMutationsOrBuilderin interfaceEventEditRuleOrBuilder
-
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];- Specified by:
getParameterMutationsOrBuilderListin interfaceEventEditRuleOrBuilder
-
addParameterMutationsBuilder
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]; -
addParameterMutationsBuilder
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]; -
getParameterMutationsBuilderList
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]; -
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];- Specified by:
getProcessingOrderin interfaceEventEditRuleOrBuilder- Returns:
- The processingOrder.
-
setProcessingOrder
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];- Parameters:
value- The processingOrder to set.- Returns:
- This builder for chaining.
-
clearProcessingOrder
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:
- This builder for chaining.
-