Class CreateAndConfigureAccountRequest.AddAccountService.Builder (1.11.0)

public static final class CreateAndConfigureAccountRequest.AddAccountService.Builder extends GeneratedMessage.Builder<CreateAndConfigureAccountRequest.AddAccountService.Builder> implements CreateAndConfigureAccountRequest.AddAccountServiceOrBuilder

Additional instructions to add account services during creation of the account.

Protobuf type google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest.AddAccountService

Static Methods

getDescriptor()

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

Methods

build()

public CreateAndConfigureAccountRequest.AddAccountService build()
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService

buildPartial()

public CreateAndConfigureAccountRequest.AddAccountService buildPartial()
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService

clear()

public CreateAndConfigureAccountRequest.AddAccountService.Builder clear()
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder
Overrides

clearAccountAggregation()

public CreateAndConfigureAccountRequest.AddAccountService.Builder clearAccountAggregation()

The provider is an aggregator for the account. Payload for service type Account Aggregation.

.google.shopping.merchant.accounts.v1.AccountAggregation account_aggregation = 103;

Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

clearAccountManagement()

public CreateAndConfigureAccountRequest.AddAccountService.Builder clearAccountManagement()

The provider manages this account. Payload for service type Account Management.

.google.shopping.merchant.accounts.v1.AccountManagement account_management = 104;

Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

clearCampaignsManagement()

public CreateAndConfigureAccountRequest.AddAccountService.Builder clearCampaignsManagement()

The provider manages campaigns for this account. Payload for service type campaigns management.

.google.shopping.merchant.accounts.v1.CampaignsManagement campaigns_management = 107;

Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

clearComparisonShopping()

public CreateAndConfigureAccountRequest.AddAccountService.Builder clearComparisonShopping()

The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type Comparison Shopping.

.google.shopping.merchant.accounts.v1.ComparisonShopping comparison_shopping = 105;

Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

clearExternalAccountId()

public CreateAndConfigureAccountRequest.AddAccountService.Builder clearExternalAccountId()

Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify).

If you have multiple accounts with the same provider - for instance, different accounts for various regions — the external_account_id differentiates between them, ensuring accurate linking and integration between Google and the provider.

The external account ID must be specified for the campaigns management service type.

The external account ID must not be specified for the account aggregation service type.

The external account ID is optional / may be specified for all other service types.

string external_account_id = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

This builder for chaining.

clearProductsManagement()

public CreateAndConfigureAccountRequest.AddAccountService.Builder clearProductsManagement()

The provider manages products for this account. Payload for service type products management.

.google.shopping.merchant.accounts.v1.ProductsManagement products_management = 106;

Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

clearProvider()

public CreateAndConfigureAccountRequest.AddAccountService.Builder clearProvider()

Required. The provider of the service. Either the reference to an account such as providers/123 or a well-known service provider (one of providers/GOOGLE_ADS or providers/GOOGLE_BUSINESS_PROFILE).

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

Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

This builder for chaining.

clearServiceType()

public CreateAndConfigureAccountRequest.AddAccountService.Builder clearServiceType()
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

getAccountAggregation()

public AccountAggregation getAccountAggregation()

The provider is an aggregator for the account. Payload for service type Account Aggregation.

.google.shopping.merchant.accounts.v1.AccountAggregation account_aggregation = 103;

Returns
Type Description
AccountAggregation

The accountAggregation.

getAccountAggregationBuilder()

public AccountAggregation.Builder getAccountAggregationBuilder()

The provider is an aggregator for the account. Payload for service type Account Aggregation.

.google.shopping.merchant.accounts.v1.AccountAggregation account_aggregation = 103;

Returns
Type Description
AccountAggregation.Builder

getAccountAggregationOrBuilder()

public AccountAggregationOrBuilder getAccountAggregationOrBuilder()

The provider is an aggregator for the account. Payload for service type Account Aggregation.

.google.shopping.merchant.accounts.v1.AccountAggregation account_aggregation = 103;

Returns
Type Description
AccountAggregationOrBuilder

getAccountManagement()

public AccountManagement getAccountManagement()

The provider manages this account. Payload for service type Account Management.

.google.shopping.merchant.accounts.v1.AccountManagement account_management = 104;

Returns
Type Description
AccountManagement

The accountManagement.

getAccountManagementBuilder()

public AccountManagement.Builder getAccountManagementBuilder()

The provider manages this account. Payload for service type Account Management.

.google.shopping.merchant.accounts.v1.AccountManagement account_management = 104;

Returns
Type Description
AccountManagement.Builder

getAccountManagementOrBuilder()

public AccountManagementOrBuilder getAccountManagementOrBuilder()

The provider manages this account. Payload for service type Account Management.

