io.vertx.reactivex.grpc.common

## Class ServiceMethod<I,O>

- java.lang.Object
- - io.vertx.reactivex.grpc.common.ServiceMethod<I,O>

- All Implemented Interfaces:
    io.vertx.lang.rx.RxDelegate

      public class ServiceMethod<I,O>
      extends Object
      implements io.vertx.lang.rx.RxDelegate

  Bundle all the bits required to call or bind a grpc service method.

  NOTE: This class has been automatically generated from the `original` non RX-ified interface using Vert.x codegen.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static io.vertx.lang.rx.TypeArg<ServiceMethod>` | `__TYPE_ARG`
    `io.vertx.lang.rx.TypeArg<I>` | `__typeArg_0`
    `io.vertx.lang.rx.TypeArg<O>` | `__typeArg_1`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ServiceMethod(Object delegate, io.vertx.lang.rx.TypeArg<I> typeArg_0, io.vertx.lang.rx.TypeArg<O> typeArg_1)`
    `ServiceMethod(ServiceMethod delegate)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <Req,Resp> ServiceMethod<Resp,Req>` | `client(ServiceName serviceName, String methodName, GrpcMessageEncoder<Req> encoder, GrpcMessageDecoder<Resp> decoder)`
    `GrpcMessageDecoder<I>` | `decoder()`
    `GrpcMessageEncoder<O>` | `encoder()`
    `boolean` | `equals(Object o)`
    `String` | `fullMethodName()`
    `ServiceMethod` | `getDelegate()`
    `int` | `hashCode()`
    `String` | `methodName()`
    `static <I,O> ServiceMethod<I,O>` | `newInstance(ServiceMethod arg)`
    `static <I,O> ServiceMethod<I,O>` | `newInstance(ServiceMethod arg, io.vertx.lang.rx.TypeArg<I> __typeArg_I, io.vertx.lang.rx.TypeArg<O> __typeArg_O)`
    `static <Req,Resp> ServiceMethod<Req,Resp>` | `server(ServiceName serviceName, String methodName, GrpcMessageEncoder<Resp> encoder, GrpcMessageDecoder<Req> decoder)`
    `ServiceName` | `serviceName()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### __TYPE_ARG

          public static final io.vertx.lang.rx.TypeArg<ServiceMethod> __TYPE_ARG

    - #### __typeArg_0

          public final io.vertx.lang.rx.TypeArg<I> __typeArg_0

    - #### __typeArg_1

          public final io.vertx.lang.rx.TypeArg<O> __typeArg_1

  - ### Constructor Detail

    - #### ServiceMethod

          public ServiceMethod(ServiceMethod delegate)

    - #### ServiceMethod

          public ServiceMethod(Object delegate,
                               io.vertx.lang.rx.TypeArg<I> typeArg_0,
                               io.vertx.lang.rx.TypeArg<O> typeArg_1)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### getDelegate

          public ServiceMethod getDelegate()

      Specified by:
        `getDelegate` in interface `io.vertx.lang.rx.RxDelegate`

    - #### client

          public static <Req,Resp> ServiceMethod<Resp,Req> client(ServiceName serviceName,
                                                                  String methodName,
                                                                  GrpcMessageEncoder<Req> encoder,
                                                                  GrpcMessageDecoder<Resp> decoder)

    - #### server

          public static <Req,Resp> ServiceMethod<Req,Resp> server(ServiceName serviceName,
                                                                  String methodName,
                                                                  GrpcMessageEncoder<Resp> encoder,
                                                                  GrpcMessageDecoder<Req> decoder)

    - #### serviceName

          public ServiceName serviceName()

      Returns:
        the service name.

    - #### methodName

          public String methodName()

      Returns:
        the method name

    - #### fullMethodName

          public String fullMethodName()

    - #### decoder

          public GrpcMessageDecoder<I> decoder()

      Returns:
        the message decoder

    - #### encoder

          public GrpcMessageEncoder<O> encoder()

      Returns:
        the message encoder

    - #### newInstance

          public static <I,O> ServiceMethod<I,O> newInstance(ServiceMethod arg)

    - #### newInstance

          public static <I,O> ServiceMethod<I,O> newInstance(ServiceMethod arg,
                                                             io.vertx.lang.rx.TypeArg<I> __typeArg_I,
                                                             io.vertx.lang.rx.TypeArg<O> __typeArg_O)

Copyright © 2025 Eclipse. All rights reserved.