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