Class PartnerCustomerAccount.Builder (0.16.0)

public static final class PartnerCustomerAccount.Builder extends GeneratedMessage.Builder<PartnerCustomerAccount.Builder> implements PartnerCustomerAccountOrBuilder

Represents a customer account in the partner's system.

Protobuf type google.ads.datamanager.v1.PartnerCustomerAccount

Static Methods

getDescriptor()

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

Methods

build()

public PartnerCustomerAccount build()
Returns
Type Description
PartnerCustomerAccount

buildPartial()

public PartnerCustomerAccount buildPartial()
Returns
Type Description
PartnerCustomerAccount

clear()

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

clearAccountId()

public PartnerCustomerAccount.Builder clearAccountId()

Required. The identifier of the customer account in the partner's ID space.

string account_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PartnerCustomerAccount.Builder

This builder for chaining.

clearAccountName()

public PartnerCustomerAccount.Builder clearAccountName()

Optional. The name of the account.

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

Returns
Type Description
PartnerCustomerAccount.Builder

This builder for chaining.

clearAccountType()

public PartnerCustomerAccount.Builder clearAccountType()

Optional. The type of the account. Can be used to distinguish between advertiser accounts and business level accounts, for example.

string account_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PartnerCustomerAccount.Builder

This builder for chaining.

getAccountId()

public String getAccountId()

Required. The identifier of the customer account in the partner's ID space.

string account_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The accountId.

getAccountIdBytes()

public ByteString getAccountIdBytes()

Required. The identifier of the customer account in the partner's ID space.

string account_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for accountId.

getAccountName()

public String getAccountName()

Optional. The name of the account.

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

Returns
Type Description
String

The accountName.

getAccountNameBytes()

public ByteString getAccountNameBytes()

Optional. The name of the account.

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

Returns
Type Description
ByteString

The bytes for accountName.

getAccountType()

public String getAccountType()

Optional. The type of the account. Can be used to distinguish between advertiser accounts and business level accounts, for example.

string account_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The accountType.

getAccountTypeBytes()

public ByteString getAccountTypeBytes()

Optional. The type of the account. Can be used to distinguish between advertiser accounts and business level accounts, for example.

string account_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for accountType.

getDefaultInstanceForType()

public PartnerCustomerAccount getDefaultInstanceForType()
Returns
Type Description
PartnerCustomerAccount

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(PartnerCustomerAccount other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAccountId(String value)

public PartnerCustomerAccount.Builder setAccountId(String value)

Required. The identifier of the customer account in the partner's ID space.

string account_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The accountId to set.

Returns
Type Description
PartnerCustomerAccount.Builder

This builder for chaining.

setAccountIdBytes(ByteString value)

public PartnerCustomerAccount.Builder setAccountIdBytes(ByteString value)

Required. The identifier of the customer account in the partner's ID space.

string account_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for accountId to set.

Returns
Type Description
PartnerCustomerAccount.Builder

This builder for chaining.

setAccountName(String value)

public PartnerCustomerAccount.Builder setAccountName(String value)

Optional. The name of the account.

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

Parameter
Name Description
value String

The accountName to set.

Returns
Type Description
PartnerCustomerAccount.Builder

This builder for chaining.

setAccountNameBytes(ByteString value)

public PartnerCustomerAccount.Builder setAccountNameBytes(ByteString value)

Optional. The name of the account.

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

Parameter
Name Description
value ByteString

The bytes for accountName to set.

Returns
Type Description
PartnerCustomerAccount.Builder

This builder for chaining.

setAccountType(String value)

public PartnerCustomerAccount.Builder setAccountType(String value)

Optional. The type of the account. Can be used to distinguish between advertiser accounts and business level accounts, for example.

string account_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The accountType to set.

Returns
Type Description
PartnerCustomerAccount.Builder

This builder for chaining.

setAccountTypeBytes(ByteString value)

public PartnerCustomerAccount.Builder setAccountTypeBytes(ByteString value)

Optional. The type of the account. Can be used to distinguish between advertiser accounts and business level accounts, for example.

string account_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for accountType to set.

Returns
Type Description
PartnerCustomerAccount.Builder

This builder for chaining.