examples/iot-nirvana/client/src/main/java/com/google/cloud/demo/iot/nirvana/client/IotDeviceMgr.java
/**
   * Create the canonical IoT Core registry path on GCP.
   *
   * @return IoT Core registry path in the form
   *     projects/[PROJECT_ID]/locations/[LOCATION]/registries/[REGISTRY_NAME]
   */
Create the canonical IoT Core registry path on GCP.
Create the canonical IoT Core registry path on GCP .
String generateRegistryPath() {
    return String.format(
        "projects/%s/locations/%s/registries/%s",
        getGcpProjectId(), getGcpRegion(), getRegistryName());
  }
String generateRegistryPath ( ) { return String . format ( "projects/%s/locations/%s/registries/%s" , getGcpProjectId ( ) , getGcpRegion ( ) , getRegistryName ( ) ) ; }
Create the canonical IoT Core registry path on GCP.
Create the canonical IoT Core registry path on GCP .