Interface CreateDeviceRequestOrBuilder (2.13.0)

public interface CreateDeviceRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDevice()

public abstract Device getDevice()

Required. The device registration details. The field name must be empty. The server generates name from the device registry id and the parent field.

.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Device

The device.

getDeviceOrBuilder()

public abstract DeviceOrBuilder getDeviceOrBuilder()

Required. The device registration details. The field name must be empty. The server generates name from the device registry id and the parent field.

.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DeviceOrBuilder

getParent()

public abstract String getParent()

Required. The name of the device registry where this device should be created. For example, projects/example-project/locations/us-central1/registries/my-registry.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. The name of the device registry where this device should be created. For example, projects/example-project/locations/us-central1/registries/my-registry.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

hasDevice()

public abstract boolean hasDevice()

Required. The device registration details. The field name must be empty. The server generates name from the device registry id and the parent field.

.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the device field is set.