wire-compiler
Module Contents
alltypes
Module Contents
interface
CustomHandlerBeta
Module Contents
abstract
fun
newHandler
(
schema
:
Schema
,
fs
:
FileSystem
,
outDirectory
:
String
,
logger
:
WireLogger
,
newProfileLoader
:
NewProfileLoader
)
:
SchemaHandler
data
class
CustomTargetBeta
:
Target
Module Contents
CustomTargetBeta
(
includes
:
List
<
String
>
=
listOf("*")
,
excludes
:
List
<
String
>
=
listOf()
,
exclusive
:
Boolean
=
true
,
outDirectory
:
String
,
customHandlerClass
:
String
)
val
customHandlerClass
:
String
val
excludes
:
List
<
String
>
val
exclusive
:
Boolean
val
includes
:
List
<
String
>
val
outDirectory
:
String
data
class
JavaTarget
:
Target
Module Contents
JavaTarget
(
includes
:
List
<
String
>
=
listOf("*")
,
excludes
:
List
<
String
>
=
listOf()
,
exclusive
:
Boolean
=
true
,
outDirectory
:
String
,
android
:
Boolean
=
false
,
androidAnnotations
:
Boolean
=
false
,
compact
:
Boolean
=
false
)
val
android
:
Boolean
val
androidAnnotations
:
Boolean
val
compact
:
Boolean
val
excludes
:
List
<
String
>
val
exclusive
:
Boolean
val
includes
:
List
<
String
>
val
outDirectory
:
String
data
class
KotlinTarget
:
Target
Module Contents
KotlinTarget
(
includes
:
List
<
String
>
=
listOf("*")
,
excludes
:
List
<
String
>
=
listOf()
,
exclusive
:
Boolean
=
true
,
outDirectory
:
String
,
android
:
Boolean
=
false
,
javaInterop
:
Boolean
=
false
,
rpcCallStyle
:
RpcCallStyle
=
RpcCallStyle.SUSPENDING
,
rpcRole
:
RpcRole
=
RpcRole.CLIENT
,
singleMethodServices
:
Boolean
=
false
)
val
android
:
Boolean
val
excludes
:
List
<
String
>
val
exclusive
:
Boolean
val
includes
:
List
<
String
>
val
javaInterop
:
Boolean
val
outDirectory
:
String
val
rpcCallStyle
:
RpcCallStyle
val
rpcRole
:
RpcRole
val
singleMethodServices
:
Boolean
interface
NewProfileLoader
Module Contents
abstract
fun
loadProfile
(
name
:
String
,
schema
:
Schema
)
:
Profile
class
NewSchemaLoader
:
Closeable
,
Loader
,
NewProfileLoader
Module Contents
NewSchemaLoader
(
fs
:
FileSystem
)
fun
close
(
)
:
Unit
fun
initRoots
(
sourcePath
:
List
<
Location
>
,
protoPath
:
List
<
Location
>
=
listOf()
)
:
Unit
fun
load
(
path
:
String
)
:
ProtoFile
fun
loadProfile
(
name
:
String
,
schema
:
Schema
)
:
Profile
fun
loadSchema
(
)
:
Schema
lateinit
var
sourcePathFiles
:
List
<
ProtoFile
>
data
class
NullTarget
:
Target
Module Contents
NullTarget
(
includes
:
List
<
String
>
=
listOf("*")
,
excludes
:
List
<
String
>
=
listOf()
)
val
excludes
:
List
<
String
>
val
exclusive
:
Boolean
val
includes
:
List
<
String
>
data
class
ProtoTarget
:
Target
Module Contents
ProtoTarget
(
outDirectory
:
String
)
val
excludes
:
List
<
String
>
val
exclusive
:
Boolean
val
includes
:
List
<
String
>
val
outDirectory
:
String
sealed
class
Target
:
Serializable
Module Contents
interface
SchemaHandler
Module Contents
abstract
fun
handle
(
type
:
Type
)
:
Unit
abstract
fun
handle
(
service
:
Service
)
:
Unit
open
fun
handle
(
protoFile
:
ProtoFile
,
emittingRules
:
EmittingRules
,
claimedDefinitions
:
ClaimedDefinitions
,
isExclusive
:
Boolean
)
:
Unit
abstract
val
excludes
:
List
<
String
>
abstract
val
exclusive
:
Boolean
abstract
val
includes
:
List
<
String
>
class
WireCompiler
Module Contents
const
val
CODE_GENERATED_BY_WIRE
:
String
fun
compile
(
)
:
Unit
val
dryRun
:
Boolean
val
emitAndroid
:
Boolean
val
emitAndroidAnnotations
:
Boolean
val
emitCompact
:
Boolean
@JvmOverloads
@JvmStatic
fun
forArgs
(
fileSystem
:
FileSystem
=
FileSystems.getDefault()
,
logger
:
WireLogger
=
ConsoleWireLogger()
,
vararg
args
:
String
)
:
WireCompiler
val
fs
:
FileSystem
val
javaInterop
:
Boolean
val
javaOut
:
String
?
val
kotlinOut
:
String
?
val
log
:
WireLogger
@JvmStatic
fun
main
(
args
:
Array
<
String
>
)
:
Unit
val
namedFilesOnly
:
Boolean
val
protoPaths
:
List
<
String
>
val
pruningRules
:
PruningRules
val
sourceFileNames
:
List
<
String
>
interface
WireLogger
Module Contents
abstract
fun
artifact
(
outputPath
:
Path
,
filePath
:
String
)
:
Unit
abstract
fun
artifact
(
outputPath
:
Path
,
javaFile
:
JavaFile
)
:
Unit
abstract
fun
artifact
(
outputPath
:
Path
,
kotlinFile
:
FileSpec
)
:
Unit
abstract
fun
artifactSkipped
(
type
:
ProtoType
)
:
Unit
abstract
fun
info
(
message
:
String
)
:
Unit
abstract
fun
setQuiet
(
quiet
:
Boolean
)
:
Unit
data
class
WireRun
Module Contents
WireRun
(
sourcePath
:
List
<
Location
>
,
protoPath
:
List
<
Location
>
=
listOf()
,
treeShakingRoots
:
List
<
String
>
=
listOf("*")
,
treeShakingRubbish
:
List
<
String
>
=
listOf()
,
since
:
String
?
=
null
,
until
:
String
?
=
null
,
targets
:
List
<
Target
>
,
proto3Preview
:
Boolean
=
false
)
fun
execute
(
fs
:
FileSystem
=
FileSystems.getDefault()
,
logger
:
WireLogger
=
ConsoleWireLogger()
)
:
Unit
val
proto3Preview
:
Boolean
val
protoPath
:
List
<
Location
>
val
since
:
String
?
val
sourcePath
:
List
<
Location
>
val
targets
:
List
<
Target
>
val
treeShakingRoots
:
List
<
String
>
val
treeShakingRubbish
:
List
<
String
>
val
until
:
String
?
package
com.squareup.wire
Module Contents
class
WireCompiler
Module Contents
const
val
CODE_GENERATED_BY_WIRE
:
String
fun
compile
(
)
:
Unit
val
dryRun
:
Boolean
val
emitAndroid
:
Boolean
val
emitAndroidAnnotations
:
Boolean
val
emitCompact
:
Boolean
@JvmOverloads
@JvmStatic
fun
forArgs
(
fileSystem
:
FileSystem
=
FileSystems.getDefault()
,
logger
:
WireLogger
=
ConsoleWireLogger()
,
vararg
args
:
String
)
:
WireCompiler
val
fs
:
FileSystem
val
javaInterop
:
Boolean
val
javaOut
:
String
?
val
kotlinOut
:
String
?
val
log
:
WireLogger
@JvmStatic
fun
main
(
args
:
Array
<
String
>
)
:
Unit
val
namedFilesOnly
:
Boolean
val
protoPaths
:
List
<
String
>
val
pruningRules
:
PruningRules
val
sourceFileNames
:
List
<
String
>
interface
WireLogger
Module Contents
abstract
fun
artifact
(
outputPath
:
Path
,
filePath
:
String
)
:
Unit
abstract
fun
artifact
(
outputPath
:
Path
,
javaFile
:
JavaFile
)
:
Unit
abstract
fun
artifact
(
outputPath
:
Path
,
kotlinFile
:
FileSpec
)
:
Unit
abstract
fun
artifactSkipped
(
type
:
ProtoType
)
:
Unit
abstract
fun
info
(
message
:
String
)
:
Unit
abstract
fun
setQuiet
(
quiet
:
Boolean
)
:
Unit
package
com.squareup.wire.schema
Module Contents
interface
CustomHandlerBeta
Module Contents
abstract
fun
newHandler
(
schema
:
Schema
,
fs
:
FileSystem
,
outDirectory
:
String
,
logger
:
WireLogger
,
newProfileLoader
:
NewProfileLoader
)
:
SchemaHandler
data
class
CustomTargetBeta
:
Target
Module Contents
CustomTargetBeta
(
includes
:
List
<
String
>
=
listOf("*")
,
excludes
:
List
<
String
>
=
listOf()
,
exclusive
:
Boolean
=
true
,
outDirectory
:
String
,
customHandlerClass
:
String
)
val
customHandlerClass
:
String
val
excludes
:
List
<
String
>
val
exclusive
:
Boolean
val
includes
:
List
<
String
>
val
outDirectory
:
String
data
class
JavaTarget
:
Target
Module Contents
JavaTarget
(
includes
:
List
<
String
>
=
listOf("*")
,
excludes
:
List
<
String
>
=
listOf()
,
exclusive
:
Boolean
=
true
,
outDirectory
:
String
,
android
:
Boolean
=
false
,
androidAnnotations
:
Boolean
=
false
,
compact
:
Boolean
=
false
)
val
android
:
Boolean
val
androidAnnotations
:
Boolean
val
compact
:
Boolean
val
excludes
:
List
<
String
>
val
exclusive
:
Boolean
val
includes
:
List
<
String
>
val
outDirectory
:
String
data
class
KotlinTarget
:
Target
Module Contents
KotlinTarget
(
includes
:
List
<
String
>
=
listOf("*")
,
excludes
:
List
<
String
>
=
listOf()
,
exclusive
:
Boolean
=
true
,
outDirectory
:
String
,
android
:
Boolean
=
false
,
javaInterop
:
Boolean
=
false
,
rpcCallStyle
:
RpcCallStyle
=
RpcCallStyle.SUSPENDING
,
rpcRole
:
RpcRole
=
RpcRole.CLIENT
,
singleMethodServices
:
Boolean
=
false
)
val
android
:
Boolean
val
excludes
:
List
<
String
>
val
exclusive
:
Boolean
val
includes
:
List
<
String
>
val
javaInterop
:
Boolean
val
outDirectory
:
String
val
rpcCallStyle
:
RpcCallStyle
val
rpcRole
:
RpcRole
val
singleMethodServices
:
Boolean
interface
NewProfileLoader
Module Contents
abstract
fun
loadProfile
(
name
:
String
,
schema
:
Schema
)
:
Profile
class
NewSchemaLoader
:
Closeable
,
Loader
,
NewProfileLoader
Module Contents
NewSchemaLoader
(
fs
:
FileSystem
)
fun
close
(
)
:
Unit
fun
initRoots
(
sourcePath
:
List
<
Location
>
,
protoPath
:
List
<
Location
>
=
listOf()
)
:
Unit
fun
load
(
path
:
String
)
:
ProtoFile
fun
loadProfile
(
name
:
String
,
schema
:
Schema
)
:
Profile
fun
loadSchema
(
)
:
Schema
lateinit
var
sourcePathFiles
:
List
<
ProtoFile
>
data
class
NullTarget
:
Target
Module Contents
NullTarget
(
includes
:
List
<
String
>
=
listOf("*")
,
excludes
:
List
<
String
>
=
listOf()
)
val
excludes
:
List
<
String
>
val
exclusive
:
Boolean
val
includes
:
List
<
String
>
data
class
ProtoTarget
:
Target
Module Contents
ProtoTarget
(
outDirectory
:
String
)
val
excludes
:
List
<
String
>
val
exclusive
:
Boolean
val
includes
:
List
<
String
>
val
outDirectory
:
String
sealed
class
Target
:
Serializable
Module Contents
interface
SchemaHandler
Module Contents
abstract
fun
handle
(
type
:
Type
)
:
Unit
abstract
fun
handle
(
service
:
Service
)
:
Unit
open
fun
handle
(
protoFile
:
ProtoFile
,
emittingRules
:
EmittingRules
,
claimedDefinitions
:
ClaimedDefinitions
,
isExclusive
:
Boolean
)
:
Unit
abstract
val
excludes
:
List
<
String
>
abstract
val
exclusive
:
Boolean
abstract
val
includes
:
List
<
String
>
data
class
WireRun
Module Contents
WireRun
(
sourcePath
:
List
<
Location
>
,
protoPath
:
List
<
Location
>
=
listOf()
,
treeShakingRoots
:
List
<
String
>
=
listOf("*")
,
treeShakingRubbish
:
List
<
String
>
=
listOf()
,
since
:
String
?
=
null
,
until
:
String
?
=
null
,
targets
:
List
<
Target
>
,
proto3Preview
:
Boolean
=
false
)
fun
execute
(
fs
:
FileSystem
=
FileSystems.getDefault()
,
logger
:
WireLogger
=
ConsoleWireLogger()
)
:
Unit
val
proto3Preview
:
Boolean
val
protoPath
:
List
<
Location
>
val
since
:
String
?
val
sourcePath
:
List
<
Location
>
val
targets
:
List
<
Target
>
val
treeShakingRoots
:
List
<
String
>
val
treeShakingRubbish
:
List
<
String
>
val
until
:
String
?