Package-level declarations
Types
A constant field that identifies a ProtoAdapter. This should be a string like like com.squareup.dinosaurs.Dinosaur#ADAPTER
with a fully qualified class name, a #
, and a field name.
ClaimedDefinitions tracks handled objects: Types, Services, and Fields. A SchemaHandler is to first check if an object has already been claimed; if yes, it is not to handle it. Otherwise, the SchemaHandler is to handle the object and claim it. It is an error for a SchemaHandler to handle an object which has already been claimed.
ClaimedPaths tracks generated files' Paths. Schema handlers who generate files are to claim each generated file's path. It is an error to generate different Types or Services to the same file and ClaimedPaths will throw when generation conflicts happen.
A specific Loader which loads Wire's runtime proto files such as google/protobuf/descriptor.proto
or wire/extensions.proto
.
A loader that can only load built-in .proto
files:
A set of rules that describes which types to generate.
Collects errors to be reported as a batch. Errors include both a detail message plus context of where they occurred within the schema.
Listener for metrics events. Extend this class to monitor WireRun and all schema handlers involved in the Protobuf schema manipulation.
A mark set is used in three phases:
A set of options declared on a message declaration, field declaration, enum declaration, enum constant declaration, service declaration, RPC method declaration, or proto file declaration. Options values may be arbitrary protocol buffer messages, but must be valid protocol buffer messages.
Describes how to map .proto
to .java
. A single repository of .proto
files may have multiple profiles; for example a project may target both Android and Java.
Identifies a field, enum or RPC on a declaring type. Members are encoded as strings containing a type name, a hash, and a member name, like squareup.dinosaurs.Dinosaur#length_meters
.
Creates a new schema that contains only the types selected by the pruning rules, including their transitive dependencies.
A set of rules that describes which types and members to retain and which to remove.
A SchemaHandlers Schema!
Load proto files and their transitive dependencies and parse them. Keep track of which files were loaded from where so that we can use that information later when deciding what to generate.
A set of rules which defines schema requirements for a specific Syntax.
An invocation of the Wire compiler. Each invocation performs the following operations:
Functions
Returns true if path is bundled in the wire runtime.
Create and return an instance of EventListener.Factory.
Create and return an instance of WireLogger.Factory.