Class SessionSegmentConditionGroup.Builder

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

public static final class SessionSegmentConditionGroup.Builder extends com.google.protobuf.GeneratedMessage.Builder<SessionSegmentConditionGroup.Builder> implements SessionSegmentConditionGroupOrBuilder
 Conditions tell Analytics what data to include in or exclude from the
 segment.
 
Protobuf type google.analytics.data.v1alpha.SessionSegmentConditionGroup
  • 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<SessionSegmentConditionGroup.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<SessionSegmentConditionGroup.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<SessionSegmentConditionGroup.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

      public SessionSegmentConditionGroup.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<SessionSegmentConditionGroup.Builder>
      Throws:
      IOException
    • getConditionScopingValue

      public int getConditionScopingValue()
       Data is included or excluded from the segment based on if it matches
       the condition group. This scoping defines how many events the
       `segmentFilterExpression` is evaluated on before the condition group
       is determined to be matched or not. For example if `conditionScoping =
       SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
       events in a session, and then, the condition group is determined to be
       matched or not for this session. For example if `conditionScoping =
       SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
       single event, and then, the condition group is determined to be matched or
       not for this session.
      
       Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
       is used.
       
      .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1;
      Specified by:
      getConditionScopingValue in interface SessionSegmentConditionGroupOrBuilder
      Returns:
      The enum numeric value on the wire for conditionScoping.
    • setConditionScopingValue

      public SessionSegmentConditionGroup.Builder setConditionScopingValue(int value)
       Data is included or excluded from the segment based on if it matches
       the condition group. This scoping defines how many events the
       `segmentFilterExpression` is evaluated on before the condition group
       is determined to be matched or not. For example if `conditionScoping =
       SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
       events in a session, and then, the condition group is determined to be
       matched or not for this session. For example if `conditionScoping =
       SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
       single event, and then, the condition group is determined to be matched or
       not for this session.
      
       Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
       is used.
       
      .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1;
      Parameters:
      value - The enum numeric value on the wire for conditionScoping to set.
      Returns:
      This builder for chaining.
    • getConditionScoping

      public SessionCriteriaScoping getConditionScoping()
       Data is included or excluded from the segment based on if it matches
       the condition group. This scoping defines how many events the
       `segmentFilterExpression` is evaluated on before the condition group
       is determined to be matched or not. For example if `conditionScoping =
       SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
       events in a session, and then, the condition group is determined to be
       matched or not for this session. For example if `conditionScoping =
       SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
       single event, and then, the condition group is determined to be matched or
       not for this session.
      
       Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
       is used.
       
      .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1;
      Specified by:
      getConditionScoping in interface SessionSegmentConditionGroupOrBuilder
      Returns:
      The conditionScoping.
    • setConditionScoping

       Data is included or excluded from the segment based on if it matches
       the condition group. This scoping defines how many events the
       `segmentFilterExpression` is evaluated on before the condition group
       is determined to be matched or not. For example if `conditionScoping =
       SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
       events in a session, and then, the condition group is determined to be
       matched or not for this session. For example if `conditionScoping =
       SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
       single event, and then, the condition group is determined to be matched or
       not for this session.
      
       Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
       is used.
       
      .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1;
      Parameters:
      value - The conditionScoping to set.
      Returns:
      This builder for chaining.
    • clearConditionScoping

      public SessionSegmentConditionGroup.Builder clearConditionScoping()
       Data is included or excluded from the segment based on if it matches
       the condition group. This scoping defines how many events the
       `segmentFilterExpression` is evaluated on before the condition group
       is determined to be matched or not. For example if `conditionScoping =
       SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
       events in a session, and then, the condition group is determined to be
       matched or not for this session. For example if `conditionScoping =
       SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
       single event, and then, the condition group is determined to be matched or
       not for this session.
      
       Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
       is used.
       
      .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1;
      Returns:
      This builder for chaining.
    • hasSegmentFilterExpression

      public boolean hasSegmentFilterExpression()
       Data is included or excluded from the segment based on if it matches
       this expression. Expressions express criteria on dimension, metrics,
       and/or parameters.
       
      .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
      Specified by:
      hasSegmentFilterExpression in interface SessionSegmentConditionGroupOrBuilder
      Returns:
      Whether the segmentFilterExpression field is set.
    • getSegmentFilterExpression

      public SegmentFilterExpression getSegmentFilterExpression()
       Data is included or excluded from the segment based on if it matches
       this expression. Expressions express criteria on dimension, metrics,
       and/or parameters.
       
      .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
      Specified by:
      getSegmentFilterExpression in interface SessionSegmentConditionGroupOrBuilder
      Returns:
      The segmentFilterExpression.
    • setSegmentFilterExpression

      public SessionSegmentConditionGroup.Builder setSegmentFilterExpression(SegmentFilterExpression value)
       Data is included or excluded from the segment based on if it matches
       this expression. Expressions express criteria on dimension, metrics,
       and/or parameters.
       
      .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
    • setSegmentFilterExpression

      public SessionSegmentConditionGroup.Builder setSegmentFilterExpression(SegmentFilterExpression.Builder builderForValue)
       Data is included or excluded from the segment based on if it matches
       this expression. Expressions express criteria on dimension, metrics,
       and/or parameters.
       
      .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
    • mergeSegmentFilterExpression

      public SessionSegmentConditionGroup.Builder mergeSegmentFilterExpression(SegmentFilterExpression value)
       Data is included or excluded from the segment based on if it matches
       this expression. Expressions express criteria on dimension, metrics,
       and/or parameters.
       
      .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
    • clearSegmentFilterExpression

      public SessionSegmentConditionGroup.Builder clearSegmentFilterExpression()
       Data is included or excluded from the segment based on if it matches
       this expression. Expressions express criteria on dimension, metrics,
       and/or parameters.
       
      .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
    • getSegmentFilterExpressionBuilder

      public SegmentFilterExpression.Builder getSegmentFilterExpressionBuilder()
       Data is included or excluded from the segment based on if it matches
       this expression. Expressions express criteria on dimension, metrics,
       and/or parameters.
       
      .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
    • getSegmentFilterExpressionOrBuilder

      public SegmentFilterExpressionOrBuilder getSegmentFilterExpressionOrBuilder()
       Data is included or excluded from the segment based on if it matches
       this expression. Expressions express criteria on dimension, metrics,
       and/or parameters.
       
      .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
      Specified by:
      getSegmentFilterExpressionOrBuilder in interface SessionSegmentConditionGroupOrBuilder