.google.shopping.merchant.accounts.v1.AccountManagement account_management = 104;

Returns
Type Description
AccountManagementOrBuilder

getCampaignsManagement()

public CampaignsManagement getCampaignsManagement()

The provider manages campaigns for this account. Payload for service type campaigns management.

.google.shopping.merchant.accounts.v1.CampaignsManagement campaigns_management = 107;

Returns
Type Description
CampaignsManagement

The campaignsManagement.

getCampaignsManagementBuilder()

public CampaignsManagement.Builder getCampaignsManagementBuilder()

The provider manages campaigns for this account. Payload for service type campaigns management.

.google.shopping.merchant.accounts.v1.CampaignsManagement campaigns_management = 107;

Returns
Type Description
CampaignsManagement.Builder

getCampaignsManagementOrBuilder()

public CampaignsManagementOrBuilder getCampaignsManagementOrBuilder()

The provider manages campaigns for this account. Payload for service type campaigns management.

.google.shopping.merchant.accounts.v1.CampaignsManagement campaigns_management = 107;

Returns
Type Description
CampaignsManagementOrBuilder

getComparisonShopping()

public ComparisonShopping getComparisonShopping()

The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type Comparison Shopping.

.google.shopping.merchant.accounts.v1.ComparisonShopping comparison_shopping = 105;

Returns
Type Description
ComparisonShopping

The comparisonShopping.

getComparisonShoppingBuilder()

public ComparisonShopping.Builder getComparisonShoppingBuilder()

The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type Comparison Shopping.

.google.shopping.merchant.accounts.v1.ComparisonShopping comparison_shopping = 105;

Returns
Type Description
ComparisonShopping.Builder

getComparisonShoppingOrBuilder()

public ComparisonShoppingOrBuilder getComparisonShoppingOrBuilder()

The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type Comparison Shopping.

.google.shopping.merchant.accounts.v1.ComparisonShopping comparison_shopping = 105;

Returns
Type Description
ComparisonShoppingOrBuilder

getDefaultInstanceForType()

public CreateAndConfigureAccountRequest.AddAccountService getDefaultInstanceForType()
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExternalAccountId()

public String getExternalAccountId()

Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify).

If you have multiple accounts with the same provider - for instance, different accounts for various regions — the external_account_id differentiates between them, ensuring accurate linking and integration between Google and the provider.

The external account ID must be specified for the campaigns management service type.

The external account ID must not be specified for the account aggregation service type.

The external account ID is optional / may be specified for all other service types.

string external_account_id = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The externalAccountId.

getExternalAccountIdBytes()

public ByteString getExternalAccountIdBytes()

Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify).

If you have multiple accounts with the same provider - for instance, different accounts for various regions — the external_account_id differentiates between them, ensuring accurate linking and integration between Google and the provider.

The external account ID must be specified for the campaigns management service type.

The external account ID must not be specified for the account aggregation service type.

The external account ID is optional / may be specified for all other service types.

string external_account_id = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for externalAccountId.

getProductsManagement()

public ProductsManagement getProductsManagement()

The provider manages products for this account. Payload for service type products management.

.google.shopping.merchant.accounts.v1.ProductsManagement products_management = 106;

Returns
Type Description
ProductsManagement

The productsManagement.

getProductsManagementBuilder()

public ProductsManagement.Builder getProductsManagementBuilder()

The provider manages products for this account. Payload for service type products management.

.google.shopping.merchant.accounts.v1.ProductsManagement products_management = 106;

Returns
Type Description
ProductsManagement.Builder

getProductsManagementOrBuilder()

public ProductsManagementOrBuilder getProductsManagementOrBuilder()

The provider manages products for this account. Payload for service type products management.

.google.shopping.merchant.accounts.v1.ProductsManagement products_management = 106;

Returns
Type Description
ProductsManagementOrBuilder

getProvider()

public String getProvider()

Required. The provider of the service. Either the reference to an account such as providers/123 or a well-known service provider (one of providers/GOOGLE_ADS or providers/GOOGLE_BUSINESS_PROFILE).

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

Returns
Type Description
String

The provider.

getProviderBytes()

public ByteString getProviderBytes()

Required. The provider of the service. Either the reference to an account such as providers/123 or a well-known service provider (one of providers/GOOGLE_ADS or providers/GOOGLE_BUSINESS_PROFILE).

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

Returns
Type Description
ByteString

The bytes for provider.

getServiceTypeCase()

public CreateAndConfigureAccountRequest.AddAccountService.ServiceTypeCase getServiceTypeCase()
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.ServiceTypeCase

hasAccountAggregation()

public boolean hasAccountAggregation()

The provider is an aggregator for the account. Payload for service type Account Aggregation.

