Class ValidationResult.Builder (4.3.1)

public static final class ValidationResult.Builder extends GeneratedMessageV3.Builder<ValidationResult.Builder> implements ValidationResultOrBuilder

Represents the output of agent validation.

Protobuf type google.cloud.dialogflow.v2.ValidationResult

Methods

addAllValidationErrors(Iterable<? extends ValidationError> values)

public ValidationResult.Builder addAllValidationErrors(Iterable<? extends ValidationError> values)

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2.ValidationError>
Returns
TypeDescription
ValidationResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValidationErrors(ValidationError value)

public ValidationResult.Builder addValidationErrors(ValidationError value)

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Parameter
NameDescription
valueValidationError
Returns
TypeDescription
ValidationResult.Builder

addValidationErrors(ValidationError.Builder builderForValue)

public ValidationResult.Builder addValidationErrors(ValidationError.Builder builderForValue)

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Parameter
NameDescription
builderForValueValidationError.Builder
Returns
TypeDescription
ValidationResult.Builder

addValidationErrors(int index, ValidationError value)

public ValidationResult.Builder addValidationErrors(int index, ValidationError value)

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Parameters
NameDescription
indexint
valueValidationError
Returns
TypeDescription
ValidationResult.Builder

addValidationErrors(int index, ValidationError.Builder builderForValue)

public ValidationResult.Builder addValidationErrors(int index, ValidationError.Builder builderForValue)

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Parameters
NameDescription
indexint
builderForValueValidationError.Builder
Returns
TypeDescription
ValidationResult.Builder

addValidationErrorsBuilder()

public ValidationError.Builder addValidationErrorsBuilder()

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Returns
TypeDescription
ValidationError.Builder

addValidationErrorsBuilder(int index)

public ValidationError.Builder addValidationErrorsBuilder(int index)

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ValidationError.Builder

build()

public ValidationResult build()
Returns
TypeDescription
ValidationResult

buildPartial()

public ValidationResult buildPartial()
Returns
TypeDescription
ValidationResult

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ValidationResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ValidationResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ValidationResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ValidationResult.Builder
Overrides

clearValidationErrors()

public ValidationResult.Builder clearValidationErrors()

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Returns
TypeDescription
ValidationResult.Builder

clone()

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

getDefaultInstanceForType()

public ValidationResult getDefaultInstanceForType()
Returns
TypeDescription
ValidationResult

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValidationErrors(int index)

public ValidationError getValidationErrors(int index)

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ValidationError

getValidationErrorsBuilder(int index)

public ValidationError.Builder getValidationErrorsBuilder(int index)

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ValidationError.Builder

getValidationErrorsBuilderList()

public List<ValidationError.Builder> getValidationErrorsBuilderList()

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Returns
TypeDescription
List<Builder>

getValidationErrorsCount()

public int getValidationErrorsCount()

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Returns
TypeDescription
int

getValidationErrorsList()

public List<ValidationError> getValidationErrorsList()

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Returns
TypeDescription
List<ValidationError>

getValidationErrorsOrBuilder(int index)

public ValidationErrorOrBuilder getValidationErrorsOrBuilder(int index)

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ValidationErrorOrBuilder

getValidationErrorsOrBuilderList()

public List<? extends ValidationErrorOrBuilder> getValidationErrorsOrBuilderList()

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2.ValidationErrorOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ValidationResult other)

public ValidationResult.Builder mergeFrom(ValidationResult other)
Parameter
NameDescription
otherValidationResult
Returns
TypeDescription
ValidationResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeValidationErrors(int index)

public ValidationResult.Builder removeValidationErrors(int index)

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ValidationResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ValidationResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ValidationResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidationErrors(int index, ValidationError value)

public ValidationResult.Builder setValidationErrors(int index, ValidationError value)

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Parameters
NameDescription
indexint
valueValidationError
Returns
TypeDescription
ValidationResult.Builder

setValidationErrors(int index, ValidationError.Builder builderForValue)

public ValidationResult.Builder setValidationErrors(int index, ValidationError.Builder builderForValue)

Contains all validation errors.

repeated .google.cloud.dialogflow.v2.ValidationError validation_errors = 1;

Parameters
NameDescription
indexint
builderForValueValidationError.Builder
Returns
TypeDescription
ValidationResult.Builder