@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@Override public ListDeviceRegistriesRequest injectPageSize( ListDeviceRegistriesRequest payload, int pageSize) { return ListDeviceRegistriesRequest.newBuilder(payload).setPageSize(pageSize).build(); }
@Override public ListDeviceRegistriesRequest injectToken( ListDeviceRegistriesRequest payload, String token) { return ListDeviceRegistriesRequest.newBuilder(payload).setPageToken(token).build(); }
/** * Lists device registries. * * <p>Sample code: * * <pre><code> * try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (DeviceRegistry element : deviceManagerClient.listDeviceRegistries(parent.toString()).iterateAll()) { * // doThingsWith(element); * } * } * </code></pre> * * @param parent The project and cloud region path. For example, * `projects/example-project/locations/us-central1`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDeviceRegistriesPagedResponse listDeviceRegistries(String parent) { ListDeviceRegistriesRequest request = ListDeviceRegistriesRequest.newBuilder().setParent(parent).build(); return listDeviceRegistries(request); }
/** * Lists device registries. * * <p>Sample code: * * <pre><code> * try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (DeviceRegistry element : deviceManagerClient.listDeviceRegistries(parent).iterateAll()) { * // doThingsWith(element); * } * } * </code></pre> * * @param parent The project and cloud region path. For example, * `projects/example-project/locations/us-central1`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDeviceRegistriesPagedResponse listDeviceRegistries(LocationName parent) { ListDeviceRegistriesRequest request = ListDeviceRegistriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); return listDeviceRegistries(request); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }