public static final class EvaluationPersona.Builder extends GeneratedMessage.Builder<EvaluationPersona.Builder> implements EvaluationPersonaOrBuilderA persona represents an end user in an evaluation.
Protobuf type google.cloud.ces.v1beta.EvaluationPersona
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > EvaluationPersona.BuilderImplements
EvaluationPersonaOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public EvaluationPersona build()| Returns | |
|---|---|
| Type | Description |
EvaluationPersona |
|
buildPartial()
public EvaluationPersona buildPartial()| Returns | |
|---|---|
| Type | Description |
EvaluationPersona |
|
clear()
public EvaluationPersona.Builder clear()| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
|
clearDescription()
public EvaluationPersona.Builder clearDescription()Optional. The description of the persona.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
This builder for chaining. |
clearDisplayName()
public EvaluationPersona.Builder clearDisplayName()Required. The display name of the persona. Unique within an app.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
This builder for chaining. |
clearName()
public EvaluationPersona.Builder clearName() Required. The unique identifier of the persona.
Format:
projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
This builder for chaining. |
clearPersonality()
public EvaluationPersona.Builder clearPersonality()Required. An instruction for the agent on how to behave in the evaluation.
string personality = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
This builder for chaining. |
clearSpeechConfig()
public EvaluationPersona.Builder clearSpeechConfig()Optional. Configuration for how the persona sounds (TTS settings).
.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig speech_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
|
getDefaultInstanceForType()
public EvaluationPersona getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
EvaluationPersona |
|
getDescription()
public String getDescription()Optional. The description of the persona.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Optional. The description of the persona.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisplayName()
public String getDisplayName()Required. The display name of the persona. Unique within an app.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()Required. The display name of the persona. Unique within an app.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getName()
public String getName() Required. The unique identifier of the persona.
Format:
projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Required. The unique identifier of the persona.
Format:
projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPersonality()
public String getPersonality()Required. An instruction for the agent on how to behave in the evaluation.
string personality = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The personality. |
getPersonalityBytes()
public ByteString getPersonalityBytes()Required. An instruction for the agent on how to behave in the evaluation.
string personality = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for personality. |
getSpeechConfig()
public EvaluationPersona.SpeechConfig getSpeechConfig()Optional. Configuration for how the persona sounds (TTS settings).
.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig speech_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig |
The speechConfig. |
getSpeechConfigBuilder()
public EvaluationPersona.SpeechConfig.Builder getSpeechConfigBuilder()Optional. Configuration for how the persona sounds (TTS settings).
.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig speech_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfig.Builder |
|
getSpeechConfigOrBuilder()
public EvaluationPersona.SpeechConfigOrBuilder getSpeechConfigOrBuilder()Optional. Configuration for how the persona sounds (TTS settings).
.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig speech_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.SpeechConfigOrBuilder |
|
hasSpeechConfig()
public boolean hasSpeechConfig()Optional. Configuration for how the persona sounds (TTS settings).
.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig speech_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the speechConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(EvaluationPersona other)
public EvaluationPersona.Builder mergeFrom(EvaluationPersona other)| Parameter | |
|---|---|
| Name | Description |
other |
EvaluationPersona |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EvaluationPersona.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public EvaluationPersona.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
|
mergeSpeechConfig(EvaluationPersona.SpeechConfig value)
public EvaluationPersona.Builder mergeSpeechConfig(EvaluationPersona.SpeechConfig value)Optional. Configuration for how the persona sounds (TTS settings).
.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig speech_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
EvaluationPersona.SpeechConfig |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
|
setDescription(String value)
public EvaluationPersona.Builder setDescription(String value)Optional. The description of the persona.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public EvaluationPersona.Builder setDescriptionBytes(ByteString value)Optional. The description of the persona.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
This builder for chaining. |
setDisplayName(String value)
public EvaluationPersona.Builder setDisplayName(String value)Required. The display name of the persona. Unique within an app.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public EvaluationPersona.Builder setDisplayNameBytes(ByteString value)Required. The display name of the persona. Unique within an app.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
This builder for chaining. |
setName(String value)
public EvaluationPersona.Builder setName(String value) Required. The unique identifier of the persona.
Format:
projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public EvaluationPersona.Builder setNameBytes(ByteString value) Required. The unique identifier of the persona.
Format:
projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
This builder for chaining. |
setPersonality(String value)
public EvaluationPersona.Builder setPersonality(String value)Required. An instruction for the agent on how to behave in the evaluation.
string personality = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe personality to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
This builder for chaining. |
setPersonalityBytes(ByteString value)
public EvaluationPersona.Builder setPersonalityBytes(ByteString value)Required. An instruction for the agent on how to behave in the evaluation.
string personality = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for personality to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
This builder for chaining. |
setSpeechConfig(EvaluationPersona.SpeechConfig value)
public EvaluationPersona.Builder setSpeechConfig(EvaluationPersona.SpeechConfig value)Optional. Configuration for how the persona sounds (TTS settings).
.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig speech_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
EvaluationPersona.SpeechConfig |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
|
setSpeechConfig(EvaluationPersona.SpeechConfig.Builder builderForValue)
public EvaluationPersona.Builder setSpeechConfig(EvaluationPersona.SpeechConfig.Builder builderForValue)Optional. Configuration for how the persona sounds (TTS settings).
.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfig speech_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
EvaluationPersona.SpeechConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
EvaluationPersona.Builder |
|