• 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/resources.proto
18 
19 package com.google.cloud.iot.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * The device configuration. Eventually delivered to devices.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.iot.v1.DeviceConfig}
29  */
30 public final class DeviceConfig extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.DeviceConfig)
33     DeviceConfigOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use DeviceConfig.newBuilder() to construct.
DeviceConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private DeviceConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
DeviceConfig()40   private DeviceConfig() {
41     binaryData_ = com.google.protobuf.ByteString.EMPTY;
42   }
43 
44   @java.lang.Override
45   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)46   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
47     return new DeviceConfig();
48   }
49 
50   @java.lang.Override
getUnknownFields()51   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
52     return this.unknownFields;
53   }
54 
getDescriptor()55   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
56     return com.google.cloud.iot.v1.ResourcesProto
57         .internal_static_google_cloud_iot_v1_DeviceConfig_descriptor;
58   }
59 
60   @java.lang.Override
61   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()62       internalGetFieldAccessorTable() {
63     return com.google.cloud.iot.v1.ResourcesProto
64         .internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable
65         .ensureFieldAccessorsInitialized(
66             com.google.cloud.iot.v1.DeviceConfig.class,
67             com.google.cloud.iot.v1.DeviceConfig.Builder.class);
68   }
69 
70   public static final int VERSION_FIELD_NUMBER = 1;
71   private long version_ = 0L;
72   /**
73    *
74    *
75    * <pre>
76    * [Output only] The version of this update. The version number is assigned by
77    * the server, and is always greater than 0 after device creation. The
78    * version must be 0 on the `CreateDevice` request if a `config` is
79    * specified; the response of `CreateDevice` will always have a value of 1.
80    * </pre>
81    *
82    * <code>int64 version = 1;</code>
83    *
84    * @return The version.
85    */
86   @java.lang.Override
getVersion()87   public long getVersion() {
88     return version_;
89   }
90 
91   public static final int CLOUD_UPDATE_TIME_FIELD_NUMBER = 2;
92   private com.google.protobuf.Timestamp cloudUpdateTime_;
93   /**
94    *
95    *
96    * <pre>
97    * [Output only] The time at which this configuration version was updated in
98    * Cloud IoT Core. This timestamp is set by the server.
99    * </pre>
100    *
101    * <code>.google.protobuf.Timestamp cloud_update_time = 2;</code>
102    *
103    * @return Whether the cloudUpdateTime field is set.
104    */
105   @java.lang.Override
hasCloudUpdateTime()106   public boolean hasCloudUpdateTime() {
107     return cloudUpdateTime_ != null;
108   }
109   /**
110    *
111    *
112    * <pre>
113    * [Output only] The time at which this configuration version was updated in
114    * Cloud IoT Core. This timestamp is set by the server.
115    * </pre>
116    *
117    * <code>.google.protobuf.Timestamp cloud_update_time = 2;</code>
118    *
119    * @return The cloudUpdateTime.
120    */
121   @java.lang.Override
getCloudUpdateTime()122   public com.google.protobuf.Timestamp getCloudUpdateTime() {
123     return cloudUpdateTime_ == null
124         ? com.google.protobuf.Timestamp.getDefaultInstance()
125         : cloudUpdateTime_;
126   }
127   /**
128    *
129    *
130    * <pre>
131    * [Output only] The time at which this configuration version was updated in
132    * Cloud IoT Core. This timestamp is set by the server.
133    * </pre>
134    *
135    * <code>.google.protobuf.Timestamp cloud_update_time = 2;</code>
136    */
137   @java.lang.Override
getCloudUpdateTimeOrBuilder()138   public com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder() {
139     return cloudUpdateTime_ == null
140         ? com.google.protobuf.Timestamp.getDefaultInstance()
141         : cloudUpdateTime_;
142   }
143 
144   public static final int DEVICE_ACK_TIME_FIELD_NUMBER = 3;
145   private com.google.protobuf.Timestamp deviceAckTime_;
146   /**
147    *
148    *
149    * <pre>
150    * [Output only] The time at which Cloud IoT Core received the
151    * acknowledgment from the device, indicating that the device has received
152    * this configuration version. If this field is not present, the device has
153    * not yet acknowledged that it received this version. Note that when
154    * the config was sent to the device, many config versions may have been
155    * available in Cloud IoT Core while the device was disconnected, and on
156    * connection, only the latest version is sent to the device. Some
157    * versions may never be sent to the device, and therefore are never
158    * acknowledged. This timestamp is set by Cloud IoT Core.
159    * </pre>
160    *
161    * <code>.google.protobuf.Timestamp device_ack_time = 3;</code>
162    *
163    * @return Whether the deviceAckTime field is set.
164    */
165   @java.lang.Override
hasDeviceAckTime()166   public boolean hasDeviceAckTime() {
167     return deviceAckTime_ != null;
168   }
169   /**
170    *
171    *
172    * <pre>
173    * [Output only] The time at which Cloud IoT Core received the
174    * acknowledgment from the device, indicating that the device has received
175    * this configuration version. If this field is not present, the device has
176    * not yet acknowledged that it received this version. Note that when
177    * the config was sent to the device, many config versions may have been
178    * available in Cloud IoT Core while the device was disconnected, and on
179    * connection, only the latest version is sent to the device. Some
180    * versions may never be sent to the device, and therefore are never
181    * acknowledged. This timestamp is set by Cloud IoT Core.
182    * </pre>
183    *
184    * <code>.google.protobuf.Timestamp device_ack_time = 3;</code>
185    *
186    * @return The deviceAckTime.
187    */
188   @java.lang.Override
getDeviceAckTime()189   public com.google.protobuf.Timestamp getDeviceAckTime() {
190     return deviceAckTime_ == null
191         ? com.google.protobuf.Timestamp.getDefaultInstance()
192         : deviceAckTime_;
193   }
194   /**
195    *
196    *
197    * <pre>
198    * [Output only] The time at which Cloud IoT Core received the
199    * acknowledgment from the device, indicating that the device has received
200    * this configuration version. If this field is not present, the device has
201    * not yet acknowledged that it received this version. Note that when
202    * the config was sent to the device, many config versions may have been
203    * available in Cloud IoT Core while the device was disconnected, and on
204    * connection, only the latest version is sent to the device. Some
205    * versions may never be sent to the device, and therefore are never
206    * acknowledged. This timestamp is set by Cloud IoT Core.
207    * </pre>
208    *
209    * <code>.google.protobuf.Timestamp device_ack_time = 3;</code>
210    */
211   @java.lang.Override
getDeviceAckTimeOrBuilder()212   public com.google.protobuf.TimestampOrBuilder getDeviceAckTimeOrBuilder() {
213     return deviceAckTime_ == null
214         ? com.google.protobuf.Timestamp.getDefaultInstance()
215         : deviceAckTime_;
216   }
217 
218   public static final int BINARY_DATA_FIELD_NUMBER = 4;
219   private com.google.protobuf.ByteString binaryData_ = com.google.protobuf.ByteString.EMPTY;
220   /**
221    *
222    *
223    * <pre>
224    * The device configuration data.
225    * </pre>
226    *
227    * <code>bytes binary_data = 4;</code>
228    *
229    * @return The binaryData.
230    */
231   @java.lang.Override
getBinaryData()232   public com.google.protobuf.ByteString getBinaryData() {
233     return binaryData_;
234   }
235 
236   private byte memoizedIsInitialized = -1;
237 
238   @java.lang.Override
isInitialized()239   public final boolean isInitialized() {
240     byte isInitialized = memoizedIsInitialized;
241     if (isInitialized == 1) return true;
242     if (isInitialized == 0) return false;
243 
244     memoizedIsInitialized = 1;
245     return true;
246   }
247 
248   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)249   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
250     if (version_ != 0L) {
251       output.writeInt64(1, version_);
252     }
253     if (cloudUpdateTime_ != null) {
254       output.writeMessage(2, getCloudUpdateTime());
255     }
256     if (deviceAckTime_ != null) {
257       output.writeMessage(3, getDeviceAckTime());
258     }
259     if (!binaryData_.isEmpty()) {
260       output.writeBytes(4, binaryData_);
261     }
262     getUnknownFields().writeTo(output);
263   }
264 
265   @java.lang.Override
getSerializedSize()266   public int getSerializedSize() {
267     int size = memoizedSize;
268     if (size != -1) return size;
269 
270     size = 0;
271     if (version_ != 0L) {
272       size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, version_);
273     }
274     if (cloudUpdateTime_ != null) {
275       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCloudUpdateTime());
276     }
277     if (deviceAckTime_ != null) {
278       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeviceAckTime());
279     }
280     if (!binaryData_.isEmpty()) {
281       size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, binaryData_);
282     }
283     size += getUnknownFields().getSerializedSize();
284     memoizedSize = size;
285     return size;
286   }
287 
288   @java.lang.Override
equals(final java.lang.Object obj)289   public boolean equals(final java.lang.Object obj) {
290     if (obj == this) {
291       return true;
292     }
293     if (!(obj instanceof com.google.cloud.iot.v1.DeviceConfig)) {
294       return super.equals(obj);
295     }
296     com.google.cloud.iot.v1.DeviceConfig other = (com.google.cloud.iot.v1.DeviceConfig) obj;
297 
298     if (getVersion() != other.getVersion()) return false;
299     if (hasCloudUpdateTime() != other.hasCloudUpdateTime()) return false;
300     if (hasCloudUpdateTime()) {
301       if (!getCloudUpdateTime().equals(other.getCloudUpdateTime())) return false;
302     }
303     if (hasDeviceAckTime() != other.hasDeviceAckTime()) return false;
304     if (hasDeviceAckTime()) {
305       if (!getDeviceAckTime().equals(other.getDeviceAckTime())) return false;
306     }
307     if (!getBinaryData().equals(other.getBinaryData())) return false;
308     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
309     return true;
310   }
311 
312   @java.lang.Override
hashCode()313   public int hashCode() {
314     if (memoizedHashCode != 0) {
315       return memoizedHashCode;
316     }
317     int hash = 41;
318     hash = (19 * hash) + getDescriptor().hashCode();
319     hash = (37 * hash) + VERSION_FIELD_NUMBER;
320     hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersion());
321     if (hasCloudUpdateTime()) {
322       hash = (37 * hash) + CLOUD_UPDATE_TIME_FIELD_NUMBER;
323       hash = (53 * hash) + getCloudUpdateTime().hashCode();
324     }
325     if (hasDeviceAckTime()) {
326       hash = (37 * hash) + DEVICE_ACK_TIME_FIELD_NUMBER;
327       hash = (53 * hash) + getDeviceAckTime().hashCode();
328     }
329     hash = (37 * hash) + BINARY_DATA_FIELD_NUMBER;
330     hash = (53 * hash) + getBinaryData().hashCode();
331     hash = (29 * hash) + getUnknownFields().hashCode();
332     memoizedHashCode = hash;
333     return hash;
334   }
335 
parseFrom(java.nio.ByteBuffer data)336   public static com.google.cloud.iot.v1.DeviceConfig parseFrom(java.nio.ByteBuffer data)
337       throws com.google.protobuf.InvalidProtocolBufferException {
338     return PARSER.parseFrom(data);
339   }
340 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)341   public static com.google.cloud.iot.v1.DeviceConfig parseFrom(
342       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
343       throws com.google.protobuf.InvalidProtocolBufferException {
344     return PARSER.parseFrom(data, extensionRegistry);
345   }
346 
parseFrom(com.google.protobuf.ByteString data)347   public static com.google.cloud.iot.v1.DeviceConfig parseFrom(com.google.protobuf.ByteString data)
348       throws com.google.protobuf.InvalidProtocolBufferException {
349     return PARSER.parseFrom(data);
350   }
351 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)352   public static com.google.cloud.iot.v1.DeviceConfig parseFrom(
353       com.google.protobuf.ByteString data,
354       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
355       throws com.google.protobuf.InvalidProtocolBufferException {
356     return PARSER.parseFrom(data, extensionRegistry);
357   }
358 
parseFrom(byte[] data)359   public static com.google.cloud.iot.v1.DeviceConfig parseFrom(byte[] data)
360       throws com.google.protobuf.InvalidProtocolBufferException {
361     return PARSER.parseFrom(data);
362   }
363 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)364   public static com.google.cloud.iot.v1.DeviceConfig parseFrom(
365       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
366       throws com.google.protobuf.InvalidProtocolBufferException {
367     return PARSER.parseFrom(data, extensionRegistry);
368   }
369 
parseFrom(java.io.InputStream input)370   public static com.google.cloud.iot.v1.DeviceConfig parseFrom(java.io.InputStream input)
371       throws java.io.IOException {
372     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
373   }
374 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)375   public static com.google.cloud.iot.v1.DeviceConfig parseFrom(
376       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
377       throws java.io.IOException {
378     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
379         PARSER, input, extensionRegistry);
380   }
381 
parseDelimitedFrom(java.io.InputStream input)382   public static com.google.cloud.iot.v1.DeviceConfig parseDelimitedFrom(java.io.InputStream input)
383       throws java.io.IOException {
384     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
385   }
386 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)387   public static com.google.cloud.iot.v1.DeviceConfig parseDelimitedFrom(
388       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
389       throws java.io.IOException {
390     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
391         PARSER, input, extensionRegistry);
392   }
393 
parseFrom( com.google.protobuf.CodedInputStream input)394   public static com.google.cloud.iot.v1.DeviceConfig parseFrom(
395       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
396     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
397   }
398 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)399   public static com.google.cloud.iot.v1.DeviceConfig parseFrom(
400       com.google.protobuf.CodedInputStream input,
401       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
402       throws java.io.IOException {
403     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
404         PARSER, input, extensionRegistry);
405   }
406 
407   @java.lang.Override
newBuilderForType()408   public Builder newBuilderForType() {
409     return newBuilder();
410   }
411 
newBuilder()412   public static Builder newBuilder() {
413     return DEFAULT_INSTANCE.toBuilder();
414   }
415 
newBuilder(com.google.cloud.iot.v1.DeviceConfig prototype)416   public static Builder newBuilder(com.google.cloud.iot.v1.DeviceConfig prototype) {
417     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
418   }
419 
420   @java.lang.Override
toBuilder()421   public Builder toBuilder() {
422     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
423   }
424 
425   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)426   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
427     Builder builder = new Builder(parent);
428     return builder;
429   }
430   /**
431    *
432    *
433    * <pre>
434    * The device configuration. Eventually delivered to devices.
435    * </pre>
436    *
437    * Protobuf type {@code google.cloud.iot.v1.DeviceConfig}
438    */
439   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
440       implements
441       // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.DeviceConfig)
442       com.google.cloud.iot.v1.DeviceConfigOrBuilder {
getDescriptor()443     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
444       return com.google.cloud.iot.v1.ResourcesProto
445           .internal_static_google_cloud_iot_v1_DeviceConfig_descriptor;
446     }
447 
448     @java.lang.Override
449     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()450         internalGetFieldAccessorTable() {
451       return com.google.cloud.iot.v1.ResourcesProto
452           .internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable
453           .ensureFieldAccessorsInitialized(
454               com.google.cloud.iot.v1.DeviceConfig.class,
455               com.google.cloud.iot.v1.DeviceConfig.Builder.class);
456     }
457 
458     // Construct using com.google.cloud.iot.v1.DeviceConfig.newBuilder()
Builder()459     private Builder() {}
460 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)461     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
462       super(parent);
463     }
464 
465     @java.lang.Override
clear()466     public Builder clear() {
467       super.clear();
468       bitField0_ = 0;
469       version_ = 0L;
470       cloudUpdateTime_ = null;
471       if (cloudUpdateTimeBuilder_ != null) {
472         cloudUpdateTimeBuilder_.dispose();
473         cloudUpdateTimeBuilder_ = null;
474       }
475       deviceAckTime_ = null;
476       if (deviceAckTimeBuilder_ != null) {
477         deviceAckTimeBuilder_.dispose();
478         deviceAckTimeBuilder_ = null;
479       }
480       binaryData_ = com.google.protobuf.ByteString.EMPTY;
481       return this;
482     }
483 
484     @java.lang.Override
getDescriptorForType()485     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
486       return com.google.cloud.iot.v1.ResourcesProto
487           .internal_static_google_cloud_iot_v1_DeviceConfig_descriptor;
488     }
489 
490     @java.lang.Override
getDefaultInstanceForType()491     public com.google.cloud.iot.v1.DeviceConfig getDefaultInstanceForType() {
492       return com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance();
493     }
494 
495     @java.lang.Override
build()496     public com.google.cloud.iot.v1.DeviceConfig build() {
497       com.google.cloud.iot.v1.DeviceConfig result = buildPartial();
498       if (!result.isInitialized()) {
499         throw newUninitializedMessageException(result);
500       }
501       return result;
502     }
503 
504     @java.lang.Override
buildPartial()505     public com.google.cloud.iot.v1.DeviceConfig buildPartial() {
506       com.google.cloud.iot.v1.DeviceConfig result = new com.google.cloud.iot.v1.DeviceConfig(this);
507       if (bitField0_ != 0) {
508         buildPartial0(result);
509       }
510       onBuilt();
511       return result;
512     }
513 
buildPartial0(com.google.cloud.iot.v1.DeviceConfig result)514     private void buildPartial0(com.google.cloud.iot.v1.DeviceConfig result) {
515       int from_bitField0_ = bitField0_;
516       if (((from_bitField0_ & 0x00000001) != 0)) {
517         result.version_ = version_;
518       }
519       if (((from_bitField0_ & 0x00000002) != 0)) {
520         result.cloudUpdateTime_ =
521             cloudUpdateTimeBuilder_ == null ? cloudUpdateTime_ : cloudUpdateTimeBuilder_.build();
522       }
523       if (((from_bitField0_ & 0x00000004) != 0)) {
524         result.deviceAckTime_ =
525             deviceAckTimeBuilder_ == null ? deviceAckTime_ : deviceAckTimeBuilder_.build();
526       }
527       if (((from_bitField0_ & 0x00000008) != 0)) {
528         result.binaryData_ = binaryData_;
529       }
530     }
531 
532     @java.lang.Override
clone()533     public Builder clone() {
534       return super.clone();
535     }
536 
537     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)538     public Builder setField(
539         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
540       return super.setField(field, value);
541     }
542 
543     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)544     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
545       return super.clearField(field);
546     }
547 
548     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)549     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
550       return super.clearOneof(oneof);
551     }
552 
553     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)554     public Builder setRepeatedField(
555         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
556       return super.setRepeatedField(field, index, value);
557     }
558 
559     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)560     public Builder addRepeatedField(
561         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
562       return super.addRepeatedField(field, value);
563     }
564 
565     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)566     public Builder mergeFrom(com.google.protobuf.Message other) {
567       if (other instanceof com.google.cloud.iot.v1.DeviceConfig) {
568         return mergeFrom((com.google.cloud.iot.v1.DeviceConfig) other);
569       } else {
570         super.mergeFrom(other);
571         return this;
572       }
573     }
574 
mergeFrom(com.google.cloud.iot.v1.DeviceConfig other)575     public Builder mergeFrom(com.google.cloud.iot.v1.DeviceConfig other) {
576       if (other == com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance()) return this;
577       if (other.getVersion() != 0L) {
578         setVersion(other.getVersion());
579       }
580       if (other.hasCloudUpdateTime()) {
581         mergeCloudUpdateTime(other.getCloudUpdateTime());
582       }
583       if (other.hasDeviceAckTime()) {
584         mergeDeviceAckTime(other.getDeviceAckTime());
585       }
586       if (other.getBinaryData() != com.google.protobuf.ByteString.EMPTY) {
587         setBinaryData(other.getBinaryData());
588       }
589       this.mergeUnknownFields(other.getUnknownFields());
590       onChanged();
591       return this;
592     }
593 
594     @java.lang.Override
isInitialized()595     public final boolean isInitialized() {
596       return true;
597     }
598 
599     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)600     public Builder mergeFrom(
601         com.google.protobuf.CodedInputStream input,
602         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
603         throws java.io.IOException {
604       if (extensionRegistry == null) {
605         throw new java.lang.NullPointerException();
606       }
607       try {
608         boolean done = false;
609         while (!done) {
610           int tag = input.readTag();
611           switch (tag) {
612             case 0:
613               done = true;
614               break;
615             case 8:
616               {
617                 version_ = input.readInt64();
618                 bitField0_ |= 0x00000001;
619                 break;
620               } // case 8
621             case 18:
622               {
623                 input.readMessage(getCloudUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
624                 bitField0_ |= 0x00000002;
625                 break;
626               } // case 18
627             case 26:
628               {
629                 input.readMessage(getDeviceAckTimeFieldBuilder().getBuilder(), extensionRegistry);
630                 bitField0_ |= 0x00000004;
631                 break;
632               } // case 26
633             case 34:
634               {
635                 binaryData_ = input.readBytes();
636                 bitField0_ |= 0x00000008;
637                 break;
638               } // case 34
639             default:
640               {
641                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
642                   done = true; // was an endgroup tag
643                 }
644                 break;
645               } // default:
646           } // switch (tag)
647         } // while (!done)
648       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
649         throw e.unwrapIOException();
650       } finally {
651         onChanged();
652       } // finally
653       return this;
654     }
655 
656     private int bitField0_;
657 
658     private long version_;
659     /**
660      *
661      *
662      * <pre>
663      * [Output only] The version of this update. The version number is assigned by
664      * the server, and is always greater than 0 after device creation. The
665      * version must be 0 on the `CreateDevice` request if a `config` is
666      * specified; the response of `CreateDevice` will always have a value of 1.
667      * </pre>
668      *
669      * <code>int64 version = 1;</code>
670      *
671      * @return The version.
672      */
673     @java.lang.Override
getVersion()674     public long getVersion() {
675       return version_;
676     }
677     /**
678      *
679      *
680      * <pre>
681      * [Output only] The version of this update. The version number is assigned by
682      * the server, and is always greater than 0 after device creation. The
683      * version must be 0 on the `CreateDevice` request if a `config` is
684      * specified; the response of `CreateDevice` will always have a value of 1.
685      * </pre>
686      *
687      * <code>int64 version = 1;</code>
688      *
689      * @param value The version to set.
690      * @return This builder for chaining.
691      */
setVersion(long value)692     public Builder setVersion(long value) {
693 
694       version_ = value;
695       bitField0_ |= 0x00000001;
696       onChanged();
697       return this;
698     }
699     /**
700      *
701      *
702      * <pre>
703      * [Output only] The version of this update. The version number is assigned by
704      * the server, and is always greater than 0 after device creation. The
705      * version must be 0 on the `CreateDevice` request if a `config` is
706      * specified; the response of `CreateDevice` will always have a value of 1.
707      * </pre>
708      *
709      * <code>int64 version = 1;</code>
710      *
711      * @return This builder for chaining.
712      */
clearVersion()713     public Builder clearVersion() {
714       bitField0_ = (bitField0_ & ~0x00000001);
715       version_ = 0L;
716       onChanged();
717       return this;
718     }
719 
720     private com.google.protobuf.Timestamp cloudUpdateTime_;
721     private com.google.protobuf.SingleFieldBuilderV3<
722             com.google.protobuf.Timestamp,
723             com.google.protobuf.Timestamp.Builder,
724             com.google.protobuf.TimestampOrBuilder>
725         cloudUpdateTimeBuilder_;
726     /**
727      *
728      *
729      * <pre>
730      * [Output only] The time at which this configuration version was updated in
731      * Cloud IoT Core. This timestamp is set by the server.
732      * </pre>
733      *
734      * <code>.google.protobuf.Timestamp cloud_update_time = 2;</code>
735      *
736      * @return Whether the cloudUpdateTime field is set.
737      */
hasCloudUpdateTime()738     public boolean hasCloudUpdateTime() {
739       return ((bitField0_ & 0x00000002) != 0);
740     }
741     /**
742      *
743      *
744      * <pre>
745      * [Output only] The time at which this configuration version was updated in
746      * Cloud IoT Core. This timestamp is set by the server.
747      * </pre>
748      *
749      * <code>.google.protobuf.Timestamp cloud_update_time = 2;</code>
750      *
751      * @return The cloudUpdateTime.
752      */
getCloudUpdateTime()753     public com.google.protobuf.Timestamp getCloudUpdateTime() {
754       if (cloudUpdateTimeBuilder_ == null) {
755         return cloudUpdateTime_ == null
756             ? com.google.protobuf.Timestamp.getDefaultInstance()
757             : cloudUpdateTime_;
758       } else {
759         return cloudUpdateTimeBuilder_.getMessage();
760       }
761     }
762     /**
763      *
764      *
765      * <pre>
766      * [Output only] The time at which this configuration version was updated in
767      * Cloud IoT Core. This timestamp is set by the server.
768      * </pre>
769      *
770      * <code>.google.protobuf.Timestamp cloud_update_time = 2;</code>
771      */
setCloudUpdateTime(com.google.protobuf.Timestamp value)772     public Builder setCloudUpdateTime(com.google.protobuf.Timestamp value) {
773       if (cloudUpdateTimeBuilder_ == null) {
774         if (value == null) {
775           throw new NullPointerException();
776         }
777         cloudUpdateTime_ = value;
778       } else {
779         cloudUpdateTimeBuilder_.setMessage(value);
780       }
781       bitField0_ |= 0x00000002;
782       onChanged();
783       return this;
784     }
785     /**
786      *
787      *
788      * <pre>
789      * [Output only] The time at which this configuration version was updated in
790      * Cloud IoT Core. This timestamp is set by the server.
791      * </pre>
792      *
793      * <code>.google.protobuf.Timestamp cloud_update_time = 2;</code>
794      */
setCloudUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)795     public Builder setCloudUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
796       if (cloudUpdateTimeBuilder_ == null) {
797         cloudUpdateTime_ = builderForValue.build();
798       } else {
799         cloudUpdateTimeBuilder_.setMessage(builderForValue.build());
800       }
801       bitField0_ |= 0x00000002;
802       onChanged();
803       return this;
804     }
805     /**
806      *
807      *
808      * <pre>
809      * [Output only] The time at which this configuration version was updated in
810      * Cloud IoT Core. This timestamp is set by the server.
811      * </pre>
812      *
813      * <code>.google.protobuf.Timestamp cloud_update_time = 2;</code>
814      */
mergeCloudUpdateTime(com.google.protobuf.Timestamp value)815     public Builder mergeCloudUpdateTime(com.google.protobuf.Timestamp value) {
816       if (cloudUpdateTimeBuilder_ == null) {
817         if (((bitField0_ & 0x00000002) != 0)
818             && cloudUpdateTime_ != null
819             && cloudUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
820           getCloudUpdateTimeBuilder().mergeFrom(value);
821         } else {
822           cloudUpdateTime_ = value;
823         }
824       } else {
825         cloudUpdateTimeBuilder_.mergeFrom(value);
826       }
827       bitField0_ |= 0x00000002;
828       onChanged();
829       return this;
830     }
831     /**
832      *
833      *
834      * <pre>
835      * [Output only] The time at which this configuration version was updated in
836      * Cloud IoT Core. This timestamp is set by the server.
837      * </pre>
838      *
839      * <code>.google.protobuf.Timestamp cloud_update_time = 2;</code>
840      */
clearCloudUpdateTime()841     public Builder clearCloudUpdateTime() {
842       bitField0_ = (bitField0_ & ~0x00000002);
843       cloudUpdateTime_ = null;
844       if (cloudUpdateTimeBuilder_ != null) {
845         cloudUpdateTimeBuilder_.dispose();
846         cloudUpdateTimeBuilder_ = null;
847       }
848       onChanged();
849       return this;
850     }
851     /**
852      *
853      *
854      * <pre>
855      * [Output only] The time at which this configuration version was updated in
856      * Cloud IoT Core. This timestamp is set by the server.
857      * </pre>
858      *
859      * <code>.google.protobuf.Timestamp cloud_update_time = 2;</code>
860      */
getCloudUpdateTimeBuilder()861     public com.google.protobuf.Timestamp.Builder getCloudUpdateTimeBuilder() {
862       bitField0_ |= 0x00000002;
863       onChanged();
864       return getCloudUpdateTimeFieldBuilder().getBuilder();
865     }
866     /**
867      *
868      *
869      * <pre>
870      * [Output only] The time at which this configuration version was updated in
871      * Cloud IoT Core. This timestamp is set by the server.
872      * </pre>
873      *
874      * <code>.google.protobuf.Timestamp cloud_update_time = 2;</code>
875      */
getCloudUpdateTimeOrBuilder()876     public com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder() {
877       if (cloudUpdateTimeBuilder_ != null) {
878         return cloudUpdateTimeBuilder_.getMessageOrBuilder();
879       } else {
880         return cloudUpdateTime_ == null
881             ? com.google.protobuf.Timestamp.getDefaultInstance()
882             : cloudUpdateTime_;
883       }
884     }
885     /**
886      *
887      *
888      * <pre>
889      * [Output only] The time at which this configuration version was updated in
890      * Cloud IoT Core. This timestamp is set by the server.
891      * </pre>
892      *
893      * <code>.google.protobuf.Timestamp cloud_update_time = 2;</code>
894      */
895     private com.google.protobuf.SingleFieldBuilderV3<
896             com.google.protobuf.Timestamp,
897             com.google.protobuf.Timestamp.Builder,
898             com.google.protobuf.TimestampOrBuilder>
getCloudUpdateTimeFieldBuilder()899         getCloudUpdateTimeFieldBuilder() {
900       if (cloudUpdateTimeBuilder_ == null) {
901         cloudUpdateTimeBuilder_ =
902             new com.google.protobuf.SingleFieldBuilderV3<
903                 com.google.protobuf.Timestamp,
904                 com.google.protobuf.Timestamp.Builder,
905                 com.google.protobuf.TimestampOrBuilder>(
906                 getCloudUpdateTime(), getParentForChildren(), isClean());
907         cloudUpdateTime_ = null;
908       }
909       return cloudUpdateTimeBuilder_;
910     }
911 
912     private com.google.protobuf.Timestamp deviceAckTime_;
913     private com.google.protobuf.SingleFieldBuilderV3<
914             com.google.protobuf.Timestamp,
915             com.google.protobuf.Timestamp.Builder,
916             com.google.protobuf.TimestampOrBuilder>
917         deviceAckTimeBuilder_;
918     /**
919      *
920      *
921      * <pre>
922      * [Output only] The time at which Cloud IoT Core received the
923      * acknowledgment from the device, indicating that the device has received
924      * this configuration version. If this field is not present, the device has
925      * not yet acknowledged that it received this version. Note that when
926      * the config was sent to the device, many config versions may have been
927      * available in Cloud IoT Core while the device was disconnected, and on
928      * connection, only the latest version is sent to the device. Some
929      * versions may never be sent to the device, and therefore are never
930      * acknowledged. This timestamp is set by Cloud IoT Core.
931      * </pre>
932      *
933      * <code>.google.protobuf.Timestamp device_ack_time = 3;</code>
934      *
935      * @return Whether the deviceAckTime field is set.
936      */
hasDeviceAckTime()937     public boolean hasDeviceAckTime() {
938       return ((bitField0_ & 0x00000004) != 0);
939     }
940     /**
941      *
942      *
943      * <pre>
944      * [Output only] The time at which Cloud IoT Core received the
945      * acknowledgment from the device, indicating that the device has received
946      * this configuration version. If this field is not present, the device has
947      * not yet acknowledged that it received this version. Note that when
948      * the config was sent to the device, many config versions may have been
949      * available in Cloud IoT Core while the device was disconnected, and on
950      * connection, only the latest version is sent to the device. Some
951      * versions may never be sent to the device, and therefore are never
952      * acknowledged. This timestamp is set by Cloud IoT Core.
953      * </pre>
954      *
955      * <code>.google.protobuf.Timestamp device_ack_time = 3;</code>
956      *
957      * @return The deviceAckTime.
958      */
getDeviceAckTime()959     public com.google.protobuf.Timestamp getDeviceAckTime() {
960       if (deviceAckTimeBuilder_ == null) {
961         return deviceAckTime_ == null
962             ? com.google.protobuf.Timestamp.getDefaultInstance()
963             : deviceAckTime_;
964       } else {
965         return deviceAckTimeBuilder_.getMessage();
966       }
967     }
968     /**
969      *
970      *
971      * <pre>
972      * [Output only] The time at which Cloud IoT Core received the
973      * acknowledgment from the device, indicating that the device has received
974      * this configuration version. If this field is not present, the device has
975      * not yet acknowledged that it received this version. Note that when
976      * the config was sent to the device, many config versions may have been
977      * available in Cloud IoT Core while the device was disconnected, and on
978      * connection, only the latest version is sent to the device. Some
979      * versions may never be sent to the device, and therefore are never
980      * acknowledged. This timestamp is set by Cloud IoT Core.
981      * </pre>
982      *
983      * <code>.google.protobuf.Timestamp device_ack_time = 3;</code>
984      */
setDeviceAckTime(com.google.protobuf.Timestamp value)985     public Builder setDeviceAckTime(com.google.protobuf.Timestamp value) {
986       if (deviceAckTimeBuilder_ == null) {
987         if (value == null) {
988           throw new NullPointerException();
989         }
990         deviceAckTime_ = value;
991       } else {
992         deviceAckTimeBuilder_.setMessage(value);
993       }
994       bitField0_ |= 0x00000004;
995       onChanged();
996       return this;
997     }
998     /**
999      *
1000      *
1001      * <pre>
1002      * [Output only] The time at which Cloud IoT Core received the
1003      * acknowledgment from the device, indicating that the device has received
1004      * this configuration version. If this field is not present, the device has
1005      * not yet acknowledged that it received this version. Note that when
1006      * the config was sent to the device, many config versions may have been
1007      * available in Cloud IoT Core while the device was disconnected, and on
1008      * connection, only the latest version is sent to the device. Some
1009      * versions may never be sent to the device, and therefore are never
1010      * acknowledged. This timestamp is set by Cloud IoT Core.
1011      * </pre>
1012      *
1013      * <code>.google.protobuf.Timestamp device_ack_time = 3;</code>
1014      */
setDeviceAckTime(com.google.protobuf.Timestamp.Builder builderForValue)1015     public Builder setDeviceAckTime(com.google.protobuf.Timestamp.Builder builderForValue) {
1016       if (deviceAckTimeBuilder_ == null) {
1017         deviceAckTime_ = builderForValue.build();
1018       } else {
1019         deviceAckTimeBuilder_.setMessage(builderForValue.build());
1020       }
1021       bitField0_ |= 0x00000004;
1022       onChanged();
1023       return this;
1024     }
1025     /**
1026      *
1027      *
1028      * <pre>
1029      * [Output only] The time at which Cloud IoT Core received the
1030      * acknowledgment from the device, indicating that the device has received
1031      * this configuration version. If this field is not present, the device has
1032      * not yet acknowledged that it received this version. Note that when
1033      * the config was sent to the device, many config versions may have been
1034      * available in Cloud IoT Core while the device was disconnected, and on
1035      * connection, only the latest version is sent to the device. Some
1036      * versions may never be sent to the device, and therefore are never
1037      * acknowledged. This timestamp is set by Cloud IoT Core.
1038      * </pre>
1039      *
1040      * <code>.google.protobuf.Timestamp device_ack_time = 3;</code>
1041      */
mergeDeviceAckTime(com.google.protobuf.Timestamp value)1042     public Builder mergeDeviceAckTime(com.google.protobuf.Timestamp value) {
1043       if (deviceAckTimeBuilder_ == null) {
1044         if (((bitField0_ & 0x00000004) != 0)
1045             && deviceAckTime_ != null
1046             && deviceAckTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
1047           getDeviceAckTimeBuilder().mergeFrom(value);
1048         } else {
1049           deviceAckTime_ = value;
1050         }
1051       } else {
1052         deviceAckTimeBuilder_.mergeFrom(value);
1053       }
1054       bitField0_ |= 0x00000004;
1055       onChanged();
1056       return this;
1057     }
1058     /**
1059      *
1060      *
1061      * <pre>
1062      * [Output only] The time at which Cloud IoT Core received the
1063      * acknowledgment from the device, indicating that the device has received
1064      * this configuration version. If this field is not present, the device has
1065      * not yet acknowledged that it received this version. Note that when
1066      * the config was sent to the device, many config versions may have been
1067      * available in Cloud IoT Core while the device was disconnected, and on
1068      * connection, only the latest version is sent to the device. Some
1069      * versions may never be sent to the device, and therefore are never
1070      * acknowledged. This timestamp is set by Cloud IoT Core.
1071      * </pre>
1072      *
1073      * <code>.google.protobuf.Timestamp device_ack_time = 3;</code>
1074      */
clearDeviceAckTime()1075     public Builder clearDeviceAckTime() {
1076       bitField0_ = (bitField0_ & ~0x00000004);
1077       deviceAckTime_ = null;
1078       if (deviceAckTimeBuilder_ != null) {
1079         deviceAckTimeBuilder_.dispose();
1080         deviceAckTimeBuilder_ = null;
1081       }
1082       onChanged();
1083       return this;
1084     }
1085     /**
1086      *
1087      *
1088      * <pre>
1089      * [Output only] The time at which Cloud IoT Core received the
1090      * acknowledgment from the device, indicating that the device has received
1091      * this configuration version. If this field is not present, the device has
1092      * not yet acknowledged that it received this version. Note that when
1093      * the config was sent to the device, many config versions may have been
1094      * available in Cloud IoT Core while the device was disconnected, and on
1095      * connection, only the latest version is sent to the device. Some
1096      * versions may never be sent to the device, and therefore are never
1097      * acknowledged. This timestamp is set by Cloud IoT Core.
1098      * </pre>
1099      *
1100      * <code>.google.protobuf.Timestamp device_ack_time = 3;</code>
1101      */
getDeviceAckTimeBuilder()1102     public com.google.protobuf.Timestamp.Builder getDeviceAckTimeBuilder() {
1103       bitField0_ |= 0x00000004;
1104       onChanged();
1105       return getDeviceAckTimeFieldBuilder().getBuilder();
1106     }
1107     /**
1108      *
1109      *
1110      * <pre>
1111      * [Output only] The time at which Cloud IoT Core received the
1112      * acknowledgment from the device, indicating that the device has received
1113      * this configuration version. If this field is not present, the device has
1114      * not yet acknowledged that it received this version. Note that when
1115      * the config was sent to the device, many config versions may have been
1116      * available in Cloud IoT Core while the device was disconnected, and on
1117      * connection, only the latest version is sent to the device. Some
1118      * versions may never be sent to the device, and therefore are never
1119      * acknowledged. This timestamp is set by Cloud IoT Core.
1120      * </pre>
1121      *
1122      * <code>.google.protobuf.Timestamp device_ack_time = 3;</code>
1123      */
getDeviceAckTimeOrBuilder()1124     public com.google.protobuf.TimestampOrBuilder getDeviceAckTimeOrBuilder() {
1125       if (deviceAckTimeBuilder_ != null) {
1126         return deviceAckTimeBuilder_.getMessageOrBuilder();
1127       } else {
1128         return deviceAckTime_ == null
1129             ? com.google.protobuf.Timestamp.getDefaultInstance()
1130             : deviceAckTime_;
1131       }
1132     }
1133     /**
1134      *
1135      *
1136      * <pre>
1137      * [Output only] The time at which Cloud IoT Core received the
1138      * acknowledgment from the device, indicating that the device has received
1139      * this configuration version. If this field is not present, the device has
1140      * not yet acknowledged that it received this version. Note that when
1141      * the config was sent to the device, many config versions may have been
1142      * available in Cloud IoT Core while the device was disconnected, and on
1143      * connection, only the latest version is sent to the device. Some
1144      * versions may never be sent to the device, and therefore are never
1145      * acknowledged. This timestamp is set by Cloud IoT Core.
1146      * </pre>
1147      *
1148      * <code>.google.protobuf.Timestamp device_ack_time = 3;</code>
1149      */
1150     private com.google.protobuf.SingleFieldBuilderV3<
1151             com.google.protobuf.Timestamp,
1152             com.google.protobuf.Timestamp.Builder,
1153             com.google.protobuf.TimestampOrBuilder>
getDeviceAckTimeFieldBuilder()1154         getDeviceAckTimeFieldBuilder() {
1155       if (deviceAckTimeBuilder_ == null) {
1156         deviceAckTimeBuilder_ =
1157             new com.google.protobuf.SingleFieldBuilderV3<
1158                 com.google.protobuf.Timestamp,
1159                 com.google.protobuf.Timestamp.Builder,
1160                 com.google.protobuf.TimestampOrBuilder>(
1161                 getDeviceAckTime(), getParentForChildren(), isClean());
1162         deviceAckTime_ = null;
1163       }
1164       return deviceAckTimeBuilder_;
1165     }
1166 
1167     private com.google.protobuf.ByteString binaryData_ = com.google.protobuf.ByteString.EMPTY;
1168     /**
1169      *
1170      *
1171      * <pre>
1172      * The device configuration data.
1173      * </pre>
1174      *
1175      * <code>bytes binary_data = 4;</code>
1176      *
1177      * @return The binaryData.
1178      */
1179     @java.lang.Override
getBinaryData()1180     public com.google.protobuf.ByteString getBinaryData() {
1181       return binaryData_;
1182     }
1183     /**
1184      *
1185      *
1186      * <pre>
1187      * The device configuration data.
1188      * </pre>
1189      *
1190      * <code>bytes binary_data = 4;</code>
1191      *
1192      * @param value The binaryData to set.
1193      * @return This builder for chaining.
1194      */
setBinaryData(com.google.protobuf.ByteString value)1195     public Builder setBinaryData(com.google.protobuf.ByteString value) {
1196       if (value == null) {
1197         throw new NullPointerException();
1198       }
1199       binaryData_ = value;
1200       bitField0_ |= 0x00000008;
1201       onChanged();
1202       return this;
1203     }
1204     /**
1205      *
1206      *
1207      * <pre>
1208      * The device configuration data.
1209      * </pre>
1210      *
1211      * <code>bytes binary_data = 4;</code>
1212      *
1213      * @return This builder for chaining.
1214      */
clearBinaryData()1215     public Builder clearBinaryData() {
1216       bitField0_ = (bitField0_ & ~0x00000008);
1217       binaryData_ = getDefaultInstance().getBinaryData();
1218       onChanged();
1219       return this;
1220     }
1221 
1222     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1223     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1224       return super.setUnknownFields(unknownFields);
1225     }
1226 
1227     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1228     public final Builder mergeUnknownFields(
1229         final com.google.protobuf.UnknownFieldSet unknownFields) {
1230       return super.mergeUnknownFields(unknownFields);
1231     }
1232 
1233     // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.DeviceConfig)
1234   }
1235 
1236   // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceConfig)
1237   private static final com.google.cloud.iot.v1.DeviceConfig DEFAULT_INSTANCE;
1238 
1239   static {
1240     DEFAULT_INSTANCE = new com.google.cloud.iot.v1.DeviceConfig();
1241   }
1242 
getDefaultInstance()1243   public static com.google.cloud.iot.v1.DeviceConfig getDefaultInstance() {
1244     return DEFAULT_INSTANCE;
1245   }
1246 
1247   private static final com.google.protobuf.Parser<DeviceConfig> PARSER =
1248       new com.google.protobuf.AbstractParser<DeviceConfig>() {
1249         @java.lang.Override
1250         public DeviceConfig parsePartialFrom(
1251             com.google.protobuf.CodedInputStream input,
1252             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1253             throws com.google.protobuf.InvalidProtocolBufferException {
1254           Builder builder = newBuilder();
1255           try {
1256             builder.mergeFrom(input, extensionRegistry);
1257           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1258             throw e.setUnfinishedMessage(builder.buildPartial());
1259           } catch (com.google.protobuf.UninitializedMessageException e) {
1260             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1261           } catch (java.io.IOException e) {
1262             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1263                 .setUnfinishedMessage(builder.buildPartial());
1264           }
1265           return builder.buildPartial();
1266         }
1267       };
1268 
parser()1269   public static com.google.protobuf.Parser<DeviceConfig> parser() {
1270     return PARSER;
1271   }
1272 
1273   @java.lang.Override
getParserForType()1274   public com.google.protobuf.Parser<DeviceConfig> getParserForType() {
1275     return PARSER;
1276   }
1277 
1278   @java.lang.Override
getDefaultInstanceForType()1279   public com.google.cloud.iot.v1.DeviceConfig getDefaultInstanceForType() {
1280     return DEFAULT_INSTANCE;
1281   }
1282 }
1283