Class PersonaRunConfig.Builder (0.3.0)

public static final class PersonaRunConfig.Builder extends GeneratedMessage.Builder<PersonaRunConfig.Builder> implements PersonaRunConfigOrBuilder

Configuration for running an evaluation for a specific persona.

Protobuf type google.cloud.ces.v1beta.PersonaRunConfig

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PersonaRunConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PersonaRunConfig.Builder
Overrides

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 String

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

The 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 int

The taskCount to set.

Returns
Type Description
PersonaRunConfig.Builder

This builder for chaining.