Class RegisterGcpRequest.Builder (1.16.0)

public static final class RegisterGcpRequest.Builder extends GeneratedMessage.Builder<RegisterGcpRequest.Builder> implements RegisterGcpRequestOrBuilder

Request message for the RegisterGCP method.

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

Static Methods

getDescriptor()

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

Methods

build()

public RegisterGcpRequest build()
Returns
Type Description
RegisterGcpRequest

buildPartial()

public RegisterGcpRequest buildPartial()
Returns
Type Description
RegisterGcpRequest

clear()

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

clearDeveloperEmail()

public RegisterGcpRequest.Builder clearDeveloperEmail()

Immutable. Optional field. Developer role can be also added by using users.update method. If the developer email provided is associated with a user in the provided merchant account, the user will be updated to have API_DEVELOPER access_rights and the email preference corresponding to that user will be updated to have the new API notifications preference. If the developer email provided is not associated with any user, it is added as a contact. The email preference corresponding to that contact will have the new API notifications preference. Make sure the email used is associated with a Google Account and is not a service account as service accounts can't receive emails.

string developer_email = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
RegisterGcpRequest.Builder

This builder for chaining.

clearName()

public RegisterGcpRequest.Builder clearName()

Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: accounts/{account}/developerRegistration

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

Returns
Type Description
RegisterGcpRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public RegisterGcpRequest getDefaultInstanceForType()
Returns
Type Description
RegisterGcpRequest

getDescriptorForType()

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

getDeveloperEmail()

public String getDeveloperEmail()

Immutable. Optional field. Developer role can be also added by using users.update method. If the developer email provided is associated with a user in the provided merchant account, the user will be updated to have API_DEVELOPER access_rights and the email preference corresponding to that user will be updated to have the new API notifications preference. If the developer email provided is not associated with any user, it is added as a contact. The email preference corresponding to that contact will have the new API notifications preference. Make sure the email used is associated with a Google Account and is not a service account as service accounts can't receive emails.

string developer_email = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The developerEmail.

getDeveloperEmailBytes()

public ByteString getDeveloperEmailBytes()

Immutable. Optional field. Developer role can be also added by using users.update method. If the developer email provided is associated with a user in the provided merchant account, the user will be updated to have API_DEVELOPER access_rights and the email preference corresponding to that user will be updated to have the new API notifications preference. If the developer email provided is not associated with any user, it is added as a contact. The email preference corresponding to that contact will have the new API notifications preference. Make sure the email used is associated with a Google Account and is not a service account as service accounts can't receive emails.

string developer_email = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for developerEmail.

getName()

public String getName()

Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: accounts/{account}/developerRegistration

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: accounts/{account}/developerRegistration

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(RegisterGcpRequest other)

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

setDeveloperEmail(String value)

public RegisterGcpRequest.Builder setDeveloperEmail(String value)

Immutable. Optional field. Developer role can be also added by using users.update method. If the developer email provided is associated with a user in the provided merchant account, the user will be updated to have API_DEVELOPER access_rights and the email preference corresponding to that user will be updated to have the new API notifications preference. If the developer email provided is not associated with any user, it is added as a contact. The email preference corresponding to that contact will have the new API notifications preference. Make sure the email used is associated with a Google Account and is not a service account as service accounts can't receive emails.

string developer_email = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The developerEmail to set.

Returns
Type Description
RegisterGcpRequest.Builder

This builder for chaining.

setDeveloperEmailBytes(ByteString value)

public RegisterGcpRequest.Builder setDeveloperEmailBytes(ByteString value)

Immutable. Optional field. Developer role can be also added by using users.update method. If the developer email provided is associated with a user in the provided merchant account, the user will be updated to have API_DEVELOPER access_rights and the email preference corresponding to that user will be updated to have the new API notifications preference. If the developer email provided is not associated with any user, it is added as a contact. The email preference corresponding to that contact will have the new API notifications preference. Make sure the email used is associated with a Google Account and is not a service account as service accounts can't receive emails.

string developer_email = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for developerEmail to set.

Returns
Type Description
RegisterGcpRequest.Builder

This builder for chaining.

setName(String value)

public RegisterGcpRequest.Builder setName(String value)

Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: accounts/{account}/developerRegistration

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RegisterGcpRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RegisterGcpRequest.Builder setNameBytes(ByteString value)

Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: accounts/{account}/developerRegistration

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RegisterGcpRequest.Builder

This builder for chaining.