public static final class AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder extends GeneratedMessage.Builder<AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder> implements AudienceSegment.RuleBasedFirstPartyAudienceSegmentOrBuilder An AudienceSegment owned by the publisher network that contains a rule.
Protobuf type
google.ads.admanager.v1.AudienceSegment.RuleBasedFirstPartyAudienceSegment
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AudienceSegment.RuleBasedFirstPartyAudienceSegment.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AudienceSegment.RuleBasedFirstPartyAudienceSegment build()| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment |
|
buildPartial()
public AudienceSegment.RuleBasedFirstPartyAudienceSegment buildPartial()| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment |
|
clear()
public AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder clear()| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder |
|
clearMembershipExpirationDays()
public AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder clearMembershipExpirationDays() Required. Number of days after which a user's cookie will be removed from
the AudienceSegment due to inactivity. The field can be between 1 and
540.
optional int64 membership_expiration_days = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder |
This builder for chaining. |
clearPageViews()
public AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder clearPageViews() Required. Number of times a user's cookie must match the rule before
it's associated with the AudienceSegment. This is used with
recency_days to determine eligibility of the association. This
attribute is between 1 and 12.
optional int64 page_views = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder |
This builder for chaining. |
clearRecencyDays()
public AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder clearRecencyDays() Optional. Number of days within which a user's cookie must match the
rule before it's associated with the AudienceSegment. This is used
with page_views to determine eligibility of the association. This
attribute is required if page_views is greater than 1. When set, it can
be between 1 and 30.
optional int64 recency_days = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder |
This builder for chaining. |
clearRule()
public AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder clearRule() Required. The rule definition which determines the eligibility criteria
for the AudienceSegment.
.google.ads.admanager.v1.AudienceSegment.Rule rule = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder |
|
getDefaultInstanceForType()
public AudienceSegment.RuleBasedFirstPartyAudienceSegment getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMembershipExpirationDays()
public long getMembershipExpirationDays() Required. Number of days after which a user's cookie will be removed from
the AudienceSegment due to inactivity. The field can be between 1 and
540.
optional int64 membership_expiration_days = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
long |
The membershipExpirationDays. |
getPageViews()
public long getPageViews() Required. Number of times a user's cookie must match the rule before
it's associated with the AudienceSegment. This is used with
recency_days to determine eligibility of the association. This
attribute is between 1 and 12.
optional int64 page_views = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
long |
The pageViews. |
getRecencyDays()
public long getRecencyDays() Optional. Number of days within which a user's cookie must match the
rule before it's associated with the AudienceSegment. This is used
with page_views to determine eligibility of the association. This
attribute is required if page_views is greater than 1. When set, it can
be between 1 and 30.
optional int64 recency_days = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The recencyDays. |
getRule()
public AudienceSegment.Rule getRule() Required. The rule definition which determines the eligibility criteria
for the AudienceSegment.
.google.ads.admanager.v1.AudienceSegment.Rule rule = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule |
The rule. |
getRuleBuilder()
public AudienceSegment.Rule.Builder getRuleBuilder() Required. The rule definition which determines the eligibility criteria
for the AudienceSegment.
.google.ads.admanager.v1.AudienceSegment.Rule rule = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Rule.Builder |
|
getRuleOrBuilder()
public AudienceSegment.RuleOrBuilder getRuleOrBuilder() Required. The rule definition which determines the eligibility criteria
for the AudienceSegment.
.google.ads.admanager.v1.AudienceSegment.Rule rule = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleOrBuilder |
|
hasMembershipExpirationDays()
public boolean hasMembershipExpirationDays() Required. Number of days after which a user's cookie will be removed from
the AudienceSegment due to inactivity. The field can be between 1 and
540.
optional int64 membership_expiration_days = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the membershipExpirationDays field is set. |
hasPageViews()
public boolean hasPageViews() Required. Number of times a user's cookie must match the rule before
it's associated with the AudienceSegment. This is used with
recency_days to determine eligibility of the association. This
attribute is between 1 and 12.
optional int64 page_views = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pageViews field is set. |
hasRecencyDays()
public boolean hasRecencyDays() Optional. Number of days within which a user's cookie must match the
rule before it's associated with the AudienceSegment. This is used
with page_views to determine eligibility of the association. This
attribute is required if page_views is greater than 1. When set, it can
be between 1 and 30.
optional int64 recency_days = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the recencyDays field is set. |
hasRule()
public boolean hasRule() Required. The rule definition which determines the eligibility criteria
for the AudienceSegment.
.google.ads.admanager.v1.AudienceSegment.Rule rule = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the rule field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AudienceSegment.RuleBasedFirstPartyAudienceSegment other)
public AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder mergeFrom(AudienceSegment.RuleBasedFirstPartyAudienceSegment other)| Parameter | |
|---|---|
| Name | Description |
other |
AudienceSegment.RuleBasedFirstPartyAudienceSegment |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder |
|
mergeRule(AudienceSegment.Rule value)
public AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder mergeRule(AudienceSegment.Rule value) Required. The rule definition which determines the eligibility criteria
for the AudienceSegment.
.google.ads.admanager.v1.AudienceSegment.Rule rule = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
AudienceSegment.Rule |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder |
|
setMembershipExpirationDays(long value)
public AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder setMembershipExpirationDays(long value) Required. Number of days after which a user's cookie will be removed from
the AudienceSegment due to inactivity. The field can be between 1 and
540.
optional int64 membership_expiration_days = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe membershipExpirationDays to set. |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder |
This builder for chaining. |
setPageViews(long value)
public AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder setPageViews(long value) Required. Number of times a user's cookie must match the rule before
it's associated with the AudienceSegment. This is used with
recency_days to determine eligibility of the association. This
attribute is between 1 and 12.
optional int64 page_views = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe pageViews to set. |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder |
This builder for chaining. |
setRecencyDays(long value)
public AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder setRecencyDays(long value) Optional. Number of days within which a user's cookie must match the
rule before it's associated with the AudienceSegment. This is used
with page_views to determine eligibility of the association. This
attribute is required if page_views is greater than 1. When set, it can
be between 1 and 30.
optional int64 recency_days = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe recencyDays to set. |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder |
This builder for chaining. |
setRule(AudienceSegment.Rule value)
public AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder setRule(AudienceSegment.Rule value) Required. The rule definition which determines the eligibility criteria
for the AudienceSegment.
.google.ads.admanager.v1.AudienceSegment.Rule rule = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
AudienceSegment.Rule |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder |
|
setRule(AudienceSegment.Rule.Builder builderForValue)
public AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder setRule(AudienceSegment.Rule.Builder builderForValue) Required. The rule definition which determines the eligibility criteria
for the AudienceSegment.
.google.ads.admanager.v1.AudienceSegment.Rule rule = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AudienceSegment.Rule.Builder |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.RuleBasedFirstPartyAudienceSegment.Builder |
|