Class TestPersonaVoiceRequest.Builder (0.3.0)

public static final class TestPersonaVoiceRequest.Builder extends GeneratedMessage.Builder<TestPersonaVoiceRequest.Builder> implements TestPersonaVoiceRequestOrBuilder

Request message for EvaluationService.TestPersonaVoice.

Protobuf type google.cloud.ces.v1beta.TestPersonaVoiceRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public TestPersonaVoiceRequest build()
Returns
Type Description
TestPersonaVoiceRequest

buildPartial()

public TestPersonaVoiceRequest buildPartial()
Returns
Type Description
TestPersonaVoiceRequest

clear()

public TestPersonaVoiceRequest.Builder clear()
Returns
Type Description
TestPersonaVoiceRequest.Builder
Overrides

clearApp()

public TestPersonaVoiceRequest.Builder clearApp()

Required. the resource name of the app to test the persona voice for. Format: projects/{project}/locations/{location}/apps/{app}

string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
TestPersonaVoiceRequest.Builder

This builder for chaining.

clearPersonaId()

public TestPersonaVoiceRequest.Builder clearPersonaId()

Required. The persona ID to test the voice for. Also accepts "default".

string persona_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TestPersonaVoiceRequest.Builder

This builder for chaining.

clearText()

public TestPersonaVoiceRequest.Builder clearText()

Required. The text to test the voice for.

string text = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TestPersonaVoiceRequest.Builder

This builder for chaining.

getApp()

public String getApp()

Required. the resource name of the app to test the persona voice for. Format: projects/{project}/locations/{location}/apps/{app}

string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The app.

getAppBytes()

public ByteString getAppBytes()

Required. the resource name of the app to test the persona voice for. Format: projects/{project}/locations/{location}/apps/{app}

string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for app.

getDefaultInstanceForType()

public TestPersonaVoiceRequest getDefaultInstanceForType()
Returns
Type Description
TestPersonaVoiceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPersonaId()

public String getPersonaId()

Required. The persona ID to test the voice for. Also accepts "default".

string persona_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The personaId.

getPersonaIdBytes()

public ByteString getPersonaIdBytes()

Required. The persona ID to test the voice for. Also accepts "default".

string persona_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for personaId.

getText()

public String getText()

Required. The text to test the voice for.

string text = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Required. The text to test the voice for.

string text = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for text.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TestPersonaVoiceRequest other)

public TestPersonaVoiceRequest.Builder mergeFrom(TestPersonaVoiceRequest other)
Parameter
Name Description
other TestPersonaVoiceRequest
Returns
Type Description
TestPersonaVoiceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TestPersonaVoiceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TestPersonaVoiceRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setApp(String value)

public TestPersonaVoiceRequest.Builder setApp(String value)

Required. the resource name of the app to test the persona voice for. Format: projects/{project}/locations/{location}/apps/{app}

string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The app to set.

Returns
Type Description
TestPersonaVoiceRequest.Builder

This builder for chaining.

setAppBytes(ByteString value)

public TestPersonaVoiceRequest.Builder setAppBytes(ByteString value)

Required. the resource name of the app to test the persona voice for. Format: projects/{project}/locations/{location}/apps/{app}

string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for app to set.

Returns
Type Description
TestPersonaVoiceRequest.Builder

This builder for chaining.

setPersonaId(String value)

public TestPersonaVoiceRequest.Builder setPersonaId(String value)

Required. The persona ID to test the voice for. Also accepts "default".

string persona_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The personaId to set.

Returns
Type Description
TestPersonaVoiceRequest.Builder

This builder for chaining.

setPersonaIdBytes(ByteString value)

public TestPersonaVoiceRequest.Builder setPersonaIdBytes(ByteString value)

Required. The persona ID to test the voice for. Also accepts "default".

string persona_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for personaId to set.

Returns
Type Description
TestPersonaVoiceRequest.Builder

This builder for chaining.

setText(String value)

public TestPersonaVoiceRequest.Builder setText(String value)

Required. The text to test the voice for.

string text = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The text to set.

Returns
Type Description
TestPersonaVoiceRequest.Builder

This builder for chaining.

setTextBytes(ByteString value)

public TestPersonaVoiceRequest.Builder setTextBytes(ByteString value)

Required. The text to test the voice for.

string text = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
TestPersonaVoiceRequest.Builder

This builder for chaining.