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\u2019t 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