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 SendCommandToDeviceRequestOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.SendCommandToDeviceRequest) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Required. The name of the device. For example, 31 * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or 32 * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. 33 * </pre> 34 * 35 * <code> 36 * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 37 * </code> 38 * 39 * @return The name. 40 */ getName()41 java.lang.String getName(); 42 /** 43 * 44 * 45 * <pre> 46 * Required. The name of the device. For example, 47 * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or 48 * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. 49 * </pre> 50 * 51 * <code> 52 * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 53 * </code> 54 * 55 * @return The bytes for name. 56 */ getNameBytes()57 com.google.protobuf.ByteString getNameBytes(); 58 59 /** 60 * 61 * 62 * <pre> 63 * Required. The command data to send to the device. 64 * </pre> 65 * 66 * <code>bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED];</code> 67 * 68 * @return The binaryData. 69 */ getBinaryData()70 com.google.protobuf.ByteString getBinaryData(); 71 72 /** 73 * 74 * 75 * <pre> 76 * Optional subfolder for the command. If empty, the command will be delivered 77 * to the /devices/{device-id}/commands topic, otherwise it will be delivered 78 * to the /devices/{device-id}/commands/{subfolder} topic. Multi-level 79 * subfolders are allowed. This field must not have more than 256 characters, 80 * and must not contain any MQTT wildcards ("+" or "#") or null characters. 81 * </pre> 82 * 83 * <code>string subfolder = 3;</code> 84 * 85 * @return The subfolder. 86 */ getSubfolder()87 java.lang.String getSubfolder(); 88 /** 89 * 90 * 91 * <pre> 92 * Optional subfolder for the command. If empty, the command will be delivered 93 * to the /devices/{device-id}/commands topic, otherwise it will be delivered 94 * to the /devices/{device-id}/commands/{subfolder} topic. Multi-level 95 * subfolders are allowed. This field must not have more than 256 characters, 96 * and must not contain any MQTT wildcards ("+" or "#") or null characters. 97 * </pre> 98 * 99 * <code>string subfolder = 3;</code> 100 * 101 * @return The bytes for subfolder. 102 */ getSubfolderBytes()103 com.google.protobuf.ByteString getSubfolderBytes(); 104 } 105