Class GetValidationResultRequest.Builder (4.89.0)

public static final class GetValidationResultRequest.Builder extends GeneratedMessage.Builder<GetValidationResultRequest.Builder> implements GetValidationResultRequestOrBuilder

The request message for Agents.GetValidationResult.

Protobuf type google.cloud.dialogflow.v2beta1.GetValidationResultRequest

Static Methods

getDescriptor()

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

Methods

build()

public GetValidationResultRequest build()
Returns
Type Description
GetValidationResultRequest

buildPartial()

public GetValidationResultRequest buildPartial()
Returns
Type Description
GetValidationResultRequest

clear()

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

clearLanguageCode()

public GetValidationResultRequest.Builder clearLanguageCode()

Optional. The language for which you want a validation result. If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GetValidationResultRequest.Builder

This builder for chaining.

clearParent()

public GetValidationResultRequest.Builder clearParent()

Required. The project that the agent is associated with. Format: projects/<Project ID> or projects/<Project ID>/locations/<Location ID>.

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

Returns
Type Description
GetValidationResultRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetValidationResultRequest getDefaultInstanceForType()
Returns
Type Description
GetValidationResultRequest

getDescriptorForType()

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

getLanguageCode()

public String getLanguageCode()

Optional. The language for which you want a validation result. If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Optional. The language for which you want a validation result. If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for languageCode.

getParent()

public String getParent()

Required. The project that the agent is associated with. Format: projects/<Project ID> or projects/<Project ID>/locations/<Location ID>.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project that the agent is associated with. Format: projects/<Project ID> or projects/<Project ID>/locations/<Location ID>.

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

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetValidationResultRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setLanguageCode(String value)

public GetValidationResultRequest.Builder setLanguageCode(String value)

Optional. The language for which you want a validation result. If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
GetValidationResultRequest.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public GetValidationResultRequest.Builder setLanguageCodeBytes(ByteString value)

Optional. The language for which you want a validation result. If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
GetValidationResultRequest.Builder

This builder for chaining.

setParent(String value)

public GetValidationResultRequest.Builder setParent(String value)

Required. The project that the agent is associated with. Format: projects/<Project ID> or projects/<Project ID>/locations/<Location ID>.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
GetValidationResultRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public GetValidationResultRequest.Builder setParentBytes(ByteString value)

Required. The project that the agent is associated with. Format: projects/<Project ID> or projects/<Project ID>/locations/<Location ID>.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
GetValidationResultRequest.Builder

This builder for chaining.