Class GetValidationResultRequest.Builder (4.39.0)

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

The request message for Agents.GetValidationResult.

Protobuf type google.cloud.dialogflow.v2.GetValidationResultRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetValidationResultRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetValidationResultRequest.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public GetValidationResultRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetValidationResultRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GetValidationResultRequest.Builder
Overrides

clearParent()

public GetValidationResultRequest.Builder clearParent()

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

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

Returns
Type Description
GetValidationResultRequest.Builder

This builder for chaining.

clone()

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

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>.

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>.

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

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetValidationResultRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetValidationResultRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetValidationResultRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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>.

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>.

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GetValidationResultRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GetValidationResultRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetValidationResultRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetValidationResultRequest.Builder
Overrides