public static final class ProductAccount.Builder extends GeneratedMessageV3.Builder<ProductAccount.Builder> implements ProductAccountOrBuilderRepresents a specific account.
Protobuf type google.ads.datamanager.v1.ProductAccount
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ProductAccount.BuilderImplements
ProductAccountOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProductAccount.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
|
build()
public ProductAccount build()| Returns | |
|---|---|
| Type | Description |
ProductAccount |
|
buildPartial()
public ProductAccount buildPartial()| Returns | |
|---|---|
| Type | Description |
ProductAccount |
|
clear()
public ProductAccount.Builder clear()| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
|
clearAccountId()
public ProductAccount.Builder clearAccountId()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 |
ProductAccount.Builder |
This builder for chaining. |
clearAccountType()
public ProductAccount.Builder clearAccountType() 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.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ProductAccount.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public ProductAccount.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
|
clearProduct() (deprecated)
public ProductAccount.Builder clearProduct()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 |
ProductAccount.Builder |
This builder for chaining. |
clone()
public ProductAccount.Builder clone()| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
|
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ProductAccount other)
public ProductAccount.Builder mergeFrom(ProductAccount other)| Parameter | |
|---|---|
| Name | Description |
other |
ProductAccount |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ProductAccount.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ProductAccount.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProductAccount.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
|
setAccountId(String value)
public ProductAccount.Builder setAccountId(String value)Required. The ID of the account. For example, your Google Ads account ID.
string account_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe accountId to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
This builder for chaining. |
setAccountIdBytes(ByteString value)
public ProductAccount.Builder setAccountIdBytes(ByteString value)Required. The ID of the account. For example, your Google Ads account ID.
string account_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for accountId to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
This builder for chaining. |
setAccountType(ProductAccount.AccountType value)
public ProductAccount.Builder setAccountType(ProductAccount.AccountType value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ProductAccount.AccountTypeThe accountType to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
This builder for chaining. |
setAccountTypeValue(int value)
public ProductAccount.Builder setAccountTypeValue(int value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for accountType to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ProductAccount.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
|
setProduct(Product value) (deprecated)
public ProductAccount.Builder setProduct(Product value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ProductThe product to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
This builder for chaining. |
setProductValue(int value) (deprecated)
public ProductAccount.Builder setProductValue(int value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for product to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProductAccount.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ProductAccount.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ProductAccount.Builder |
|