Exception Descriptors.DescriptorValidationException (3.19.4)

publicstaticclass Descriptors.DescriptorValidationExceptionextendsException

Thrown when building descriptors fails because the source DescriptorProtos are not valid.

Methods

getDescription()

publicStringgetDescription()

Gets a human-readable description of the error.

Returns
Type Description
String

getProblemProto()

publicMessagegetProblemProto()

Gets the protocol message representation of the invalid descriptor.

Returns
Type Description
Message

getProblemSymbolName()

publicStringgetProblemSymbolName()

Gets the full name of the descriptor where the error occurred.

Returns
Type Description
String

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.