public static final class PartnerCustomerAccount.Builder extends GeneratedMessage.Builder<PartnerCustomerAccount.Builder> implements PartnerCustomerAccountOrBuilderRepresents a customer account in the partner's system.
Protobuf type google.ads.datamanager.v1.PartnerCustomerAccount
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PartnerCustomerAccount.BuilderImplements
PartnerCustomerAccountOrBuilderStatic 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 |
|
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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PartnerCustomerAccount.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PartnerCustomerAccount.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for accountType to set. |
| Returns | |
|---|---|
| Type | Description |
PartnerCustomerAccount.Builder |
This builder for chaining. |