Class ConversationParticipant.Builder (2.83.0)

public static final class ConversationParticipant.Builder extends GeneratedMessage.Builder<ConversationParticipant.Builder> implements ConversationParticipantOrBuilder

The call participant speaking for a given utterance.

Protobuf type google.cloud.contactcenterinsights.v1.ConversationParticipant

Static Methods

getDescriptor()

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

Methods

build()

public ConversationParticipant build()
Returns
Type Description
ConversationParticipant

buildPartial()

public ConversationParticipant buildPartial()
Returns
Type Description
ConversationParticipant

clear()

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

clearDialogflowParticipant() (deprecated)

public ConversationParticipant.Builder clearDialogflowParticipant()

Deprecated. google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470

Deprecated. Use dialogflow_participant_name instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}

string dialogflow_participant = 1 [deprecated = true];

Returns
Type Description
ConversationParticipant.Builder

This builder for chaining.

clearDialogflowParticipantName()

public ConversationParticipant.Builder clearDialogflowParticipantName()

The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}

string dialogflow_participant_name = 5 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ConversationParticipant.Builder

This builder for chaining.

clearObfuscatedExternalUserId()

public ConversationParticipant.Builder clearObfuscatedExternalUserId()

Obfuscated user ID from Dialogflow.

string obfuscated_external_user_id = 3;

Returns
Type Description
ConversationParticipant.Builder

This builder for chaining.

clearParticipant()

public ConversationParticipant.Builder clearParticipant()
Returns
Type Description
ConversationParticipant.Builder

clearRole()

public ConversationParticipant.Builder clearRole()

The role of the participant.

.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role = 2;

Returns
Type Description
ConversationParticipant.Builder

This builder for chaining.

clearUserId()

public ConversationParticipant.Builder clearUserId()

A user-specified ID representing the participant.

string user_id = 6;

Returns
Type Description
ConversationParticipant.Builder

This builder for chaining.

getDefaultInstanceForType()

public ConversationParticipant getDefaultInstanceForType()
Returns
Type Description
ConversationParticipant

getDescriptorForType()

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

getDialogflowParticipant() (deprecated)

public String getDialogflowParticipant()

Deprecated. google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470

Deprecated. Use dialogflow_participant_name instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}

string dialogflow_participant = 1 [deprecated = true];

Returns
Type Description
String

The dialogflowParticipant.

getDialogflowParticipantBytes() (deprecated)

public ByteString getDialogflowParticipantBytes()

Deprecated. google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470

Deprecated. Use dialogflow_participant_name instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}

string dialogflow_participant = 1 [deprecated = true];

Returns
Type Description
ByteString

The bytes for dialogflowParticipant.

getDialogflowParticipantName()

public String getDialogflowParticipantName()

The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}

string dialogflow_participant_name = 5 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The dialogflowParticipantName.

getDialogflowParticipantNameBytes()

public ByteString getDialogflowParticipantNameBytes()

The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}

string dialogflow_participant_name = 5 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for dialogflowParticipantName.

getObfuscatedExternalUserId()

public String getObfuscatedExternalUserId()

Obfuscated user ID from Dialogflow.

string obfuscated_external_user_id = 3;

Returns
Type Description
String

The obfuscatedExternalUserId.

getObfuscatedExternalUserIdBytes()

public ByteString getObfuscatedExternalUserIdBytes()

Obfuscated user ID from Dialogflow.

string obfuscated_external_user_id = 3;

Returns
Type Description
ByteString

The bytes for obfuscatedExternalUserId.

getParticipantCase()

public ConversationParticipant.ParticipantCase getParticipantCase()
Returns
Type Description
ConversationParticipant.ParticipantCase

getRole()

public ConversationParticipant.Role getRole()

The role of the participant.

.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role = 2;

Returns
Type Description
ConversationParticipant.Role

The role.

getRoleValue()

public int getRoleValue()

The role of the participant.

.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role = 2;

Returns
Type Description
int

