• 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 configuration for notification of new states received from the device.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.iot.v1.StateNotificationConfig}
29  */
30 public final class StateNotificationConfig extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.StateNotificationConfig)
33     StateNotificationConfigOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use StateNotificationConfig.newBuilder() to construct.
StateNotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private StateNotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
StateNotificationConfig()40   private StateNotificationConfig() {
41     pubsubTopicName_ = "";
42   }
43 
44   @java.lang.Override
45   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)46   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
47     return new StateNotificationConfig();
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_StateNotificationConfig_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_StateNotificationConfig_fieldAccessorTable
65         .ensureFieldAccessorsInitialized(
66             com.google.cloud.iot.v1.StateNotificationConfig.class,
67             com.google.cloud.iot.v1.StateNotificationConfig.Builder.class);
68   }
69 
70   public static final int PUBSUB_TOPIC_NAME_FIELD_NUMBER = 1;
71 
72   @SuppressWarnings("serial")
73   private volatile java.lang.Object pubsubTopicName_ = "";
74   /**
75    *
76    *
77    * <pre>
78    * A Cloud Pub/Sub topic name. For example,
79    * `projects/myProject/topics/deviceEvents`.
80    * </pre>
81    *
82    * <code>string pubsub_topic_name = 1;</code>
83    *
84    * @return The pubsubTopicName.
85    */
86   @java.lang.Override
getPubsubTopicName()87   public java.lang.String getPubsubTopicName() {
88     java.lang.Object ref = pubsubTopicName_;
89     if (ref instanceof java.lang.String) {
90       return (java.lang.String) ref;
91     } else {
92       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
93       java.lang.String s = bs.toStringUtf8();
94       pubsubTopicName_ = s;
95       return s;
96     }
97   }
98   /**
99    *
100    *
101    * <pre>
102    * A Cloud Pub/Sub topic name. For example,
103    * `projects/myProject/topics/deviceEvents`.
104    * </pre>
105    *
106    * <code>string pubsub_topic_name = 1;</code>
107    *
108    * @return The bytes for pubsubTopicName.
109    */
110   @java.lang.Override
getPubsubTopicNameBytes()111   public com.google.protobuf.ByteString getPubsubTopicNameBytes() {
112     java.lang.Object ref = pubsubTopicName_;
113     if (ref instanceof java.lang.String) {
114       com.google.protobuf.ByteString b =
115           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
116       pubsubTopicName_ = b;
117       return b;
118     } else {
119       return (com.google.protobuf.ByteString) ref;
120     }
121   }
122 
123   private byte memoizedIsInitialized = -1;
124 
125   @java.lang.Override
isInitialized()126   public final boolean isInitialized() {
127     byte isInitialized = memoizedIsInitialized;
128     if (isInitialized == 1) return true;
129     if (isInitialized == 0) return false;
130 
131     memoizedIsInitialized = 1;
132     return true;
133   }
134 
135   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)136   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
137     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopicName_)) {
138       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubsubTopicName_);
139     }
140     getUnknownFields().writeTo(output);
141   }
142 
143   @java.lang.Override
getSerializedSize()144   public int getSerializedSize() {
145     int size = memoizedSize;
146     if (size != -1) return size;
147 
148     size = 0;
149     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopicName_)) {
150       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pubsubTopicName_);
151     }
152     size += getUnknownFields().getSerializedSize();
153     memoizedSize = size;
154     return size;
155   }
156 
157   @java.lang.Override
equals(final java.lang.Object obj)158   public boolean equals(final java.lang.Object obj) {
159     if (obj == this) {
160       return true;
161     }
162     if (!(obj instanceof com.google.cloud.iot.v1.StateNotificationConfig)) {
163       return super.equals(obj);
164     }
165     com.google.cloud.iot.v1.StateNotificationConfig other =
166         (com.google.cloud.iot.v1.StateNotificationConfig) obj;
167 
168     if (!getPubsubTopicName().equals(other.getPubsubTopicName())) return false;
169     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
170     return true;
171   }
172 
173   @java.lang.Override
hashCode()174   public int hashCode() {
175     if (memoizedHashCode != 0) {
176       return memoizedHashCode;
177     }
178     int hash = 41;
179     hash = (19 * hash) + getDescriptor().hashCode();
180     hash = (37 * hash) + PUBSUB_TOPIC_NAME_FIELD_NUMBER;
181     hash = (53 * hash) + getPubsubTopicName().hashCode();
182     hash = (29 * hash) + getUnknownFields().hashCode();
183     memoizedHashCode = hash;
184     return hash;
185   }
186 
parseFrom(java.nio.ByteBuffer data)187   public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom(java.nio.ByteBuffer data)
188       throws com.google.protobuf.InvalidProtocolBufferException {
189     return PARSER.parseFrom(data);
190   }
191 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)192   public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom(
193       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
194       throws com.google.protobuf.InvalidProtocolBufferException {
195     return PARSER.parseFrom(data, extensionRegistry);
196   }
197 
parseFrom( com.google.protobuf.ByteString data)198   public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom(
199       com.google.protobuf.ByteString data)
200       throws com.google.protobuf.InvalidProtocolBufferException {
201     return PARSER.parseFrom(data);
202   }
203 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)204   public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom(
205       com.google.protobuf.ByteString data,
206       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
207       throws com.google.protobuf.InvalidProtocolBufferException {
208     return PARSER.parseFrom(data, extensionRegistry);
209   }
210 
parseFrom(byte[] data)211   public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom(byte[] data)
212       throws com.google.protobuf.InvalidProtocolBufferException {
213     return PARSER.parseFrom(data);
214   }
215 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)216   public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom(
217       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
218       throws com.google.protobuf.InvalidProtocolBufferException {
219     return PARSER.parseFrom(data, extensionRegistry);
220   }
221 
parseFrom(java.io.InputStream input)222   public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom(java.io.InputStream input)
223       throws java.io.IOException {
224     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
225   }
226 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)227   public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom(
228       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
229       throws java.io.IOException {
230     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
231         PARSER, input, extensionRegistry);
232   }
233 
parseDelimitedFrom( java.io.InputStream input)234   public static com.google.cloud.iot.v1.StateNotificationConfig parseDelimitedFrom(
235       java.io.InputStream input) throws java.io.IOException {
236     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
237   }
238 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)239   public static com.google.cloud.iot.v1.StateNotificationConfig parseDelimitedFrom(
240       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
241       throws java.io.IOException {
242     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
243         PARSER, input, extensionRegistry);
244   }
245 
parseFrom( com.google.protobuf.CodedInputStream input)246   public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom(
247       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
248     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
249   }
250 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)251   public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom(
252       com.google.protobuf.CodedInputStream input,
253       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
254       throws java.io.IOException {
255     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
256         PARSER, input, extensionRegistry);
257   }
258 
259   @java.lang.Override
newBuilderForType()260   public Builder newBuilderForType() {
261     return newBuilder();
262   }
263 
newBuilder()264   public static Builder newBuilder() {
265     return DEFAULT_INSTANCE.toBuilder();
266   }
267 
newBuilder(com.google.cloud.iot.v1.StateNotificationConfig prototype)268   public static Builder newBuilder(com.google.cloud.iot.v1.StateNotificationConfig prototype) {
269     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
270   }
271 
272   @java.lang.Override
toBuilder()273   public Builder toBuilder() {
274     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
275   }
276 
277   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)278   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
279     Builder builder = new Builder(parent);
280     return builder;
281   }
282   /**
283    *
284    *
285    * <pre>
286    * The configuration for notification of new states received from the device.
287    * </pre>
288    *
289    * Protobuf type {@code google.cloud.iot.v1.StateNotificationConfig}
290    */
291   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
292       implements
293       // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.StateNotificationConfig)
294       com.google.cloud.iot.v1.StateNotificationConfigOrBuilder {
getDescriptor()295     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
296       return com.google.cloud.iot.v1.ResourcesProto
297           .internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor;
298     }
299 
300     @java.lang.Override
301     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()302         internalGetFieldAccessorTable() {
303       return com.google.cloud.iot.v1.ResourcesProto
304           .internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable
305           .ensureFieldAccessorsInitialized(
306               com.google.cloud.iot.v1.StateNotificationConfig.class,
307               com.google.cloud.iot.v1.StateNotificationConfig.Builder.class);
308     }
309 
310     // Construct using com.google.cloud.iot.v1.StateNotificationConfig.newBuilder()
Builder()311     private Builder() {}
312 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)313     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
314       super(parent);
315     }
316 
317     @java.lang.Override
clear()318     public Builder clear() {
319       super.clear();
320       bitField0_ = 0;
321       pubsubTopicName_ = "";
322       return this;
323     }
324 
325     @java.lang.Override
getDescriptorForType()326     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
327       return com.google.cloud.iot.v1.ResourcesProto
328           .internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor;
329     }
330 
331     @java.lang.Override
getDefaultInstanceForType()332     public com.google.cloud.iot.v1.StateNotificationConfig getDefaultInstanceForType() {
333       return com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance();
334     }
335 
336     @java.lang.Override
build()337     public com.google.cloud.iot.v1.StateNotificationConfig build() {
338       com.google.cloud.iot.v1.StateNotificationConfig result = buildPartial();
339       if (!result.isInitialized()) {
340         throw newUninitializedMessageException(result);
341       }
342       return result;
343     }
344 
345     @java.lang.Override
buildPartial()346     public com.google.cloud.iot.v1.StateNotificationConfig buildPartial() {
347       com.google.cloud.iot.v1.StateNotificationConfig result =
348           new com.google.cloud.iot.v1.StateNotificationConfig(this);
349       if (bitField0_ != 0) {
350         buildPartial0(result);
351       }
352       onBuilt();
353       return result;
354     }
355 
buildPartial0(com.google.cloud.iot.v1.StateNotificationConfig result)356     private void buildPartial0(com.google.cloud.iot.v1.StateNotificationConfig result) {
357       int from_bitField0_ = bitField0_;
358       if (((from_bitField0_ & 0x00000001) != 0)) {
359         result.pubsubTopicName_ = pubsubTopicName_;
360       }
361     }
362 
363     @java.lang.Override
clone()364     public Builder clone() {
365       return super.clone();
366     }
367 
368     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)369     public Builder setField(
370         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
371       return super.setField(field, value);
372     }
373 
374     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)375     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
376       return super.clearField(field);
377     }
378 
379     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)380     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
381       return super.clearOneof(oneof);
382     }
383 
384     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)385     public Builder setRepeatedField(
386         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
387       return super.setRepeatedField(field, index, value);
388     }
389 
390     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)391     public Builder addRepeatedField(
392         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
393       return super.addRepeatedField(field, value);
394     }
395 
396     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)397     public Builder mergeFrom(com.google.protobuf.Message other) {
398       if (other instanceof com.google.cloud.iot.v1.StateNotificationConfig) {
399         return mergeFrom((com.google.cloud.iot.v1.StateNotificationConfig) other);
400       } else {
401         super.mergeFrom(other);
402         return this;
403       }
404     }
405 
mergeFrom(com.google.cloud.iot.v1.StateNotificationConfig other)406     public Builder mergeFrom(com.google.cloud.iot.v1.StateNotificationConfig other) {
407       if (other == com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance())
408         return this;
409       if (!other.getPubsubTopicName().isEmpty()) {
410         pubsubTopicName_ = other.pubsubTopicName_;
411         bitField0_ |= 0x00000001;
412         onChanged();
413       }
414       this.mergeUnknownFields(other.getUnknownFields());
415       onChanged();
416       return this;
417     }
418 
419     @java.lang.Override
isInitialized()420     public final boolean isInitialized() {
421       return true;
422     }
423 
424     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)425     public Builder mergeFrom(
426         com.google.protobuf.CodedInputStream input,
427         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
428         throws java.io.IOException {
429       if (extensionRegistry == null) {
430         throw new java.lang.NullPointerException();
431       }
432       try {
433         boolean done = false;
434         while (!done) {
435           int tag = input.readTag();
436           switch (tag) {
437             case 0:
438               done = true;
439               break;
440             case 10:
441               {
442                 pubsubTopicName_ = input.readStringRequireUtf8();
443                 bitField0_ |= 0x00000001;
444                 break;
445               } // case 10
446             default:
447               {
448                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
449                   done = true; // was an endgroup tag
450                 }
451                 break;
452               } // default:
453           } // switch (tag)
454         } // while (!done)
455       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
456         throw e.unwrapIOException();
457       } finally {
458         onChanged();
459       } // finally
460       return this;
461     }
462 
463     private int bitField0_;
464 
465     private java.lang.Object pubsubTopicName_ = "";
466     /**
467      *
468      *
469      * <pre>
470      * A Cloud Pub/Sub topic name. For example,
471      * `projects/myProject/topics/deviceEvents`.
472      * </pre>
473      *
474      * <code>string pubsub_topic_name = 1;</code>
475      *
476      * @return The pubsubTopicName.
477      */
getPubsubTopicName()478     public java.lang.String getPubsubTopicName() {
479       java.lang.Object ref = pubsubTopicName_;
480       if (!(ref instanceof java.lang.String)) {
481         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
482         java.lang.String s = bs.toStringUtf8();
483         pubsubTopicName_ = s;
484         return s;
485       } else {
486         return (java.lang.String) ref;
487       }
488     }
489     /**
490      *
491      *
492      * <pre>
493      * A Cloud Pub/Sub topic name. For example,
494      * `projects/myProject/topics/deviceEvents`.
495      * </pre>
496      *
497      * <code>string pubsub_topic_name = 1;</code>
498      *
499      * @return The bytes for pubsubTopicName.
500      */
getPubsubTopicNameBytes()501     public com.google.protobuf.ByteString getPubsubTopicNameBytes() {
502       java.lang.Object ref = pubsubTopicName_;
503       if (ref instanceof String) {
504         com.google.protobuf.ByteString b =
505             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
506         pubsubTopicName_ = b;
507         return b;
508       } else {
509         return (com.google.protobuf.ByteString) ref;
510       }
511     }
512     /**
513      *
514      *
515      * <pre>
516      * A Cloud Pub/Sub topic name. For example,
517      * `projects/myProject/topics/deviceEvents`.
518      * </pre>
519      *
520      * <code>string pubsub_topic_name = 1;</code>
521      *
522      * @param value The pubsubTopicName to set.
523      * @return This builder for chaining.
524      */
setPubsubTopicName(java.lang.String value)525     public Builder setPubsubTopicName(java.lang.String value) {
526       if (value == null) {
527         throw new NullPointerException();
528       }
529       pubsubTopicName_ = value;
530       bitField0_ |= 0x00000001;
531       onChanged();
532       return this;
533     }
534     /**
535      *
536      *
537      * <pre>
538      * A Cloud Pub/Sub topic name. For example,
539      * `projects/myProject/topics/deviceEvents`.
540      * </pre>
541      *
542      * <code>string pubsub_topic_name = 1;</code>
543      *
544      * @return This builder for chaining.
545      */
clearPubsubTopicName()546     public Builder clearPubsubTopicName() {
547       pubsubTopicName_ = getDefaultInstance().getPubsubTopicName();
548       bitField0_ = (bitField0_ & ~0x00000001);
549       onChanged();
550       return this;
551     }
552     /**
553      *
554      *
555      * <pre>
556      * A Cloud Pub/Sub topic name. For example,
557      * `projects/myProject/topics/deviceEvents`.
558      * </pre>
559      *
560      * <code>string pubsub_topic_name = 1;</code>
561      *
562      * @param value The bytes for pubsubTopicName to set.
563      * @return This builder for chaining.
564      */
setPubsubTopicNameBytes(com.google.protobuf.ByteString value)565     public Builder setPubsubTopicNameBytes(com.google.protobuf.ByteString value) {
566       if (value == null) {
567         throw new NullPointerException();
568       }
569       checkByteStringIsUtf8(value);
570       pubsubTopicName_ = value;
571       bitField0_ |= 0x00000001;
572       onChanged();
573       return this;
574     }
575 
576     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)577     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
578       return super.setUnknownFields(unknownFields);
579     }
580 
581     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)582     public final Builder mergeUnknownFields(
583         final com.google.protobuf.UnknownFieldSet unknownFields) {
584       return super.mergeUnknownFields(unknownFields);
585     }
586 
587     // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.StateNotificationConfig)
588   }
589 
590   // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.StateNotificationConfig)
591   private static final com.google.cloud.iot.v1.StateNotificationConfig DEFAULT_INSTANCE;
592 
593   static {
594     DEFAULT_INSTANCE = new com.google.cloud.iot.v1.StateNotificationConfig();
595   }
596 
getDefaultInstance()597   public static com.google.cloud.iot.v1.StateNotificationConfig getDefaultInstance() {
598     return DEFAULT_INSTANCE;
599   }
600 
601   private static final com.google.protobuf.Parser<StateNotificationConfig> PARSER =
602       new com.google.protobuf.AbstractParser<StateNotificationConfig>() {
603         @java.lang.Override
604         public StateNotificationConfig parsePartialFrom(
605             com.google.protobuf.CodedInputStream input,
606             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
607             throws com.google.protobuf.InvalidProtocolBufferException {
608           Builder builder = newBuilder();
609           try {
610             builder.mergeFrom(input, extensionRegistry);
611           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
612             throw e.setUnfinishedMessage(builder.buildPartial());
613           } catch (com.google.protobuf.UninitializedMessageException e) {
614             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
615           } catch (java.io.IOException e) {
616             throw new com.google.protobuf.InvalidProtocolBufferException(e)
617                 .setUnfinishedMessage(builder.buildPartial());
618           }
619           return builder.buildPartial();
620         }
621       };
622 
parser()623   public static com.google.protobuf.Parser<StateNotificationConfig> parser() {
624     return PARSER;
625   }
626 
627   @java.lang.Override
getParserForType()628   public com.google.protobuf.Parser<StateNotificationConfig> getParserForType() {
629     return PARSER;
630   }
631 
632   @java.lang.Override
getDefaultInstanceForType()633   public com.google.cloud.iot.v1.StateNotificationConfig getDefaultInstanceForType() {
634     return DEFAULT_INSTANCE;
635   }
636 }
637