Class ProposeAccountServiceRequest.Builder (1.16.0)

public static final class ProposeAccountServiceRequest.Builder extends GeneratedMessage.Builder<ProposeAccountServiceRequest.Builder> implements ProposeAccountServiceRequestOrBuilder

Request to propose an account service.

Protobuf type google.shopping.merchant.accounts.v1.ProposeAccountServiceRequest

Static Methods

getDescriptor()

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

Methods

build()

public ProposeAccountServiceRequest build()
Returns
Type Description
ProposeAccountServiceRequest

buildPartial()

public ProposeAccountServiceRequest buildPartial()
Returns
Type Description
ProposeAccountServiceRequest

clear()

public ProposeAccountServiceRequest.Builder clear()
Returns
Type Description
ProposeAccountServiceRequest.Builder
Overrides

clearAccountService()

public ProposeAccountServiceRequest.Builder clearAccountService()

Required. The account service to propose.

.google.shopping.merchant.accounts.v1.AccountService account_service = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProposeAccountServiceRequest.Builder

clearParent()

public ProposeAccountServiceRequest.Builder clearParent()

Required. The resource name of the parent account for the service. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProposeAccountServiceRequest.Builder

This builder for chaining.

clearProvider()

public ProposeAccountServiceRequest.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).

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

Returns
Type Description
ProposeAccountServiceRequest.Builder

This builder for chaining.

getAccountService()

public AccountService getAccountService()

Required. The account service to propose.

.google.shopping.merchant.accounts.v1.AccountService account_service = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccountService

The accountService.

getAccountServiceBuilder()

public AccountService.Builder getAccountServiceBuilder()

Required. The account service to propose.

.google.shopping.merchant.accounts.v1.AccountService account_service = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccountService.Builder

getAccountServiceOrBuilder()

public AccountServiceOrBuilder getAccountServiceOrBuilder()

Required. The account service to propose.

.google.shopping.merchant.accounts.v1.AccountService account_service = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccountServiceOrBuilder

getDefaultInstanceForType()

public ProposeAccountServiceRequest getDefaultInstanceForType()
Returns
Type Description
ProposeAccountServiceRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The resource name of the parent account for the service. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the parent account for the service. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

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).

string provider = 2 [(.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).

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

Returns
Type Description
ByteString

The bytes for provider.

hasAccountService()

public boolean hasAccountService()

Required. The account service to propose.

.google.shopping.merchant.accounts.v1.AccountService account_service = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the accountService field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAccountService(AccountService value)

public ProposeAccountServiceRequest.Builder mergeAccountService(AccountService value)

Required. The account service to propose.

.google.shopping.merchant.accounts.v1.AccountService account_service = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AccountService
Returns
Type Description
ProposeAccountServiceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ProposeAccountServiceRequest other)

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

setAccountService(AccountService value)

public ProposeAccountServiceRequest.Builder setAccountService(AccountService value)

Required. The account service to propose.

.google.shopping.merchant.accounts.v1.AccountService account_service = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AccountService
Returns
Type Description
ProposeAccountServiceRequest.Builder

setAccountService(AccountService.Builder builderForValue)

public ProposeAccountServiceRequest.Builder setAccountService(AccountService.Builder builderForValue)

Required. The account service to propose.

.google.shopping.merchant.accounts.v1.AccountService account_service = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AccountService.Builder
Returns
Type Description
ProposeAccountServiceRequest.Builder

setParent(String value)

public ProposeAccountServiceRequest.Builder setParent(String value)

Required. The resource name of the parent account for the service. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ProposeAccountServiceRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ProposeAccountServiceRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the parent account for the service. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ProposeAccountServiceRequest.Builder

This builder for chaining.

setProvider(String value)

public ProposeAccountServiceRequest.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).

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

Parameter
Name Description
value String

The provider to set.

Returns
Type Description
ProposeAccountServiceRequest.Builder

This builder for chaining.

setProviderBytes(ByteString value)

public ProposeAccountServiceRequest.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).

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

Parameter
Name Description
value ByteString

The bytes for provider to set.

Returns
Type Description
ProposeAccountServiceRequest.Builder

This builder for chaining.