Class GetValidationResultRequest.Builder (4.6.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetValidationResultRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetValidationResultRequest.Builder
Overrides

build()

public GetValidationResultRequest build()
Returns
TypeDescription
GetValidationResultRequest

buildPartial()

public GetValidationResultRequest buildPartial()
Returns
TypeDescription
GetValidationResultRequest

clear()

public GetValidationResultRequest.Builder clear()
Returns
TypeDescription
GetValidationResultRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetValidationResultRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GetValidationResultRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetValidationResultRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
GetValidationResultRequest.Builder

This builder for chaining.

clone()

public GetValidationResultRequest.Builder clone()
Returns
TypeDescription
GetValidationResultRequest.Builder
Overrides

getDefaultInstanceForType()

public GetValidationResultRequest getDefaultInstanceForType()
Returns
TypeDescription
GetValidationResultRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetValidationResultRequest other)

public GetValidationResultRequest.Builder mergeFrom(GetValidationResultRequest other)
Parameter
NameDescription
otherGetValidationResultRequest
Returns
TypeDescription
GetValidationResultRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetValidationResultRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetValidationResultRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GetValidationResultRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GetValidationResultRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetValidationResultRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetValidationResultRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetValidationResultRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetValidationResultRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetValidationResultRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetValidationResultRequest.Builder
Overrides