toggle menu
wire-schema
5.1.0-SNAPSHOT
common
switch theme
search in API
wire-schema
/
com.squareup.wire.schema
/
Service
Service
data
class
Service
(
val
type
:
ProtoType
,
val
location
:
Location
,
val
documentation
:
String
,
val
name
:
String
,
val
rpcs
:
List
<
Rpc
>
,
val
options
:
Options
)
Members
Constructors
Service
Link copied to clipboard
constructor
(
type
:
ProtoType
,
location
:
Location
,
documentation
:
String
,
name
:
String
,
rpcs
:
List
<
Rpc
>
,
options
:
Options
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
documentation
Link copied to clipboard
@get:
JvmName
(
name
=
"documentation"
)
val
documentation
:
String
location
Link copied to clipboard
@get:
JvmName
(
name
=
"location"
)
val
location
:
Location
name
Link copied to clipboard
@get:
JvmName
(
name
=
"name"
)
val
name
:
String
options
Link copied to clipboard
@get:
JvmName
(
name
=
"options"
)
val
options
:
Options
rpcs
Link copied to clipboard
@get:
JvmName
(
name
=
"rpcs"
)
val
rpcs
:
List
<
Rpc
>
type
Link copied to clipboard
@get:
JvmName
(
name
=
"type"
)
val
type
:
ProtoType
Functions
link
Link copied to clipboard
fun
link
(
linker
:
Linker
)
link
Options
Link copied to clipboard
fun
linkOptions
(
linker
:
Linker
,
validate
:
Boolean
)
retain
All
Link copied to clipboard
fun
retainAll
(
schema
:
Schema
,
markSet
:
MarkSet
)
:
Service
?
rpc
Link copied to clipboard
fun
rpc
(
name
:
String
)
:
Rpc
?
Returns the RPC named
name
, or null if this service has no such method.
validate
Link copied to clipboard
fun
validate
(
linker
:
Linker
)