• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 UpdateDeviceRequestOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.UpdateDeviceRequest)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Required. The new values for the device. The `id` and `num_id` fields must
31    * be empty, and the field `name` must specify the name path. For example,
32    * `projects/p0/locations/us-central1/registries/registry0/devices/device0`or
33    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
34    * </pre>
35    *
36    * <code>.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];</code>
37    *
38    * @return Whether the device field is set.
39    */
hasDevice()40   boolean hasDevice();
41   /**
42    *
43    *
44    * <pre>
45    * Required. The new values for the device. The `id` and `num_id` fields must
46    * be empty, and the field `name` must specify the name path. 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>.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];</code>
52    *
53    * @return The device.
54    */
getDevice()55   com.google.cloud.iot.v1.Device getDevice();
56   /**
57    *
58    *
59    * <pre>
60    * Required. The new values for the device. The `id` and `num_id` fields must
61    * be empty, and the field `name` must specify the name path. For example,
62    * `projects/p0/locations/us-central1/registries/registry0/devices/device0`or
63    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
64    * </pre>
65    *
66    * <code>.google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED];</code>
67    */
getDeviceOrBuilder()68   com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder();
69 
70   /**
71    *
72    *
73    * <pre>
74    * Required. Only updates the `device` fields indicated by this mask.
75    * The field mask must not be empty, and it must not contain fields that
76    * are immutable or only set by the server.
77    * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
78    * </pre>
79    *
80    * <code>.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];
81    * </code>
82    *
83    * @return Whether the updateMask field is set.
84    */
hasUpdateMask()85   boolean hasUpdateMask();
86   /**
87    *
88    *
89    * <pre>
90    * Required. Only updates the `device` fields indicated by this mask.
91    * The field mask must not be empty, and it must not contain fields that
92    * are immutable or only set by the server.
93    * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
94    * </pre>
95    *
96    * <code>.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];
97    * </code>
98    *
99    * @return The updateMask.
100    */
getUpdateMask()101   com.google.protobuf.FieldMask getUpdateMask();
102   /**
103    *
104    *
105    * <pre>
106    * Required. Only updates the `device` fields indicated by this mask.
107    * The field mask must not be empty, and it must not contain fields that
108    * are immutable or only set by the server.
109    * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
110    * </pre>
111    *
112    * <code>.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED];
113    * </code>
114    */
getUpdateMaskOrBuilder()115   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
116 }
117