Interface CreateDeviceRequestOrBuilder (2.45.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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the device field is set.