Uses of Class
io.apicurio.registry.utils.protobuf.schema.FileDescriptorUtils.ProtobufSchemaContent
Packages that use FileDescriptorUtils.ProtobufSchemaContent
-
Uses of FileDescriptorUtils.ProtobufSchemaContent in io.apicurio.registry.utils.protobuf.schema
Methods in io.apicurio.registry.utils.protobuf.schema that return FileDescriptorUtils.ProtobufSchemaContentModifier and TypeMethodDescriptionMethods in io.apicurio.registry.utils.protobuf.schema with parameters of type FileDescriptorUtils.ProtobufSchemaContentModifier 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 whichfileName()doesn't require to specify the package name, automatically later resolved by parsingschemaDefinition().
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.Method parameters in io.apicurio.registry.utils.protobuf.schema with type arguments of type FileDescriptorUtils.ProtobufSchemaContentModifier 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 whichfileName()doesn't require to specify the package name, automatically later resolved by parsingschemaDefinition().
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.