• 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/rpc/error_details.proto
18 
19 package com.google.rpc;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Describes additional debugging info.
26  * </pre>
27  *
28  * Protobuf type {@code google.rpc.DebugInfo}
29  */
30 public final class DebugInfo extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.rpc.DebugInfo)
33     DebugInfoOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use DebugInfo.newBuilder() to construct.
DebugInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private DebugInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
DebugInfo()40   private DebugInfo() {
41     stackEntries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
42     detail_ = "";
43   }
44 
45   @java.lang.Override
46   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)47   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
48     return new DebugInfo();
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.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_descriptor;
58   }
59 
60   @java.lang.Override
61   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()62       internalGetFieldAccessorTable() {
63     return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_fieldAccessorTable
64         .ensureFieldAccessorsInitialized(
65             com.google.rpc.DebugInfo.class, com.google.rpc.DebugInfo.Builder.class);
66   }
67 
68   public static final int STACK_ENTRIES_FIELD_NUMBER = 1;
69 
70   @SuppressWarnings("serial")
71   private com.google.protobuf.LazyStringList stackEntries_;
72   /**
73    *
74    *
75    * <pre>
76    * The stack trace entries indicating where the error occurred.
77    * </pre>
78    *
79    * <code>repeated string stack_entries = 1;</code>
80    *
81    * @return A list containing the stackEntries.
82    */
getStackEntriesList()83   public com.google.protobuf.ProtocolStringList getStackEntriesList() {
84     return stackEntries_;
85   }
86   /**
87    *
88    *
89    * <pre>
90    * The stack trace entries indicating where the error occurred.
91    * </pre>
92    *
93    * <code>repeated string stack_entries = 1;</code>
94    *
95    * @return The count of stackEntries.
96    */
getStackEntriesCount()97   public int getStackEntriesCount() {
98     return stackEntries_.size();
99   }
100   /**
101    *
102    *
103    * <pre>
104    * The stack trace entries indicating where the error occurred.
105    * </pre>
106    *
107    * <code>repeated string stack_entries = 1;</code>
108    *
109    * @param index The index of the element to return.
110    * @return The stackEntries at the given index.
111    */
getStackEntries(int index)112   public java.lang.String getStackEntries(int index) {
113     return stackEntries_.get(index);
114   }
115   /**
116    *
117    *
118    * <pre>
119    * The stack trace entries indicating where the error occurred.
120    * </pre>
121    *
122    * <code>repeated string stack_entries = 1;</code>
123    *
124    * @param index The index of the value to return.
125    * @return The bytes of the stackEntries at the given index.
126    */
getStackEntriesBytes(int index)127   public com.google.protobuf.ByteString getStackEntriesBytes(int index) {
128     return stackEntries_.getByteString(index);
129   }
130 
131   public static final int DETAIL_FIELD_NUMBER = 2;
132 
133   @SuppressWarnings("serial")
134   private volatile java.lang.Object detail_ = "";
135   /**
136    *
137    *
138    * <pre>
139    * Additional debugging information provided by the server.
140    * </pre>
141    *
142    * <code>string detail = 2;</code>
143    *
144    * @return The detail.
145    */
146   @java.lang.Override
getDetail()147   public java.lang.String getDetail() {
148     java.lang.Object ref = detail_;
149     if (ref instanceof java.lang.String) {
150       return (java.lang.String) ref;
151     } else {
152       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
153       java.lang.String s = bs.toStringUtf8();
154       detail_ = s;
155       return s;
156     }
157   }
158   /**
159    *
160    *
161    * <pre>
162    * Additional debugging information provided by the server.
163    * </pre>
164    *
165    * <code>string detail = 2;</code>
166    *
167    * @return The bytes for detail.
168    */
169   @java.lang.Override
getDetailBytes()170   public com.google.protobuf.ByteString getDetailBytes() {
171     java.lang.Object ref = detail_;
172     if (ref instanceof java.lang.String) {
173       com.google.protobuf.ByteString b =
174           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
175       detail_ = b;
176       return b;
177     } else {
178       return (com.google.protobuf.ByteString) ref;
179     }
180   }
181 
182   private byte memoizedIsInitialized = -1;
183 
184   @java.lang.Override
isInitialized()185   public final boolean isInitialized() {
186     byte isInitialized = memoizedIsInitialized;
187     if (isInitialized == 1) return true;
188     if (isInitialized == 0) return false;
189 
190     memoizedIsInitialized = 1;
191     return true;
192   }
193 
194   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)195   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
196     for (int i = 0; i < stackEntries_.size(); i++) {
197       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stackEntries_.getRaw(i));
198     }
199     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) {
200       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, detail_);
201     }
202     getUnknownFields().writeTo(output);
203   }
204 
205   @java.lang.Override
getSerializedSize()206   public int getSerializedSize() {
207     int size = memoizedSize;
208     if (size != -1) return size;
209 
210     size = 0;
211     {
212       int dataSize = 0;
213       for (int i = 0; i < stackEntries_.size(); i++) {
214         dataSize += computeStringSizeNoTag(stackEntries_.getRaw(i));
215       }
216       size += dataSize;
217       size += 1 * getStackEntriesList().size();
218     }
219     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) {
220       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, detail_);
221     }
222     size += getUnknownFields().getSerializedSize();
223     memoizedSize = size;
224     return size;
225   }
226 
227   @java.lang.Override
equals(final java.lang.Object obj)228   public boolean equals(final java.lang.Object obj) {
229     if (obj == this) {
230       return true;
231     }
232     if (!(obj instanceof com.google.rpc.DebugInfo)) {
233       return super.equals(obj);
234     }
235     com.google.rpc.DebugInfo other = (com.google.rpc.DebugInfo) obj;
236 
237     if (!getStackEntriesList().equals(other.getStackEntriesList())) return false;
238     if (!getDetail().equals(other.getDetail())) return false;
239     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
240     return true;
241   }
242 
243   @java.lang.Override
hashCode()244   public int hashCode() {
245     if (memoizedHashCode != 0) {
246       return memoizedHashCode;
247     }
248     int hash = 41;
249     hash = (19 * hash) + getDescriptor().hashCode();
250     if (getStackEntriesCount() > 0) {
251       hash = (37 * hash) + STACK_ENTRIES_FIELD_NUMBER;
252       hash = (53 * hash) + getStackEntriesList().hashCode();
253     }
254     hash = (37 * hash) + DETAIL_FIELD_NUMBER;
255     hash = (53 * hash) + getDetail().hashCode();
256     hash = (29 * hash) + getUnknownFields().hashCode();
257     memoizedHashCode = hash;
258     return hash;
259   }
260 
parseFrom(java.nio.ByteBuffer data)261   public static com.google.rpc.DebugInfo parseFrom(java.nio.ByteBuffer data)
262       throws com.google.protobuf.InvalidProtocolBufferException {
263     return PARSER.parseFrom(data);
264   }
265 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)266   public static com.google.rpc.DebugInfo parseFrom(
267       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
268       throws com.google.protobuf.InvalidProtocolBufferException {
269     return PARSER.parseFrom(data, extensionRegistry);
270   }
271 
parseFrom(com.google.protobuf.ByteString data)272   public static com.google.rpc.DebugInfo parseFrom(com.google.protobuf.ByteString data)
273       throws com.google.protobuf.InvalidProtocolBufferException {
274     return PARSER.parseFrom(data);
275   }
276 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)277   public static com.google.rpc.DebugInfo parseFrom(
278       com.google.protobuf.ByteString data,
279       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
280       throws com.google.protobuf.InvalidProtocolBufferException {
281     return PARSER.parseFrom(data, extensionRegistry);
282   }
283 
parseFrom(byte[] data)284   public static com.google.rpc.DebugInfo parseFrom(byte[] data)
285       throws com.google.protobuf.InvalidProtocolBufferException {
286     return PARSER.parseFrom(data);
287   }
288 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)289   public static com.google.rpc.DebugInfo parseFrom(
290       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
291       throws com.google.protobuf.InvalidProtocolBufferException {
292     return PARSER.parseFrom(data, extensionRegistry);
293   }
294 
parseFrom(java.io.InputStream input)295   public static com.google.rpc.DebugInfo parseFrom(java.io.InputStream input)
296       throws java.io.IOException {
297     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
298   }
299 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)300   public static com.google.rpc.DebugInfo parseFrom(
301       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
302       throws java.io.IOException {
303     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
304         PARSER, input, extensionRegistry);
305   }
306 
parseDelimitedFrom(java.io.InputStream input)307   public static com.google.rpc.DebugInfo parseDelimitedFrom(java.io.InputStream input)
308       throws java.io.IOException {
309     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
310   }
311 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)312   public static com.google.rpc.DebugInfo parseDelimitedFrom(
313       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
314       throws java.io.IOException {
315     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
316         PARSER, input, extensionRegistry);
317   }
318 
parseFrom(com.google.protobuf.CodedInputStream input)319   public static com.google.rpc.DebugInfo parseFrom(com.google.protobuf.CodedInputStream input)
320       throws java.io.IOException {
321     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
322   }
323 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)324   public static com.google.rpc.DebugInfo parseFrom(
325       com.google.protobuf.CodedInputStream input,
326       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
327       throws java.io.IOException {
328     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
329         PARSER, input, extensionRegistry);
330   }
331 
332   @java.lang.Override
newBuilderForType()333   public Builder newBuilderForType() {
334     return newBuilder();
335   }
336 
newBuilder()337   public static Builder newBuilder() {
338     return DEFAULT_INSTANCE.toBuilder();
339   }
340 
newBuilder(com.google.rpc.DebugInfo prototype)341   public static Builder newBuilder(com.google.rpc.DebugInfo prototype) {
342     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
343   }
344 
345   @java.lang.Override
toBuilder()346   public Builder toBuilder() {
347     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
348   }
349 
350   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)351   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
352     Builder builder = new Builder(parent);
353     return builder;
354   }
355   /**
356    *
357    *
358    * <pre>
359    * Describes additional debugging info.
360    * </pre>
361    *
362    * Protobuf type {@code google.rpc.DebugInfo}
363    */
364   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
365       implements
366       // @@protoc_insertion_point(builder_implements:google.rpc.DebugInfo)
367       com.google.rpc.DebugInfoOrBuilder {
getDescriptor()368     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
369       return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_descriptor;
370     }
371 
372     @java.lang.Override
373     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()374         internalGetFieldAccessorTable() {
375       return com.google.rpc.ErrorDetailsProto
376           .internal_static_google_rpc_DebugInfo_fieldAccessorTable
377           .ensureFieldAccessorsInitialized(
378               com.google.rpc.DebugInfo.class, com.google.rpc.DebugInfo.Builder.class);
379     }
380 
381     // Construct using com.google.rpc.DebugInfo.newBuilder()
Builder()382     private Builder() {}
383 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)384     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
385       super(parent);
386     }
387 
388     @java.lang.Override
clear()389     public Builder clear() {
390       super.clear();
391       bitField0_ = 0;
392       stackEntries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
393       bitField0_ = (bitField0_ & ~0x00000001);
394       detail_ = "";
395       return this;
396     }
397 
398     @java.lang.Override
getDescriptorForType()399     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
400       return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_DebugInfo_descriptor;
401     }
402 
403     @java.lang.Override
getDefaultInstanceForType()404     public com.google.rpc.DebugInfo getDefaultInstanceForType() {
405       return com.google.rpc.DebugInfo.getDefaultInstance();
406     }
407 
408     @java.lang.Override
build()409     public com.google.rpc.DebugInfo build() {
410       com.google.rpc.DebugInfo result = buildPartial();
411       if (!result.isInitialized()) {
412         throw newUninitializedMessageException(result);
413       }
414       return result;
415     }
416 
417     @java.lang.Override
buildPartial()418     public com.google.rpc.DebugInfo buildPartial() {
419       com.google.rpc.DebugInfo result = new com.google.rpc.DebugInfo(this);
420       buildPartialRepeatedFields(result);
421       if (bitField0_ != 0) {
422         buildPartial0(result);
423       }
424       onBuilt();
425       return result;
426     }
427 
buildPartialRepeatedFields(com.google.rpc.DebugInfo result)428     private void buildPartialRepeatedFields(com.google.rpc.DebugInfo result) {
429       if (((bitField0_ & 0x00000001) != 0)) {
430         stackEntries_ = stackEntries_.getUnmodifiableView();
431         bitField0_ = (bitField0_ & ~0x00000001);
432       }
433       result.stackEntries_ = stackEntries_;
434     }
435 
buildPartial0(com.google.rpc.DebugInfo result)436     private void buildPartial0(com.google.rpc.DebugInfo result) {
437       int from_bitField0_ = bitField0_;
438       if (((from_bitField0_ & 0x00000002) != 0)) {
439         result.detail_ = detail_;
440       }
441     }
442 
443     @java.lang.Override
clone()444     public Builder clone() {
445       return super.clone();
446     }
447 
448     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)449     public Builder setField(
450         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
451       return super.setField(field, value);
452     }
453 
454     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)455     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
456       return super.clearField(field);
457     }
458 
459     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)460     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
461       return super.clearOneof(oneof);
462     }
463 
464     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)465     public Builder setRepeatedField(
466         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
467       return super.setRepeatedField(field, index, value);
468     }
469 
470     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)471     public Builder addRepeatedField(
472         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
473       return super.addRepeatedField(field, value);
474     }
475 
476     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)477     public Builder mergeFrom(com.google.protobuf.Message other) {
478       if (other instanceof com.google.rpc.DebugInfo) {
479         return mergeFrom((com.google.rpc.DebugInfo) other);
480       } else {
481         super.mergeFrom(other);
482         return this;
483       }
484     }
485 
mergeFrom(com.google.rpc.DebugInfo other)486     public Builder mergeFrom(com.google.rpc.DebugInfo other) {
487       if (other == com.google.rpc.DebugInfo.getDefaultInstance()) return this;
488       if (!other.stackEntries_.isEmpty()) {
489         if (stackEntries_.isEmpty()) {
490           stackEntries_ = other.stackEntries_;
491           bitField0_ = (bitField0_ & ~0x00000001);
492         } else {
493           ensureStackEntriesIsMutable();
494           stackEntries_.addAll(other.stackEntries_);
495         }
496         onChanged();
497       }
498       if (!other.getDetail().isEmpty()) {
499         detail_ = other.detail_;
500         bitField0_ |= 0x00000002;
501         onChanged();
502       }
503       this.mergeUnknownFields(other.getUnknownFields());
504       onChanged();
505       return this;
506     }
507 
508     @java.lang.Override
isInitialized()509     public final boolean isInitialized() {
510       return true;
511     }
512 
513     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)514     public Builder mergeFrom(
515         com.google.protobuf.CodedInputStream input,
516         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
517         throws java.io.IOException {
518       if (extensionRegistry == null) {
519         throw new java.lang.NullPointerException();
520       }
521       try {
522         boolean done = false;
523         while (!done) {
524           int tag = input.readTag();
525           switch (tag) {
526             case 0:
527               done = true;
528               break;
529             case 10:
530               {
531                 java.lang.String s = input.readStringRequireUtf8();
532                 ensureStackEntriesIsMutable();
533                 stackEntries_.add(s);
534                 break;
535               } // case 10
536             case 18:
537               {
538                 detail_ = input.readStringRequireUtf8();
539                 bitField0_ |= 0x00000002;
540                 break;
541               } // case 18
542             default:
543               {
544                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
545                   done = true; // was an endgroup tag
546                 }
547                 break;
548               } // default:
549           } // switch (tag)
550         } // while (!done)
551       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
552         throw e.unwrapIOException();
553       } finally {
554         onChanged();
555       } // finally
556       return this;
557     }
558 
559     private int bitField0_;
560 
561     private com.google.protobuf.LazyStringList stackEntries_ =
562         com.google.protobuf.LazyStringArrayList.EMPTY;
563 
ensureStackEntriesIsMutable()564     private void ensureStackEntriesIsMutable() {
565       if (!((bitField0_ & 0x00000001) != 0)) {
566         stackEntries_ = new com.google.protobuf.LazyStringArrayList(stackEntries_);
567         bitField0_ |= 0x00000001;
568       }
569     }
570     /**
571      *
572      *
573      * <pre>
574      * The stack trace entries indicating where the error occurred.
575      * </pre>
576      *
577      * <code>repeated string stack_entries = 1;</code>
578      *
579      * @return A list containing the stackEntries.
580      */
getStackEntriesList()581     public com.google.protobuf.ProtocolStringList getStackEntriesList() {
582       return stackEntries_.getUnmodifiableView();
583     }
584     /**
585      *
586      *
587      * <pre>
588      * The stack trace entries indicating where the error occurred.
589      * </pre>
590      *
591      * <code>repeated string stack_entries = 1;</code>
592      *
593      * @return The count of stackEntries.
594      */
getStackEntriesCount()595     public int getStackEntriesCount() {
596       return stackEntries_.size();
597     }
598     /**
599      *
600      *
601      * <pre>
602      * The stack trace entries indicating where the error occurred.
603      * </pre>
604      *
605      * <code>repeated string stack_entries = 1;</code>
606      *
607      * @param index The index of the element to return.
608      * @return The stackEntries at the given index.
609      */
getStackEntries(int index)610     public java.lang.String getStackEntries(int index) {
611       return stackEntries_.get(index);
612     }
613     /**
614      *
615      *
616      * <pre>
617      * The stack trace entries indicating where the error occurred.
618      * </pre>
619      *
620      * <code>repeated string stack_entries = 1;</code>
621      *
622      * @param index The index of the value to return.
623      * @return The bytes of the stackEntries at the given index.
624      */
getStackEntriesBytes(int index)625     public com.google.protobuf.ByteString getStackEntriesBytes(int index) {
626       return stackEntries_.getByteString(index);
627     }
628     /**
629      *
630      *
631      * <pre>
632      * The stack trace entries indicating where the error occurred.
633      * </pre>
634      *
635      * <code>repeated string stack_entries = 1;</code>
636      *
637      * @param index The index to set the value at.
638      * @param value The stackEntries to set.
639      * @return This builder for chaining.
640      */
setStackEntries(int index, java.lang.String value)641     public Builder setStackEntries(int index, java.lang.String value) {
642       if (value == null) {
643         throw new NullPointerException();
644       }
645       ensureStackEntriesIsMutable();
646       stackEntries_.set(index, value);
647       onChanged();
648       return this;
649     }
650     /**
651      *
652      *
653      * <pre>
654      * The stack trace entries indicating where the error occurred.
655      * </pre>
656      *
657      * <code>repeated string stack_entries = 1;</code>
658      *
659      * @param value The stackEntries to add.
660      * @return This builder for chaining.
661      */
addStackEntries(java.lang.String value)662     public Builder addStackEntries(java.lang.String value) {
663       if (value == null) {
664         throw new NullPointerException();
665       }
666       ensureStackEntriesIsMutable();
667       stackEntries_.add(value);
668       onChanged();
669       return this;
670     }
671     /**
672      *
673      *
674      * <pre>
675      * The stack trace entries indicating where the error occurred.
676      * </pre>
677      *
678      * <code>repeated string stack_entries = 1;</code>
679      *
680      * @param values The stackEntries to add.
681      * @return This builder for chaining.
682      */
addAllStackEntries(java.lang.Iterable<java.lang.String> values)683     public Builder addAllStackEntries(java.lang.Iterable<java.lang.String> values) {
684       ensureStackEntriesIsMutable();
685       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stackEntries_);
686       onChanged();
687       return this;
688     }
689     /**
690      *
691      *
692      * <pre>
693      * The stack trace entries indicating where the error occurred.
694      * </pre>
695      *
696      * <code>repeated string stack_entries = 1;</code>
697      *
698      * @return This builder for chaining.
699      */
clearStackEntries()700     public Builder clearStackEntries() {
701       stackEntries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
702       bitField0_ = (bitField0_ & ~0x00000001);
703       onChanged();
704       return this;
705     }
706     /**
707      *
708      *
709      * <pre>
710      * The stack trace entries indicating where the error occurred.
711      * </pre>
712      *
713      * <code>repeated string stack_entries = 1;</code>
714      *
715      * @param value The bytes of the stackEntries to add.
716      * @return This builder for chaining.
717      */
addStackEntriesBytes(com.google.protobuf.ByteString value)718     public Builder addStackEntriesBytes(com.google.protobuf.ByteString value) {
719       if (value == null) {
720         throw new NullPointerException();
721       }
722       checkByteStringIsUtf8(value);
723       ensureStackEntriesIsMutable();
724       stackEntries_.add(value);
725       onChanged();
726       return this;
727     }
728 
729     private java.lang.Object detail_ = "";
730     /**
731      *
732      *
733      * <pre>
734      * Additional debugging information provided by the server.
735      * </pre>
736      *
737      * <code>string detail = 2;</code>
738      *
739      * @return The detail.
740      */
getDetail()741     public java.lang.String getDetail() {
742       java.lang.Object ref = detail_;
743       if (!(ref instanceof java.lang.String)) {
744         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
745         java.lang.String s = bs.toStringUtf8();
746         detail_ = s;
747         return s;
748       } else {
749         return (java.lang.String) ref;
750       }
751     }
752     /**
753      *
754      *
755      * <pre>
756      * Additional debugging information provided by the server.
757      * </pre>
758      *
759      * <code>string detail = 2;</code>
760      *
761      * @return The bytes for detail.
762      */
getDetailBytes()763     public com.google.protobuf.ByteString getDetailBytes() {
764       java.lang.Object ref = detail_;
765       if (ref instanceof String) {
766         com.google.protobuf.ByteString b =
767             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
768         detail_ = b;
769         return b;
770       } else {
771         return (com.google.protobuf.ByteString) ref;
772       }
773     }
774     /**
775      *
776      *
777      * <pre>
778      * Additional debugging information provided by the server.
779      * </pre>
780      *
781      * <code>string detail = 2;</code>
782      *
783      * @param value The detail to set.
784      * @return This builder for chaining.
785      */
setDetail(java.lang.String value)786     public Builder setDetail(java.lang.String value) {
787       if (value == null) {
788         throw new NullPointerException();
789       }
790       detail_ = value;
791       bitField0_ |= 0x00000002;
792       onChanged();
793       return this;
794     }
795     /**
796      *
797      *
798      * <pre>
799      * Additional debugging information provided by the server.
800      * </pre>
801      *
802      * <code>string detail = 2;</code>
803      *
804      * @return This builder for chaining.
805      */
clearDetail()806     public Builder clearDetail() {
807       detail_ = getDefaultInstance().getDetail();
808       bitField0_ = (bitField0_ & ~0x00000002);
809       onChanged();
810       return this;
811     }
812     /**
813      *
814      *
815      * <pre>
816      * Additional debugging information provided by the server.
817      * </pre>
818      *
819      * <code>string detail = 2;</code>
820      *
821      * @param value The bytes for detail to set.
822      * @return This builder for chaining.
823      */
setDetailBytes(com.google.protobuf.ByteString value)824     public Builder setDetailBytes(com.google.protobuf.ByteString value) {
825       if (value == null) {
826         throw new NullPointerException();
827       }
828       checkByteStringIsUtf8(value);
829       detail_ = value;
830       bitField0_ |= 0x00000002;
831       onChanged();
832       return this;
833     }
834 
835     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)836     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
837       return super.setUnknownFields(unknownFields);
838     }
839 
840     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)841     public final Builder mergeUnknownFields(
842         final com.google.protobuf.UnknownFieldSet unknownFields) {
843       return super.mergeUnknownFields(unknownFields);
844     }
845 
846     // @@protoc_insertion_point(builder_scope:google.rpc.DebugInfo)
847   }
848 
849   // @@protoc_insertion_point(class_scope:google.rpc.DebugInfo)
850   private static final com.google.rpc.DebugInfo DEFAULT_INSTANCE;
851 
852   static {
853     DEFAULT_INSTANCE = new com.google.rpc.DebugInfo();
854   }
855 
getDefaultInstance()856   public static com.google.rpc.DebugInfo getDefaultInstance() {
857     return DEFAULT_INSTANCE;
858   }
859 
860   private static final com.google.protobuf.Parser<DebugInfo> PARSER =
861       new com.google.protobuf.AbstractParser<DebugInfo>() {
862         @java.lang.Override
863         public DebugInfo parsePartialFrom(
864             com.google.protobuf.CodedInputStream input,
865             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
866             throws com.google.protobuf.InvalidProtocolBufferException {
867           Builder builder = newBuilder();
868           try {
869             builder.mergeFrom(input, extensionRegistry);
870           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
871             throw e.setUnfinishedMessage(builder.buildPartial());
872           } catch (com.google.protobuf.UninitializedMessageException e) {
873             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
874           } catch (java.io.IOException e) {
875             throw new com.google.protobuf.InvalidProtocolBufferException(e)
876                 .setUnfinishedMessage(builder.buildPartial());
877           }
878           return builder.buildPartial();
879         }
880       };
881 
parser()882   public static com.google.protobuf.Parser<DebugInfo> parser() {
883     return PARSER;
884   }
885 
886   @java.lang.Override
getParserForType()887   public com.google.protobuf.Parser<DebugInfo> getParserForType() {
888     return PARSER;
889   }
890 
891   @java.lang.Override
getDefaultInstanceForType()892   public com.google.rpc.DebugInfo getDefaultInstanceForType() {
893     return DEFAULT_INSTANCE;
894   }
895 }
896