Class PartnerAudienceInfo.Builder (0.8.0)

public static final class PartnerAudienceInfo.Builder extends GeneratedMessage.Builder<PartnerAudienceInfo.Builder> implements PartnerAudienceInfoOrBuilder

Additional information for partner audiences.

This feature is only available to data partners.

Protobuf type google.ads.datamanager.v1.PartnerAudienceInfo

Static Methods

getDescriptor()

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

Methods

build()

public PartnerAudienceInfo build()
Returns
Type Description
PartnerAudienceInfo

buildPartial()

public PartnerAudienceInfo buildPartial()
Returns
Type Description
PartnerAudienceInfo

clear()

public PartnerAudienceInfo.Builder clear()
Returns
Type Description
PartnerAudienceInfo.Builder
Overrides

clearCommercePartner()

public PartnerAudienceInfo.Builder clearCommercePartner()

Optional. The commerce partner name. Only allowed if partner_audience_source is COMMERCE_AUDIENCE.

optional string commerce_partner = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PartnerAudienceInfo.Builder

This builder for chaining.

clearPartnerAudienceSource()

public PartnerAudienceInfo.Builder clearPartnerAudienceSource()

Required. Immutable. The source of the partner audience.

optional .google.ads.datamanager.v1.PartnerAudienceInfo.PartnerAudienceSource partner_audience_source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
PartnerAudienceInfo.Builder

This builder for chaining.

getCommercePartner()

public String getCommercePartner()

Optional. The commerce partner name. Only allowed if partner_audience_source is COMMERCE_AUDIENCE.

optional string commerce_partner = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The commercePartner.

getCommercePartnerBytes()

public ByteString getCommercePartnerBytes()

Optional. The commerce partner name. Only allowed if partner_audience_source is COMMERCE_AUDIENCE.

optional string commerce_partner = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for commercePartner.

getDefaultInstanceForType()

public PartnerAudienceInfo getDefaultInstanceForType()
Returns
Type Description
PartnerAudienceInfo

getDescriptorForType()

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

getPartnerAudienceSource()

public PartnerAudienceInfo.PartnerAudienceSource getPartnerAudienceSource()

Required. Immutable. The source of the partner audience.

optional .google.ads.datamanager.v1.PartnerAudienceInfo.PartnerAudienceSource partner_audience_source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
PartnerAudienceInfo.PartnerAudienceSource

The partnerAudienceSource.

getPartnerAudienceSourceValue()

public int getPartnerAudienceSourceValue()

Required. Immutable. The source of the partner audience.

optional .google.ads.datamanager.v1.PartnerAudienceInfo.PartnerAudienceSource partner_audience_source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The enum numeric value on the wire for partnerAudienceSource.

hasCommercePartner()

public boolean hasCommercePartner()

Optional. The commerce partner name. Only allowed if partner_audience_source is COMMERCE_AUDIENCE.

optional string commerce_partner = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the commercePartner field is set.

hasPartnerAudienceSource()

public boolean hasPartnerAudienceSource()

Required. Immutable. The source of the partner audience.

optional .google.ads.datamanager.v1.PartnerAudienceInfo.PartnerAudienceSource partner_audience_source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the partnerAudienceSource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PartnerAudienceInfo other)

public PartnerAudienceInfo.Builder mergeFrom(PartnerAudienceInfo other)
Parameter
Name Description
other PartnerAudienceInfo
Returns
Type Description
PartnerAudienceInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PartnerAudienceInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PartnerAudienceInfo.Builder
Overrides

setCommercePartner(String value)

public PartnerAudienceInfo.Builder setCommercePartner(String value)

Optional. The commerce partner name. Only allowed if partner_audience_source is COMMERCE_AUDIENCE.

optional string commerce_partner = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The commercePartner to set.

Returns
Type Description
PartnerAudienceInfo.Builder

This builder for chaining.

setCommercePartnerBytes(ByteString value)

public PartnerAudienceInfo.Builder setCommercePartnerBytes(ByteString value)

Optional. The commerce partner name. Only allowed if partner_audience_source is COMMERCE_AUDIENCE.

optional string commerce_partner = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for commercePartner to set.

Returns
Type Description
PartnerAudienceInfo.Builder

This builder for chaining.

setPartnerAudienceSource(PartnerAudienceInfo.PartnerAudienceSource value)

public PartnerAudienceInfo.Builder setPartnerAudienceSource(PartnerAudienceInfo.PartnerAudienceSource value)

Required. Immutable. The source of the partner audience.

optional .google.ads.datamanager.v1.PartnerAudienceInfo.PartnerAudienceSource partner_audience_source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value PartnerAudienceInfo.PartnerAudienceSource

The partnerAudienceSource to set.

Returns
Type Description
PartnerAudienceInfo.Builder

This builder for chaining.

setPartnerAudienceSourceValue(int value)

public PartnerAudienceInfo.Builder setPartnerAudienceSourceValue(int value)

Required. Immutable. The source of the partner audience.

optional .google.ads.datamanager.v1.PartnerAudienceInfo.PartnerAudienceSource partner_audience_source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value int

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

Returns
Type Description
PartnerAudienceInfo.Builder

This builder for chaining.