Class UserSegmentExclusion.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UserSegmentExclusion.Builder>
com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder
- All Implemented Interfaces:
UserSegmentExclusionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UserSegmentExclusion
public static final class UserSegmentExclusion.Builder
extends com.google.protobuf.GeneratedMessage.Builder<UserSegmentExclusion.Builder>
implements UserSegmentExclusionOrBuilder
Specifies which users are excluded in this segment.Protobuf type
google.analytics.data.v1alpha.UserSegmentExclusion-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.Specifies how long an exclusion will last if a user matches the `userExclusionCriteria`.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.If a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.If a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.Specifies how long an exclusion will last if a user matches the `userExclusionCriteria`.intSpecifies how long an exclusion will last if a user matches the `userExclusionCriteria`.booleanIf a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(UserSegmentExclusion other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) If a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.If a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.setUserExclusionCriteria(UserSegmentCriteria.Builder builderForValue) If a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.Specifies how long an exclusion will last if a user matches the `userExclusionCriteria`.setUserExclusionDurationValue(int value) Specifies how long an exclusion will last if a user matches the `userExclusionCriteria`.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UserSegmentExclusion.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<UserSegmentExclusion.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<UserSegmentExclusion.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UserSegmentExclusion.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<UserSegmentExclusion.Builder>
-
mergeFrom
public UserSegmentExclusion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UserSegmentExclusion.Builder>- Throws:
IOException
-
getUserExclusionDurationValue
public int getUserExclusionDurationValue()Specifies how long an exclusion will last if a user matches the `userExclusionCriteria`. Optional. If unspecified, `userExclusionDuration` of `USER_EXCLUSION_TEMPORARY` is used.
.google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1;- Specified by:
getUserExclusionDurationValuein interfaceUserSegmentExclusionOrBuilder- Returns:
- The enum numeric value on the wire for userExclusionDuration.
-
setUserExclusionDurationValue
Specifies how long an exclusion will last if a user matches the `userExclusionCriteria`. Optional. If unspecified, `userExclusionDuration` of `USER_EXCLUSION_TEMPORARY` is used.
.google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1;- Parameters:
value- The enum numeric value on the wire for userExclusionDuration to set.- Returns:
- This builder for chaining.
-
getUserExclusionDuration
Specifies how long an exclusion will last if a user matches the `userExclusionCriteria`. Optional. If unspecified, `userExclusionDuration` of `USER_EXCLUSION_TEMPORARY` is used.
.google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1;- Specified by:
getUserExclusionDurationin interfaceUserSegmentExclusionOrBuilder- Returns:
- The userExclusionDuration.
-
setUserExclusionDuration
Specifies how long an exclusion will last if a user matches the `userExclusionCriteria`. Optional. If unspecified, `userExclusionDuration` of `USER_EXCLUSION_TEMPORARY` is used.
.google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1;- Parameters:
value- The userExclusionDuration to set.- Returns:
- This builder for chaining.
-
clearUserExclusionDuration
Specifies how long an exclusion will last if a user matches the `userExclusionCriteria`. Optional. If unspecified, `userExclusionDuration` of `USER_EXCLUSION_TEMPORARY` is used.
.google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1;- Returns:
- This builder for chaining.
-
hasUserExclusionCriteria
public boolean hasUserExclusionCriteria()If a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.
.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2;- Specified by:
hasUserExclusionCriteriain interfaceUserSegmentExclusionOrBuilder- Returns:
- Whether the userExclusionCriteria field is set.
-
getUserExclusionCriteria
If a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.
.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2;- Specified by:
getUserExclusionCriteriain interfaceUserSegmentExclusionOrBuilder- Returns:
- The userExclusionCriteria.
-
setUserExclusionCriteria
If a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.
.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; -
setUserExclusionCriteria
public UserSegmentExclusion.Builder setUserExclusionCriteria(UserSegmentCriteria.Builder builderForValue) If a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.
.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; -
mergeUserExclusionCriteria
If a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.
.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; -
clearUserExclusionCriteria
If a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.
.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; -
getUserExclusionCriteriaBuilder
If a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.
.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; -
getUserExclusionCriteriaOrBuilder
If a user meets this condition, the user is excluded from membership in the segment for the `userExclusionDuration`.
.google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2;- Specified by:
getUserExclusionCriteriaOrBuilderin interfaceUserSegmentExclusionOrBuilder
-