Class EventCreateRule

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.analytics.admin.v1alpha.EventCreateRule
All Implemented Interfaces:
EventCreateRuleOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class EventCreateRule extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DESTINATION_EVENT_FIELD_NUMBER

      public static final int DESTINATION_EVENT_FIELD_NUMBER
      See Also:
    • EVENT_CONDITIONS_FIELD_NUMBER

      public static final int EVENT_CONDITIONS_FIELD_NUMBER
      See Also:
    • SOURCE_COPY_PARAMETERS_FIELD_NUMBER

      public static final int SOURCE_COPY_PARAMETERS_FIELD_NUMBER
      See Also:
    • PARAMETER_MUTATIONS_FIELD_NUMBER

      public static final int PARAMETER_MUTATIONS_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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
    • 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
    • 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
    • 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
    • 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.
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static EventCreateRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventCreateRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventCreateRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventCreateRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventCreateRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventCreateRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventCreateRule parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EventCreateRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EventCreateRule parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EventCreateRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EventCreateRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EventCreateRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static EventCreateRule.Builder newBuilder()
    • newBuilder

      public static EventCreateRule.Builder newBuilder(EventCreateRule prototype)
    • toBuilder

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

      protected EventCreateRule.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static EventCreateRule getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<EventCreateRule> parser()
    • getParserForType

      public com.google.protobuf.Parser<EventCreateRule> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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