wire-java-generator / com.squareup.wire.java

Package com.squareup.wire.java

Types

AdapterConstant

class AdapterConstant

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.

JavaGenerator

class JavaGenerator

Generates Java source code that matches proto definitions.

This can map type names from protocol buffers (like uint32, string, or squareup.protos.person.Person to the corresponding Java names (like int, java.lang.String, or com.squareup.protos.person.Person).

Profile

class Profile

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.