.google.shopping.merchant.accounts.v1.AccountAggregation account_aggregation = 103;

Returns
Type Description
boolean

Whether the accountAggregation field is set.

hasAccountManagement()

public boolean hasAccountManagement()

The provider manages this account. Payload for service type Account Management.

.google.shopping.merchant.accounts.v1.AccountManagement account_management = 104;

Returns
Type Description
boolean

Whether the accountManagement field is set.

hasCampaignsManagement()

public boolean hasCampaignsManagement()

The provider manages campaigns for this account. Payload for service type campaigns management.

.google.shopping.merchant.accounts.v1.CampaignsManagement campaigns_management = 107;

Returns
Type Description
boolean

Whether the campaignsManagement field is set.

hasComparisonShopping()

public boolean hasComparisonShopping()

The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type Comparison Shopping.

.google.shopping.merchant.accounts.v1.ComparisonShopping comparison_shopping = 105;

Returns
Type Description
boolean

Whether the comparisonShopping field is set.

hasProductsManagement()

public boolean hasProductsManagement()

The provider manages products for this account. Payload for service type products management.

.google.shopping.merchant.accounts.v1.ProductsManagement products_management = 106;

Returns
Type Description
boolean

Whether the productsManagement field is set.

hasProvider()

public boolean hasProvider()

Required. The provider of the service. Either the reference to an account such as providers/123 or a well-known service provider (one of providers/GOOGLE_ADS or providers/GOOGLE_BUSINESS_PROFILE).

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

Returns
Type Description
boolean

Whether the provider field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAccountAggregation(AccountAggregation value)

public CreateAndConfigureAccountRequest.AddAccountService.Builder mergeAccountAggregation(AccountAggregation value)

The provider is an aggregator for the account. Payload for service type Account Aggregation.

.google.shopping.merchant.accounts.v1.AccountAggregation account_aggregation = 103;

Parameter
Name Description
value AccountAggregation
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

mergeAccountManagement(AccountManagement value)

public CreateAndConfigureAccountRequest.AddAccountService.Builder mergeAccountManagement(AccountManagement value)

The provider manages this account. Payload for service type Account Management.

.google.shopping.merchant.accounts.v1.AccountManagement account_management = 104;

Parameter
Name Description
value AccountManagement
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

mergeCampaignsManagement(CampaignsManagement value)

public CreateAndConfigureAccountRequest.AddAccountService.Builder mergeCampaignsManagement(CampaignsManagement value)

The provider manages campaigns for this account. Payload for service type campaigns management.

.google.shopping.merchant.accounts.v1.CampaignsManagement campaigns_management = 107;

Parameter
Name Description
value CampaignsManagement
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

mergeComparisonShopping(ComparisonShopping value)

public CreateAndConfigureAccountRequest.AddAccountService.Builder mergeComparisonShopping(ComparisonShopping value)

The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type Comparison Shopping.

.google.shopping.merchant.accounts.v1.ComparisonShopping comparison_shopping = 105;

Parameter
Name Description
value ComparisonShopping
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CreateAndConfigureAccountRequest.AddAccountService other)

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

mergeProductsManagement(ProductsManagement value)

public CreateAndConfigureAccountRequest.AddAccountService.Builder mergeProductsManagement(ProductsManagement value)

The provider manages products for this account. Payload for service type products management.

.google.shopping.merchant.accounts.v1.ProductsManagement products_management = 106;

Parameter
Name Description
value ProductsManagement
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

setAccountAggregation(AccountAggregation value)

public CreateAndConfigureAccountRequest.AddAccountService.Builder setAccountAggregation(AccountAggregation value)

The provider is an aggregator for the account. Payload for service type Account Aggregation.

.google.shopping.merchant.accounts.v1.AccountAggregation account_aggregation = 103;

Parameter
Name Description
value AccountAggregation
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

setAccountAggregation(AccountAggregation.Builder builderForValue)

public CreateAndConfigureAccountRequest.AddAccountService.Builder setAccountAggregation(AccountAggregation.Builder builderForValue)

The provider is an aggregator for the account. Payload for service type Account Aggregation.

.google.shopping.merchant.accounts.v1.AccountAggregation account_aggregation = 103;

Parameter
Name Description
builderForValue AccountAggregation.Builder
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

setAccountManagement(AccountManagement value)

public CreateAndConfigureAccountRequest.AddAccountService.Builder setAccountManagement(AccountManagement value)

The provider manages this account. Payload for service type Account Management.

.google.shopping.merchant.accounts.v1.AccountManagement account_management = 104;

Parameter
Name Description
value AccountManagement
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

setAccountManagement(AccountManagement.Builder builderForValue)

