Class ConversationParticipant.Builder (2.43.0)

public static final class ConversationParticipant.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConversationParticipant.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConversationParticipant.Builder
Overrides

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=1256

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.

clearField(Descriptors.FieldDescriptor field)

public ConversationParticipant.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ConversationParticipant.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public ConversationParticipant.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ConversationParticipant.Builder
Overrides

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.

clone()

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

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=1256

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=1256

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConversationParticipant.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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=1256

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=1256

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.

setField(Descriptors.FieldDescriptor field, Object value)

public ConversationParticipant.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConversationParticipant.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ConversationParticipant.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ConversationParticipant.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final ConversationParticipant.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConversationParticipant.Builder
Overrides

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.