public static final class PartnerAudienceInfo.Builder extends GeneratedMessage.Builder<PartnerAudienceInfo.Builder> implements PartnerAudienceInfoOrBuilderAdditional information for partner audiences.
This feature is only available to data partners.
Protobuf type google.ads.datamanager.v1.PartnerAudienceInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PartnerAudienceInfo.BuilderImplements
PartnerAudienceInfoOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PartnerAudienceInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PartnerAudienceInfo.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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.PartnerAudienceSourceThe 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 |
intThe enum numeric value on the wire for partnerAudienceSource to set. |
| Returns | |
|---|---|
| Type | Description |
PartnerAudienceInfo.Builder |
This builder for chaining. |