public static enum Participant.Role extends Enum<Participant.Role> implements ProtocolMessageEnum
Enumeration of the roles a participant can play in a conversation.Protobuf enum
google.cloud.dialogflow.v2.Participant.Role
Enum Constant and Description |
---|
AUTOMATED_AGENT
Participant is an automated agent, such as a Dialogflow agent.
|
END_USER
Participant is an end user that has called or chatted with
Dialogflow services.
|
HUMAN_AGENT
Participant is a human agent.
|
ROLE_UNSPECIFIED
Participant role not set.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
AUTOMATED_AGENT_VALUE
Participant is an automated agent, such as a Dialogflow agent.
|
static int |
END_USER_VALUE
Participant is an end user that has called or chatted with
Dialogflow services.
|
static int |
HUMAN_AGENT_VALUE
Participant is a human agent.
|
static int |
ROLE_UNSPECIFIED_VALUE
Participant role not set.
|
Modifier and Type | Method and Description |
---|---|
static Participant.Role |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Participant.Role> |
internalGetValueMap() |
static Participant.Role |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Participant.Role |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Participant.Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Participant.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Participant.Role ROLE_UNSPECIFIED
Participant role not set.
ROLE_UNSPECIFIED = 0;
public static final Participant.Role HUMAN_AGENT
Participant is a human agent.
HUMAN_AGENT = 1;
public static final Participant.Role AUTOMATED_AGENT
Participant is an automated agent, such as a Dialogflow agent.
AUTOMATED_AGENT = 2;
public static final Participant.Role END_USER
Participant is an end user that has called or chatted with Dialogflow services.
END_USER = 3;
public static final Participant.Role UNRECOGNIZED
public static final int ROLE_UNSPECIFIED_VALUE
Participant role not set.
ROLE_UNSPECIFIED = 0;
public static final int HUMAN_AGENT_VALUE
Participant is a human agent.
HUMAN_AGENT = 1;
public static final int AUTOMATED_AGENT_VALUE
Participant is an automated agent, such as a Dialogflow agent.
AUTOMATED_AGENT = 2;
public static final int END_USER_VALUE
Participant is an end user that has called or chatted with Dialogflow services.
END_USER = 3;
public static Participant.Role[] values()
for (Participant.Role c : Participant.Role.values()) System.out.println(c);
public static Participant.Role valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static Participant.Role valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Participant.Role forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<Participant.Role> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static Participant.Role valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.