Class ValidationError (4.6.0)

public final class ValidationError extends GeneratedMessageV3 implements ValidationErrorOrBuilder

Represents a single validation error.

Protobuf type google.cloud.dialogflow.v2.ValidationError

Static Fields

ENTRIES_FIELD_NUMBER

public static final int ENTRIES_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_MESSAGE_FIELD_NUMBER

public static final int ERROR_MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

SEVERITY_FIELD_NUMBER

public static final int SEVERITY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ValidationError getDefaultInstance()
Returns
TypeDescription
ValidationError

getDescriptor()

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

newBuilder()

public static ValidationError.Builder newBuilder()
Returns
TypeDescription
ValidationError.Builder

newBuilder(ValidationError prototype)

public static ValidationError.Builder newBuilder(ValidationError prototype)
Parameter
NameDescription
prototypeValidationError
Returns
TypeDescription
ValidationError.Builder

parseDelimitedFrom(InputStream input)

public static ValidationError parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ValidationError
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ValidationError parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ValidationError
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ValidationError parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ValidationError
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ValidationError parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ValidationError
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ValidationError parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ValidationError
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ValidationError parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ValidationError
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ValidationError parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ValidationError
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ValidationError parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ValidationError
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ValidationError parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ValidationError
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ValidationError parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ValidationError
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ValidationError parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ValidationError
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ValidationError parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ValidationError
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ValidationError> parser()
Returns
TypeDescription
Parser<ValidationError>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ValidationError getDefaultInstanceForType()
Returns
TypeDescription
ValidationError

getEntries(int index)

public String getEntries(int index)

The names of the entries that the error is associated with. Format:

  • "projects/<Project ID>/agent", if the error is associated with the entire agent.
  • "projects/<Project ID>/agent/intents/<Intent ID>", if the error is associated with certain intents.
  • "projects/<Project ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the error is associated with certain intent training phrases.
  • "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter ID>", if the error is associated with certain intent parameters.
  • "projects/<Project ID>/agent/entities/<Entity ID>", if the error is associated with certain entities.

repeated string entries = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The entries at the given index.

getEntriesBytes(int index)

public ByteString getEntriesBytes(int index)

The names of the entries that the error is associated with. Format:

  • "projects/<Project ID>/agent", if the error is associated with the entire agent.
  • "projects/<Project ID>/agent/intents/<Intent ID>", if the error is associated with certain intents.
  • "projects/<Project ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the error is associated with certain intent training phrases.
  • "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter ID>", if the error is associated with certain intent parameters.
  • "projects/<Project ID>/agent/entities/<Entity ID>", if the error is associated with certain entities.

repeated string entries = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the entries at the given index.

getEntriesCount()

public int getEntriesCount()

The names of the entries that the error is associated with. Format:

  • "projects/<Project ID>/agent", if the error is associated with the entire agent.
  • "projects/<Project ID>/agent/intents/<Intent ID>", if the error is associated with certain intents.
  • "projects/<Project ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the error is associated with certain intent training phrases.
  • "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter ID>", if the error is associated with certain intent parameters.
  • "projects/<Project ID>/agent/entities/<Entity ID>", if the error is associated with certain entities.

repeated string entries = 3;

Returns
TypeDescription
int

The count of entries.

getEntriesList()

public ProtocolStringList getEntriesList()

The names of the entries that the error is associated with. Format:

  • "projects/<Project ID>/agent", if the error is associated with the entire agent.
  • "projects/<Project ID>/agent/intents/<Intent ID>", if the error is associated with certain intents.
  • "projects/<Project ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the error is associated with certain intent training phrases.
  • "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter ID>", if the error is associated with certain intent parameters.
  • "projects/<Project ID>/agent/entities/<Entity ID>", if the error is associated with certain entities.

repeated string entries = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the entries.

getErrorMessage()

public String getErrorMessage()

The detailed error message.

string error_message = 4;

Returns
TypeDescription
String

The errorMessage.

getErrorMessageBytes()

public ByteString getErrorMessageBytes()

The detailed error message.

string error_message = 4;

Returns
TypeDescription
ByteString

The bytes for errorMessage.

getParserForType()

public Parser<ValidationError> getParserForType()
Returns
TypeDescription
Parser<ValidationError>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSeverity()

public ValidationError.Severity getSeverity()

The severity of the error.

.google.cloud.dialogflow.v2.ValidationError.Severity severity = 1;

Returns
TypeDescription
ValidationError.Severity

The severity.

getSeverityValue()

public int getSeverityValue()

The severity of the error.

.google.cloud.dialogflow.v2.ValidationError.Severity severity = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for severity.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ValidationError.Builder newBuilderForType()
Returns
TypeDescription
ValidationError.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ValidationError.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ValidationError.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ValidationError.Builder toBuilder()
Returns
TypeDescription
ValidationError.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException