CoreLoader

expect object CoreLoader : Loader

A specific Loader which loads Wire's runtime proto files such as google/protobuf/descriptor.proto or wire/extensions.proto.

actual object CoreLoader : Loader
actual object CoreLoader : Loader

A loader that can only load built-in .proto files:

  • Google's protobuf descriptor, which defines standard options like default, deprecated, and java_package.

  • Wire's extensions, which defines since and until options.

If the user has provided their own version of these protos, those are preferred.

actual object CoreLoader : Loader

Functions

load
Link copied to clipboard
abstract fun load(path: String): ProtoFile
open override fun load(path: String): ProtoFile
open override fun load(path: String): ProtoFile
open override fun load(path: String): ProtoFile
withErrors
Link copied to clipboard
abstract fun withErrors(errors: ErrorCollector): Loader

Returns a new loader that reports failures to errors.

open override fun withErrors(errors: ErrorCollector): CoreLoader

Returns a new loader that reports failures to errors.

open override fun withErrors(errors: ErrorCollector): CoreLoader

Returns a new loader that reports failures to errors.

open override fun withErrors(errors: ErrorCollector): CoreLoader

Returns a new loader that reports failures to errors.