Class PartnerCustomerAccount (0.16.0)

public final class PartnerCustomerAccount extends GeneratedMessage implements PartnerCustomerAccountOrBuilder

Represents a customer account in the partner's system.

Protobuf type google.ads.datamanager.v1.PartnerCustomerAccount

Static Fields

ACCOUNT_ID_FIELD_NUMBER

public static final int ACCOUNT_ID_FIELD_NUMBER
Field Value
Type Description
int

ACCOUNT_NAME_FIELD_NUMBER

public static final int ACCOUNT_NAME_FIELD_NUMBER
Field Value
Type Description
int

ACCOUNT_TYPE_FIELD_NUMBER

public static final int ACCOUNT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PartnerCustomerAccount getDefaultInstance()
Returns
Type Description
PartnerCustomerAccount

getDescriptor()

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

newBuilder()

public static PartnerCustomerAccount.Builder newBuilder()
Returns
Type Description
PartnerCustomerAccount.Builder

newBuilder(PartnerCustomerAccount prototype)

public static PartnerCustomerAccount.Builder newBuilder(PartnerCustomerAccount prototype)
Parameter
Name Description
prototype PartnerCustomerAccount
Returns
Type Description
PartnerCustomerAccount.Builder

parseDelimitedFrom(InputStream input)

public static PartnerCustomerAccount parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PartnerCustomerAccount
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PartnerCustomerAccount parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartnerCustomerAccount
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PartnerCustomerAccount parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PartnerCustomerAccount
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PartnerCustomerAccount parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartnerCustomerAccount
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PartnerCustomerAccount parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PartnerCustomerAccount
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PartnerCustomerAccount parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartnerCustomerAccount
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PartnerCustomerAccount parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PartnerCustomerAccount
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PartnerCustomerAccount parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartnerCustomerAccount
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PartnerCustomerAccount parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PartnerCustomerAccount
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PartnerCustomerAccount parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartnerCustomerAccount
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PartnerCustomerAccount parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PartnerCustomerAccount
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PartnerCustomerAccount parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartnerCustomerAccount
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PartnerCustomerAccount> parser()
Returns
Type Description
Parser<PartnerCustomerAccount>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

getParserForType()

public Parser<PartnerCustomerAccount> getParserForType()
Returns
Type Description
Parser<PartnerCustomerAccount>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PartnerCustomerAccount.Builder newBuilderForType()
Returns
Type Description
PartnerCustomerAccount.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PartnerCustomerAccount.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PartnerCustomerAccount.Builder
Overrides

toBuilder()

public PartnerCustomerAccount.Builder toBuilder()
Returns
Type Description
PartnerCustomerAccount.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException