Class ProductAccount (0.1.0)

public final class ProductAccount extends GeneratedMessageV3 implements ProductAccountOrBuilder

Represents a specific account.

Protobuf type google.ads.datamanager.v1.ProductAccount

Static Fields

ACCOUNT_ID_FIELD_NUMBER

public static final int ACCOUNT_ID_FIELD_NUMBER
Field Value
Type Description
int

ACCOUNT_TYPE_FIELD_NUMBER

public static final int ACCOUNT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

PRODUCT_FIELD_NUMBER

public static final int PRODUCT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProductAccount getDefaultInstance()
Returns
Type Description
ProductAccount

getDescriptor()

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

newBuilder()

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

newBuilder(ProductAccount prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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 ID of the account. For example, your Google Ads account ID.

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

Returns
Type Description
String

The accountId.

getAccountIdBytes()

public ByteString getAccountIdBytes()

Required. The ID of the account. For example, your Google Ads account ID.

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

Returns
Type Description
ByteString

The bytes for accountId.

getAccountType()

public ProductAccount.AccountType getAccountType()

Optional. The type of the account. For example, GOOGLE_ADS. Either account_type or the deprecated product is required. If both are set, the values must match.

.google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProductAccount.AccountType

The accountType.

getAccountTypeValue()

public int getAccountTypeValue()

Optional. The type of the account. For example, GOOGLE_ADS. Either account_type or the deprecated product is required. If both are set, the values must match.

.google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for accountType.

getDefaultInstanceForType()

public ProductAccount getDefaultInstanceForType()
Returns
Type Description
ProductAccount

getParserForType()

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

getProduct() (deprecated)

public Product getProduct()

Deprecated. google.ads.datamanager.v1.ProductAccount.product is deprecated. See google/ads/datamanager/v1/destination.proto;l=90

Deprecated. Use account_type instead.

.google.ads.datamanager.v1.Product product = 1 [deprecated = true];

Returns
Type Description
Product

The product.

getProductValue() (deprecated)

public int getProductValue()

Deprecated. google.ads.datamanager.v1.ProductAccount.product is deprecated. See google/ads/datamanager/v1/destination.proto;l=90

Deprecated. Use account_type instead.

.google.ads.datamanager.v1.Product product = 1 [deprecated = true];

Returns
Type Description
int

The enum numeric value on the wire for product.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProductAccount.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ProductAccount.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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