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