Class EventCreateRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EventCreateRule.Builder>
com.google.analytics.admin.v1alpha.EventCreateRule.Builder
- All Implemented Interfaces:
EventCreateRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EventCreateRule
public static final class EventCreateRule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<EventCreateRule.Builder>
implements EventCreateRuleOrBuilder
An Event Create 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 Edit rules, Event Creation Rules have no defined order. They will all be run independently. Event Edit and Event Create rules can't be used to modify an event created from an Event Create rule.Protobuf type
google.analytics.admin.v1alpha.EventCreateRule-
Method Summary
Modifier and TypeMethodDescriptionaddAllEventConditions(Iterable<? extends MatchingCondition> values) Required.addAllParameterMutations(Iterable<? extends ParameterMutation> values) Parameter mutations define parameter behavior on the new event, and are applied in order.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) Parameter mutations define parameter behavior on the new event, and are applied in order.addParameterMutations(int index, ParameterMutation.Builder builderForValue) Parameter mutations define parameter behavior on the new event, and are applied in order.Parameter mutations define parameter behavior on the new event, and are applied in order.addParameterMutations(ParameterMutation.Builder builderForValue) Parameter mutations define parameter behavior on the new event, and are applied in order.Parameter mutations define parameter behavior on the new event, and are applied in order.addParameterMutationsBuilder(int index) Parameter mutations define parameter behavior on the new event, and are applied in order.build()clear()Required.Required.Output only.Parameter mutations define parameter behavior on the new event, and are applied in order.If true, the source parameters are copied to the new event.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()Output only.com.google.protobuf.ByteStringOutput only.getParameterMutations(int index) Parameter mutations define parameter behavior on the new event, and are applied in order.getParameterMutationsBuilder(int index) Parameter mutations define parameter behavior on the new event, and are applied in order.Parameter mutations define parameter behavior on the new event, and are applied in order.intParameter mutations define parameter behavior on the new event, and are applied in order.Parameter mutations define parameter behavior on the new event, and are applied in order.getParameterMutationsOrBuilder(int index) Parameter mutations define parameter behavior on the new event, and are applied in order.List<? extends ParameterMutationOrBuilder>Parameter mutations define parameter behavior on the new event, and are applied in order.booleanIf true, the source parameters are copied to the new event.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(EventCreateRule 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) Parameter mutations define parameter behavior on the new event, and are applied in order.setDestinationEvent(String value) Required.setDestinationEventBytes(com.google.protobuf.ByteString value) Required.setEventConditions(int index, MatchingCondition value) Required.setEventConditions(int index, MatchingCondition.Builder builderForValue) Required.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setParameterMutations(int index, ParameterMutation value) Parameter mutations define parameter behavior on the new event, and are applied in order.setParameterMutations(int index, ParameterMutation.Builder builderForValue) Parameter mutations define parameter behavior on the new event, and are applied in order.setSourceCopyParameters(boolean value) If true, the source parameters are copied to the new event.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<EventCreateRule.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<EventCreateRule.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<EventCreateRule.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<EventCreateRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<EventCreateRule.Builder>
-
mergeFrom
public EventCreateRule.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<EventCreateRule.Builder>- Throws:
IOException
-
getName
Output only. Resource name for this EventCreateRule resource. Format: properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceEventCreateRuleOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. Resource name for this EventCreateRule resource. Format: properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceEventCreateRuleOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. Resource name for this EventCreateRule resource. Format: properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. Resource name for this EventCreateRule resource. Format: properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. Resource name for this EventCreateRule resource. Format: properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDestinationEvent
Required. The name of the new event to be created. This value must: * be less than 40 characters * consist only of letters, digits or _ (underscores) * start with a letter
string destination_event = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationEventin interfaceEventCreateRuleOrBuilder- Returns:
- The destinationEvent.
-
getDestinationEventBytes
public com.google.protobuf.ByteString getDestinationEventBytes()Required. The name of the new event to be created. This value must: * be less than 40 characters * consist only of letters, digits or _ (underscores) * start with a letter
string destination_event = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationEventBytesin interfaceEventCreateRuleOrBuilder- Returns:
- The bytes for destinationEvent.
-
setDestinationEvent
Required. The name of the new event to be created. This value must: * be less than 40 characters * consist only of letters, digits or _ (underscores) * start with a letter
string destination_event = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The destinationEvent to set.- Returns:
- This builder for chaining.
-
clearDestinationEvent
Required. The name of the new event to be created. This value must: * be less than 40 characters * consist only of letters, digits or _ (underscores) * start with a letter
string destination_event = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDestinationEventBytes
Required. The name of the new event to be created. This value must: * be less than 40 characters * consist only of letters, digits or _ (underscores) * start with a letter
string destination_event = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for destinationEvent to set.- Returns:
- This builder for chaining.
-
getEventConditionsList
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEventConditionsListin interfaceEventCreateRuleOrBuilder
-
getEventConditionsCount
public int getEventConditionsCount()Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEventConditionsCountin interfaceEventCreateRuleOrBuilder
-
getEventConditions
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEventConditionsin interfaceEventCreateRuleOrBuilder
-
setEventConditions
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; -
setEventConditions
public EventCreateRule.Builder setEventConditions(int index, MatchingCondition.Builder builderForValue) Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; -
addEventConditions
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; -
addEventConditions
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; -
addEventConditions
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; -
addEventConditions
public EventCreateRule.Builder addEventConditions(int index, MatchingCondition.Builder builderForValue) Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; -
addAllEventConditions
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; -
clearEventConditions
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; -
removeEventConditions
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; -
getEventConditionsBuilder
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; -
getEventConditionsOrBuilder
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEventConditionsOrBuilderin interfaceEventCreateRuleOrBuilder
-
getEventConditionsOrBuilderList
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEventConditionsOrBuilderListin interfaceEventCreateRuleOrBuilder
-
addEventConditionsBuilder
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; -
addEventConditionsBuilder
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; -
getEventConditionsBuilderList
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; -
getSourceCopyParameters
public boolean getSourceCopyParameters()If true, the source parameters are copied to the new event. If false, or unset, all non-internal parameters are not copied from the source event. Parameter mutations are applied after the parameters have been copied.
bool source_copy_parameters = 4;- Specified by:
getSourceCopyParametersin interfaceEventCreateRuleOrBuilder- Returns:
- The sourceCopyParameters.
-
setSourceCopyParameters
If true, the source parameters are copied to the new event. If false, or unset, all non-internal parameters are not copied from the source event. Parameter mutations are applied after the parameters have been copied.
bool source_copy_parameters = 4;- Parameters:
value- The sourceCopyParameters to set.- Returns:
- This builder for chaining.
-
clearSourceCopyParameters
If true, the source parameters are copied to the new event. If false, or unset, all non-internal parameters are not copied from the source event. Parameter mutations are applied after the parameters have been copied.
bool source_copy_parameters = 4;- Returns:
- This builder for chaining.
-
getParameterMutationsList
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 = 5;- Specified by:
getParameterMutationsListin interfaceEventCreateRuleOrBuilder
-
getParameterMutationsCount
public int getParameterMutationsCount()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 = 5;- Specified by:
getParameterMutationsCountin interfaceEventCreateRuleOrBuilder
-
getParameterMutations
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 = 5;- Specified by:
getParameterMutationsin interfaceEventCreateRuleOrBuilder
-
setParameterMutations
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 = 5; -
setParameterMutations
public EventCreateRule.Builder setParameterMutations(int index, ParameterMutation.Builder builderForValue) 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 = 5; -
addParameterMutations
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 = 5; -
addParameterMutations
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 = 5; -
addParameterMutations
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 = 5; -
addParameterMutations
public EventCreateRule.Builder addParameterMutations(int index, ParameterMutation.Builder builderForValue) 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 = 5; -
addAllParameterMutations
public EventCreateRule.Builder addAllParameterMutations(Iterable<? extends ParameterMutation> values) 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 = 5; -
clearParameterMutations
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 = 5; -
removeParameterMutations
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 = 5; -
getParameterMutationsBuilder
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 = 5; -
getParameterMutationsOrBuilder
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 = 5;- Specified by:
getParameterMutationsOrBuilderin interfaceEventCreateRuleOrBuilder
-
getParameterMutationsOrBuilderList
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 = 5;- Specified by:
getParameterMutationsOrBuilderListin interfaceEventCreateRuleOrBuilder
-
addParameterMutationsBuilder
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 = 5; -
addParameterMutationsBuilder
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 = 5; -
getParameterMutationsBuilderList
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 = 5;
-