Class PrivateAuctionDeal.BuyerData.Builder (0.27.0)

public static final class PrivateAuctionDeal.BuyerData.Builder extends GeneratedMessageV3.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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PrivateAuctionDeal.BuyerData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PrivateAuctionDeal.BuyerData.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public PrivateAuctionDeal.BuyerData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PrivateAuctionDeal.BuyerData.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PrivateAuctionDeal.BuyerData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PrivateAuctionDeal.BuyerData.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrivateAuctionDeal.BuyerData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public PrivateAuctionDeal.BuyerData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PrivateAuctionDeal.BuyerData.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PrivateAuctionDeal.BuyerData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PrivateAuctionDeal.BuyerData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PrivateAuctionDeal.BuyerData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PrivateAuctionDeal.BuyerData.Builder
Overrides