Class MatchingCondition.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MatchingCondition.Builder>
com.google.analytics.admin.v1alpha.MatchingCondition.Builder
All Implemented Interfaces:
MatchingConditionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MatchingCondition

public static final class MatchingCondition.Builder extends com.google.protobuf.GeneratedMessage.Builder<MatchingCondition.Builder> implements MatchingConditionOrBuilder
 Defines a condition for when an Event Edit or Event Creation rule applies to
 an event.
 
Protobuf type google.analytics.admin.v1alpha.MatchingCondition
  • 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<MatchingCondition.Builder>
    • clear

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

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

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

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

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

      public MatchingCondition.Builder mergeFrom(MatchingCondition other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<MatchingCondition.Builder>
    • mergeFrom

      public MatchingCondition.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<MatchingCondition.Builder>
      Throws:
      IOException
    • getField

      public String getField()
       Required. The name of the field that is compared against for the condition.
       If 'event_name' is specified this condition will apply to the name of the
       event.  Otherwise the condition will apply to a parameter with the
       specified name.
      
       This value cannot contain spaces.
       
      string field = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getField in interface MatchingConditionOrBuilder
      Returns:
      The field.
    • getFieldBytes

      public com.google.protobuf.ByteString getFieldBytes()
       Required. The name of the field that is compared against for the condition.
       If 'event_name' is specified this condition will apply to the name of the
       event.  Otherwise the condition will apply to a parameter with the
       specified name.
      
       This value cannot contain spaces.
       
      string field = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFieldBytes in interface MatchingConditionOrBuilder
      Returns:
      The bytes for field.
    • setField

      public MatchingCondition.Builder setField(String value)
       Required. The name of the field that is compared against for the condition.
       If 'event_name' is specified this condition will apply to the name of the
       event.  Otherwise the condition will apply to a parameter with the
       specified name.
      
       This value cannot contain spaces.
       
      string field = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The field to set.
      Returns:
      This builder for chaining.
    • clearField

      public MatchingCondition.Builder clearField()
       Required. The name of the field that is compared against for the condition.
       If 'event_name' is specified this condition will apply to the name of the
       event.  Otherwise the condition will apply to a parameter with the
       specified name.
      
       This value cannot contain spaces.
       
      string field = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setFieldBytes

      public MatchingCondition.Builder setFieldBytes(com.google.protobuf.ByteString value)
       Required. The name of the field that is compared against for the condition.
       If 'event_name' is specified this condition will apply to the name of the
       event.  Otherwise the condition will apply to a parameter with the
       specified name.
      
       This value cannot contain spaces.
       
      string field = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for field to set.
      Returns:
      This builder for chaining.
    • getComparisonTypeValue

      public int getComparisonTypeValue()
       Required. The type of comparison to be applied to the value.
       
      .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getComparisonTypeValue in interface MatchingConditionOrBuilder
      Returns:
      The enum numeric value on the wire for comparisonType.
    • setComparisonTypeValue

      public MatchingCondition.Builder setComparisonTypeValue(int value)
       Required. The type of comparison to be applied to the value.
       
      .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for comparisonType to set.
      Returns:
      This builder for chaining.
    • getComparisonType

      public MatchingCondition.ComparisonType getComparisonType()
       Required. The type of comparison to be applied to the value.
       
      .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getComparisonType in interface MatchingConditionOrBuilder
      Returns:
      The comparisonType.
    • setComparisonType

       Required. The type of comparison to be applied to the value.
       
      .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The comparisonType to set.
      Returns:
      This builder for chaining.
    • clearComparisonType

      public MatchingCondition.Builder clearComparisonType()
       Required. The type of comparison to be applied to the value.
       
      .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getValue

      public String getValue()
       Required. The value being compared against for this condition.  The runtime
       implementation may perform type coercion of this value to evaluate this
       condition based on the type of the parameter value.
       
      string value = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getValue in interface MatchingConditionOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       Required. The value being compared against for this condition.  The runtime
       implementation may perform type coercion of this value to evaluate this
       condition based on the type of the parameter value.
       
      string value = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getValueBytes in interface MatchingConditionOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public MatchingCondition.Builder setValue(String value)
       Required. The value being compared against for this condition.  The runtime
       implementation may perform type coercion of this value to evaluate this
       condition based on the type of the parameter value.
       
      string value = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public MatchingCondition.Builder clearValue()
       Required. The value being compared against for this condition.  The runtime
       implementation may perform type coercion of this value to evaluate this
       condition based on the type of the parameter value.
       
      string value = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setValueBytes

      public MatchingCondition.Builder setValueBytes(com.google.protobuf.ByteString value)
       Required. The value being compared against for this condition.  The runtime
       implementation may perform type coercion of this value to evaluate this
       condition based on the type of the parameter value.
       
      string value = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.
    • getNegated

      public boolean getNegated()
       Whether or not the result of the comparison should be negated. For example,
       if `negated` is true, then 'equals' comparisons would function as 'not
       equals'.
       
      bool negated = 4;
      Specified by:
      getNegated in interface MatchingConditionOrBuilder
      Returns:
      The negated.
    • setNegated

      public MatchingCondition.Builder setNegated(boolean value)
       Whether or not the result of the comparison should be negated. For example,
       if `negated` is true, then 'equals' comparisons would function as 'not
       equals'.
       
      bool negated = 4;
      Parameters:
      value - The negated to set.
      Returns:
      This builder for chaining.
    • clearNegated

      public MatchingCondition.Builder clearNegated()
       Whether or not the result of the comparison should be negated. For example,
       if `negated` is true, then 'equals' comparisons would function as 'not
       equals'.
       
      bool negated = 4;
      Returns:
      This builder for chaining.