Class UserSegmentCriteria.Builder

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

public static final class UserSegmentCriteria.Builder extends com.google.protobuf.GeneratedMessage.Builder<UserSegmentCriteria.Builder> implements UserSegmentCriteriaOrBuilder
 A user matches a criteria if the user's events meet the conditions in the
 criteria.
 
Protobuf type google.analytics.data.v1alpha.UserSegmentCriteria
  • 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<UserSegmentCriteria.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<UserSegmentCriteria.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<UserSegmentCriteria.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public UserSegmentCriteria.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<UserSegmentCriteria.Builder>
      Throws:
      IOException
    • getAndConditionGroupsList

      public List<UserSegmentConditionGroup> getAndConditionGroupsList()
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
      Specified by:
      getAndConditionGroupsList in interface UserSegmentCriteriaOrBuilder
    • getAndConditionGroupsCount

      public int getAndConditionGroupsCount()
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
      Specified by:
      getAndConditionGroupsCount in interface UserSegmentCriteriaOrBuilder
    • getAndConditionGroups

      public UserSegmentConditionGroup getAndConditionGroups(int index)
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
      Specified by:
      getAndConditionGroups in interface UserSegmentCriteriaOrBuilder
    • setAndConditionGroups

      public UserSegmentCriteria.Builder setAndConditionGroups(int index, UserSegmentConditionGroup value)
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
    • setAndConditionGroups

      public UserSegmentCriteria.Builder setAndConditionGroups(int index, UserSegmentConditionGroup.Builder builderForValue)
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
    • addAndConditionGroups

      public UserSegmentCriteria.Builder addAndConditionGroups(UserSegmentConditionGroup value)
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
    • addAndConditionGroups

      public UserSegmentCriteria.Builder addAndConditionGroups(int index, UserSegmentConditionGroup value)
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
    • addAndConditionGroups

      public UserSegmentCriteria.Builder addAndConditionGroups(UserSegmentConditionGroup.Builder builderForValue)
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
    • addAndConditionGroups

      public UserSegmentCriteria.Builder addAndConditionGroups(int index, UserSegmentConditionGroup.Builder builderForValue)
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
    • addAllAndConditionGroups

      public UserSegmentCriteria.Builder addAllAndConditionGroups(Iterable<? extends UserSegmentConditionGroup> values)
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
    • clearAndConditionGroups

      public UserSegmentCriteria.Builder clearAndConditionGroups()
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
    • removeAndConditionGroups

      public UserSegmentCriteria.Builder removeAndConditionGroups(int index)
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
    • getAndConditionGroupsBuilder

      public UserSegmentConditionGroup.Builder getAndConditionGroupsBuilder(int index)
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
    • getAndConditionGroupsOrBuilder

      public UserSegmentConditionGroupOrBuilder getAndConditionGroupsOrBuilder(int index)
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
      Specified by:
      getAndConditionGroupsOrBuilder in interface UserSegmentCriteriaOrBuilder
    • getAndConditionGroupsOrBuilderList

      public List<? extends UserSegmentConditionGroupOrBuilder> getAndConditionGroupsOrBuilderList()
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
      Specified by:
      getAndConditionGroupsOrBuilderList in interface UserSegmentCriteriaOrBuilder
    • addAndConditionGroupsBuilder

      public UserSegmentConditionGroup.Builder addAndConditionGroupsBuilder()
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
    • addAndConditionGroupsBuilder

      public UserSegmentConditionGroup.Builder addAndConditionGroupsBuilder(int index)
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
    • getAndConditionGroupsBuilderList

      public List<UserSegmentConditionGroup.Builder> getAndConditionGroupsBuilderList()
       A user matches this criteria if the user matches each of these
       `andConditionGroups` and each of the `andSequenceGroups`.
       `andConditionGroups` may be empty if `andSequenceGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1;
    • getAndSequenceGroupsList

      public List<UserSegmentSequenceGroup> getAndSequenceGroupsList()
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
      Specified by:
      getAndSequenceGroupsList in interface UserSegmentCriteriaOrBuilder
    • getAndSequenceGroupsCount

      public int getAndSequenceGroupsCount()
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
      Specified by:
      getAndSequenceGroupsCount in interface UserSegmentCriteriaOrBuilder
    • getAndSequenceGroups

      public UserSegmentSequenceGroup getAndSequenceGroups(int index)
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
      Specified by:
      getAndSequenceGroups in interface UserSegmentCriteriaOrBuilder
    • setAndSequenceGroups

      public UserSegmentCriteria.Builder setAndSequenceGroups(int index, UserSegmentSequenceGroup value)
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
    • setAndSequenceGroups

      public UserSegmentCriteria.Builder setAndSequenceGroups(int index, UserSegmentSequenceGroup.Builder builderForValue)
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
    • addAndSequenceGroups

      public UserSegmentCriteria.Builder addAndSequenceGroups(UserSegmentSequenceGroup value)
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
    • addAndSequenceGroups

      public UserSegmentCriteria.Builder addAndSequenceGroups(int index, UserSegmentSequenceGroup value)
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
    • addAndSequenceGroups

      public UserSegmentCriteria.Builder addAndSequenceGroups(UserSegmentSequenceGroup.Builder builderForValue)
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
    • addAndSequenceGroups

      public UserSegmentCriteria.Builder addAndSequenceGroups(int index, UserSegmentSequenceGroup.Builder builderForValue)
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
    • addAllAndSequenceGroups

      public UserSegmentCriteria.Builder addAllAndSequenceGroups(Iterable<? extends UserSegmentSequenceGroup> values)
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
    • clearAndSequenceGroups

      public UserSegmentCriteria.Builder clearAndSequenceGroups()
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
    • removeAndSequenceGroups

      public UserSegmentCriteria.Builder removeAndSequenceGroups(int index)
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
    • getAndSequenceGroupsBuilder

      public UserSegmentSequenceGroup.Builder getAndSequenceGroupsBuilder(int index)
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
    • getAndSequenceGroupsOrBuilder

      public UserSegmentSequenceGroupOrBuilder getAndSequenceGroupsOrBuilder(int index)
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
      Specified by:
      getAndSequenceGroupsOrBuilder in interface UserSegmentCriteriaOrBuilder
    • getAndSequenceGroupsOrBuilderList

      public List<? extends UserSegmentSequenceGroupOrBuilder> getAndSequenceGroupsOrBuilderList()
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
      Specified by:
      getAndSequenceGroupsOrBuilderList in interface UserSegmentCriteriaOrBuilder
    • addAndSequenceGroupsBuilder

      public UserSegmentSequenceGroup.Builder addAndSequenceGroupsBuilder()
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
    • addAndSequenceGroupsBuilder

      public UserSegmentSequenceGroup.Builder addAndSequenceGroupsBuilder(int index)
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;
    • getAndSequenceGroupsBuilderList

      public List<UserSegmentSequenceGroup.Builder> getAndSequenceGroupsBuilderList()
       A user matches this criteria if the user matches each of these
       `andSequenceGroups` and each of the `andConditionGroups`.
       `andSequenceGroups` may be empty if `andConditionGroups` are specified.
       
      repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2;