public static final class PersonaRunConfig.Builder extends GeneratedMessage.Builder<PersonaRunConfig.Builder> implements PersonaRunConfigOrBuilderConfiguration for running an evaluation for a specific persona.
Protobuf type google.cloud.ces.v1beta.PersonaRunConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PersonaRunConfig.BuilderImplements
PersonaRunConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PersonaRunConfig build()| Returns | |
|---|---|
| Type | Description |
PersonaRunConfig |
|
buildPartial()
public PersonaRunConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
PersonaRunConfig |
|
clear()
public PersonaRunConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
PersonaRunConfig.Builder |
|
clearPersona()
public PersonaRunConfig.Builder clearPersona() Optional. The persona to use for the evaluation.
Format:
projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}
string persona = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PersonaRunConfig.Builder |
This builder for chaining. |
clearTaskCount()
public PersonaRunConfig.Builder clearTaskCount()Optional. The number of tasks to run for the persona.
int32 task_count = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PersonaRunConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public PersonaRunConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PersonaRunConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPersona()
public String getPersona() Optional. The persona to use for the evaluation.
Format:
projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}
string persona = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The persona. |
getPersonaBytes()
public ByteString getPersonaBytes() Optional. The persona to use for the evaluation.
Format:
projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}
string persona = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for persona. |
getTaskCount()
public int getTaskCount()Optional. The number of tasks to run for the persona.
int32 task_count = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The taskCount. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PersonaRunConfig other)
public PersonaRunConfig.Builder mergeFrom(PersonaRunConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
PersonaRunConfig |
| Returns | |
|---|---|
| Type | Description |
PersonaRunConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PersonaRunConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PersonaRunConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PersonaRunConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PersonaRunConfig.Builder |
|
setPersona(String value)
public PersonaRunConfig.Builder setPersona(String value) Optional. The persona to use for the evaluation.
Format:
projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}
string persona = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe persona to set. |
| Returns | |
|---|---|
| Type | Description |
PersonaRunConfig.Builder |
This builder for chaining. |
setPersonaBytes(ByteString value)
public PersonaRunConfig.Builder setPersonaBytes(ByteString value) Optional. The persona to use for the evaluation.
Format:
projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}
string persona = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for persona to set. |
| Returns | |
|---|---|
| Type | Description |
PersonaRunConfig.Builder |
This builder for chaining. |
setTaskCount(int value)
public PersonaRunConfig.Builder setTaskCount(int value)Optional. The number of tasks to run for the persona.
int32 task_count = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe taskCount to set. |
| Returns | |
|---|---|
| Type | Description |
PersonaRunConfig.Builder |
This builder for chaining. |