public CreateAndConfigureAccountRequest.AddAccountService.Builder setAccountManagement(AccountManagement.Builder builderForValue)

The provider manages this account. Payload for service type Account Management.

.google.shopping.merchant.accounts.v1.AccountManagement account_management = 104;

Parameter
Name Description
builderForValue AccountManagement.Builder
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

setCampaignsManagement(CampaignsManagement value)

public CreateAndConfigureAccountRequest.AddAccountService.Builder setCampaignsManagement(CampaignsManagement value)

The provider manages campaigns for this account. Payload for service type campaigns management.

.google.shopping.merchant.accounts.v1.CampaignsManagement campaigns_management = 107;

Parameter
Name Description
value CampaignsManagement
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

setCampaignsManagement(CampaignsManagement.Builder builderForValue)

public CreateAndConfigureAccountRequest.AddAccountService.Builder setCampaignsManagement(CampaignsManagement.Builder builderForValue)

The provider manages campaigns for this account. Payload for service type campaigns management.

.google.shopping.merchant.accounts.v1.CampaignsManagement campaigns_management = 107;

Parameter
Name Description
builderForValue CampaignsManagement.Builder
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

setComparisonShopping(ComparisonShopping value)

public CreateAndConfigureAccountRequest.AddAccountService.Builder setComparisonShopping(ComparisonShopping value)

The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type Comparison Shopping.

.google.shopping.merchant.accounts.v1.ComparisonShopping comparison_shopping = 105;

Parameter
Name Description
value ComparisonShopping
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

setComparisonShopping(ComparisonShopping.Builder builderForValue)

public CreateAndConfigureAccountRequest.AddAccountService.Builder setComparisonShopping(ComparisonShopping.Builder builderForValue)

The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type Comparison Shopping.

.google.shopping.merchant.accounts.v1.ComparisonShopping comparison_shopping = 105;

Parameter
Name Description
builderForValue ComparisonShopping.Builder
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

setExternalAccountId(String value)

public CreateAndConfigureAccountRequest.AddAccountService.Builder setExternalAccountId(String value)

Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify).

If you have multiple accounts with the same provider - for instance, different accounts for various regions — the external_account_id differentiates between them, ensuring accurate linking and integration between Google and the provider.

The external account ID must be specified for the campaigns management service type.

The external account ID must not be specified for the account aggregation service type.

The external account ID is optional / may be specified for all other service types.

string external_account_id = 3 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The externalAccountId to set.

Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

This builder for chaining.

setExternalAccountIdBytes(ByteString value)

public CreateAndConfigureAccountRequest.AddAccountService.Builder setExternalAccountIdBytes(ByteString value)

Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify).

If you have multiple accounts with the same provider - for instance, different accounts for various regions — the external_account_id differentiates between them, ensuring accurate linking and integration between Google and the provider.

The external account ID must be specified for the campaigns management service type.

The external account ID must not be specified for the account aggregation service type.

The external account ID is optional / may be specified for all other service types.

string external_account_id = 3 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for externalAccountId to set.

Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

This builder for chaining.

setProductsManagement(ProductsManagement value)

public CreateAndConfigureAccountRequest.AddAccountService.Builder setProductsManagement(ProductsManagement value)

The provider manages products for this account. Payload for service type products management.

.google.shopping.merchant.accounts.v1.ProductsManagement products_management = 106;

Parameter
Name Description
value ProductsManagement
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

setProductsManagement(ProductsManagement.Builder builderForValue)

public CreateAndConfigureAccountRequest.AddAccountService.Builder setProductsManagement(ProductsManagement.Builder builderForValue)

The provider manages products for this account. Payload for service type products management.

.google.shopping.merchant.accounts.v1.ProductsManagement products_management = 106;

Parameter
Name Description
builderForValue ProductsManagement.Builder
Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

setProvider(String value)

public CreateAndConfigureAccountRequest.AddAccountService.Builder setProvider(String value)

Required. The provider of the service. Either the reference to an account such as providers/123 or a well-known service provider (one of providers/GOOGLE_ADS or providers/GOOGLE_BUSINESS_PROFILE).

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

Parameter
Name Description
value String

The provider to set.

Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

This builder for chaining.

setProviderBytes(ByteString value)

public CreateAndConfigureAccountRequest.AddAccountService.Builder setProviderBytes(ByteString value)

Required. The provider of the service. Either the reference to an account such as providers/123 or a well-known service provider (one of providers/GOOGLE_ADS or providers/GOOGLE_BUSINESS_PROFILE).

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

Parameter
Name Description
value ByteString

The bytes for provider to set.

Returns
Type Description
CreateAndConfigureAccountRequest.AddAccountService.Builder

This builder for chaining.