Class SegmentParameterFilterScoping.Builder

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

public static final class SegmentParameterFilterScoping.Builder extends com.google.protobuf.GeneratedMessage.Builder<SegmentParameterFilterScoping.Builder> implements SegmentParameterFilterScopingOrBuilder
 Scopings specify how multiple events should be considered when evaluating a
 segment parameter filter.
 
Protobuf type google.analytics.data.v1alpha.SegmentParameterFilterScoping
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Accumulates the parameter over the specified period of days before applying the filter.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    long
    Accumulates the parameter over the specified period of days before applying the filter.
    boolean
    Accumulates the parameter over the specified period of days before applying the filter.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setInAnyNDayPeriod(long value)
    Accumulates the parameter over the specified period of days before applying the filter.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<SegmentParameterFilterScoping.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<SegmentParameterFilterScoping.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<SegmentParameterFilterScoping.Builder>
    • getDefaultInstanceForType

      public SegmentParameterFilterScoping 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 SegmentParameterFilterScoping buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public SegmentParameterFilterScoping.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<SegmentParameterFilterScoping.Builder>
      Throws:
      IOException
    • hasInAnyNDayPeriod

      public boolean hasInAnyNDayPeriod()
       Accumulates the parameter over the specified period of days before
       applying the filter. Only supported if criteria scoping is
       `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
       parameter is `event_count`.
      
       For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
       the event parameter is "event_count", and the Filter's criteria is
       greater than 5, this filter will accumulate the event count of purchase
       events over every 3 consecutive day period in the report's date range; a
       user will pass this Filter's criteria to be included in this segment if
       their count of purchase events exceeds 5 in any 3 consecutive day period.
       For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
       2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
      
       The date range is not extended for the purpose of having a full N day
       window near the start of the date range. For example if a report is for
       2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
       period will be effectively shortened because no event data outside the
       report's date range will be read. For example, the first four periods
       will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
       2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
      
       `inAnyNDayPeriod` is optional. If not specified, the
       `segmentParameterFilter` is applied to each event individually.
       
      optional int64 in_any_n_day_period = 1;
      Specified by:
      hasInAnyNDayPeriod in interface SegmentParameterFilterScopingOrBuilder
      Returns:
      Whether the inAnyNDayPeriod field is set.
    • getInAnyNDayPeriod

      public long getInAnyNDayPeriod()
       Accumulates the parameter over the specified period of days before
       applying the filter. Only supported if criteria scoping is
       `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
       parameter is `event_count`.
      
       For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
       the event parameter is "event_count", and the Filter's criteria is
       greater than 5, this filter will accumulate the event count of purchase
       events over every 3 consecutive day period in the report's date range; a
       user will pass this Filter's criteria to be included in this segment if
       their count of purchase events exceeds 5 in any 3 consecutive day period.
       For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
       2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
      
       The date range is not extended for the purpose of having a full N day
       window near the start of the date range. For example if a report is for
       2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
       period will be effectively shortened because no event data outside the
       report's date range will be read. For example, the first four periods
       will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
       2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
      
       `inAnyNDayPeriod` is optional. If not specified, the
       `segmentParameterFilter` is applied to each event individually.
       
      optional int64 in_any_n_day_period = 1;
      Specified by:
      getInAnyNDayPeriod in interface SegmentParameterFilterScopingOrBuilder
      Returns:
      The inAnyNDayPeriod.
    • setInAnyNDayPeriod

      public SegmentParameterFilterScoping.Builder setInAnyNDayPeriod(long value)
       Accumulates the parameter over the specified period of days before
       applying the filter. Only supported if criteria scoping is
       `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
       parameter is `event_count`.
      
       For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
       the event parameter is "event_count", and the Filter's criteria is
       greater than 5, this filter will accumulate the event count of purchase
       events over every 3 consecutive day period in the report's date range; a
       user will pass this Filter's criteria to be included in this segment if
       their count of purchase events exceeds 5 in any 3 consecutive day period.
       For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
       2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
      
       The date range is not extended for the purpose of having a full N day
       window near the start of the date range. For example if a report is for
       2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
       period will be effectively shortened because no event data outside the
       report's date range will be read. For example, the first four periods
       will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
       2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
      
       `inAnyNDayPeriod` is optional. If not specified, the
       `segmentParameterFilter` is applied to each event individually.
       
      optional int64 in_any_n_day_period = 1;
      Parameters:
      value - The inAnyNDayPeriod to set.
      Returns:
      This builder for chaining.
    • clearInAnyNDayPeriod

      public SegmentParameterFilterScoping.Builder clearInAnyNDayPeriod()
       Accumulates the parameter over the specified period of days before
       applying the filter. Only supported if criteria scoping is
       `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
       parameter is `event_count`.
      
       For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
       the event parameter is "event_count", and the Filter's criteria is
       greater than 5, this filter will accumulate the event count of purchase
       events over every 3 consecutive day period in the report's date range; a
       user will pass this Filter's criteria to be included in this segment if
       their count of purchase events exceeds 5 in any 3 consecutive day period.
       For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
       2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
      
       The date range is not extended for the purpose of having a full N day
       window near the start of the date range. For example if a report is for
       2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
       period will be effectively shortened because no event data outside the
       report's date range will be read. For example, the first four periods
       will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
       2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
      
       `inAnyNDayPeriod` is optional. If not specified, the
       `segmentParameterFilter` is applied to each event individually.
       
      optional int64 in_any_n_day_period = 1;
      Returns:
      This builder for chaining.