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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<EventEditRule.Builder>
    • clear

      public EventEditRule.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<EventEditRule.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<EventEditRule.Builder>
    • getDefaultInstanceForType

      public EventEditRule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public EventEditRule build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public EventEditRule buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public EventEditRule.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EventEditRule.Builder>
    • mergeFrom

      public EventEditRule.Builder mergeFrom(EventEditRule other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EventEditRule.Builder>
      Throws:
      IOException
    • getName

      public String 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:
      getName in interface EventEditRuleOrBuilder
      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:
      getNameBytes in interface EventEditRuleOrBuilder
      Returns:
      The bytes for name.
    • setName

      public EventEditRule.Builder setName(String value)
       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

      public EventEditRule.Builder 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

      public EventEditRule.Builder setNameBytes(com.google.protobuf.ByteString value)
       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

      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];
      Specified by:
      getDisplayName in interface EventEditRuleOrBuilder
      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:
      getDisplayNameBytes in interface EventEditRuleOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public EventEditRule.Builder setDisplayName(String value)
       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

      public EventEditRule.Builder 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

      public EventEditRule.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       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

      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];
      Specified by:
      getEventConditionsList in interface EventEditRuleOrBuilder
    • 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:
      getEventConditionsCount in interface EventEditRuleOrBuilder
    • getEventConditions

      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];
      Specified by:
      getEventConditions in interface EventEditRuleOrBuilder
    • setEventConditions

      public EventEditRule.Builder setEventConditions(int index, MatchingCondition value)
       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

      public EventEditRule.Builder addEventConditions(MatchingCondition value)
       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 value)
       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(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

      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

      public EventEditRule.Builder addAllEventConditions(Iterable<? extends MatchingCondition> values)
       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

      public EventEditRule.Builder 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

      public EventEditRule.Builder removeEventConditions(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];
    • getEventConditionsBuilder

      public MatchingCondition.Builder getEventConditionsBuilder(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];
    • getEventConditionsOrBuilder

      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];
      Specified by:
      getEventConditionsOrBuilder in interface EventEditRuleOrBuilder
    • 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];
      Specified by:
      getEventConditionsOrBuilderList in interface EventEditRuleOrBuilder
    • addEventConditionsBuilder

      public MatchingCondition.Builder 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

      public MatchingCondition.Builder addEventConditionsBuilder(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];
    • getEventConditionsBuilderList

      public List<MatchingCondition.Builder> 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

      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];
      Specified by:
      getParameterMutationsList in interface EventEditRuleOrBuilder
    • 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:
      getParameterMutationsCount in interface EventEditRuleOrBuilder
    • getParameterMutations

      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];
      Specified by:
      getParameterMutations in interface EventEditRuleOrBuilder
    • setParameterMutations

      public EventEditRule.Builder setParameterMutations(int index, ParameterMutation value)
       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

      public EventEditRule.Builder addParameterMutations(ParameterMutation value)
       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 value)
       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(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

      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

      public EventEditRule.Builder addAllParameterMutations(Iterable<? extends ParameterMutation> values)
       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

      public EventEditRule.Builder 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

      public EventEditRule.Builder removeParameterMutations(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];
    • getParameterMutationsBuilder

      public ParameterMutation.Builder getParameterMutationsBuilder(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];
    • getParameterMutationsOrBuilder

      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];
      Specified by:
      getParameterMutationsOrBuilder in interface EventEditRuleOrBuilder
    • 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];
      Specified by:
      getParameterMutationsOrBuilderList in interface EventEditRuleOrBuilder
    • addParameterMutationsBuilder

      public ParameterMutation.Builder 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

      public ParameterMutation.Builder addParameterMutationsBuilder(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];
    • getParameterMutationsBuilderList

      public List<ParameterMutation.Builder> 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:
      getProcessingOrder in interface EventEditRuleOrBuilder
      Returns:
      The processingOrder.
    • setProcessingOrder

      public EventEditRule.Builder setProcessingOrder(long value)
       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

      public EventEditRule.Builder 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.