Class RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder (0.8.0)

public static final class RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder extends GeneratedMessage.Builder<RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder> implements RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttributeOrBuilder

Insights for a collection of related attributes of the same dimension.

Protobuf type google.ads.datamanager.v1.RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute build()
Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute

buildPartial()

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute buildPartial()
Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute

clear()

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder clear()
Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder
Overrides

clearAgeRange()

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder clearAgeRange()

Age range of the audience for which the lift is provided.

optional .google.ads.datamanager.v1.AgeRange age_range = 3;

Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder

This builder for chaining.

clearGender()

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder clearGender()

Gender of the audience for which the lift is provided.

optional .google.ads.datamanager.v1.Gender gender = 4;

Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder

This builder for chaining.

clearLift()

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder clearLift()

Measure of lift that the audience has for the attribute value as compared to the baseline. Range [0-1].

optional float lift = 2;

Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder

This builder for chaining.

clearUserInterestId()

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder clearUserInterestId()

The user interest ID.

optional int64 user_interest_id = 1;

Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder

This builder for chaining.

getAgeRange()

public AgeRange getAgeRange()

Age range of the audience for which the lift is provided.

optional .google.ads.datamanager.v1.AgeRange age_range = 3;

Returns
Type Description
AgeRange

The ageRange.

getAgeRangeValue()

public int getAgeRangeValue()

Age range of the audience for which the lift is provided.

optional .google.ads.datamanager.v1.AgeRange age_range = 3;

Returns
Type Description
int

The enum numeric value on the wire for ageRange.

getDefaultInstanceForType()

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute getDefaultInstanceForType()
Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGender()

public Gender getGender()

Gender of the audience for which the lift is provided.

optional .google.ads.datamanager.v1.Gender gender = 4;

Returns
Type Description
Gender

The gender.

getGenderValue()

public int getGenderValue()

Gender of the audience for which the lift is provided.

optional .google.ads.datamanager.v1.Gender gender = 4;

Returns
Type Description
int

The enum numeric value on the wire for gender.

getLift()

public float getLift()

Measure of lift that the audience has for the attribute value as compared to the baseline. Range [0-1].

optional float lift = 2;

Returns
Type Description
float

The lift.

getUserInterestId()

public long getUserInterestId()

The user interest ID.

optional int64 user_interest_id = 1;

Returns
Type Description
long

The userInterestId.

hasAgeRange()

public boolean hasAgeRange()

Age range of the audience for which the lift is provided.

optional .google.ads.datamanager.v1.AgeRange age_range = 3;

Returns
Type Description
boolean

Whether the ageRange field is set.

hasGender()

public boolean hasGender()

Gender of the audience for which the lift is provided.

optional .google.ads.datamanager.v1.Gender gender = 4;

Returns
Type Description
boolean

Whether the gender field is set.

hasLift()

public boolean hasLift()

Measure of lift that the audience has for the attribute value as compared to the baseline. Range [0-1].

optional float lift = 2;

Returns
Type Description
boolean

Whether the lift field is set.

hasUserInterestId()

public boolean hasUserInterestId()

The user interest ID.

optional int64 user_interest_id = 1;

Returns
Type Description
boolean

Whether the userInterestId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute other)

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder mergeFrom(RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute other)
Parameter
Name Description
other RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute
Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder
Overrides

setAgeRange(AgeRange value)

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder setAgeRange(AgeRange value)

Age range of the audience for which the lift is provided.

optional .google.ads.datamanager.v1.AgeRange age_range = 3;

Parameter
Name Description
value AgeRange

The ageRange to set.

Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder

This builder for chaining.

setAgeRangeValue(int value)

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder setAgeRangeValue(int value)

Age range of the audience for which the lift is provided.

optional .google.ads.datamanager.v1.AgeRange age_range = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for ageRange to set.

Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder

This builder for chaining.

setGender(Gender value)

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder setGender(Gender value)

Gender of the audience for which the lift is provided.

optional .google.ads.datamanager.v1.Gender gender = 4;

Parameter
Name Description
value Gender

The gender to set.

Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder

This builder for chaining.

setGenderValue(int value)

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder setGenderValue(int value)

Gender of the audience for which the lift is provided.

optional .google.ads.datamanager.v1.Gender gender = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for gender to set.

Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder

This builder for chaining.

setLift(float value)

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder setLift(float value)

Measure of lift that the audience has for the attribute value as compared to the baseline. Range [0-1].

optional float lift = 2;

Parameter
Name Description
value float

The lift to set.

Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder

This builder for chaining.

setUserInterestId(long value)

public RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder setUserInterestId(long value)

The user interest ID.

optional int64 user_interest_id = 1;

Parameter
Name Description
value long

The userInterestId to set.

Returns
Type Description
RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute.Builder

This builder for chaining.