1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/iot/v1/device_manager.proto 18 19 package com.google.cloud.iot.v1; 20 21 public interface CreateDeviceRequestOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.CreateDeviceRequest) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Required. The name of the device registry where this device should be created. 31 * For example, 32 * `projects/example-project/locations/us-central1/registries/my-registry`. 33 * </pre> 34 * 35 * <code> 36 * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 37 * </code> 38 * 39 * @return The parent. 40 */ getParent()41 java.lang.String getParent(); 42 /** 43 * 44 * 45 * <pre> 46 * Required. The name of the device registry where this device should be created. 47 * For example, 48 * `projects/example-project/locations/us-central1/registries/my-registry`. 49 * </pre> 50 * 51 * <code> 52 * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 53 * </code> 54 * 55 * @return The bytes for parent. 56 */ getParentBytes()57 com.google.protobuf.ByteString getParentBytes(); 58 59 /** 60 * 61 * 62 * <pre> 63 * Required. The device registration details. The field `name` must be empty. The server 64 * generates `name` from the device registry `id` and the 65 * `parent` field. 66 * </pre> 67 * 68 * <code>.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];</code> 69 * 70 * @return Whether the device field is set. 71 */ hasDevice()72 boolean hasDevice(); 73 /** 74 * 75 * 76 * <pre> 77 * Required. The device registration details. The field `name` must be empty. The server 78 * generates `name` from the device registry `id` and the 79 * `parent` field. 80 * </pre> 81 * 82 * <code>.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];</code> 83 * 84 * @return The device. 85 */ getDevice()86 com.google.cloud.iot.v1.Device getDevice(); 87 /** 88 * 89 * 90 * <pre> 91 * Required. The device registration details. The field `name` must be empty. The server 92 * generates `name` from the device registry `id` and the 93 * `parent` field. 94 * </pre> 95 * 96 * <code>.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];</code> 97 */ getDeviceOrBuilder()98 com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder(); 99 } 100