The enum numeric value on the wire for role.

getUserId()

public String getUserId()

A user-specified ID representing the participant.

string user_id = 6;

Returns
Type Description
String

The userId.

getUserIdBytes()

public ByteString getUserIdBytes()

A user-specified ID representing the participant.

string user_id = 6;

Returns
Type Description
ByteString

The bytes for userId.

hasDialogflowParticipantName()

public boolean hasDialogflowParticipantName()

The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}

string dialogflow_participant_name = 5 [(.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the dialogflowParticipantName field is set.

hasUserId()

public boolean hasUserId()

A user-specified ID representing the participant.

string user_id = 6;

Returns
Type Description
boolean

Whether the userId field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConversationParticipant other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDialogflowParticipant(String value) (deprecated)

public ConversationParticipant.Builder setDialogflowParticipant(String value)

Deprecated. google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470

Deprecated. Use dialogflow_participant_name instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}

string dialogflow_participant = 1 [deprecated = true];

Parameter
Name Description
value String

The dialogflowParticipant to set.

Returns
Type Description
ConversationParticipant.Builder

This builder for chaining.

setDialogflowParticipantBytes(ByteString value) (deprecated)

public ConversationParticipant.Builder setDialogflowParticipantBytes(ByteString value)

Deprecated. google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1470

Deprecated. Use dialogflow_participant_name instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}

string dialogflow_participant = 1 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for dialogflowParticipant to set.

Returns
Type Description
ConversationParticipant.Builder

This builder for chaining.

setDialogflowParticipantName(String value)

public ConversationParticipant.Builder setDialogflowParticipantName(String value)

The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}

string dialogflow_participant_name = 5 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The dialogflowParticipantName to set.

Returns
Type Description
ConversationParticipant.Builder

This builder for chaining.

setDialogflowParticipantNameBytes(ByteString value)

public ConversationParticipant.Builder setDialogflowParticipantNameBytes(ByteString value)

The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}

string dialogflow_participant_name = 5 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for dialogflowParticipantName to set.

Returns
Type Description
ConversationParticipant.Builder

This builder for chaining.

setObfuscatedExternalUserId(String value)

public ConversationParticipant.Builder setObfuscatedExternalUserId(String value)

Obfuscated user ID from Dialogflow.

string obfuscated_external_user_id = 3;

Parameter
Name Description
value String

The obfuscatedExternalUserId to set.

Returns
Type Description
ConversationParticipant.Builder

This builder for chaining.

setObfuscatedExternalUserIdBytes(ByteString value)

public ConversationParticipant.Builder setObfuscatedExternalUserIdBytes(ByteString value)

Obfuscated user ID from Dialogflow.

string obfuscated_external_user_id = 3;

Parameter
Name Description
value ByteString

The bytes for obfuscatedExternalUserId to set.

Returns
Type Description
ConversationParticipant.Builder

This builder for chaining.

setRole(ConversationParticipant.Role value)

public ConversationParticipant.Builder setRole(ConversationParticipant.Role value)

The role of the participant.

.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role = 2;

Parameter
Name Description
value ConversationParticipant.Role

The role to set.

Returns
Type Description
ConversationParticipant.Builder

This builder for chaining.

setRoleValue(int value)

public ConversationParticipant.Builder setRoleValue(int value)

The role of the participant.

.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for role to set.

Returns
Type Description
ConversationParticipant.Builder

This builder for chaining.

setUserId(String value)

public ConversationParticipant.Builder setUserId(String value)

A user-specified ID representing the participant.

string user_id = 6;

Parameter
Name Description
value String

The userId to set.

Returns
Type Description
ConversationParticipant.Builder

This builder for chaining.

setUserIdBytes(ByteString value)

public ConversationParticipant.Builder setUserIdBytes(ByteString value)

A user-specified ID representing the participant.

string user_id = 6;

Parameter
Name Description
value ByteString

The bytes for userId to set.

Returns
Type Description
ConversationParticipant.Builder

This builder for chaining.