Interface CreateDeviceRequestOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    CreateDeviceRequest, CreateDeviceRequest.Builder

    public interface CreateDeviceRequestOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Device getDevice()
      Required.
      DeviceOrBuilder getDeviceOrBuilder()
      Required.
      String getParent()
      Required.
      com.google.protobuf.ByteString getParentBytes()
      Required.
      boolean hasDevice()
      Required.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getParent

        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:
        The parent.
      • getParentBytes

        com.google.protobuf.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:
        The bytes for parent.
      • hasDevice

        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:
        Whether the device field is set.
      • getDevice

        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:
        The device.
      • getDeviceOrBuilder

        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];