Class PartnerAudienceInfo (0.8.0)

public final class PartnerAudienceInfo extends GeneratedMessage implements PartnerAudienceInfoOrBuilder

Additional information for partner audiences.

This feature is only available to data partners.

Protobuf type google.ads.datamanager.v1.PartnerAudienceInfo

Static Fields

COMMERCE_PARTNER_FIELD_NUMBER

public static final int COMMERCE_PARTNER_FIELD_NUMBER
Field Value
Type Description
int

PARTNER_AUDIENCE_SOURCE_FIELD_NUMBER

public static final int PARTNER_AUDIENCE_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PartnerAudienceInfo getDefaultInstance()
Returns
Type Description
PartnerAudienceInfo

getDescriptor()

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

newBuilder()

public static PartnerAudienceInfo.Builder newBuilder()
Returns
Type Description
PartnerAudienceInfo.Builder

newBuilder(PartnerAudienceInfo prototype)

public static PartnerAudienceInfo.Builder newBuilder(PartnerAudienceInfo prototype)
Parameter
Name Description
prototype PartnerAudienceInfo
Returns
Type Description
PartnerAudienceInfo.Builder

parseDelimitedFrom(InputStream input)

public static PartnerAudienceInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PartnerAudienceInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PartnerAudienceInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartnerAudienceInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PartnerAudienceInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PartnerAudienceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PartnerAudienceInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartnerAudienceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PartnerAudienceInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PartnerAudienceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PartnerAudienceInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartnerAudienceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PartnerAudienceInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PartnerAudienceInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PartnerAudienceInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartnerAudienceInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PartnerAudienceInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PartnerAudienceInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PartnerAudienceInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartnerAudienceInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PartnerAudienceInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PartnerAudienceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PartnerAudienceInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartnerAudienceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PartnerAudienceInfo> parser()
Returns
Type Description
Parser<PartnerAudienceInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

getParserForType()

public Parser<PartnerAudienceInfo> getParserForType()
Returns
Type Description
Parser<PartnerAudienceInfo>
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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PartnerAudienceInfo.Builder newBuilderForType()
Returns
Type Description
PartnerAudienceInfo.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PartnerAudienceInfo.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PartnerAudienceInfo.Builder
Overrides

toBuilder()

public PartnerAudienceInfo.Builder toBuilder()
Returns
Type Description
PartnerAudienceInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException