Class PrivateAuctionDeal.BuyerData.Builder (0.44.0)

public static final class PrivateAuctionDeal.BuyerData.Builder extends GeneratedMessage.Builder<PrivateAuctionDeal.BuyerData.Builder> implements PrivateAuctionDeal.BuyerDataOrBuilder

Contains buyer data. This data is required by the Marketplace API.

Protobuf type google.ads.admanager.v1.PrivateAuctionDeal.BuyerData

Static Methods

getDescriptor()

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

Methods

addAllBuyerEmails(Iterable<String> values)

public PrivateAuctionDeal.BuyerData.Builder addAllBuyerEmails(Iterable<String> values)

Optional. The email contacts of the buyer of the PrivateAuctionDeal.

repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The buyerEmails to add.

Returns
Type Description
PrivateAuctionDeal.BuyerData.Builder

This builder for chaining.

addBuyerEmails(String value)

public PrivateAuctionDeal.BuyerData.Builder addBuyerEmails(String value)

Optional. The email contacts of the buyer of the PrivateAuctionDeal.

repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The buyerEmails to add.

Returns
Type Description
PrivateAuctionDeal.BuyerData.Builder

This builder for chaining.

addBuyerEmailsBytes(ByteString value)

public PrivateAuctionDeal.BuyerData.Builder addBuyerEmailsBytes(ByteString value)

Optional. The email contacts of the buyer of the PrivateAuctionDeal.

repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the buyerEmails to add.

Returns
Type Description
PrivateAuctionDeal.BuyerData.Builder

This builder for chaining.

build()

public PrivateAuctionDeal.BuyerData build()
Returns
Type Description
PrivateAuctionDeal.BuyerData

buildPartial()

public PrivateAuctionDeal.BuyerData buildPartial()
Returns
Type Description
PrivateAuctionDeal.BuyerData

clear()

public PrivateAuctionDeal.BuyerData.Builder clear()
Returns
Type Description
PrivateAuctionDeal.BuyerData.Builder
Overrides

clearBuyerEmails()

public PrivateAuctionDeal.BuyerData.Builder clearBuyerEmails()

Optional. The email contacts of the buyer of the PrivateAuctionDeal.

repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrivateAuctionDeal.BuyerData.Builder

This builder for chaining.

getBuyerEmails(int index)

public String getBuyerEmails(int index)

Optional. The email contacts of the buyer of the PrivateAuctionDeal.

repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The buyerEmails at the given index.

getBuyerEmailsBytes(int index)

public ByteString getBuyerEmailsBytes(int index)

Optional. The email contacts of the buyer of the PrivateAuctionDeal.

repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the buyerEmails at the given index.

getBuyerEmailsCount()

public int getBuyerEmailsCount()

Optional. The email contacts of the buyer of the PrivateAuctionDeal.

repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of buyerEmails.

getBuyerEmailsList()

public ProtocolStringList getBuyerEmailsList()

Optional. The email contacts of the buyer of the PrivateAuctionDeal.

repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the buyerEmails.

getDefaultInstanceForType()

public PrivateAuctionDeal.BuyerData getDefaultInstanceForType()
Returns
Type Description
PrivateAuctionDeal.BuyerData

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PrivateAuctionDeal.BuyerData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBuyerEmails(int index, String value)

public PrivateAuctionDeal.BuyerData.Builder setBuyerEmails(int index, String value)

Optional. The email contacts of the buyer of the PrivateAuctionDeal.

repeated string buyer_emails = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The buyerEmails to set.

Returns
Type Description
PrivateAuctionDeal.BuyerData.Builder

This builder for chaining.