wire-grpc-client
Module Contents
alltypes
Module Contents
class
GrpcClient
Module Contents
class
Builder
Module Contents
Builder
(
)
fun
baseUrl
(
baseUrl
:
String
)
:
Builder
fun
build
(
)
:
GrpcClient
fun
client
(
client
:
OkHttpClient
)
:
Builder
fun
<
T
:
Service
>
create
(
service
:
KClass
<
T
>
)
:
T
class
PipeDuplexRequestBody
:
RequestBody
Module Contents
PipeDuplexRequestBody
(
contentType
:
MediaType
?
,
pipeMaxBufferSize
:
Long
)
fun
contentType
(
)
:
MediaType
?
fun
createSink
(
)
:
BufferedSink
fun
isDuplex
(
)
:
Boolean
fun
writeTo
(
sink
:
BufferedSink
)
:
Unit
interface
Service
@Target
(
[AnnotationTarget.FUNCTION]
)
annotation
class
WireRpc
Module Contents
WireRpc
(
path
:
String
,
requestAdapter
:
String
,
responseAdapter
:
String
)
val
path
:
String
val
requestAdapter
:
String
val
responseAdapter
:
String
package
com.squareup.wire
Module Contents
class
GrpcClient
Module Contents
class
Builder
Module Contents
Builder
(
)
fun
baseUrl
(
baseUrl
:
String
)
:
Builder
fun
build
(
)
:
GrpcClient
fun
client
(
client
:
OkHttpClient
)
:
Builder
fun
<
T
:
Service
>
create
(
service
:
KClass
<
T
>
)
:
T
class
PipeDuplexRequestBody
:
RequestBody
Module Contents
PipeDuplexRequestBody
(
contentType
:
MediaType
?
,
pipeMaxBufferSize
:
Long
)
fun
contentType
(
)
:
MediaType
?
fun
createSink
(
)
:
BufferedSink
fun
isDuplex
(
)
:
Boolean
fun
writeTo
(
sink
:
BufferedSink
)
:
Unit
interface
Service
@Target
(
[AnnotationTarget.FUNCTION]
)
annotation
class
WireRpc
Module Contents
WireRpc
(
path
:
String
,
requestAdapter
:
String
,
responseAdapter
:
String
)
val
path
:
String
val
requestAdapter
:
String
val
responseAdapter
:
String