Class ValidationResult.Builder (4.9.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

Static Methods

getDescriptor()

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

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
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2.ValidationError>
Returns
Type Description
ValidationResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ValidationResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value ValidationError
Returns
Type Description
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
Name Description
builderForValue ValidationError.Builder
Returns
Type Description
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
Name Description
index int
value ValidationError
Returns
Type Description
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
Name Description
index int
builderForValue ValidationError.Builder
Returns
Type Description
ValidationResult.Builder

addValidationErrorsBuilder()

public ValidationError.Builder addValidationErrorsBuilder()

Contains all validation errors.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
ValidationError.Builder

build()

public ValidationResult build()
Returns
Type Description
ValidationResult

buildPartial()

public ValidationResult buildPartial()
Returns
Type Description
ValidationResult

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ValidationResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ValidationResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValidationErrors()

public ValidationResult.Builder clearValidationErrors()

Contains all validation errors.

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

Returns
Type Description
ValidationResult.Builder

clone()

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

getDefaultInstanceForType()

public ValidationResult getDefaultInstanceForType()
Returns
Type Description
ValidationResult

getDescriptorForType()

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

getValidationErrors(int index)

public ValidationError getValidationErrors(int index)

Contains all validation errors.

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

Parameter
Name Description
index int
Returns
Type Description
ValidationError

getValidationErrorsBuilder(int index)

public ValidationError.Builder getValidationErrorsBuilder(int index)

Contains all validation errors.

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

Parameter
Name Description
index int
Returns
Type Description
ValidationError.Builder

getValidationErrorsBuilderList()

public List<ValidationError.Builder> getValidationErrorsBuilderList()

Contains all validation errors.

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

Returns
Type Description
List<Builder>

getValidationErrorsCount()

public int getValidationErrorsCount()

Contains all validation errors.

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

Returns
Type Description
int

getValidationErrorsList()

public List<ValidationError> getValidationErrorsList()

Contains all validation errors.

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

Returns
Type Description
List<ValidationError>

getValidationErrorsOrBuilder(int index)

public ValidationErrorOrBuilder getValidationErrorsOrBuilder(int index)

Contains all validation errors.

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

Parameter
Name Description
index int
Returns
Type Description
ValidationErrorOrBuilder

getValidationErrorsOrBuilderList()

public List<? extends ValidationErrorOrBuilder> getValidationErrorsOrBuilderList()

Contains all validation errors.

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ValidationResult other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ValidationResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
ValidationResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ValidationResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
value ValidationError
Returns
Type Description
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
Name Description
index int
builderForValue ValidationError.Builder
Returns
Type Description
ValidationResult.Builder