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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UserSegment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UserSegment build()
buildPartial()
public UserSegment buildPartial()
clear()
public UserSegment.Builder clear()
Overrides
clearExclusion()
public UserSegment.Builder clearExclusion()
Defines which users are excluded in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2;
clearField(Descriptors.FieldDescriptor field)
public UserSegment.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UserSegment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearUserInclusionCriteria()
public UserSegment.Builder clearUserInclusionCriteria()
Defines which users are included in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1;
clone()
public UserSegment.Builder clone()
Overrides
getDefaultInstanceForType()
public UserSegment getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getExclusion()
public UserSegmentExclusion getExclusion()
Defines which users are excluded in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2;
getExclusionBuilder()
public UserSegmentExclusion.Builder getExclusionBuilder()
Defines which users are excluded in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2;
getExclusionOrBuilder()
public UserSegmentExclusionOrBuilder getExclusionOrBuilder()
Defines which users are excluded in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2;
getUserInclusionCriteria()
public UserSegmentCriteria getUserInclusionCriteria()
Defines which users are included in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1;
getUserInclusionCriteriaBuilder()
public UserSegmentCriteria.Builder getUserInclusionCriteriaBuilder()
Defines which users are included in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1;
getUserInclusionCriteriaOrBuilder()
public UserSegmentCriteriaOrBuilder getUserInclusionCriteriaOrBuilder()
Defines which users are included in this segment. Optional.
.google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1;
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(UserSegment other)
public UserSegment.Builder mergeFrom(UserSegment other)
public UserSegment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UserSegment.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UserSegment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public UserSegment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UserSegment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UserSegment.Builder setUnknownFields(UnknownFieldSet unknownFields)
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;
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;