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