io.vertx.grpc.common

## Interface ServiceName

-     public interface ServiceName

  A gRPC service name.

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `static ServiceName` | `create(String fqn)` Create a service name from its fully qualified name, e.g `com.examples.MyService`
    `static ServiceName` | `create(String packageName, String name)` Create a service name from its package name and name
    `String` | `fullyQualifiedName()`
    `String` | `name()`
    `String` | `packageName()`
    `String` | `pathOf(String method)` Create the path of a given `method` to call.

- - ### Method Detail

    - #### create

          static ServiceName create(String fqn)

      Create a service name from its fully qualified name, e.g `com.examples.MyService`
      Parameters:
        `fqn` - the fully qualified service name
      Returns:
        the service name

    - #### create

          static ServiceName create(String packageName,
                                    String name)

      Create a service name from its package name and name
      Parameters:
        `packageName` - the package name
        `name` - the name
      Returns:
        the service name

    - #### name

          String name()

      Returns:
        the name

    - #### packageName

          String packageName()

      Returns:
        the package name

    - #### fullyQualifiedName

          String fullyQualifiedName()

      Returns:
        the fully qualified name

    - #### pathOf

          String pathOf(String method)

      Create the path of a given `method` to call.
      Parameters:
        `method` - the method
      Returns:
        the path, e.g `/com.examples.MyService/MyMethod`

Copyright © 2024 Eclipse. All rights reserved.