Uses of Class
io.apicurio.registry.utils.protobuf.schema.FileDescriptorUtils.ParseSchemaException
Packages that use FileDescriptorUtils.ParseSchemaException
-
Uses of FileDescriptorUtils.ParseSchemaException in io.apicurio.registry.utils.protobuf.schema
Methods in io.apicurio.registry.utils.protobuf.schema that throw FileDescriptorUtils.ParseSchemaExceptionModifier and TypeMethodDescriptionstatic com.google.protobuf.Descriptors.FileDescriptorFileDescriptorUtils.parseProtoFileWithDependencies(FileDescriptorUtils.ProtobufSchemaContent mainProtoFile, Collection<FileDescriptorUtils.ProtobufSchemaContent> dependencies) Same asFileDescriptorUtils.parseProtoFileWithDependencies(ProtobufSchemaContent, Collection, Map, boolean), but withfailFastset totrueandrequiredSchemaDepsset tonull.static com.google.protobuf.Descriptors.FileDescriptorFileDescriptorUtils.parseProtoFileWithDependencies(FileDescriptorUtils.ProtobufSchemaContent mainProtoFile, Collection<FileDescriptorUtils.ProtobufSchemaContent> dependencies, Map<String, String> requiredSchemaDeps, boolean failFast) Parse a proto file with its dependencies to produce aDescriptors.FileDescriptorof it, trying to resolve any transitive dependency.
Both the dependencies and the main proto file must be provided asFileDescriptorUtils.ProtobufSchemaContent, still unparsed, and whichFileDescriptorUtils.ProtobufSchemaContent.fileName()doesn't require to specify the package name, automatically later resolved by parsingFileDescriptorUtils.ProtobufSchemaContent.schemaDefinition().
During the resolution of dependencies process, depending onfailFast, the process will fail as soon as any parsing error happen in the list of provided dependencies, regardless been required or not, or it will proceed until a required dependency cannot be resolved.
IfrequiredSchemaDepsis provided, it will be populated with the required dependencies, which keys are in the form ofpackageName/fileNameand the value is the schema definition of the dependency.static com.google.protobuf.Descriptors.FileDescriptorFileDescriptorUtils.parseProtoFileWithDependencies(File mainProtoFile, Set<File> dependencies) Same asFileDescriptorUtils.parseProtoFileWithDependencies(File, Set, Map), but withrequiredSchemaDepsset tonull.static com.google.protobuf.Descriptors.FileDescriptorFileDescriptorUtils.parseProtoFileWithDependencies(File mainProtoFile, Set<File> dependencies, Map<String, String> requiredSchemaDeps) Same asFileDescriptorUtils.parseProtoFileWithDependencies(File, Set, Map, boolean), but withfailFastset totrueandrequiredSchemaDepsset tonull.static com.google.protobuf.Descriptors.FileDescriptorFileDescriptorUtils.parseProtoFileWithDependencies(File mainProtoFile, Set<File> dependencies, Map<String, String> requiredSchemaDeps, boolean failFast) Parse a proto file with its dependencies to produce aDescriptors.FileDescriptorof it, trying to resolve any transitive dependency.
During the resolution of dependencies process, depending onfailFast, the process will fail as soon as any parsing error happen in the list of provided dependencies, regardless been required or not, or it will proceed until a required dependency cannot be resolved.
IfrequiredSchemaDepsis provided, it will be populated with the required dependencies, which keys are in the form ofpackageName/fileNameand the value is the schema definition of the dependency.