Class WhatsAppCredentials (0.11.0)

public final class WhatsAppCredentials extends GeneratedMessage implements WhatsAppCredentialsOrBuilder

Ephemeral Meta credentials for WhatsApp native integration.

Protobuf type google.cloud.ces.v1beta.WhatsAppCredentials

Static Fields

AUTH_CODE_FIELD_NUMBER

public static final int AUTH_CODE_FIELD_NUMBER
Field Value
Type Description
int

BUSINESS_ACCOUNT_ID_FIELD_NUMBER

public static final int BUSINESS_ACCOUNT_ID_FIELD_NUMBER
Field Value
Type Description
int

CONVERSATION_PROFILE_ID_FIELD_NUMBER

public static final int CONVERSATION_PROFILE_ID_FIELD_NUMBER
Field Value
Type Description
int

PHONE_NUMBER_FIELD_NUMBER

public static final int PHONE_NUMBER_FIELD_NUMBER
Field Value
Type Description
int

PIN_FIELD_NUMBER

public static final int PIN_FIELD_NUMBER
Field Value
Type Description
int

WABA_ID_FIELD_NUMBER

public static final int WABA_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WhatsAppCredentials getDefaultInstance()
Returns
Type Description
WhatsAppCredentials

getDescriptor()

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

newBuilder()

public static WhatsAppCredentials.Builder newBuilder()
Returns
Type Description
WhatsAppCredentials.Builder

newBuilder(WhatsAppCredentials prototype)

public static WhatsAppCredentials.Builder newBuilder(WhatsAppCredentials prototype)
Parameter
Name Description
prototype WhatsAppCredentials
Returns
Type Description
WhatsAppCredentials.Builder

parseDelimitedFrom(InputStream input)

public static WhatsAppCredentials parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WhatsAppCredentials
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WhatsAppCredentials parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WhatsAppCredentials
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WhatsAppCredentials parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WhatsAppCredentials
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WhatsAppCredentials parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WhatsAppCredentials
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WhatsAppCredentials parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WhatsAppCredentials
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WhatsAppCredentials parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WhatsAppCredentials
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WhatsAppCredentials parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WhatsAppCredentials
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WhatsAppCredentials parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WhatsAppCredentials
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WhatsAppCredentials parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WhatsAppCredentials
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WhatsAppCredentials parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WhatsAppCredentials
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WhatsAppCredentials parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WhatsAppCredentials
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WhatsAppCredentials parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WhatsAppCredentials
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WhatsAppCredentials> parser()
Returns
Type Description
Parser<WhatsAppCredentials>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

getParserForType()

public Parser<WhatsAppCredentials> getParserForType()
Returns
Type Description
Parser<WhatsAppCredentials>
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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WhatsAppCredentials.Builder newBuilderForType()
Returns
Type Description
WhatsAppCredentials.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected WhatsAppCredentials.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WhatsAppCredentials.Builder
Overrides

toBuilder()

public WhatsAppCredentials.Builder toBuilder()
Returns
Type Description
WhatsAppCredentials.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException