Class ConversationParticipant.Builder (2.3.5)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConversationParticipant.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConversationParticipant.Builder
Overrides

build()

public ConversationParticipant build()
Returns
TypeDescription
ConversationParticipant

buildPartial()

public ConversationParticipant buildPartial()
Returns
TypeDescription
ConversationParticipant

clear()

public ConversationParticipant.Builder clear()
Returns
TypeDescription
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=1083

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
TypeDescription
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
TypeDescription
ConversationParticipant.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ConversationParticipant.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ConversationParticipant.Builder
Overrides

clearObfuscatedExternalUserId()

public ConversationParticipant.Builder clearObfuscatedExternalUserId()

Obfuscated user ID from Dialogflow.

string obfuscated_external_user_id = 3;

Returns
TypeDescription
ConversationParticipant.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ConversationParticipant.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConversationParticipant.Builder
Overrides

clearParticipant()

public ConversationParticipant.Builder clearParticipant()
Returns
TypeDescription
ConversationParticipant.Builder

clearRole()

public ConversationParticipant.Builder clearRole()

The role of the participant.

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

Returns
TypeDescription
ConversationParticipant.Builder

This builder for chaining.

clearUserId()

public ConversationParticipant.Builder clearUserId()

A user-specified ID representing the participant.

string user_id = 6;

Returns
TypeDescription
ConversationParticipant.Builder

This builder for chaining.

clone()

public ConversationParticipant.Builder clone()
Returns
TypeDescription
ConversationParticipant.Builder
Overrides

getDefaultInstanceForType()

public ConversationParticipant getDefaultInstanceForType()
Returns
TypeDescription
ConversationParticipant

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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=1083

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
TypeDescription
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=1083

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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for dialogflowParticipantName.

getObfuscatedExternalUserId()

public String getObfuscatedExternalUserId()

Obfuscated user ID from Dialogflow.

string obfuscated_external_user_id = 3;

Returns
TypeDescription
String

The obfuscatedExternalUserId.

getObfuscatedExternalUserIdBytes()

public ByteString getObfuscatedExternalUserIdBytes()

Obfuscated user ID from Dialogflow.

string obfuscated_external_user_id = 3;

Returns
TypeDescription
ByteString

The bytes for obfuscatedExternalUserId.

getParticipantCase()

public ConversationParticipant.ParticipantCase getParticipantCase()
Returns
TypeDescription
ConversationParticipant.ParticipantCase

getRole()

public ConversationParticipant.Role getRole()

The role of the participant.

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

Returns
TypeDescription
ConversationParticipant.Role

The role.

getRoleValue()

public int getRoleValue()

The role of the participant.

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

Returns
TypeDescription
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
TypeDescription
String

The userId.

getUserIdBytes()

public ByteString getUserIdBytes()

A user-specified ID representing the participant.

string user_id = 6;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the dialogflowParticipantName field is set.

hasUserId()

public boolean hasUserId()

A user-specified ID representing the participant.

string user_id = 6;

Returns
TypeDescription
boolean

Whether the userId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConversationParticipant other)

public ConversationParticipant.Builder mergeFrom(ConversationParticipant other)
Parameter
NameDescription
otherConversationParticipant
Returns
TypeDescription
ConversationParticipant.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConversationParticipant.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationParticipant.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ConversationParticipant.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ConversationParticipant.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConversationParticipant.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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=1083

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
NameDescription
valueString

The dialogflowParticipant to set.

Returns
TypeDescription
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=1083

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
NameDescription
valueByteString

The bytes for dialogflowParticipant to set.

Returns
TypeDescription
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
NameDescription
valueString

The dialogflowParticipantName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for dialogflowParticipantName to set.

Returns
TypeDescription
ConversationParticipant.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ConversationParticipant.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConversationParticipant.Builder
Overrides

setObfuscatedExternalUserId(String value)

public ConversationParticipant.Builder setObfuscatedExternalUserId(String value)

Obfuscated user ID from Dialogflow.

string obfuscated_external_user_id = 3;

Parameter
NameDescription
valueString

The obfuscatedExternalUserId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for obfuscatedExternalUserId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueConversationParticipant.Role

The role to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ConversationParticipant.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ConversationParticipant.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConversationParticipant.Builder
Overrides

setUserId(String value)

public ConversationParticipant.Builder setUserId(String value)

A user-specified ID representing the participant.

string user_id = 6;

Parameter
NameDescription
valueString

The userId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for userId to set.

Returns
TypeDescription
ConversationParticipant.Builder

This builder for chaining.