Send feedback
Class UserSegment.Builder (0.23.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.23.0 keyboard_arrow_down
public static final class UserSegment . Builder extends GeneratedMessageV3 . Builder<UserSegment . Builder > implements UserSegmentOrBuilder
User segments are subsets of users who engaged with your site or app. For
example, users who have previously purchased; users who added items to their
shopping carts, but didn’t complete a purchase.
Protobuf type google.analytics.data.v1alpha.UserSegment
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UserSegment . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public UserSegment build ()
Returns
buildPartial()
public UserSegment buildPartial ()
Returns
clear()
public UserSegment . Builder clear ()
Returns
Overrides
clearExclusion()
public UserSegment . Builder clearExclusion ()
Defines which users are excluded in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public UserSegment . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UserSegment . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearUserInclusionCriteria()
public UserSegment . Builder clearUserInclusionCriteria ()
Defines which users are included in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1;
Returns
clone()
public UserSegment . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public UserSegment getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getExclusion()
public UserSegmentExclusion getExclusion ()
Defines which users are excluded in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2;
Returns
getExclusionBuilder()
public UserSegmentExclusion . Builder getExclusionBuilder ()
Defines which users are excluded in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2;
Returns
getExclusionOrBuilder()
public UserSegmentExclusionOrBuilder getExclusionOrBuilder ()
Defines which users are excluded in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2;
Returns
getUserInclusionCriteria()
public UserSegmentCriteria getUserInclusionCriteria ()
Defines which users are included in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1;
Returns
getUserInclusionCriteriaBuilder()
public UserSegmentCriteria . Builder getUserInclusionCriteriaBuilder ()
Defines which users are included in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1;
Returns
getUserInclusionCriteriaOrBuilder()
public UserSegmentCriteriaOrBuilder getUserInclusionCriteriaOrBuilder ()
Defines which users are included in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1;
Returns
hasExclusion()
public boolean hasExclusion ()
Defines which users are excluded in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2;
Returns
Type Description boolean
Whether the exclusion field is set.
hasUserInclusionCriteria()
public boolean hasUserInclusionCriteria ()
Defines which users are included in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1;
Returns
Type Description boolean
Whether the userInclusionCriteria field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeExclusion(UserSegmentExclusion value)
public UserSegment . Builder mergeExclusion ( UserSegmentExclusion value )
Defines which users are excluded in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2;
Parameter
Returns
mergeFrom(UserSegment other)
public UserSegment . Builder mergeFrom ( UserSegment other )
Parameter
Returns
public UserSegment . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public UserSegment . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UserSegment . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
mergeUserInclusionCriteria(UserSegmentCriteria value)
public UserSegment . Builder mergeUserInclusionCriteria ( UserSegmentCriteria value )
Defines which users are included in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1;
Parameter
Returns
setExclusion(UserSegmentExclusion value)
public UserSegment . Builder setExclusion ( UserSegmentExclusion value )
Defines which users are excluded in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2;
Parameter
Returns
setExclusion(UserSegmentExclusion.Builder builderForValue)
public UserSegment . Builder setExclusion ( UserSegmentExclusion . Builder builderForValue )
Defines which users are excluded in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public UserSegment . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UserSegment . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UserSegment . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setUserInclusionCriteria(UserSegmentCriteria value)
public UserSegment . Builder setUserInclusionCriteria ( UserSegmentCriteria value )
Defines which users are included in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1;
Parameter
Returns
setUserInclusionCriteria(UserSegmentCriteria.Builder builderForValue)
public UserSegment . Builder setUserInclusionCriteria ( UserSegmentCriteria . Builder builderForValue )
Defines which users are included in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1;
Parameter
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]