wire-java-generator
Module Contents
alltypes
Module Contents
class
AdapterConstant
Module Contents
AdapterConstant
(
className
:
ClassName
,
memberName
:
String
)
AdapterConstant
(
adapter
:
String
)
val
className
:
ClassName
fun
equals
(
other
:
Any
?
)
:
Boolean
fun
hashCode
(
)
:
Int
val
memberName
:
String
class
JavaGenerator
Module Contents
@Nullable
fun
abstractAdapterName
(
protoType
:
ProtoType
)
:
ClassName
?
fun
generateAdapterForCustomType
(
type
:
Type
)
:
TypeSpec
fun
generateEnum
(
type
:
EnumType
)
:
TypeSpec
fun
generateMessage
(
type
:
MessageType
)
:
TypeSpec
@Nullable
fun
generateOptionType
(
extend
:
Extend
,
field
:
Field
)
:
TypeSpec
?
fun
generateType
(
type
:
Type
)
:
TypeSpec
fun
generatedTypeName
(
type
:
Type
)
:
ClassName
fun
generatedTypeName
(
field
:
Field
)
:
ClassName
static
fun
get
(
schema
:
Schema
)
:
JavaGenerator
fun
isEnum
(
type
:
ProtoType
)
:
Boolean
fun
schema
(
)
:
Schema
fun
typeName
(
protoType
:
ProtoType
)
:
TypeName
fun
withAndroid
(
emitAndroid
:
Boolean
)
:
JavaGenerator
fun
withAndroidAnnotations
(
emitAndroidAnnotations
:
Boolean
)
:
JavaGenerator
fun
withCompact
(
emitCompact
:
Boolean
)
:
JavaGenerator
fun
withOptions
(
emitDeclaredOptions
:
Boolean
,
emitAppliedOptions
:
Boolean
)
:
JavaGenerator
fun
withProfile
(
profile
:
Profile
)
:
JavaGenerator
class
Profile
Module Contents
Profile
(
profileFiles
:
List
<
ProfileFileElement
>
=
emptyList()
)
fun
getAdapter
(
type
:
ProtoType
)
:
AdapterConstant
?
fun
getTarget
(
type
:
ProtoType
)
:
TypeName
?
data
class
ProfileFileElement
Module Contents
ProfileFileElement
(
location
:
Location
,
packageName
:
String
?
=
null
,
imports
:
List
<
String
>
=
emptyList()
,
typeConfigs
:
List
<
TypeConfigElement
>
=
emptyList()
)
val
imports
:
List
<
String
>
val
location
:
Location
val
packageName
:
String
?
fun
toSchema
(
)
:
<ERROR CLASS>
val
typeConfigs
:
List
<
TypeConfigElement
>
class
ProfileParser
Module Contents
ProfileParser
(
location
:
Location
,
data
:
String
)
fun
read
(
)
:
ProfileFileElement
data
class
TypeConfigElement
Module Contents
TypeConfigElement
(
location
:
Location
,
type
:
String
?
=
null
,
documentation
:
String
=
""
,
with
:
List
<
OptionElement
>
=
emptyList()
,
target
:
String
?
=
null
,
adapter
:
String
?
=
null
)
val
adapter
:
String
?
val
documentation
:
String
val
location
:
Location
val
target
:
String
?
fun
toSchema
(
)
:
<ERROR CLASS>
val
type
:
String
?
val
with
:
List
<
OptionElement
>
package
com.squareup.wire.java
Module Contents
class
AdapterConstant
Module Contents
AdapterConstant
(
className
:
ClassName
,
memberName
:
String
)
AdapterConstant
(
adapter
:
String
)
val
className
:
ClassName
fun
equals
(
other
:
Any
?
)
:
Boolean
fun
hashCode
(
)
:
Int
val
memberName
:
String
class
JavaGenerator
Module Contents
@Nullable
fun
abstractAdapterName
(
protoType
:
ProtoType
)
:
ClassName
?
fun
generateAdapterForCustomType
(
type
:
Type
)
:
TypeSpec
fun
generateEnum
(
type
:
EnumType
)
:
TypeSpec
fun
generateMessage
(
type
:
MessageType
)
:
TypeSpec
@Nullable
fun
generateOptionType
(
extend
:
Extend
,
field
:
Field
)
:
TypeSpec
?
fun
generateType
(
type
:
Type
)
:
TypeSpec
fun
generatedTypeName
(
type
:
Type
)
:
ClassName
fun
generatedTypeName
(
field
:
Field
)
:
ClassName
static
fun
get
(
schema
:
Schema
)
:
JavaGenerator
fun
isEnum
(
type
:
ProtoType
)
:
Boolean
fun
schema
(
)
:
Schema
fun
typeName
(
protoType
:
ProtoType
)
:
TypeName
fun
withAndroid
(
emitAndroid
:
Boolean
)
:
JavaGenerator
fun
withAndroidAnnotations
(
emitAndroidAnnotations
:
Boolean
)
:
JavaGenerator
fun
withCompact
(
emitCompact
:
Boolean
)
:
JavaGenerator
fun
withOptions
(
emitDeclaredOptions
:
Boolean
,
emitAppliedOptions
:
Boolean
)
:
JavaGenerator
fun
withProfile
(
profile
:
Profile
)
:
JavaGenerator
class
Profile
Module Contents
Profile
(
profileFiles
:
List
<
ProfileFileElement
>
=
emptyList()
)
fun
getAdapter
(
type
:
ProtoType
)
:
AdapterConstant
?
fun
getTarget
(
type
:
ProtoType
)
:
TypeName
?
package
com.squareup.wire.java.internal
Module Contents
data
class
ProfileFileElement
Module Contents
ProfileFileElement
(
location
:
Location
,
packageName
:
String
?
=
null
,
imports
:
List
<
String
>
=
emptyList()
,
typeConfigs
:
List
<
TypeConfigElement
>
=
emptyList()
)
val
imports
:
List
<
String
>
val
location
:
Location
val
packageName
:
String
?
fun
toSchema
(
)
:
<ERROR CLASS>
val
typeConfigs
:
List
<
TypeConfigElement
>
class
ProfileParser
Module Contents
ProfileParser
(
location
:
Location
,
data
:
String
)
fun
read
(
)
:
ProfileFileElement
data
class
TypeConfigElement
Module Contents
TypeConfigElement
(
location
:
Location
,
type
:
String
?
=
null
,
documentation
:
String
=
""
,
with
:
List
<
OptionElement
>
=
emptyList()
,
target
:
String
?
=
null
,
adapter
:
String
?
=
null
)
val
adapter
:
String
?
val
documentation
:
String
val
location
:
Location
val
target
:
String
?
fun
toSchema
(
)
:
<ERROR CLASS>
val
type
:
String
?
val
with
:
List
<
OptionElement
>