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 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<EventCreateRule.Builder>
    • clear

      public EventCreateRule.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<EventCreateRule.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<EventCreateRule.Builder>
    • getDefaultInstanceForType

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

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

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

      public EventCreateRule.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<EventCreateRule.Builder>
    • mergeFrom

      public EventCreateRule.Builder mergeFrom(EventCreateRule other)
    • isInitialized

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

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

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

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

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

      public String 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:
      getDestinationEvent in interface EventCreateRuleOrBuilder
      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:
      getDestinationEventBytes in interface EventCreateRuleOrBuilder
      Returns:
      The bytes for destinationEvent.
    • setDestinationEvent

      public EventCreateRule.Builder setDestinationEvent(String value)
       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

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

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

      public List<MatchingCondition> 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:
      getEventConditionsList in interface EventCreateRuleOrBuilder
    • 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:
      getEventConditionsCount in interface EventCreateRuleOrBuilder
    • getEventConditions

      public MatchingCondition getEventConditions(int index)
       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:
      getEventConditions in interface EventCreateRuleOrBuilder
    • setEventConditions

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

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

      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

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

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

      public EventCreateRule.Builder removeEventConditions(int index)
       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

      public MatchingCondition.Builder getEventConditionsBuilder(int index)
       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

      public MatchingConditionOrBuilder getEventConditionsOrBuilder(int index)
       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:
      getEventConditionsOrBuilder in interface EventCreateRuleOrBuilder
    • getEventConditionsOrBuilderList

      public List<? extends MatchingConditionOrBuilder> 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:
      getEventConditionsOrBuilderList in interface EventCreateRuleOrBuilder
    • addEventConditionsBuilder

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

      public MatchingCondition.Builder addEventConditionsBuilder(int index)
       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

      public List<MatchingCondition.Builder> 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:
      getSourceCopyParameters in interface EventCreateRuleOrBuilder
      Returns:
      The sourceCopyParameters.
    • setSourceCopyParameters

      public EventCreateRule.Builder setSourceCopyParameters(boolean value)
       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

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

      public List<ParameterMutation> 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:
      getParameterMutationsList in interface EventCreateRuleOrBuilder
    • 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:
      getParameterMutationsCount in interface EventCreateRuleOrBuilder
    • getParameterMutations

      public ParameterMutation getParameterMutations(int index)
       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:
      getParameterMutations in interface EventCreateRuleOrBuilder
    • setParameterMutations

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

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

      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

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

      public EventCreateRule.Builder removeParameterMutations(int index)
       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

      public ParameterMutation.Builder getParameterMutationsBuilder(int index)
       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

      public ParameterMutationOrBuilder getParameterMutationsOrBuilder(int index)
       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:
      getParameterMutationsOrBuilder in interface EventCreateRuleOrBuilder
    • getParameterMutationsOrBuilderList

      public List<? extends ParameterMutationOrBuilder> 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:
      getParameterMutationsOrBuilderList in interface EventCreateRuleOrBuilder
    • addParameterMutationsBuilder

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

      public ParameterMutation.Builder addParameterMutationsBuilder(int index)
       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

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