Class WhatsAppCredentials.Builder (0.11.0)

public static final class WhatsAppCredentials.Builder extends GeneratedMessage.Builder<WhatsAppCredentials.Builder> implements WhatsAppCredentialsOrBuilder

Ephemeral Meta credentials for WhatsApp native integration.

Protobuf type google.cloud.ces.v1.WhatsAppCredentials

Static Methods

getDescriptor()

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

Methods

build()

public WhatsAppCredentials build()
Returns
Type Description
WhatsAppCredentials

buildPartial()

public WhatsAppCredentials buildPartial()
Returns
Type Description
WhatsAppCredentials

clear()

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

clearAuthCode()

public WhatsAppCredentials.Builder clearAuthCode()

Required. The Meta auth code provided by the embedded signup flow.

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

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

clearBusinessAccountId()

public WhatsAppCredentials.Builder clearBusinessAccountId()

Required. The Business Account ID to use for the phone number.

string business_account_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

clearConversationProfileId()

public WhatsAppCredentials.Builder clearConversationProfileId()

Required. The Conversation Profile ID to use for the deployment.

string conversation_profile_id = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

clearPhoneNumber()

public WhatsAppCredentials.Builder clearPhoneNumber()

Required. The phone number to register with WhatsApp.

string phone_number = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

clearPin()

public WhatsAppCredentials.Builder clearPin()

Required. The 6-digit PIN created by the user for two-step verification.

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

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

clearWabaId()

public WhatsAppCredentials.Builder clearWabaId()

Required. The WhatsApp Business Account ID.

string waba_id = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

getAuthCode()

public String getAuthCode()

Required. The Meta auth code provided by the embedded signup flow.

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

Returns
Type Description
String

The authCode.

getAuthCodeBytes()

public ByteString getAuthCodeBytes()

Required. The Meta auth code provided by the embedded signup flow.

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

Returns
Type Description
ByteString

The bytes for authCode.

getBusinessAccountId()

public String getBusinessAccountId()

Required. The Business Account ID to use for the phone number.

string business_account_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The businessAccountId.

getBusinessAccountIdBytes()

public ByteString getBusinessAccountIdBytes()

Required. The Business Account ID to use for the phone number.

string business_account_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for businessAccountId.

getConversationProfileId()

public String getConversationProfileId()

Required. The Conversation Profile ID to use for the deployment.

string conversation_profile_id = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The conversationProfileId.

getConversationProfileIdBytes()

public ByteString getConversationProfileIdBytes()

Required. The Conversation Profile ID to use for the deployment.

string conversation_profile_id = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for conversationProfileId.

getDefaultInstanceForType()

public WhatsAppCredentials getDefaultInstanceForType()
Returns
Type Description
WhatsAppCredentials

getDescriptorForType()

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

getPhoneNumber()

public String getPhoneNumber()

Required. The phone number to register with WhatsApp.

string phone_number = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The phoneNumber.

getPhoneNumberBytes()

public ByteString getPhoneNumberBytes()

Required. The phone number to register with WhatsApp.

string phone_number = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for phoneNumber.

getPin()

public String getPin()

Required. The 6-digit PIN created by the user for two-step verification.

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

Returns
Type Description
String

The pin.

getPinBytes()

public ByteString getPinBytes()

Required. The 6-digit PIN created by the user for two-step verification.

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

Returns
Type Description
ByteString

The bytes for pin.

getWabaId()

public String getWabaId()

Required. The WhatsApp Business Account ID.

string waba_id = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The wabaId.

getWabaIdBytes()

public ByteString getWabaIdBytes()

Required. The WhatsApp Business Account ID.

string waba_id = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for wabaId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WhatsAppCredentials other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAuthCode(String value)

public WhatsAppCredentials.Builder setAuthCode(String value)

Required. The Meta auth code provided by the embedded signup flow.

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

Parameter
Name Description
value String

The authCode to set.

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

setAuthCodeBytes(ByteString value)

public WhatsAppCredentials.Builder setAuthCodeBytes(ByteString value)

Required. The Meta auth code provided by the embedded signup flow.

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

Parameter
Name Description
value ByteString

The bytes for authCode to set.

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

setBusinessAccountId(String value)

public WhatsAppCredentials.Builder setBusinessAccountId(String value)

Required. The Business Account ID to use for the phone number.

string business_account_id = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The businessAccountId to set.

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

setBusinessAccountIdBytes(ByteString value)

public WhatsAppCredentials.Builder setBusinessAccountIdBytes(ByteString value)

Required. The Business Account ID to use for the phone number.

string business_account_id = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for businessAccountId to set.

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

setConversationProfileId(String value)

public WhatsAppCredentials.Builder setConversationProfileId(String value)

Required. The Conversation Profile ID to use for the deployment.

string conversation_profile_id = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The conversationProfileId to set.

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

setConversationProfileIdBytes(ByteString value)

public WhatsAppCredentials.Builder setConversationProfileIdBytes(ByteString value)

Required. The Conversation Profile ID to use for the deployment.

string conversation_profile_id = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for conversationProfileId to set.

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

setPhoneNumber(String value)

public WhatsAppCredentials.Builder setPhoneNumber(String value)

Required. The phone number to register with WhatsApp.

string phone_number = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The phoneNumber to set.

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

setPhoneNumberBytes(ByteString value)

public WhatsAppCredentials.Builder setPhoneNumberBytes(ByteString value)

Required. The phone number to register with WhatsApp.

string phone_number = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for phoneNumber to set.

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

setPin(String value)

public WhatsAppCredentials.Builder setPin(String value)

Required. The 6-digit PIN created by the user for two-step verification.

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

Parameter
Name Description
value String

The pin to set.

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

setPinBytes(ByteString value)

public WhatsAppCredentials.Builder setPinBytes(ByteString value)

Required. The 6-digit PIN created by the user for two-step verification.

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

Parameter
Name Description
value ByteString

The bytes for pin to set.

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

setWabaId(String value)

public WhatsAppCredentials.Builder setWabaId(String value)

Required. The WhatsApp Business Account ID.

string waba_id = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The wabaId to set.

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.

setWabaIdBytes(ByteString value)

public WhatsAppCredentials.Builder setWabaIdBytes(ByteString value)

Required. The WhatsApp Business Account ID.

string waba_id = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for wabaId to set.

Returns
Type Description
WhatsAppCredentials.Builder

This builder for chaining.