• 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 what preconditions have failed.
26  * For example, if an RPC failed because it required the Terms of Service to be
27  * acknowledged, it could list the terms of service violation in the
28  * PreconditionFailure message.
29  * </pre>
30  *
31  * Protobuf type {@code google.rpc.PreconditionFailure}
32  */
33 public final class PreconditionFailure extends com.google.protobuf.GeneratedMessageV3
34     implements
35     // @@protoc_insertion_point(message_implements:google.rpc.PreconditionFailure)
36     PreconditionFailureOrBuilder {
37   private static final long serialVersionUID = 0L;
38   // Use PreconditionFailure.newBuilder() to construct.
PreconditionFailure(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)39   private PreconditionFailure(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
40     super(builder);
41   }
42 
PreconditionFailure()43   private PreconditionFailure() {
44     violations_ = java.util.Collections.emptyList();
45   }
46 
47   @java.lang.Override
48   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)49   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
50     return new PreconditionFailure();
51   }
52 
53   @java.lang.Override
getUnknownFields()54   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
55     return this.unknownFields;
56   }
57 
getDescriptor()58   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
59     return com.google.rpc.ErrorDetailsProto
60         .internal_static_google_rpc_PreconditionFailure_descriptor;
61   }
62 
63   @java.lang.Override
64   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()65       internalGetFieldAccessorTable() {
66     return com.google.rpc.ErrorDetailsProto
67         .internal_static_google_rpc_PreconditionFailure_fieldAccessorTable
68         .ensureFieldAccessorsInitialized(
69             com.google.rpc.PreconditionFailure.class,
70             com.google.rpc.PreconditionFailure.Builder.class);
71   }
72 
73   public interface ViolationOrBuilder
74       extends
75       // @@protoc_insertion_point(interface_extends:google.rpc.PreconditionFailure.Violation)
76       com.google.protobuf.MessageOrBuilder {
77 
78     /**
79      *
80      *
81      * <pre>
82      * The type of PreconditionFailure. We recommend using a service-specific
83      * enum type to define the supported precondition violation subjects. For
84      * example, "TOS" for "Terms of Service violation".
85      * </pre>
86      *
87      * <code>string type = 1;</code>
88      *
89      * @return The type.
90      */
getType()91     java.lang.String getType();
92     /**
93      *
94      *
95      * <pre>
96      * The type of PreconditionFailure. We recommend using a service-specific
97      * enum type to define the supported precondition violation subjects. For
98      * example, "TOS" for "Terms of Service violation".
99      * </pre>
100      *
101      * <code>string type = 1;</code>
102      *
103      * @return The bytes for type.
104      */
getTypeBytes()105     com.google.protobuf.ByteString getTypeBytes();
106 
107     /**
108      *
109      *
110      * <pre>
111      * The subject, relative to the type, that failed.
112      * For example, "google.com/cloud" relative to the "TOS" type would indicate
113      * which terms of service is being referenced.
114      * </pre>
115      *
116      * <code>string subject = 2;</code>
117      *
118      * @return The subject.
119      */
getSubject()120     java.lang.String getSubject();
121     /**
122      *
123      *
124      * <pre>
125      * The subject, relative to the type, that failed.
126      * For example, "google.com/cloud" relative to the "TOS" type would indicate
127      * which terms of service is being referenced.
128      * </pre>
129      *
130      * <code>string subject = 2;</code>
131      *
132      * @return The bytes for subject.
133      */
getSubjectBytes()134     com.google.protobuf.ByteString getSubjectBytes();
135 
136     /**
137      *
138      *
139      * <pre>
140      * A description of how the precondition failed. Developers can use this
141      * description to understand how to fix the failure.
142      * For example: "Terms of service not accepted".
143      * </pre>
144      *
145      * <code>string description = 3;</code>
146      *
147      * @return The description.
148      */
getDescription()149     java.lang.String getDescription();
150     /**
151      *
152      *
153      * <pre>
154      * A description of how the precondition failed. Developers can use this
155      * description to understand how to fix the failure.
156      * For example: "Terms of service not accepted".
157      * </pre>
158      *
159      * <code>string description = 3;</code>
160      *
161      * @return The bytes for description.
162      */
getDescriptionBytes()163     com.google.protobuf.ByteString getDescriptionBytes();
164   }
165   /**
166    *
167    *
168    * <pre>
169    * A message type used to describe a single precondition failure.
170    * </pre>
171    *
172    * Protobuf type {@code google.rpc.PreconditionFailure.Violation}
173    */
174   public static final class Violation extends com.google.protobuf.GeneratedMessageV3
175       implements
176       // @@protoc_insertion_point(message_implements:google.rpc.PreconditionFailure.Violation)
177       ViolationOrBuilder {
178     private static final long serialVersionUID = 0L;
179     // Use Violation.newBuilder() to construct.
Violation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)180     private Violation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
181       super(builder);
182     }
183 
Violation()184     private Violation() {
185       type_ = "";
186       subject_ = "";
187       description_ = "";
188     }
189 
190     @java.lang.Override
191     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)192     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
193       return new Violation();
194     }
195 
196     @java.lang.Override
getUnknownFields()197     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
198       return this.unknownFields;
199     }
200 
getDescriptor()201     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
202       return com.google.rpc.ErrorDetailsProto
203           .internal_static_google_rpc_PreconditionFailure_Violation_descriptor;
204     }
205 
206     @java.lang.Override
207     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()208         internalGetFieldAccessorTable() {
209       return com.google.rpc.ErrorDetailsProto
210           .internal_static_google_rpc_PreconditionFailure_Violation_fieldAccessorTable
211           .ensureFieldAccessorsInitialized(
212               com.google.rpc.PreconditionFailure.Violation.class,
213               com.google.rpc.PreconditionFailure.Violation.Builder.class);
214     }
215 
216     public static final int TYPE_FIELD_NUMBER = 1;
217 
218     @SuppressWarnings("serial")
219     private volatile java.lang.Object type_ = "";
220     /**
221      *
222      *
223      * <pre>
224      * The type of PreconditionFailure. We recommend using a service-specific
225      * enum type to define the supported precondition violation subjects. For
226      * example, "TOS" for "Terms of Service violation".
227      * </pre>
228      *
229      * <code>string type = 1;</code>
230      *
231      * @return The type.
232      */
233     @java.lang.Override
getType()234     public java.lang.String getType() {
235       java.lang.Object ref = type_;
236       if (ref instanceof java.lang.String) {
237         return (java.lang.String) ref;
238       } else {
239         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
240         java.lang.String s = bs.toStringUtf8();
241         type_ = s;
242         return s;
243       }
244     }
245     /**
246      *
247      *
248      * <pre>
249      * The type of PreconditionFailure. We recommend using a service-specific
250      * enum type to define the supported precondition violation subjects. For
251      * example, "TOS" for "Terms of Service violation".
252      * </pre>
253      *
254      * <code>string type = 1;</code>
255      *
256      * @return The bytes for type.
257      */
258     @java.lang.Override
getTypeBytes()259     public com.google.protobuf.ByteString getTypeBytes() {
260       java.lang.Object ref = type_;
261       if (ref instanceof java.lang.String) {
262         com.google.protobuf.ByteString b =
263             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
264         type_ = b;
265         return b;
266       } else {
267         return (com.google.protobuf.ByteString) ref;
268       }
269     }
270 
271     public static final int SUBJECT_FIELD_NUMBER = 2;
272 
273     @SuppressWarnings("serial")
274     private volatile java.lang.Object subject_ = "";
275     /**
276      *
277      *
278      * <pre>
279      * The subject, relative to the type, that failed.
280      * For example, "google.com/cloud" relative to the "TOS" type would indicate
281      * which terms of service is being referenced.
282      * </pre>
283      *
284      * <code>string subject = 2;</code>
285      *
286      * @return The subject.
287      */
288     @java.lang.Override
getSubject()289     public java.lang.String getSubject() {
290       java.lang.Object ref = subject_;
291       if (ref instanceof java.lang.String) {
292         return (java.lang.String) ref;
293       } else {
294         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
295         java.lang.String s = bs.toStringUtf8();
296         subject_ = s;
297         return s;
298       }
299     }
300     /**
301      *
302      *
303      * <pre>
304      * The subject, relative to the type, that failed.
305      * For example, "google.com/cloud" relative to the "TOS" type would indicate
306      * which terms of service is being referenced.
307      * </pre>
308      *
309      * <code>string subject = 2;</code>
310      *
311      * @return The bytes for subject.
312      */
313     @java.lang.Override
getSubjectBytes()314     public com.google.protobuf.ByteString getSubjectBytes() {
315       java.lang.Object ref = subject_;
316       if (ref instanceof java.lang.String) {
317         com.google.protobuf.ByteString b =
318             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
319         subject_ = b;
320         return b;
321       } else {
322         return (com.google.protobuf.ByteString) ref;
323       }
324     }
325 
326     public static final int DESCRIPTION_FIELD_NUMBER = 3;
327 
328     @SuppressWarnings("serial")
329     private volatile java.lang.Object description_ = "";
330     /**
331      *
332      *
333      * <pre>
334      * A description of how the precondition failed. Developers can use this
335      * description to understand how to fix the failure.
336      * For example: "Terms of service not accepted".
337      * </pre>
338      *
339      * <code>string description = 3;</code>
340      *
341      * @return The description.
342      */
343     @java.lang.Override
getDescription()344     public java.lang.String getDescription() {
345       java.lang.Object ref = description_;
346       if (ref instanceof java.lang.String) {
347         return (java.lang.String) ref;
348       } else {
349         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
350         java.lang.String s = bs.toStringUtf8();
351         description_ = s;
352         return s;
353       }
354     }
355     /**
356      *
357      *
358      * <pre>
359      * A description of how the precondition failed. Developers can use this
360      * description to understand how to fix the failure.
361      * For example: "Terms of service not accepted".
362      * </pre>
363      *
364      * <code>string description = 3;</code>
365      *
366      * @return The bytes for description.
367      */
368     @java.lang.Override
getDescriptionBytes()369     public com.google.protobuf.ByteString getDescriptionBytes() {
370       java.lang.Object ref = description_;
371       if (ref instanceof java.lang.String) {
372         com.google.protobuf.ByteString b =
373             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
374         description_ = b;
375         return b;
376       } else {
377         return (com.google.protobuf.ByteString) ref;
378       }
379     }
380 
381     private byte memoizedIsInitialized = -1;
382 
383     @java.lang.Override
isInitialized()384     public final boolean isInitialized() {
385       byte isInitialized = memoizedIsInitialized;
386       if (isInitialized == 1) return true;
387       if (isInitialized == 0) return false;
388 
389       memoizedIsInitialized = 1;
390       return true;
391     }
392 
393     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)394     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
395       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
396         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
397       }
398       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) {
399         com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subject_);
400       }
401       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
402         com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
403       }
404       getUnknownFields().writeTo(output);
405     }
406 
407     @java.lang.Override
getSerializedSize()408     public int getSerializedSize() {
409       int size = memoizedSize;
410       if (size != -1) return size;
411 
412       size = 0;
413       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
414         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
415       }
416       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) {
417         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subject_);
418       }
419       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
420         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
421       }
422       size += getUnknownFields().getSerializedSize();
423       memoizedSize = size;
424       return size;
425     }
426 
427     @java.lang.Override
equals(final java.lang.Object obj)428     public boolean equals(final java.lang.Object obj) {
429       if (obj == this) {
430         return true;
431       }
432       if (!(obj instanceof com.google.rpc.PreconditionFailure.Violation)) {
433         return super.equals(obj);
434       }
435       com.google.rpc.PreconditionFailure.Violation other =
436           (com.google.rpc.PreconditionFailure.Violation) obj;
437 
438       if (!getType().equals(other.getType())) return false;
439       if (!getSubject().equals(other.getSubject())) return false;
440       if (!getDescription().equals(other.getDescription())) return false;
441       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
442       return true;
443     }
444 
445     @java.lang.Override
hashCode()446     public int hashCode() {
447       if (memoizedHashCode != 0) {
448         return memoizedHashCode;
449       }
450       int hash = 41;
451       hash = (19 * hash) + getDescriptor().hashCode();
452       hash = (37 * hash) + TYPE_FIELD_NUMBER;
453       hash = (53 * hash) + getType().hashCode();
454       hash = (37 * hash) + SUBJECT_FIELD_NUMBER;
455       hash = (53 * hash) + getSubject().hashCode();
456       hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
457       hash = (53 * hash) + getDescription().hashCode();
458       hash = (29 * hash) + getUnknownFields().hashCode();
459       memoizedHashCode = hash;
460       return hash;
461     }
462 
parseFrom(java.nio.ByteBuffer data)463     public static com.google.rpc.PreconditionFailure.Violation parseFrom(java.nio.ByteBuffer data)
464         throws com.google.protobuf.InvalidProtocolBufferException {
465       return PARSER.parseFrom(data);
466     }
467 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)468     public static com.google.rpc.PreconditionFailure.Violation parseFrom(
469         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
470         throws com.google.protobuf.InvalidProtocolBufferException {
471       return PARSER.parseFrom(data, extensionRegistry);
472     }
473 
parseFrom( com.google.protobuf.ByteString data)474     public static com.google.rpc.PreconditionFailure.Violation parseFrom(
475         com.google.protobuf.ByteString data)
476         throws com.google.protobuf.InvalidProtocolBufferException {
477       return PARSER.parseFrom(data);
478     }
479 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)480     public static com.google.rpc.PreconditionFailure.Violation parseFrom(
481         com.google.protobuf.ByteString data,
482         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
483         throws com.google.protobuf.InvalidProtocolBufferException {
484       return PARSER.parseFrom(data, extensionRegistry);
485     }
486 
parseFrom(byte[] data)487     public static com.google.rpc.PreconditionFailure.Violation parseFrom(byte[] data)
488         throws com.google.protobuf.InvalidProtocolBufferException {
489       return PARSER.parseFrom(data);
490     }
491 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)492     public static com.google.rpc.PreconditionFailure.Violation parseFrom(
493         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
494         throws com.google.protobuf.InvalidProtocolBufferException {
495       return PARSER.parseFrom(data, extensionRegistry);
496     }
497 
parseFrom(java.io.InputStream input)498     public static com.google.rpc.PreconditionFailure.Violation parseFrom(java.io.InputStream input)
499         throws java.io.IOException {
500       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
501     }
502 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)503     public static com.google.rpc.PreconditionFailure.Violation parseFrom(
504         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
505         throws java.io.IOException {
506       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
507           PARSER, input, extensionRegistry);
508     }
509 
parseDelimitedFrom( java.io.InputStream input)510     public static com.google.rpc.PreconditionFailure.Violation parseDelimitedFrom(
511         java.io.InputStream input) throws java.io.IOException {
512       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
513     }
514 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)515     public static com.google.rpc.PreconditionFailure.Violation parseDelimitedFrom(
516         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
517         throws java.io.IOException {
518       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
519           PARSER, input, extensionRegistry);
520     }
521 
parseFrom( com.google.protobuf.CodedInputStream input)522     public static com.google.rpc.PreconditionFailure.Violation parseFrom(
523         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
524       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
525     }
526 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)527     public static com.google.rpc.PreconditionFailure.Violation parseFrom(
528         com.google.protobuf.CodedInputStream input,
529         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
530         throws java.io.IOException {
531       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
532           PARSER, input, extensionRegistry);
533     }
534 
535     @java.lang.Override
newBuilderForType()536     public Builder newBuilderForType() {
537       return newBuilder();
538     }
539 
newBuilder()540     public static Builder newBuilder() {
541       return DEFAULT_INSTANCE.toBuilder();
542     }
543 
newBuilder(com.google.rpc.PreconditionFailure.Violation prototype)544     public static Builder newBuilder(com.google.rpc.PreconditionFailure.Violation prototype) {
545       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
546     }
547 
548     @java.lang.Override
toBuilder()549     public Builder toBuilder() {
550       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
551     }
552 
553     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)554     protected Builder newBuilderForType(
555         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
556       Builder builder = new Builder(parent);
557       return builder;
558     }
559     /**
560      *
561      *
562      * <pre>
563      * A message type used to describe a single precondition failure.
564      * </pre>
565      *
566      * Protobuf type {@code google.rpc.PreconditionFailure.Violation}
567      */
568     public static final class Builder
569         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
570         implements
571         // @@protoc_insertion_point(builder_implements:google.rpc.PreconditionFailure.Violation)
572         com.google.rpc.PreconditionFailure.ViolationOrBuilder {
getDescriptor()573       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
574         return com.google.rpc.ErrorDetailsProto
575             .internal_static_google_rpc_PreconditionFailure_Violation_descriptor;
576       }
577 
578       @java.lang.Override
579       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()580           internalGetFieldAccessorTable() {
581         return com.google.rpc.ErrorDetailsProto
582             .internal_static_google_rpc_PreconditionFailure_Violation_fieldAccessorTable
583             .ensureFieldAccessorsInitialized(
584                 com.google.rpc.PreconditionFailure.Violation.class,
585                 com.google.rpc.PreconditionFailure.Violation.Builder.class);
586       }
587 
588       // Construct using com.google.rpc.PreconditionFailure.Violation.newBuilder()
Builder()589       private Builder() {}
590 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)591       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
592         super(parent);
593       }
594 
595       @java.lang.Override
clear()596       public Builder clear() {
597         super.clear();
598         bitField0_ = 0;
599         type_ = "";
600         subject_ = "";
601         description_ = "";
602         return this;
603       }
604 
605       @java.lang.Override
getDescriptorForType()606       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
607         return com.google.rpc.ErrorDetailsProto
608             .internal_static_google_rpc_PreconditionFailure_Violation_descriptor;
609       }
610 
611       @java.lang.Override
getDefaultInstanceForType()612       public com.google.rpc.PreconditionFailure.Violation getDefaultInstanceForType() {
613         return com.google.rpc.PreconditionFailure.Violation.getDefaultInstance();
614       }
615 
616       @java.lang.Override
build()617       public com.google.rpc.PreconditionFailure.Violation build() {
618         com.google.rpc.PreconditionFailure.Violation result = buildPartial();
619         if (!result.isInitialized()) {
620           throw newUninitializedMessageException(result);
621         }
622         return result;
623       }
624 
625       @java.lang.Override
buildPartial()626       public com.google.rpc.PreconditionFailure.Violation buildPartial() {
627         com.google.rpc.PreconditionFailure.Violation result =
628             new com.google.rpc.PreconditionFailure.Violation(this);
629         if (bitField0_ != 0) {
630           buildPartial0(result);
631         }
632         onBuilt();
633         return result;
634       }
635 
buildPartial0(com.google.rpc.PreconditionFailure.Violation result)636       private void buildPartial0(com.google.rpc.PreconditionFailure.Violation result) {
637         int from_bitField0_ = bitField0_;
638         if (((from_bitField0_ & 0x00000001) != 0)) {
639           result.type_ = type_;
640         }
641         if (((from_bitField0_ & 0x00000002) != 0)) {
642           result.subject_ = subject_;
643         }
644         if (((from_bitField0_ & 0x00000004) != 0)) {
645           result.description_ = description_;
646         }
647       }
648 
649       @java.lang.Override
clone()650       public Builder clone() {
651         return super.clone();
652       }
653 
654       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)655       public Builder setField(
656           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
657         return super.setField(field, value);
658       }
659 
660       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)661       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
662         return super.clearField(field);
663       }
664 
665       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)666       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
667         return super.clearOneof(oneof);
668       }
669 
670       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)671       public Builder setRepeatedField(
672           com.google.protobuf.Descriptors.FieldDescriptor field,
673           int index,
674           java.lang.Object value) {
675         return super.setRepeatedField(field, index, value);
676       }
677 
678       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)679       public Builder addRepeatedField(
680           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
681         return super.addRepeatedField(field, value);
682       }
683 
684       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)685       public Builder mergeFrom(com.google.protobuf.Message other) {
686         if (other instanceof com.google.rpc.PreconditionFailure.Violation) {
687           return mergeFrom((com.google.rpc.PreconditionFailure.Violation) other);
688         } else {
689           super.mergeFrom(other);
690           return this;
691         }
692       }
693 
mergeFrom(com.google.rpc.PreconditionFailure.Violation other)694       public Builder mergeFrom(com.google.rpc.PreconditionFailure.Violation other) {
695         if (other == com.google.rpc.PreconditionFailure.Violation.getDefaultInstance()) return this;
696         if (!other.getType().isEmpty()) {
697           type_ = other.type_;
698           bitField0_ |= 0x00000001;
699           onChanged();
700         }
701         if (!other.getSubject().isEmpty()) {
702           subject_ = other.subject_;
703           bitField0_ |= 0x00000002;
704           onChanged();
705         }
706         if (!other.getDescription().isEmpty()) {
707           description_ = other.description_;
708           bitField0_ |= 0x00000004;
709           onChanged();
710         }
711         this.mergeUnknownFields(other.getUnknownFields());
712         onChanged();
713         return this;
714       }
715 
716       @java.lang.Override
isInitialized()717       public final boolean isInitialized() {
718         return true;
719       }
720 
721       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)722       public Builder mergeFrom(
723           com.google.protobuf.CodedInputStream input,
724           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
725           throws java.io.IOException {
726         if (extensionRegistry == null) {
727           throw new java.lang.NullPointerException();
728         }
729         try {
730           boolean done = false;
731           while (!done) {
732             int tag = input.readTag();
733             switch (tag) {
734               case 0:
735                 done = true;
736                 break;
737               case 10:
738                 {
739                   type_ = input.readStringRequireUtf8();
740                   bitField0_ |= 0x00000001;
741                   break;
742                 } // case 10
743               case 18:
744                 {
745                   subject_ = input.readStringRequireUtf8();
746                   bitField0_ |= 0x00000002;
747                   break;
748                 } // case 18
749               case 26:
750                 {
751                   description_ = input.readStringRequireUtf8();
752                   bitField0_ |= 0x00000004;
753                   break;
754                 } // case 26
755               default:
756                 {
757                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
758                     done = true; // was an endgroup tag
759                   }
760                   break;
761                 } // default:
762             } // switch (tag)
763           } // while (!done)
764         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
765           throw e.unwrapIOException();
766         } finally {
767           onChanged();
768         } // finally
769         return this;
770       }
771 
772       private int bitField0_;
773 
774       private java.lang.Object type_ = "";
775       /**
776        *
777        *
778        * <pre>
779        * The type of PreconditionFailure. We recommend using a service-specific
780        * enum type to define the supported precondition violation subjects. For
781        * example, "TOS" for "Terms of Service violation".
782        * </pre>
783        *
784        * <code>string type = 1;</code>
785        *
786        * @return The type.
787        */
getType()788       public java.lang.String getType() {
789         java.lang.Object ref = type_;
790         if (!(ref instanceof java.lang.String)) {
791           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
792           java.lang.String s = bs.toStringUtf8();
793           type_ = s;
794           return s;
795         } else {
796           return (java.lang.String) ref;
797         }
798       }
799       /**
800        *
801        *
802        * <pre>
803        * The type of PreconditionFailure. We recommend using a service-specific
804        * enum type to define the supported precondition violation subjects. For
805        * example, "TOS" for "Terms of Service violation".
806        * </pre>
807        *
808        * <code>string type = 1;</code>
809        *
810        * @return The bytes for type.
811        */
getTypeBytes()812       public com.google.protobuf.ByteString getTypeBytes() {
813         java.lang.Object ref = type_;
814         if (ref instanceof String) {
815           com.google.protobuf.ByteString b =
816               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
817           type_ = b;
818           return b;
819         } else {
820           return (com.google.protobuf.ByteString) ref;
821         }
822       }
823       /**
824        *
825        *
826        * <pre>
827        * The type of PreconditionFailure. We recommend using a service-specific
828        * enum type to define the supported precondition violation subjects. For
829        * example, "TOS" for "Terms of Service violation".
830        * </pre>
831        *
832        * <code>string type = 1;</code>
833        *
834        * @param value The type to set.
835        * @return This builder for chaining.
836        */
setType(java.lang.String value)837       public Builder setType(java.lang.String value) {
838         if (value == null) {
839           throw new NullPointerException();
840         }
841         type_ = value;
842         bitField0_ |= 0x00000001;
843         onChanged();
844         return this;
845       }
846       /**
847        *
848        *
849        * <pre>
850        * The type of PreconditionFailure. We recommend using a service-specific
851        * enum type to define the supported precondition violation subjects. For
852        * example, "TOS" for "Terms of Service violation".
853        * </pre>
854        *
855        * <code>string type = 1;</code>
856        *
857        * @return This builder for chaining.
858        */
clearType()859       public Builder clearType() {
860         type_ = getDefaultInstance().getType();
861         bitField0_ = (bitField0_ & ~0x00000001);
862         onChanged();
863         return this;
864       }
865       /**
866        *
867        *
868        * <pre>
869        * The type of PreconditionFailure. We recommend using a service-specific
870        * enum type to define the supported precondition violation subjects. For
871        * example, "TOS" for "Terms of Service violation".
872        * </pre>
873        *
874        * <code>string type = 1;</code>
875        *
876        * @param value The bytes for type to set.
877        * @return This builder for chaining.
878        */
setTypeBytes(com.google.protobuf.ByteString value)879       public Builder setTypeBytes(com.google.protobuf.ByteString value) {
880         if (value == null) {
881           throw new NullPointerException();
882         }
883         checkByteStringIsUtf8(value);
884         type_ = value;
885         bitField0_ |= 0x00000001;
886         onChanged();
887         return this;
888       }
889 
890       private java.lang.Object subject_ = "";
891       /**
892        *
893        *
894        * <pre>
895        * The subject, relative to the type, that failed.
896        * For example, "google.com/cloud" relative to the "TOS" type would indicate
897        * which terms of service is being referenced.
898        * </pre>
899        *
900        * <code>string subject = 2;</code>
901        *
902        * @return The subject.
903        */
getSubject()904       public java.lang.String getSubject() {
905         java.lang.Object ref = subject_;
906         if (!(ref instanceof java.lang.String)) {
907           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
908           java.lang.String s = bs.toStringUtf8();
909           subject_ = s;
910           return s;
911         } else {
912           return (java.lang.String) ref;
913         }
914       }
915       /**
916        *
917        *
918        * <pre>
919        * The subject, relative to the type, that failed.
920        * For example, "google.com/cloud" relative to the "TOS" type would indicate
921        * which terms of service is being referenced.
922        * </pre>
923        *
924        * <code>string subject = 2;</code>
925        *
926        * @return The bytes for subject.
927        */
getSubjectBytes()928       public com.google.protobuf.ByteString getSubjectBytes() {
929         java.lang.Object ref = subject_;
930         if (ref instanceof String) {
931           com.google.protobuf.ByteString b =
932               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
933           subject_ = b;
934           return b;
935         } else {
936           return (com.google.protobuf.ByteString) ref;
937         }
938       }
939       /**
940        *
941        *
942        * <pre>
943        * The subject, relative to the type, that failed.
944        * For example, "google.com/cloud" relative to the "TOS" type would indicate
945        * which terms of service is being referenced.
946        * </pre>
947        *
948        * <code>string subject = 2;</code>
949        *
950        * @param value The subject to set.
951        * @return This builder for chaining.
952        */
setSubject(java.lang.String value)953       public Builder setSubject(java.lang.String value) {
954         if (value == null) {
955           throw new NullPointerException();
956         }
957         subject_ = value;
958         bitField0_ |= 0x00000002;
959         onChanged();
960         return this;
961       }
962       /**
963        *
964        *
965        * <pre>
966        * The subject, relative to the type, that failed.
967        * For example, "google.com/cloud" relative to the "TOS" type would indicate
968        * which terms of service is being referenced.
969        * </pre>
970        *
971        * <code>string subject = 2;</code>
972        *
973        * @return This builder for chaining.
974        */
clearSubject()975       public Builder clearSubject() {
976         subject_ = getDefaultInstance().getSubject();
977         bitField0_ = (bitField0_ & ~0x00000002);
978         onChanged();
979         return this;
980       }
981       /**
982        *
983        *
984        * <pre>
985        * The subject, relative to the type, that failed.
986        * For example, "google.com/cloud" relative to the "TOS" type would indicate
987        * which terms of service is being referenced.
988        * </pre>
989        *
990        * <code>string subject = 2;</code>
991        *
992        * @param value The bytes for subject to set.
993        * @return This builder for chaining.
994        */
setSubjectBytes(com.google.protobuf.ByteString value)995       public Builder setSubjectBytes(com.google.protobuf.ByteString value) {
996         if (value == null) {
997           throw new NullPointerException();
998         }
999         checkByteStringIsUtf8(value);
1000         subject_ = value;
1001         bitField0_ |= 0x00000002;
1002         onChanged();
1003         return this;
1004       }
1005 
1006       private java.lang.Object description_ = "";
1007       /**
1008        *
1009        *
1010        * <pre>
1011        * A description of how the precondition failed. Developers can use this
1012        * description to understand how to fix the failure.
1013        * For example: "Terms of service not accepted".
1014        * </pre>
1015        *
1016        * <code>string description = 3;</code>
1017        *
1018        * @return The description.
1019        */
getDescription()1020       public java.lang.String getDescription() {
1021         java.lang.Object ref = description_;
1022         if (!(ref instanceof java.lang.String)) {
1023           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1024           java.lang.String s = bs.toStringUtf8();
1025           description_ = s;
1026           return s;
1027         } else {
1028           return (java.lang.String) ref;
1029         }
1030       }
1031       /**
1032        *
1033        *
1034        * <pre>
1035        * A description of how the precondition failed. Developers can use this
1036        * description to understand how to fix the failure.
1037        * For example: "Terms of service not accepted".
1038        * </pre>
1039        *
1040        * <code>string description = 3;</code>
1041        *
1042        * @return The bytes for description.
1043        */
getDescriptionBytes()1044       public com.google.protobuf.ByteString getDescriptionBytes() {
1045         java.lang.Object ref = description_;
1046         if (ref instanceof String) {
1047           com.google.protobuf.ByteString b =
1048               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1049           description_ = b;
1050           return b;
1051         } else {
1052           return (com.google.protobuf.ByteString) ref;
1053         }
1054       }
1055       /**
1056        *
1057        *
1058        * <pre>
1059        * A description of how the precondition failed. Developers can use this
1060        * description to understand how to fix the failure.
1061        * For example: "Terms of service not accepted".
1062        * </pre>
1063        *
1064        * <code>string description = 3;</code>
1065        *
1066        * @param value The description to set.
1067        * @return This builder for chaining.
1068        */
setDescription(java.lang.String value)1069       public Builder setDescription(java.lang.String value) {
1070         if (value == null) {
1071           throw new NullPointerException();
1072         }
1073         description_ = value;
1074         bitField0_ |= 0x00000004;
1075         onChanged();
1076         return this;
1077       }
1078       /**
1079        *
1080        *
1081        * <pre>
1082        * A description of how the precondition failed. Developers can use this
1083        * description to understand how to fix the failure.
1084        * For example: "Terms of service not accepted".
1085        * </pre>
1086        *
1087        * <code>string description = 3;</code>
1088        *
1089        * @return This builder for chaining.
1090        */
clearDescription()1091       public Builder clearDescription() {
1092         description_ = getDefaultInstance().getDescription();
1093         bitField0_ = (bitField0_ & ~0x00000004);
1094         onChanged();
1095         return this;
1096       }
1097       /**
1098        *
1099        *
1100        * <pre>
1101        * A description of how the precondition failed. Developers can use this
1102        * description to understand how to fix the failure.
1103        * For example: "Terms of service not accepted".
1104        * </pre>
1105        *
1106        * <code>string description = 3;</code>
1107        *
1108        * @param value The bytes for description to set.
1109        * @return This builder for chaining.
1110        */
setDescriptionBytes(com.google.protobuf.ByteString value)1111       public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
1112         if (value == null) {
1113           throw new NullPointerException();
1114         }
1115         checkByteStringIsUtf8(value);
1116         description_ = value;
1117         bitField0_ |= 0x00000004;
1118         onChanged();
1119         return this;
1120       }
1121 
1122       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1123       public final Builder setUnknownFields(
1124           final com.google.protobuf.UnknownFieldSet unknownFields) {
1125         return super.setUnknownFields(unknownFields);
1126       }
1127 
1128       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1129       public final Builder mergeUnknownFields(
1130           final com.google.protobuf.UnknownFieldSet unknownFields) {
1131         return super.mergeUnknownFields(unknownFields);
1132       }
1133 
1134       // @@protoc_insertion_point(builder_scope:google.rpc.PreconditionFailure.Violation)
1135     }
1136 
1137     // @@protoc_insertion_point(class_scope:google.rpc.PreconditionFailure.Violation)
1138     private static final com.google.rpc.PreconditionFailure.Violation DEFAULT_INSTANCE;
1139 
1140     static {
1141       DEFAULT_INSTANCE = new com.google.rpc.PreconditionFailure.Violation();
1142     }
1143 
getDefaultInstance()1144     public static com.google.rpc.PreconditionFailure.Violation getDefaultInstance() {
1145       return DEFAULT_INSTANCE;
1146     }
1147 
1148     private static final com.google.protobuf.Parser<Violation> PARSER =
1149         new com.google.protobuf.AbstractParser<Violation>() {
1150           @java.lang.Override
1151           public Violation parsePartialFrom(
1152               com.google.protobuf.CodedInputStream input,
1153               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1154               throws com.google.protobuf.InvalidProtocolBufferException {
1155             Builder builder = newBuilder();
1156             try {
1157               builder.mergeFrom(input, extensionRegistry);
1158             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1159               throw e.setUnfinishedMessage(builder.buildPartial());
1160             } catch (com.google.protobuf.UninitializedMessageException e) {
1161               throw e.asInvalidProtocolBufferException()
1162                   .setUnfinishedMessage(builder.buildPartial());
1163             } catch (java.io.IOException e) {
1164               throw new com.google.protobuf.InvalidProtocolBufferException(e)
1165                   .setUnfinishedMessage(builder.buildPartial());
1166             }
1167             return builder.buildPartial();
1168           }
1169         };
1170 
parser()1171     public static com.google.protobuf.Parser<Violation> parser() {
1172       return PARSER;
1173     }
1174 
1175     @java.lang.Override
getParserForType()1176     public com.google.protobuf.Parser<Violation> getParserForType() {
1177       return PARSER;
1178     }
1179 
1180     @java.lang.Override
getDefaultInstanceForType()1181     public com.google.rpc.PreconditionFailure.Violation getDefaultInstanceForType() {
1182       return DEFAULT_INSTANCE;
1183     }
1184   }
1185 
1186   public static final int VIOLATIONS_FIELD_NUMBER = 1;
1187 
1188   @SuppressWarnings("serial")
1189   private java.util.List<com.google.rpc.PreconditionFailure.Violation> violations_;
1190   /**
1191    *
1192    *
1193    * <pre>
1194    * Describes all precondition violations.
1195    * </pre>
1196    *
1197    * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1198    */
1199   @java.lang.Override
getViolationsList()1200   public java.util.List<com.google.rpc.PreconditionFailure.Violation> getViolationsList() {
1201     return violations_;
1202   }
1203   /**
1204    *
1205    *
1206    * <pre>
1207    * Describes all precondition violations.
1208    * </pre>
1209    *
1210    * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1211    */
1212   @java.lang.Override
1213   public java.util.List<? extends com.google.rpc.PreconditionFailure.ViolationOrBuilder>
getViolationsOrBuilderList()1214       getViolationsOrBuilderList() {
1215     return violations_;
1216   }
1217   /**
1218    *
1219    *
1220    * <pre>
1221    * Describes all precondition violations.
1222    * </pre>
1223    *
1224    * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1225    */
1226   @java.lang.Override
getViolationsCount()1227   public int getViolationsCount() {
1228     return violations_.size();
1229   }
1230   /**
1231    *
1232    *
1233    * <pre>
1234    * Describes all precondition violations.
1235    * </pre>
1236    *
1237    * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1238    */
1239   @java.lang.Override
getViolations(int index)1240   public com.google.rpc.PreconditionFailure.Violation getViolations(int index) {
1241     return violations_.get(index);
1242   }
1243   /**
1244    *
1245    *
1246    * <pre>
1247    * Describes all precondition violations.
1248    * </pre>
1249    *
1250    * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1251    */
1252   @java.lang.Override
getViolationsOrBuilder(int index)1253   public com.google.rpc.PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder(int index) {
1254     return violations_.get(index);
1255   }
1256 
1257   private byte memoizedIsInitialized = -1;
1258 
1259   @java.lang.Override
isInitialized()1260   public final boolean isInitialized() {
1261     byte isInitialized = memoizedIsInitialized;
1262     if (isInitialized == 1) return true;
1263     if (isInitialized == 0) return false;
1264 
1265     memoizedIsInitialized = 1;
1266     return true;
1267   }
1268 
1269   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1270   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1271     for (int i = 0; i < violations_.size(); i++) {
1272       output.writeMessage(1, violations_.get(i));
1273     }
1274     getUnknownFields().writeTo(output);
1275   }
1276 
1277   @java.lang.Override
getSerializedSize()1278   public int getSerializedSize() {
1279     int size = memoizedSize;
1280     if (size != -1) return size;
1281 
1282     size = 0;
1283     for (int i = 0; i < violations_.size(); i++) {
1284       size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, violations_.get(i));
1285     }
1286     size += getUnknownFields().getSerializedSize();
1287     memoizedSize = size;
1288     return size;
1289   }
1290 
1291   @java.lang.Override
equals(final java.lang.Object obj)1292   public boolean equals(final java.lang.Object obj) {
1293     if (obj == this) {
1294       return true;
1295     }
1296     if (!(obj instanceof com.google.rpc.PreconditionFailure)) {
1297       return super.equals(obj);
1298     }
1299     com.google.rpc.PreconditionFailure other = (com.google.rpc.PreconditionFailure) obj;
1300 
1301     if (!getViolationsList().equals(other.getViolationsList())) return false;
1302     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1303     return true;
1304   }
1305 
1306   @java.lang.Override
hashCode()1307   public int hashCode() {
1308     if (memoizedHashCode != 0) {
1309       return memoizedHashCode;
1310     }
1311     int hash = 41;
1312     hash = (19 * hash) + getDescriptor().hashCode();
1313     if (getViolationsCount() > 0) {
1314       hash = (37 * hash) + VIOLATIONS_FIELD_NUMBER;
1315       hash = (53 * hash) + getViolationsList().hashCode();
1316     }
1317     hash = (29 * hash) + getUnknownFields().hashCode();
1318     memoizedHashCode = hash;
1319     return hash;
1320   }
1321 
parseFrom(java.nio.ByteBuffer data)1322   public static com.google.rpc.PreconditionFailure parseFrom(java.nio.ByteBuffer data)
1323       throws com.google.protobuf.InvalidProtocolBufferException {
1324     return PARSER.parseFrom(data);
1325   }
1326 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1327   public static com.google.rpc.PreconditionFailure parseFrom(
1328       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1329       throws com.google.protobuf.InvalidProtocolBufferException {
1330     return PARSER.parseFrom(data, extensionRegistry);
1331   }
1332 
parseFrom(com.google.protobuf.ByteString data)1333   public static com.google.rpc.PreconditionFailure parseFrom(com.google.protobuf.ByteString data)
1334       throws com.google.protobuf.InvalidProtocolBufferException {
1335     return PARSER.parseFrom(data);
1336   }
1337 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1338   public static com.google.rpc.PreconditionFailure parseFrom(
1339       com.google.protobuf.ByteString data,
1340       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1341       throws com.google.protobuf.InvalidProtocolBufferException {
1342     return PARSER.parseFrom(data, extensionRegistry);
1343   }
1344 
parseFrom(byte[] data)1345   public static com.google.rpc.PreconditionFailure parseFrom(byte[] data)
1346       throws com.google.protobuf.InvalidProtocolBufferException {
1347     return PARSER.parseFrom(data);
1348   }
1349 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1350   public static com.google.rpc.PreconditionFailure parseFrom(
1351       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1352       throws com.google.protobuf.InvalidProtocolBufferException {
1353     return PARSER.parseFrom(data, extensionRegistry);
1354   }
1355 
parseFrom(java.io.InputStream input)1356   public static com.google.rpc.PreconditionFailure parseFrom(java.io.InputStream input)
1357       throws java.io.IOException {
1358     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1359   }
1360 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1361   public static com.google.rpc.PreconditionFailure parseFrom(
1362       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1363       throws java.io.IOException {
1364     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1365         PARSER, input, extensionRegistry);
1366   }
1367 
parseDelimitedFrom(java.io.InputStream input)1368   public static com.google.rpc.PreconditionFailure parseDelimitedFrom(java.io.InputStream input)
1369       throws java.io.IOException {
1370     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1371   }
1372 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1373   public static com.google.rpc.PreconditionFailure parseDelimitedFrom(
1374       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1375       throws java.io.IOException {
1376     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1377         PARSER, input, extensionRegistry);
1378   }
1379 
parseFrom( com.google.protobuf.CodedInputStream input)1380   public static com.google.rpc.PreconditionFailure parseFrom(
1381       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1382     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1383   }
1384 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1385   public static com.google.rpc.PreconditionFailure parseFrom(
1386       com.google.protobuf.CodedInputStream input,
1387       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1388       throws java.io.IOException {
1389     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1390         PARSER, input, extensionRegistry);
1391   }
1392 
1393   @java.lang.Override
newBuilderForType()1394   public Builder newBuilderForType() {
1395     return newBuilder();
1396   }
1397 
newBuilder()1398   public static Builder newBuilder() {
1399     return DEFAULT_INSTANCE.toBuilder();
1400   }
1401 
newBuilder(com.google.rpc.PreconditionFailure prototype)1402   public static Builder newBuilder(com.google.rpc.PreconditionFailure prototype) {
1403     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1404   }
1405 
1406   @java.lang.Override
toBuilder()1407   public Builder toBuilder() {
1408     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1409   }
1410 
1411   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1412   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1413     Builder builder = new Builder(parent);
1414     return builder;
1415   }
1416   /**
1417    *
1418    *
1419    * <pre>
1420    * Describes what preconditions have failed.
1421    * For example, if an RPC failed because it required the Terms of Service to be
1422    * acknowledged, it could list the terms of service violation in the
1423    * PreconditionFailure message.
1424    * </pre>
1425    *
1426    * Protobuf type {@code google.rpc.PreconditionFailure}
1427    */
1428   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1429       implements
1430       // @@protoc_insertion_point(builder_implements:google.rpc.PreconditionFailure)
1431       com.google.rpc.PreconditionFailureOrBuilder {
getDescriptor()1432     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1433       return com.google.rpc.ErrorDetailsProto
1434           .internal_static_google_rpc_PreconditionFailure_descriptor;
1435     }
1436 
1437     @java.lang.Override
1438     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1439         internalGetFieldAccessorTable() {
1440       return com.google.rpc.ErrorDetailsProto
1441           .internal_static_google_rpc_PreconditionFailure_fieldAccessorTable
1442           .ensureFieldAccessorsInitialized(
1443               com.google.rpc.PreconditionFailure.class,
1444               com.google.rpc.PreconditionFailure.Builder.class);
1445     }
1446 
1447     // Construct using com.google.rpc.PreconditionFailure.newBuilder()
Builder()1448     private Builder() {}
1449 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1450     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1451       super(parent);
1452     }
1453 
1454     @java.lang.Override
clear()1455     public Builder clear() {
1456       super.clear();
1457       bitField0_ = 0;
1458       if (violationsBuilder_ == null) {
1459         violations_ = java.util.Collections.emptyList();
1460       } else {
1461         violations_ = null;
1462         violationsBuilder_.clear();
1463       }
1464       bitField0_ = (bitField0_ & ~0x00000001);
1465       return this;
1466     }
1467 
1468     @java.lang.Override
getDescriptorForType()1469     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1470       return com.google.rpc.ErrorDetailsProto
1471           .internal_static_google_rpc_PreconditionFailure_descriptor;
1472     }
1473 
1474     @java.lang.Override
getDefaultInstanceForType()1475     public com.google.rpc.PreconditionFailure getDefaultInstanceForType() {
1476       return com.google.rpc.PreconditionFailure.getDefaultInstance();
1477     }
1478 
1479     @java.lang.Override
build()1480     public com.google.rpc.PreconditionFailure build() {
1481       com.google.rpc.PreconditionFailure result = buildPartial();
1482       if (!result.isInitialized()) {
1483         throw newUninitializedMessageException(result);
1484       }
1485       return result;
1486     }
1487 
1488     @java.lang.Override
buildPartial()1489     public com.google.rpc.PreconditionFailure buildPartial() {
1490       com.google.rpc.PreconditionFailure result = new com.google.rpc.PreconditionFailure(this);
1491       buildPartialRepeatedFields(result);
1492       if (bitField0_ != 0) {
1493         buildPartial0(result);
1494       }
1495       onBuilt();
1496       return result;
1497     }
1498 
buildPartialRepeatedFields(com.google.rpc.PreconditionFailure result)1499     private void buildPartialRepeatedFields(com.google.rpc.PreconditionFailure result) {
1500       if (violationsBuilder_ == null) {
1501         if (((bitField0_ & 0x00000001) != 0)) {
1502           violations_ = java.util.Collections.unmodifiableList(violations_);
1503           bitField0_ = (bitField0_ & ~0x00000001);
1504         }
1505         result.violations_ = violations_;
1506       } else {
1507         result.violations_ = violationsBuilder_.build();
1508       }
1509     }
1510 
buildPartial0(com.google.rpc.PreconditionFailure result)1511     private void buildPartial0(com.google.rpc.PreconditionFailure result) {
1512       int from_bitField0_ = bitField0_;
1513     }
1514 
1515     @java.lang.Override
clone()1516     public Builder clone() {
1517       return super.clone();
1518     }
1519 
1520     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1521     public Builder setField(
1522         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1523       return super.setField(field, value);
1524     }
1525 
1526     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1527     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1528       return super.clearField(field);
1529     }
1530 
1531     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1532     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1533       return super.clearOneof(oneof);
1534     }
1535 
1536     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1537     public Builder setRepeatedField(
1538         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1539       return super.setRepeatedField(field, index, value);
1540     }
1541 
1542     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1543     public Builder addRepeatedField(
1544         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1545       return super.addRepeatedField(field, value);
1546     }
1547 
1548     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1549     public Builder mergeFrom(com.google.protobuf.Message other) {
1550       if (other instanceof com.google.rpc.PreconditionFailure) {
1551         return mergeFrom((com.google.rpc.PreconditionFailure) other);
1552       } else {
1553         super.mergeFrom(other);
1554         return this;
1555       }
1556     }
1557 
mergeFrom(com.google.rpc.PreconditionFailure other)1558     public Builder mergeFrom(com.google.rpc.PreconditionFailure other) {
1559       if (other == com.google.rpc.PreconditionFailure.getDefaultInstance()) return this;
1560       if (violationsBuilder_ == null) {
1561         if (!other.violations_.isEmpty()) {
1562           if (violations_.isEmpty()) {
1563             violations_ = other.violations_;
1564             bitField0_ = (bitField0_ & ~0x00000001);
1565           } else {
1566             ensureViolationsIsMutable();
1567             violations_.addAll(other.violations_);
1568           }
1569           onChanged();
1570         }
1571       } else {
1572         if (!other.violations_.isEmpty()) {
1573           if (violationsBuilder_.isEmpty()) {
1574             violationsBuilder_.dispose();
1575             violationsBuilder_ = null;
1576             violations_ = other.violations_;
1577             bitField0_ = (bitField0_ & ~0x00000001);
1578             violationsBuilder_ =
1579                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1580                     ? getViolationsFieldBuilder()
1581                     : null;
1582           } else {
1583             violationsBuilder_.addAllMessages(other.violations_);
1584           }
1585         }
1586       }
1587       this.mergeUnknownFields(other.getUnknownFields());
1588       onChanged();
1589       return this;
1590     }
1591 
1592     @java.lang.Override
isInitialized()1593     public final boolean isInitialized() {
1594       return true;
1595     }
1596 
1597     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1598     public Builder mergeFrom(
1599         com.google.protobuf.CodedInputStream input,
1600         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1601         throws java.io.IOException {
1602       if (extensionRegistry == null) {
1603         throw new java.lang.NullPointerException();
1604       }
1605       try {
1606         boolean done = false;
1607         while (!done) {
1608           int tag = input.readTag();
1609           switch (tag) {
1610             case 0:
1611               done = true;
1612               break;
1613             case 10:
1614               {
1615                 com.google.rpc.PreconditionFailure.Violation m =
1616                     input.readMessage(
1617                         com.google.rpc.PreconditionFailure.Violation.parser(), extensionRegistry);
1618                 if (violationsBuilder_ == null) {
1619                   ensureViolationsIsMutable();
1620                   violations_.add(m);
1621                 } else {
1622                   violationsBuilder_.addMessage(m);
1623                 }
1624                 break;
1625               } // case 10
1626             default:
1627               {
1628                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1629                   done = true; // was an endgroup tag
1630                 }
1631                 break;
1632               } // default:
1633           } // switch (tag)
1634         } // while (!done)
1635       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1636         throw e.unwrapIOException();
1637       } finally {
1638         onChanged();
1639       } // finally
1640       return this;
1641     }
1642 
1643     private int bitField0_;
1644 
1645     private java.util.List<com.google.rpc.PreconditionFailure.Violation> violations_ =
1646         java.util.Collections.emptyList();
1647 
ensureViolationsIsMutable()1648     private void ensureViolationsIsMutable() {
1649       if (!((bitField0_ & 0x00000001) != 0)) {
1650         violations_ =
1651             new java.util.ArrayList<com.google.rpc.PreconditionFailure.Violation>(violations_);
1652         bitField0_ |= 0x00000001;
1653       }
1654     }
1655 
1656     private com.google.protobuf.RepeatedFieldBuilderV3<
1657             com.google.rpc.PreconditionFailure.Violation,
1658             com.google.rpc.PreconditionFailure.Violation.Builder,
1659             com.google.rpc.PreconditionFailure.ViolationOrBuilder>
1660         violationsBuilder_;
1661 
1662     /**
1663      *
1664      *
1665      * <pre>
1666      * Describes all precondition violations.
1667      * </pre>
1668      *
1669      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1670      */
getViolationsList()1671     public java.util.List<com.google.rpc.PreconditionFailure.Violation> getViolationsList() {
1672       if (violationsBuilder_ == null) {
1673         return java.util.Collections.unmodifiableList(violations_);
1674       } else {
1675         return violationsBuilder_.getMessageList();
1676       }
1677     }
1678     /**
1679      *
1680      *
1681      * <pre>
1682      * Describes all precondition violations.
1683      * </pre>
1684      *
1685      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1686      */
getViolationsCount()1687     public int getViolationsCount() {
1688       if (violationsBuilder_ == null) {
1689         return violations_.size();
1690       } else {
1691         return violationsBuilder_.getCount();
1692       }
1693     }
1694     /**
1695      *
1696      *
1697      * <pre>
1698      * Describes all precondition violations.
1699      * </pre>
1700      *
1701      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1702      */
getViolations(int index)1703     public com.google.rpc.PreconditionFailure.Violation getViolations(int index) {
1704       if (violationsBuilder_ == null) {
1705         return violations_.get(index);
1706       } else {
1707         return violationsBuilder_.getMessage(index);
1708       }
1709     }
1710     /**
1711      *
1712      *
1713      * <pre>
1714      * Describes all precondition violations.
1715      * </pre>
1716      *
1717      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1718      */
setViolations(int index, com.google.rpc.PreconditionFailure.Violation value)1719     public Builder setViolations(int index, com.google.rpc.PreconditionFailure.Violation value) {
1720       if (violationsBuilder_ == null) {
1721         if (value == null) {
1722           throw new NullPointerException();
1723         }
1724         ensureViolationsIsMutable();
1725         violations_.set(index, value);
1726         onChanged();
1727       } else {
1728         violationsBuilder_.setMessage(index, value);
1729       }
1730       return this;
1731     }
1732     /**
1733      *
1734      *
1735      * <pre>
1736      * Describes all precondition violations.
1737      * </pre>
1738      *
1739      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1740      */
setViolations( int index, com.google.rpc.PreconditionFailure.Violation.Builder builderForValue)1741     public Builder setViolations(
1742         int index, com.google.rpc.PreconditionFailure.Violation.Builder builderForValue) {
1743       if (violationsBuilder_ == null) {
1744         ensureViolationsIsMutable();
1745         violations_.set(index, builderForValue.build());
1746         onChanged();
1747       } else {
1748         violationsBuilder_.setMessage(index, builderForValue.build());
1749       }
1750       return this;
1751     }
1752     /**
1753      *
1754      *
1755      * <pre>
1756      * Describes all precondition violations.
1757      * </pre>
1758      *
1759      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1760      */
addViolations(com.google.rpc.PreconditionFailure.Violation value)1761     public Builder addViolations(com.google.rpc.PreconditionFailure.Violation value) {
1762       if (violationsBuilder_ == null) {
1763         if (value == null) {
1764           throw new NullPointerException();
1765         }
1766         ensureViolationsIsMutable();
1767         violations_.add(value);
1768         onChanged();
1769       } else {
1770         violationsBuilder_.addMessage(value);
1771       }
1772       return this;
1773     }
1774     /**
1775      *
1776      *
1777      * <pre>
1778      * Describes all precondition violations.
1779      * </pre>
1780      *
1781      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1782      */
addViolations(int index, com.google.rpc.PreconditionFailure.Violation value)1783     public Builder addViolations(int index, com.google.rpc.PreconditionFailure.Violation value) {
1784       if (violationsBuilder_ == null) {
1785         if (value == null) {
1786           throw new NullPointerException();
1787         }
1788         ensureViolationsIsMutable();
1789         violations_.add(index, value);
1790         onChanged();
1791       } else {
1792         violationsBuilder_.addMessage(index, value);
1793       }
1794       return this;
1795     }
1796     /**
1797      *
1798      *
1799      * <pre>
1800      * Describes all precondition violations.
1801      * </pre>
1802      *
1803      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1804      */
addViolations( com.google.rpc.PreconditionFailure.Violation.Builder builderForValue)1805     public Builder addViolations(
1806         com.google.rpc.PreconditionFailure.Violation.Builder builderForValue) {
1807       if (violationsBuilder_ == null) {
1808         ensureViolationsIsMutable();
1809         violations_.add(builderForValue.build());
1810         onChanged();
1811       } else {
1812         violationsBuilder_.addMessage(builderForValue.build());
1813       }
1814       return this;
1815     }
1816     /**
1817      *
1818      *
1819      * <pre>
1820      * Describes all precondition violations.
1821      * </pre>
1822      *
1823      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1824      */
addViolations( int index, com.google.rpc.PreconditionFailure.Violation.Builder builderForValue)1825     public Builder addViolations(
1826         int index, com.google.rpc.PreconditionFailure.Violation.Builder builderForValue) {
1827       if (violationsBuilder_ == null) {
1828         ensureViolationsIsMutable();
1829         violations_.add(index, builderForValue.build());
1830         onChanged();
1831       } else {
1832         violationsBuilder_.addMessage(index, builderForValue.build());
1833       }
1834       return this;
1835     }
1836     /**
1837      *
1838      *
1839      * <pre>
1840      * Describes all precondition violations.
1841      * </pre>
1842      *
1843      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1844      */
addAllViolations( java.lang.Iterable<? extends com.google.rpc.PreconditionFailure.Violation> values)1845     public Builder addAllViolations(
1846         java.lang.Iterable<? extends com.google.rpc.PreconditionFailure.Violation> values) {
1847       if (violationsBuilder_ == null) {
1848         ensureViolationsIsMutable();
1849         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, violations_);
1850         onChanged();
1851       } else {
1852         violationsBuilder_.addAllMessages(values);
1853       }
1854       return this;
1855     }
1856     /**
1857      *
1858      *
1859      * <pre>
1860      * Describes all precondition violations.
1861      * </pre>
1862      *
1863      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1864      */
clearViolations()1865     public Builder clearViolations() {
1866       if (violationsBuilder_ == null) {
1867         violations_ = java.util.Collections.emptyList();
1868         bitField0_ = (bitField0_ & ~0x00000001);
1869         onChanged();
1870       } else {
1871         violationsBuilder_.clear();
1872       }
1873       return this;
1874     }
1875     /**
1876      *
1877      *
1878      * <pre>
1879      * Describes all precondition violations.
1880      * </pre>
1881      *
1882      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1883      */
removeViolations(int index)1884     public Builder removeViolations(int index) {
1885       if (violationsBuilder_ == null) {
1886         ensureViolationsIsMutable();
1887         violations_.remove(index);
1888         onChanged();
1889       } else {
1890         violationsBuilder_.remove(index);
1891       }
1892       return this;
1893     }
1894     /**
1895      *
1896      *
1897      * <pre>
1898      * Describes all precondition violations.
1899      * </pre>
1900      *
1901      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1902      */
getViolationsBuilder(int index)1903     public com.google.rpc.PreconditionFailure.Violation.Builder getViolationsBuilder(int index) {
1904       return getViolationsFieldBuilder().getBuilder(index);
1905     }
1906     /**
1907      *
1908      *
1909      * <pre>
1910      * Describes all precondition violations.
1911      * </pre>
1912      *
1913      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1914      */
getViolationsOrBuilder(int index)1915     public com.google.rpc.PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder(int index) {
1916       if (violationsBuilder_ == null) {
1917         return violations_.get(index);
1918       } else {
1919         return violationsBuilder_.getMessageOrBuilder(index);
1920       }
1921     }
1922     /**
1923      *
1924      *
1925      * <pre>
1926      * Describes all precondition violations.
1927      * </pre>
1928      *
1929      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1930      */
1931     public java.util.List<? extends com.google.rpc.PreconditionFailure.ViolationOrBuilder>
getViolationsOrBuilderList()1932         getViolationsOrBuilderList() {
1933       if (violationsBuilder_ != null) {
1934         return violationsBuilder_.getMessageOrBuilderList();
1935       } else {
1936         return java.util.Collections.unmodifiableList(violations_);
1937       }
1938     }
1939     /**
1940      *
1941      *
1942      * <pre>
1943      * Describes all precondition violations.
1944      * </pre>
1945      *
1946      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1947      */
addViolationsBuilder()1948     public com.google.rpc.PreconditionFailure.Violation.Builder addViolationsBuilder() {
1949       return getViolationsFieldBuilder()
1950           .addBuilder(com.google.rpc.PreconditionFailure.Violation.getDefaultInstance());
1951     }
1952     /**
1953      *
1954      *
1955      * <pre>
1956      * Describes all precondition violations.
1957      * </pre>
1958      *
1959      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1960      */
addViolationsBuilder(int index)1961     public com.google.rpc.PreconditionFailure.Violation.Builder addViolationsBuilder(int index) {
1962       return getViolationsFieldBuilder()
1963           .addBuilder(index, com.google.rpc.PreconditionFailure.Violation.getDefaultInstance());
1964     }
1965     /**
1966      *
1967      *
1968      * <pre>
1969      * Describes all precondition violations.
1970      * </pre>
1971      *
1972      * <code>repeated .google.rpc.PreconditionFailure.Violation violations = 1;</code>
1973      */
1974     public java.util.List<com.google.rpc.PreconditionFailure.Violation.Builder>
getViolationsBuilderList()1975         getViolationsBuilderList() {
1976       return getViolationsFieldBuilder().getBuilderList();
1977     }
1978 
1979     private com.google.protobuf.RepeatedFieldBuilderV3<
1980             com.google.rpc.PreconditionFailure.Violation,
1981             com.google.rpc.PreconditionFailure.Violation.Builder,
1982             com.google.rpc.PreconditionFailure.ViolationOrBuilder>
getViolationsFieldBuilder()1983         getViolationsFieldBuilder() {
1984       if (violationsBuilder_ == null) {
1985         violationsBuilder_ =
1986             new com.google.protobuf.RepeatedFieldBuilderV3<
1987                 com.google.rpc.PreconditionFailure.Violation,
1988                 com.google.rpc.PreconditionFailure.Violation.Builder,
1989                 com.google.rpc.PreconditionFailure.ViolationOrBuilder>(
1990                 violations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
1991         violations_ = null;
1992       }
1993       return violationsBuilder_;
1994     }
1995 
1996     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1997     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1998       return super.setUnknownFields(unknownFields);
1999     }
2000 
2001     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2002     public final Builder mergeUnknownFields(
2003         final com.google.protobuf.UnknownFieldSet unknownFields) {
2004       return super.mergeUnknownFields(unknownFields);
2005     }
2006 
2007     // @@protoc_insertion_point(builder_scope:google.rpc.PreconditionFailure)
2008   }
2009 
2010   // @@protoc_insertion_point(class_scope:google.rpc.PreconditionFailure)
2011   private static final com.google.rpc.PreconditionFailure DEFAULT_INSTANCE;
2012 
2013   static {
2014     DEFAULT_INSTANCE = new com.google.rpc.PreconditionFailure();
2015   }
2016 
getDefaultInstance()2017   public static com.google.rpc.PreconditionFailure getDefaultInstance() {
2018     return DEFAULT_INSTANCE;
2019   }
2020 
2021   private static final com.google.protobuf.Parser<PreconditionFailure> PARSER =
2022       new com.google.protobuf.AbstractParser<PreconditionFailure>() {
2023         @java.lang.Override
2024         public PreconditionFailure parsePartialFrom(
2025             com.google.protobuf.CodedInputStream input,
2026             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2027             throws com.google.protobuf.InvalidProtocolBufferException {
2028           Builder builder = newBuilder();
2029           try {
2030             builder.mergeFrom(input, extensionRegistry);
2031           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2032             throw e.setUnfinishedMessage(builder.buildPartial());
2033           } catch (com.google.protobuf.UninitializedMessageException e) {
2034             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2035           } catch (java.io.IOException e) {
2036             throw new com.google.protobuf.InvalidProtocolBufferException(e)
2037                 .setUnfinishedMessage(builder.buildPartial());
2038           }
2039           return builder.buildPartial();
2040         }
2041       };
2042 
parser()2043   public static com.google.protobuf.Parser<PreconditionFailure> parser() {
2044     return PARSER;
2045   }
2046 
2047   @java.lang.Override
getParserForType()2048   public com.google.protobuf.Parser<PreconditionFailure> getParserForType() {
2049     return PARSER;
2050   }
2051 
2052   @java.lang.Override
getDefaultInstanceForType()2053   public com.google.rpc.PreconditionFailure getDefaultInstanceForType() {
2054     return DEFAULT_INSTANCE;
2055   }
2056 }
2057