• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/compute/v1/compute.proto
18 
19 package com.google.cloud.compute.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Deprecation status for a public resource.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.DeprecationStatus}
29  */
30 public final class DeprecationStatus extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.DeprecationStatus)
33     DeprecationStatusOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use DeprecationStatus.newBuilder() to construct.
DeprecationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private DeprecationStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
DeprecationStatus()40   private DeprecationStatus() {
41     deleted_ = "";
42     deprecated_ = "";
43     obsolete_ = "";
44     replacement_ = "";
45     state_ = "";
46   }
47 
48   @java.lang.Override
49   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)50   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
51     return new DeprecationStatus();
52   }
53 
54   @java.lang.Override
getUnknownFields()55   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
56     return this.unknownFields;
57   }
58 
getDescriptor()59   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
60     return com.google.cloud.compute.v1.Compute
61         .internal_static_google_cloud_compute_v1_DeprecationStatus_descriptor;
62   }
63 
64   @java.lang.Override
65   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()66       internalGetFieldAccessorTable() {
67     return com.google.cloud.compute.v1.Compute
68         .internal_static_google_cloud_compute_v1_DeprecationStatus_fieldAccessorTable
69         .ensureFieldAccessorsInitialized(
70             com.google.cloud.compute.v1.DeprecationStatus.class,
71             com.google.cloud.compute.v1.DeprecationStatus.Builder.class);
72   }
73 
74   /**
75    *
76    *
77    * <pre>
78    * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
79    * </pre>
80    *
81    * Protobuf enum {@code google.cloud.compute.v1.DeprecationStatus.State}
82    */
83   public enum State implements com.google.protobuf.ProtocolMessageEnum {
84     /**
85      *
86      *
87      * <pre>
88      * A value indicating that the enum field is not set.
89      * </pre>
90      *
91      * <code>UNDEFINED_STATE = 0;</code>
92      */
93     UNDEFINED_STATE(0),
94     /** <code>ACTIVE = 314733318;</code> */
95     ACTIVE(314733318),
96     /** <code>DELETED = 120962041;</code> */
97     DELETED(120962041),
98     /** <code>DEPRECATED = 463360435;</code> */
99     DEPRECATED(463360435),
100     /** <code>OBSOLETE = 66532761;</code> */
101     OBSOLETE(66532761),
102     UNRECOGNIZED(-1),
103     ;
104 
105     /**
106      *
107      *
108      * <pre>
109      * A value indicating that the enum field is not set.
110      * </pre>
111      *
112      * <code>UNDEFINED_STATE = 0;</code>
113      */
114     public static final int UNDEFINED_STATE_VALUE = 0;
115     /** <code>ACTIVE = 314733318;</code> */
116     public static final int ACTIVE_VALUE = 314733318;
117     /** <code>DELETED = 120962041;</code> */
118     public static final int DELETED_VALUE = 120962041;
119     /** <code>DEPRECATED = 463360435;</code> */
120     public static final int DEPRECATED_VALUE = 463360435;
121     /** <code>OBSOLETE = 66532761;</code> */
122     public static final int OBSOLETE_VALUE = 66532761;
123 
getNumber()124     public final int getNumber() {
125       if (this == UNRECOGNIZED) {
126         throw new java.lang.IllegalArgumentException(
127             "Can't get the number of an unknown enum value.");
128       }
129       return value;
130     }
131 
132     /**
133      * @param value The numeric wire value of the corresponding enum entry.
134      * @return The enum associated with the given numeric wire value.
135      * @deprecated Use {@link #forNumber(int)} instead.
136      */
137     @java.lang.Deprecated
valueOf(int value)138     public static State valueOf(int value) {
139       return forNumber(value);
140     }
141 
142     /**
143      * @param value The numeric wire value of the corresponding enum entry.
144      * @return The enum associated with the given numeric wire value.
145      */
forNumber(int value)146     public static State forNumber(int value) {
147       switch (value) {
148         case 0:
149           return UNDEFINED_STATE;
150         case 314733318:
151           return ACTIVE;
152         case 120962041:
153           return DELETED;
154         case 463360435:
155           return DEPRECATED;
156         case 66532761:
157           return OBSOLETE;
158         default:
159           return null;
160       }
161     }
162 
internalGetValueMap()163     public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
164       return internalValueMap;
165     }
166 
167     private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
168         new com.google.protobuf.Internal.EnumLiteMap<State>() {
169           public State findValueByNumber(int number) {
170             return State.forNumber(number);
171           }
172         };
173 
getValueDescriptor()174     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
175       if (this == UNRECOGNIZED) {
176         throw new java.lang.IllegalStateException(
177             "Can't get the descriptor of an unrecognized enum value.");
178       }
179       return getDescriptor().getValues().get(ordinal());
180     }
181 
getDescriptorForType()182     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
183       return getDescriptor();
184     }
185 
getDescriptor()186     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
187       return com.google.cloud.compute.v1.DeprecationStatus.getDescriptor().getEnumTypes().get(0);
188     }
189 
190     private static final State[] VALUES = values();
191 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)192     public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
193       if (desc.getType() != getDescriptor()) {
194         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
195       }
196       if (desc.getIndex() == -1) {
197         return UNRECOGNIZED;
198       }
199       return VALUES[desc.getIndex()];
200     }
201 
202     private final int value;
203 
State(int value)204     private State(int value) {
205       this.value = value;
206     }
207 
208     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.DeprecationStatus.State)
209   }
210 
211   private int bitField0_;
212   public static final int DELETED_FIELD_NUMBER = 476721177;
213 
214   @SuppressWarnings("serial")
215   private volatile java.lang.Object deleted_ = "";
216   /**
217    *
218    *
219    * <pre>
220    * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.
221    * </pre>
222    *
223    * <code>optional string deleted = 476721177;</code>
224    *
225    * @return Whether the deleted field is set.
226    */
227   @java.lang.Override
hasDeleted()228   public boolean hasDeleted() {
229     return ((bitField0_ & 0x00000001) != 0);
230   }
231   /**
232    *
233    *
234    * <pre>
235    * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.
236    * </pre>
237    *
238    * <code>optional string deleted = 476721177;</code>
239    *
240    * @return The deleted.
241    */
242   @java.lang.Override
getDeleted()243   public java.lang.String getDeleted() {
244     java.lang.Object ref = deleted_;
245     if (ref instanceof java.lang.String) {
246       return (java.lang.String) ref;
247     } else {
248       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
249       java.lang.String s = bs.toStringUtf8();
250       deleted_ = s;
251       return s;
252     }
253   }
254   /**
255    *
256    *
257    * <pre>
258    * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.
259    * </pre>
260    *
261    * <code>optional string deleted = 476721177;</code>
262    *
263    * @return The bytes for deleted.
264    */
265   @java.lang.Override
getDeletedBytes()266   public com.google.protobuf.ByteString getDeletedBytes() {
267     java.lang.Object ref = deleted_;
268     if (ref instanceof java.lang.String) {
269       com.google.protobuf.ByteString b =
270           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
271       deleted_ = b;
272       return b;
273     } else {
274       return (com.google.protobuf.ByteString) ref;
275     }
276   }
277 
278   public static final int DEPRECATED_FIELD_NUMBER = 515138995;
279 
280   @SuppressWarnings("serial")
281   private volatile java.lang.Object deprecated_ = "";
282   /**
283    *
284    *
285    * <pre>
286    * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.
287    * </pre>
288    *
289    * <code>optional string deprecated = 515138995;</code>
290    *
291    * @return Whether the deprecated field is set.
292    */
293   @java.lang.Override
hasDeprecated()294   public boolean hasDeprecated() {
295     return ((bitField0_ & 0x00000002) != 0);
296   }
297   /**
298    *
299    *
300    * <pre>
301    * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.
302    * </pre>
303    *
304    * <code>optional string deprecated = 515138995;</code>
305    *
306    * @return The deprecated.
307    */
308   @java.lang.Override
getDeprecated()309   public java.lang.String getDeprecated() {
310     java.lang.Object ref = deprecated_;
311     if (ref instanceof java.lang.String) {
312       return (java.lang.String) ref;
313     } else {
314       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
315       java.lang.String s = bs.toStringUtf8();
316       deprecated_ = s;
317       return s;
318     }
319   }
320   /**
321    *
322    *
323    * <pre>
324    * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.
325    * </pre>
326    *
327    * <code>optional string deprecated = 515138995;</code>
328    *
329    * @return The bytes for deprecated.
330    */
331   @java.lang.Override
getDeprecatedBytes()332   public com.google.protobuf.ByteString getDeprecatedBytes() {
333     java.lang.Object ref = deprecated_;
334     if (ref instanceof java.lang.String) {
335       com.google.protobuf.ByteString b =
336           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
337       deprecated_ = b;
338       return b;
339     } else {
340       return (com.google.protobuf.ByteString) ref;
341     }
342   }
343 
344   public static final int OBSOLETE_FIELD_NUMBER = 357647769;
345 
346   @SuppressWarnings("serial")
347   private volatile java.lang.Object obsolete_ = "";
348   /**
349    *
350    *
351    * <pre>
352    * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.
353    * </pre>
354    *
355    * <code>optional string obsolete = 357647769;</code>
356    *
357    * @return Whether the obsolete field is set.
358    */
359   @java.lang.Override
hasObsolete()360   public boolean hasObsolete() {
361     return ((bitField0_ & 0x00000004) != 0);
362   }
363   /**
364    *
365    *
366    * <pre>
367    * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.
368    * </pre>
369    *
370    * <code>optional string obsolete = 357647769;</code>
371    *
372    * @return The obsolete.
373    */
374   @java.lang.Override
getObsolete()375   public java.lang.String getObsolete() {
376     java.lang.Object ref = obsolete_;
377     if (ref instanceof java.lang.String) {
378       return (java.lang.String) ref;
379     } else {
380       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
381       java.lang.String s = bs.toStringUtf8();
382       obsolete_ = s;
383       return s;
384     }
385   }
386   /**
387    *
388    *
389    * <pre>
390    * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.
391    * </pre>
392    *
393    * <code>optional string obsolete = 357647769;</code>
394    *
395    * @return The bytes for obsolete.
396    */
397   @java.lang.Override
getObsoleteBytes()398   public com.google.protobuf.ByteString getObsoleteBytes() {
399     java.lang.Object ref = obsolete_;
400     if (ref instanceof java.lang.String) {
401       com.google.protobuf.ByteString b =
402           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
403       obsolete_ = b;
404       return b;
405     } else {
406       return (com.google.protobuf.ByteString) ref;
407     }
408   }
409 
410   public static final int REPLACEMENT_FIELD_NUMBER = 430919186;
411 
412   @SuppressWarnings("serial")
413   private volatile java.lang.Object replacement_ = "";
414   /**
415    *
416    *
417    * <pre>
418    * The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
419    * </pre>
420    *
421    * <code>optional string replacement = 430919186;</code>
422    *
423    * @return Whether the replacement field is set.
424    */
425   @java.lang.Override
hasReplacement()426   public boolean hasReplacement() {
427     return ((bitField0_ & 0x00000008) != 0);
428   }
429   /**
430    *
431    *
432    * <pre>
433    * The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
434    * </pre>
435    *
436    * <code>optional string replacement = 430919186;</code>
437    *
438    * @return The replacement.
439    */
440   @java.lang.Override
getReplacement()441   public java.lang.String getReplacement() {
442     java.lang.Object ref = replacement_;
443     if (ref instanceof java.lang.String) {
444       return (java.lang.String) ref;
445     } else {
446       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
447       java.lang.String s = bs.toStringUtf8();
448       replacement_ = s;
449       return s;
450     }
451   }
452   /**
453    *
454    *
455    * <pre>
456    * The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
457    * </pre>
458    *
459    * <code>optional string replacement = 430919186;</code>
460    *
461    * @return The bytes for replacement.
462    */
463   @java.lang.Override
getReplacementBytes()464   public com.google.protobuf.ByteString getReplacementBytes() {
465     java.lang.Object ref = replacement_;
466     if (ref instanceof java.lang.String) {
467       com.google.protobuf.ByteString b =
468           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
469       replacement_ = b;
470       return b;
471     } else {
472       return (com.google.protobuf.ByteString) ref;
473     }
474   }
475 
476   public static final int STATE_FIELD_NUMBER = 109757585;
477 
478   @SuppressWarnings("serial")
479   private volatile java.lang.Object state_ = "";
480   /**
481    *
482    *
483    * <pre>
484    * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
485    * Check the State enum for the list of possible values.
486    * </pre>
487    *
488    * <code>optional string state = 109757585;</code>
489    *
490    * @return Whether the state field is set.
491    */
492   @java.lang.Override
hasState()493   public boolean hasState() {
494     return ((bitField0_ & 0x00000010) != 0);
495   }
496   /**
497    *
498    *
499    * <pre>
500    * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
501    * Check the State enum for the list of possible values.
502    * </pre>
503    *
504    * <code>optional string state = 109757585;</code>
505    *
506    * @return The state.
507    */
508   @java.lang.Override
getState()509   public java.lang.String getState() {
510     java.lang.Object ref = state_;
511     if (ref instanceof java.lang.String) {
512       return (java.lang.String) ref;
513     } else {
514       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
515       java.lang.String s = bs.toStringUtf8();
516       state_ = s;
517       return s;
518     }
519   }
520   /**
521    *
522    *
523    * <pre>
524    * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
525    * Check the State enum for the list of possible values.
526    * </pre>
527    *
528    * <code>optional string state = 109757585;</code>
529    *
530    * @return The bytes for state.
531    */
532   @java.lang.Override
getStateBytes()533   public com.google.protobuf.ByteString getStateBytes() {
534     java.lang.Object ref = state_;
535     if (ref instanceof java.lang.String) {
536       com.google.protobuf.ByteString b =
537           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
538       state_ = b;
539       return b;
540     } else {
541       return (com.google.protobuf.ByteString) ref;
542     }
543   }
544 
545   private byte memoizedIsInitialized = -1;
546 
547   @java.lang.Override
isInitialized()548   public final boolean isInitialized() {
549     byte isInitialized = memoizedIsInitialized;
550     if (isInitialized == 1) return true;
551     if (isInitialized == 0) return false;
552 
553     memoizedIsInitialized = 1;
554     return true;
555   }
556 
557   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)558   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
559     if (((bitField0_ & 0x00000010) != 0)) {
560       com.google.protobuf.GeneratedMessageV3.writeString(output, 109757585, state_);
561     }
562     if (((bitField0_ & 0x00000004) != 0)) {
563       com.google.protobuf.GeneratedMessageV3.writeString(output, 357647769, obsolete_);
564     }
565     if (((bitField0_ & 0x00000008) != 0)) {
566       com.google.protobuf.GeneratedMessageV3.writeString(output, 430919186, replacement_);
567     }
568     if (((bitField0_ & 0x00000001) != 0)) {
569       com.google.protobuf.GeneratedMessageV3.writeString(output, 476721177, deleted_);
570     }
571     if (((bitField0_ & 0x00000002) != 0)) {
572       com.google.protobuf.GeneratedMessageV3.writeString(output, 515138995, deprecated_);
573     }
574     getUnknownFields().writeTo(output);
575   }
576 
577   @java.lang.Override
getSerializedSize()578   public int getSerializedSize() {
579     int size = memoizedSize;
580     if (size != -1) return size;
581 
582     size = 0;
583     if (((bitField0_ & 0x00000010) != 0)) {
584       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(109757585, state_);
585     }
586     if (((bitField0_ & 0x00000004) != 0)) {
587       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(357647769, obsolete_);
588     }
589     if (((bitField0_ & 0x00000008) != 0)) {
590       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(430919186, replacement_);
591     }
592     if (((bitField0_ & 0x00000001) != 0)) {
593       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(476721177, deleted_);
594     }
595     if (((bitField0_ & 0x00000002) != 0)) {
596       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(515138995, deprecated_);
597     }
598     size += getUnknownFields().getSerializedSize();
599     memoizedSize = size;
600     return size;
601   }
602 
603   @java.lang.Override
equals(final java.lang.Object obj)604   public boolean equals(final java.lang.Object obj) {
605     if (obj == this) {
606       return true;
607     }
608     if (!(obj instanceof com.google.cloud.compute.v1.DeprecationStatus)) {
609       return super.equals(obj);
610     }
611     com.google.cloud.compute.v1.DeprecationStatus other =
612         (com.google.cloud.compute.v1.DeprecationStatus) obj;
613 
614     if (hasDeleted() != other.hasDeleted()) return false;
615     if (hasDeleted()) {
616       if (!getDeleted().equals(other.getDeleted())) return false;
617     }
618     if (hasDeprecated() != other.hasDeprecated()) return false;
619     if (hasDeprecated()) {
620       if (!getDeprecated().equals(other.getDeprecated())) return false;
621     }
622     if (hasObsolete() != other.hasObsolete()) return false;
623     if (hasObsolete()) {
624       if (!getObsolete().equals(other.getObsolete())) return false;
625     }
626     if (hasReplacement() != other.hasReplacement()) return false;
627     if (hasReplacement()) {
628       if (!getReplacement().equals(other.getReplacement())) return false;
629     }
630     if (hasState() != other.hasState()) return false;
631     if (hasState()) {
632       if (!getState().equals(other.getState())) return false;
633     }
634     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
635     return true;
636   }
637 
638   @java.lang.Override
hashCode()639   public int hashCode() {
640     if (memoizedHashCode != 0) {
641       return memoizedHashCode;
642     }
643     int hash = 41;
644     hash = (19 * hash) + getDescriptor().hashCode();
645     if (hasDeleted()) {
646       hash = (37 * hash) + DELETED_FIELD_NUMBER;
647       hash = (53 * hash) + getDeleted().hashCode();
648     }
649     if (hasDeprecated()) {
650       hash = (37 * hash) + DEPRECATED_FIELD_NUMBER;
651       hash = (53 * hash) + getDeprecated().hashCode();
652     }
653     if (hasObsolete()) {
654       hash = (37 * hash) + OBSOLETE_FIELD_NUMBER;
655       hash = (53 * hash) + getObsolete().hashCode();
656     }
657     if (hasReplacement()) {
658       hash = (37 * hash) + REPLACEMENT_FIELD_NUMBER;
659       hash = (53 * hash) + getReplacement().hashCode();
660     }
661     if (hasState()) {
662       hash = (37 * hash) + STATE_FIELD_NUMBER;
663       hash = (53 * hash) + getState().hashCode();
664     }
665     hash = (29 * hash) + getUnknownFields().hashCode();
666     memoizedHashCode = hash;
667     return hash;
668   }
669 
parseFrom(java.nio.ByteBuffer data)670   public static com.google.cloud.compute.v1.DeprecationStatus parseFrom(java.nio.ByteBuffer data)
671       throws com.google.protobuf.InvalidProtocolBufferException {
672     return PARSER.parseFrom(data);
673   }
674 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)675   public static com.google.cloud.compute.v1.DeprecationStatus parseFrom(
676       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
677       throws com.google.protobuf.InvalidProtocolBufferException {
678     return PARSER.parseFrom(data, extensionRegistry);
679   }
680 
parseFrom( com.google.protobuf.ByteString data)681   public static com.google.cloud.compute.v1.DeprecationStatus parseFrom(
682       com.google.protobuf.ByteString data)
683       throws com.google.protobuf.InvalidProtocolBufferException {
684     return PARSER.parseFrom(data);
685   }
686 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)687   public static com.google.cloud.compute.v1.DeprecationStatus parseFrom(
688       com.google.protobuf.ByteString data,
689       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
690       throws com.google.protobuf.InvalidProtocolBufferException {
691     return PARSER.parseFrom(data, extensionRegistry);
692   }
693 
parseFrom(byte[] data)694   public static com.google.cloud.compute.v1.DeprecationStatus parseFrom(byte[] data)
695       throws com.google.protobuf.InvalidProtocolBufferException {
696     return PARSER.parseFrom(data);
697   }
698 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)699   public static com.google.cloud.compute.v1.DeprecationStatus parseFrom(
700       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
701       throws com.google.protobuf.InvalidProtocolBufferException {
702     return PARSER.parseFrom(data, extensionRegistry);
703   }
704 
parseFrom(java.io.InputStream input)705   public static com.google.cloud.compute.v1.DeprecationStatus parseFrom(java.io.InputStream input)
706       throws java.io.IOException {
707     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
708   }
709 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)710   public static com.google.cloud.compute.v1.DeprecationStatus parseFrom(
711       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
712       throws java.io.IOException {
713     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
714         PARSER, input, extensionRegistry);
715   }
716 
parseDelimitedFrom( java.io.InputStream input)717   public static com.google.cloud.compute.v1.DeprecationStatus parseDelimitedFrom(
718       java.io.InputStream input) throws java.io.IOException {
719     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
720   }
721 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)722   public static com.google.cloud.compute.v1.DeprecationStatus parseDelimitedFrom(
723       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
724       throws java.io.IOException {
725     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
726         PARSER, input, extensionRegistry);
727   }
728 
parseFrom( com.google.protobuf.CodedInputStream input)729   public static com.google.cloud.compute.v1.DeprecationStatus parseFrom(
730       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
731     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
732   }
733 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)734   public static com.google.cloud.compute.v1.DeprecationStatus parseFrom(
735       com.google.protobuf.CodedInputStream input,
736       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
737       throws java.io.IOException {
738     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
739         PARSER, input, extensionRegistry);
740   }
741 
742   @java.lang.Override
newBuilderForType()743   public Builder newBuilderForType() {
744     return newBuilder();
745   }
746 
newBuilder()747   public static Builder newBuilder() {
748     return DEFAULT_INSTANCE.toBuilder();
749   }
750 
newBuilder(com.google.cloud.compute.v1.DeprecationStatus prototype)751   public static Builder newBuilder(com.google.cloud.compute.v1.DeprecationStatus prototype) {
752     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
753   }
754 
755   @java.lang.Override
toBuilder()756   public Builder toBuilder() {
757     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
758   }
759 
760   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)761   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
762     Builder builder = new Builder(parent);
763     return builder;
764   }
765   /**
766    *
767    *
768    * <pre>
769    * Deprecation status for a public resource.
770    * </pre>
771    *
772    * Protobuf type {@code google.cloud.compute.v1.DeprecationStatus}
773    */
774   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
775       implements
776       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.DeprecationStatus)
777       com.google.cloud.compute.v1.DeprecationStatusOrBuilder {
getDescriptor()778     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
779       return com.google.cloud.compute.v1.Compute
780           .internal_static_google_cloud_compute_v1_DeprecationStatus_descriptor;
781     }
782 
783     @java.lang.Override
784     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()785         internalGetFieldAccessorTable() {
786       return com.google.cloud.compute.v1.Compute
787           .internal_static_google_cloud_compute_v1_DeprecationStatus_fieldAccessorTable
788           .ensureFieldAccessorsInitialized(
789               com.google.cloud.compute.v1.DeprecationStatus.class,
790               com.google.cloud.compute.v1.DeprecationStatus.Builder.class);
791     }
792 
793     // Construct using com.google.cloud.compute.v1.DeprecationStatus.newBuilder()
Builder()794     private Builder() {}
795 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)796     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
797       super(parent);
798     }
799 
800     @java.lang.Override
clear()801     public Builder clear() {
802       super.clear();
803       bitField0_ = 0;
804       deleted_ = "";
805       deprecated_ = "";
806       obsolete_ = "";
807       replacement_ = "";
808       state_ = "";
809       return this;
810     }
811 
812     @java.lang.Override
getDescriptorForType()813     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
814       return com.google.cloud.compute.v1.Compute
815           .internal_static_google_cloud_compute_v1_DeprecationStatus_descriptor;
816     }
817 
818     @java.lang.Override
getDefaultInstanceForType()819     public com.google.cloud.compute.v1.DeprecationStatus getDefaultInstanceForType() {
820       return com.google.cloud.compute.v1.DeprecationStatus.getDefaultInstance();
821     }
822 
823     @java.lang.Override
build()824     public com.google.cloud.compute.v1.DeprecationStatus build() {
825       com.google.cloud.compute.v1.DeprecationStatus result = buildPartial();
826       if (!result.isInitialized()) {
827         throw newUninitializedMessageException(result);
828       }
829       return result;
830     }
831 
832     @java.lang.Override
buildPartial()833     public com.google.cloud.compute.v1.DeprecationStatus buildPartial() {
834       com.google.cloud.compute.v1.DeprecationStatus result =
835           new com.google.cloud.compute.v1.DeprecationStatus(this);
836       if (bitField0_ != 0) {
837         buildPartial0(result);
838       }
839       onBuilt();
840       return result;
841     }
842 
buildPartial0(com.google.cloud.compute.v1.DeprecationStatus result)843     private void buildPartial0(com.google.cloud.compute.v1.DeprecationStatus result) {
844       int from_bitField0_ = bitField0_;
845       int to_bitField0_ = 0;
846       if (((from_bitField0_ & 0x00000001) != 0)) {
847         result.deleted_ = deleted_;
848         to_bitField0_ |= 0x00000001;
849       }
850       if (((from_bitField0_ & 0x00000002) != 0)) {
851         result.deprecated_ = deprecated_;
852         to_bitField0_ |= 0x00000002;
853       }
854       if (((from_bitField0_ & 0x00000004) != 0)) {
855         result.obsolete_ = obsolete_;
856         to_bitField0_ |= 0x00000004;
857       }
858       if (((from_bitField0_ & 0x00000008) != 0)) {
859         result.replacement_ = replacement_;
860         to_bitField0_ |= 0x00000008;
861       }
862       if (((from_bitField0_ & 0x00000010) != 0)) {
863         result.state_ = state_;
864         to_bitField0_ |= 0x00000010;
865       }
866       result.bitField0_ |= to_bitField0_;
867     }
868 
869     @java.lang.Override
clone()870     public Builder clone() {
871       return super.clone();
872     }
873 
874     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)875     public Builder setField(
876         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
877       return super.setField(field, value);
878     }
879 
880     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)881     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
882       return super.clearField(field);
883     }
884 
885     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)886     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
887       return super.clearOneof(oneof);
888     }
889 
890     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)891     public Builder setRepeatedField(
892         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
893       return super.setRepeatedField(field, index, value);
894     }
895 
896     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)897     public Builder addRepeatedField(
898         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
899       return super.addRepeatedField(field, value);
900     }
901 
902     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)903     public Builder mergeFrom(com.google.protobuf.Message other) {
904       if (other instanceof com.google.cloud.compute.v1.DeprecationStatus) {
905         return mergeFrom((com.google.cloud.compute.v1.DeprecationStatus) other);
906       } else {
907         super.mergeFrom(other);
908         return this;
909       }
910     }
911 
mergeFrom(com.google.cloud.compute.v1.DeprecationStatus other)912     public Builder mergeFrom(com.google.cloud.compute.v1.DeprecationStatus other) {
913       if (other == com.google.cloud.compute.v1.DeprecationStatus.getDefaultInstance()) return this;
914       if (other.hasDeleted()) {
915         deleted_ = other.deleted_;
916         bitField0_ |= 0x00000001;
917         onChanged();
918       }
919       if (other.hasDeprecated()) {
920         deprecated_ = other.deprecated_;
921         bitField0_ |= 0x00000002;
922         onChanged();
923       }
924       if (other.hasObsolete()) {
925         obsolete_ = other.obsolete_;
926         bitField0_ |= 0x00000004;
927         onChanged();
928       }
929       if (other.hasReplacement()) {
930         replacement_ = other.replacement_;
931         bitField0_ |= 0x00000008;
932         onChanged();
933       }
934       if (other.hasState()) {
935         state_ = other.state_;
936         bitField0_ |= 0x00000010;
937         onChanged();
938       }
939       this.mergeUnknownFields(other.getUnknownFields());
940       onChanged();
941       return this;
942     }
943 
944     @java.lang.Override
isInitialized()945     public final boolean isInitialized() {
946       return true;
947     }
948 
949     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)950     public Builder mergeFrom(
951         com.google.protobuf.CodedInputStream input,
952         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
953         throws java.io.IOException {
954       if (extensionRegistry == null) {
955         throw new java.lang.NullPointerException();
956       }
957       try {
958         boolean done = false;
959         while (!done) {
960           int tag = input.readTag();
961           switch (tag) {
962             case 0:
963               done = true;
964               break;
965             case 878060682:
966               {
967                 state_ = input.readStringRequireUtf8();
968                 bitField0_ |= 0x00000010;
969                 break;
970               } // case 878060682
971             case -1433785142:
972               {
973                 obsolete_ = input.readStringRequireUtf8();
974                 bitField0_ |= 0x00000004;
975                 break;
976               } // case -1433785142
977             case -847613806:
978               {
979                 replacement_ = input.readStringRequireUtf8();
980                 bitField0_ |= 0x00000008;
981                 break;
982               } // case -847613806
983             case -481197878:
984               {
985                 deleted_ = input.readStringRequireUtf8();
986                 bitField0_ |= 0x00000001;
987                 break;
988               } // case -481197878
989             case -173855334:
990               {
991                 deprecated_ = input.readStringRequireUtf8();
992                 bitField0_ |= 0x00000002;
993                 break;
994               } // case -173855334
995             default:
996               {
997                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
998                   done = true; // was an endgroup tag
999                 }
1000                 break;
1001               } // default:
1002           } // switch (tag)
1003         } // while (!done)
1004       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1005         throw e.unwrapIOException();
1006       } finally {
1007         onChanged();
1008       } // finally
1009       return this;
1010     }
1011 
1012     private int bitField0_;
1013 
1014     private java.lang.Object deleted_ = "";
1015     /**
1016      *
1017      *
1018      * <pre>
1019      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.
1020      * </pre>
1021      *
1022      * <code>optional string deleted = 476721177;</code>
1023      *
1024      * @return Whether the deleted field is set.
1025      */
hasDeleted()1026     public boolean hasDeleted() {
1027       return ((bitField0_ & 0x00000001) != 0);
1028     }
1029     /**
1030      *
1031      *
1032      * <pre>
1033      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.
1034      * </pre>
1035      *
1036      * <code>optional string deleted = 476721177;</code>
1037      *
1038      * @return The deleted.
1039      */
getDeleted()1040     public java.lang.String getDeleted() {
1041       java.lang.Object ref = deleted_;
1042       if (!(ref instanceof java.lang.String)) {
1043         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1044         java.lang.String s = bs.toStringUtf8();
1045         deleted_ = s;
1046         return s;
1047       } else {
1048         return (java.lang.String) ref;
1049       }
1050     }
1051     /**
1052      *
1053      *
1054      * <pre>
1055      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.
1056      * </pre>
1057      *
1058      * <code>optional string deleted = 476721177;</code>
1059      *
1060      * @return The bytes for deleted.
1061      */
getDeletedBytes()1062     public com.google.protobuf.ByteString getDeletedBytes() {
1063       java.lang.Object ref = deleted_;
1064       if (ref instanceof String) {
1065         com.google.protobuf.ByteString b =
1066             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1067         deleted_ = b;
1068         return b;
1069       } else {
1070         return (com.google.protobuf.ByteString) ref;
1071       }
1072     }
1073     /**
1074      *
1075      *
1076      * <pre>
1077      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.
1078      * </pre>
1079      *
1080      * <code>optional string deleted = 476721177;</code>
1081      *
1082      * @param value The deleted to set.
1083      * @return This builder for chaining.
1084      */
setDeleted(java.lang.String value)1085     public Builder setDeleted(java.lang.String value) {
1086       if (value == null) {
1087         throw new NullPointerException();
1088       }
1089       deleted_ = value;
1090       bitField0_ |= 0x00000001;
1091       onChanged();
1092       return this;
1093     }
1094     /**
1095      *
1096      *
1097      * <pre>
1098      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.
1099      * </pre>
1100      *
1101      * <code>optional string deleted = 476721177;</code>
1102      *
1103      * @return This builder for chaining.
1104      */
clearDeleted()1105     public Builder clearDeleted() {
1106       deleted_ = getDefaultInstance().getDeleted();
1107       bitField0_ = (bitField0_ & ~0x00000001);
1108       onChanged();
1109       return this;
1110     }
1111     /**
1112      *
1113      *
1114      * <pre>
1115      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.
1116      * </pre>
1117      *
1118      * <code>optional string deleted = 476721177;</code>
1119      *
1120      * @param value The bytes for deleted to set.
1121      * @return This builder for chaining.
1122      */
setDeletedBytes(com.google.protobuf.ByteString value)1123     public Builder setDeletedBytes(com.google.protobuf.ByteString value) {
1124       if (value == null) {
1125         throw new NullPointerException();
1126       }
1127       checkByteStringIsUtf8(value);
1128       deleted_ = value;
1129       bitField0_ |= 0x00000001;
1130       onChanged();
1131       return this;
1132     }
1133 
1134     private java.lang.Object deprecated_ = "";
1135     /**
1136      *
1137      *
1138      * <pre>
1139      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.
1140      * </pre>
1141      *
1142      * <code>optional string deprecated = 515138995;</code>
1143      *
1144      * @return Whether the deprecated field is set.
1145      */
hasDeprecated()1146     public boolean hasDeprecated() {
1147       return ((bitField0_ & 0x00000002) != 0);
1148     }
1149     /**
1150      *
1151      *
1152      * <pre>
1153      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.
1154      * </pre>
1155      *
1156      * <code>optional string deprecated = 515138995;</code>
1157      *
1158      * @return The deprecated.
1159      */
getDeprecated()1160     public java.lang.String getDeprecated() {
1161       java.lang.Object ref = deprecated_;
1162       if (!(ref instanceof java.lang.String)) {
1163         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1164         java.lang.String s = bs.toStringUtf8();
1165         deprecated_ = s;
1166         return s;
1167       } else {
1168         return (java.lang.String) ref;
1169       }
1170     }
1171     /**
1172      *
1173      *
1174      * <pre>
1175      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.
1176      * </pre>
1177      *
1178      * <code>optional string deprecated = 515138995;</code>
1179      *
1180      * @return The bytes for deprecated.
1181      */
getDeprecatedBytes()1182     public com.google.protobuf.ByteString getDeprecatedBytes() {
1183       java.lang.Object ref = deprecated_;
1184       if (ref instanceof String) {
1185         com.google.protobuf.ByteString b =
1186             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1187         deprecated_ = b;
1188         return b;
1189       } else {
1190         return (com.google.protobuf.ByteString) ref;
1191       }
1192     }
1193     /**
1194      *
1195      *
1196      * <pre>
1197      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.
1198      * </pre>
1199      *
1200      * <code>optional string deprecated = 515138995;</code>
1201      *
1202      * @param value The deprecated to set.
1203      * @return This builder for chaining.
1204      */
setDeprecated(java.lang.String value)1205     public Builder setDeprecated(java.lang.String value) {
1206       if (value == null) {
1207         throw new NullPointerException();
1208       }
1209       deprecated_ = value;
1210       bitField0_ |= 0x00000002;
1211       onChanged();
1212       return this;
1213     }
1214     /**
1215      *
1216      *
1217      * <pre>
1218      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.
1219      * </pre>
1220      *
1221      * <code>optional string deprecated = 515138995;</code>
1222      *
1223      * @return This builder for chaining.
1224      */
clearDeprecated()1225     public Builder clearDeprecated() {
1226       deprecated_ = getDefaultInstance().getDeprecated();
1227       bitField0_ = (bitField0_ & ~0x00000002);
1228       onChanged();
1229       return this;
1230     }
1231     /**
1232      *
1233      *
1234      * <pre>
1235      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.
1236      * </pre>
1237      *
1238      * <code>optional string deprecated = 515138995;</code>
1239      *
1240      * @param value The bytes for deprecated to set.
1241      * @return This builder for chaining.
1242      */
setDeprecatedBytes(com.google.protobuf.ByteString value)1243     public Builder setDeprecatedBytes(com.google.protobuf.ByteString value) {
1244       if (value == null) {
1245         throw new NullPointerException();
1246       }
1247       checkByteStringIsUtf8(value);
1248       deprecated_ = value;
1249       bitField0_ |= 0x00000002;
1250       onChanged();
1251       return this;
1252     }
1253 
1254     private java.lang.Object obsolete_ = "";
1255     /**
1256      *
1257      *
1258      * <pre>
1259      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.
1260      * </pre>
1261      *
1262      * <code>optional string obsolete = 357647769;</code>
1263      *
1264      * @return Whether the obsolete field is set.
1265      */
hasObsolete()1266     public boolean hasObsolete() {
1267       return ((bitField0_ & 0x00000004) != 0);
1268     }
1269     /**
1270      *
1271      *
1272      * <pre>
1273      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.
1274      * </pre>
1275      *
1276      * <code>optional string obsolete = 357647769;</code>
1277      *
1278      * @return The obsolete.
1279      */
getObsolete()1280     public java.lang.String getObsolete() {
1281       java.lang.Object ref = obsolete_;
1282       if (!(ref instanceof java.lang.String)) {
1283         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1284         java.lang.String s = bs.toStringUtf8();
1285         obsolete_ = s;
1286         return s;
1287       } else {
1288         return (java.lang.String) ref;
1289       }
1290     }
1291     /**
1292      *
1293      *
1294      * <pre>
1295      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.
1296      * </pre>
1297      *
1298      * <code>optional string obsolete = 357647769;</code>
1299      *
1300      * @return The bytes for obsolete.
1301      */
getObsoleteBytes()1302     public com.google.protobuf.ByteString getObsoleteBytes() {
1303       java.lang.Object ref = obsolete_;
1304       if (ref instanceof String) {
1305         com.google.protobuf.ByteString b =
1306             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1307         obsolete_ = b;
1308         return b;
1309       } else {
1310         return (com.google.protobuf.ByteString) ref;
1311       }
1312     }
1313     /**
1314      *
1315      *
1316      * <pre>
1317      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.
1318      * </pre>
1319      *
1320      * <code>optional string obsolete = 357647769;</code>
1321      *
1322      * @param value The obsolete to set.
1323      * @return This builder for chaining.
1324      */
setObsolete(java.lang.String value)1325     public Builder setObsolete(java.lang.String value) {
1326       if (value == null) {
1327         throw new NullPointerException();
1328       }
1329       obsolete_ = value;
1330       bitField0_ |= 0x00000004;
1331       onChanged();
1332       return this;
1333     }
1334     /**
1335      *
1336      *
1337      * <pre>
1338      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.
1339      * </pre>
1340      *
1341      * <code>optional string obsolete = 357647769;</code>
1342      *
1343      * @return This builder for chaining.
1344      */
clearObsolete()1345     public Builder clearObsolete() {
1346       obsolete_ = getDefaultInstance().getObsolete();
1347       bitField0_ = (bitField0_ & ~0x00000004);
1348       onChanged();
1349       return this;
1350     }
1351     /**
1352      *
1353      *
1354      * <pre>
1355      * An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.
1356      * </pre>
1357      *
1358      * <code>optional string obsolete = 357647769;</code>
1359      *
1360      * @param value The bytes for obsolete to set.
1361      * @return This builder for chaining.
1362      */
setObsoleteBytes(com.google.protobuf.ByteString value)1363     public Builder setObsoleteBytes(com.google.protobuf.ByteString value) {
1364       if (value == null) {
1365         throw new NullPointerException();
1366       }
1367       checkByteStringIsUtf8(value);
1368       obsolete_ = value;
1369       bitField0_ |= 0x00000004;
1370       onChanged();
1371       return this;
1372     }
1373 
1374     private java.lang.Object replacement_ = "";
1375     /**
1376      *
1377      *
1378      * <pre>
1379      * The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
1380      * </pre>
1381      *
1382      * <code>optional string replacement = 430919186;</code>
1383      *
1384      * @return Whether the replacement field is set.
1385      */
hasReplacement()1386     public boolean hasReplacement() {
1387       return ((bitField0_ & 0x00000008) != 0);
1388     }
1389     /**
1390      *
1391      *
1392      * <pre>
1393      * The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
1394      * </pre>
1395      *
1396      * <code>optional string replacement = 430919186;</code>
1397      *
1398      * @return The replacement.
1399      */
getReplacement()1400     public java.lang.String getReplacement() {
1401       java.lang.Object ref = replacement_;
1402       if (!(ref instanceof java.lang.String)) {
1403         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1404         java.lang.String s = bs.toStringUtf8();
1405         replacement_ = s;
1406         return s;
1407       } else {
1408         return (java.lang.String) ref;
1409       }
1410     }
1411     /**
1412      *
1413      *
1414      * <pre>
1415      * The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
1416      * </pre>
1417      *
1418      * <code>optional string replacement = 430919186;</code>
1419      *
1420      * @return The bytes for replacement.
1421      */
getReplacementBytes()1422     public com.google.protobuf.ByteString getReplacementBytes() {
1423       java.lang.Object ref = replacement_;
1424       if (ref instanceof String) {
1425         com.google.protobuf.ByteString b =
1426             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1427         replacement_ = b;
1428         return b;
1429       } else {
1430         return (com.google.protobuf.ByteString) ref;
1431       }
1432     }
1433     /**
1434      *
1435      *
1436      * <pre>
1437      * The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
1438      * </pre>
1439      *
1440      * <code>optional string replacement = 430919186;</code>
1441      *
1442      * @param value The replacement to set.
1443      * @return This builder for chaining.
1444      */
setReplacement(java.lang.String value)1445     public Builder setReplacement(java.lang.String value) {
1446       if (value == null) {
1447         throw new NullPointerException();
1448       }
1449       replacement_ = value;
1450       bitField0_ |= 0x00000008;
1451       onChanged();
1452       return this;
1453     }
1454     /**
1455      *
1456      *
1457      * <pre>
1458      * The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
1459      * </pre>
1460      *
1461      * <code>optional string replacement = 430919186;</code>
1462      *
1463      * @return This builder for chaining.
1464      */
clearReplacement()1465     public Builder clearReplacement() {
1466       replacement_ = getDefaultInstance().getReplacement();
1467       bitField0_ = (bitField0_ & ~0x00000008);
1468       onChanged();
1469       return this;
1470     }
1471     /**
1472      *
1473      *
1474      * <pre>
1475      * The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
1476      * </pre>
1477      *
1478      * <code>optional string replacement = 430919186;</code>
1479      *
1480      * @param value The bytes for replacement to set.
1481      * @return This builder for chaining.
1482      */
setReplacementBytes(com.google.protobuf.ByteString value)1483     public Builder setReplacementBytes(com.google.protobuf.ByteString value) {
1484       if (value == null) {
1485         throw new NullPointerException();
1486       }
1487       checkByteStringIsUtf8(value);
1488       replacement_ = value;
1489       bitField0_ |= 0x00000008;
1490       onChanged();
1491       return this;
1492     }
1493 
1494     private java.lang.Object state_ = "";
1495     /**
1496      *
1497      *
1498      * <pre>
1499      * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
1500      * Check the State enum for the list of possible values.
1501      * </pre>
1502      *
1503      * <code>optional string state = 109757585;</code>
1504      *
1505      * @return Whether the state field is set.
1506      */
hasState()1507     public boolean hasState() {
1508       return ((bitField0_ & 0x00000010) != 0);
1509     }
1510     /**
1511      *
1512      *
1513      * <pre>
1514      * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
1515      * Check the State enum for the list of possible values.
1516      * </pre>
1517      *
1518      * <code>optional string state = 109757585;</code>
1519      *
1520      * @return The state.
1521      */
getState()1522     public java.lang.String getState() {
1523       java.lang.Object ref = state_;
1524       if (!(ref instanceof java.lang.String)) {
1525         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1526         java.lang.String s = bs.toStringUtf8();
1527         state_ = s;
1528         return s;
1529       } else {
1530         return (java.lang.String) ref;
1531       }
1532     }
1533     /**
1534      *
1535      *
1536      * <pre>
1537      * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
1538      * Check the State enum for the list of possible values.
1539      * </pre>
1540      *
1541      * <code>optional string state = 109757585;</code>
1542      *
1543      * @return The bytes for state.
1544      */
getStateBytes()1545     public com.google.protobuf.ByteString getStateBytes() {
1546       java.lang.Object ref = state_;
1547       if (ref instanceof String) {
1548         com.google.protobuf.ByteString b =
1549             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1550         state_ = b;
1551         return b;
1552       } else {
1553         return (com.google.protobuf.ByteString) ref;
1554       }
1555     }
1556     /**
1557      *
1558      *
1559      * <pre>
1560      * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
1561      * Check the State enum for the list of possible values.
1562      * </pre>
1563      *
1564      * <code>optional string state = 109757585;</code>
1565      *
1566      * @param value The state to set.
1567      * @return This builder for chaining.
1568      */
setState(java.lang.String value)1569     public Builder setState(java.lang.String value) {
1570       if (value == null) {
1571         throw new NullPointerException();
1572       }
1573       state_ = value;
1574       bitField0_ |= 0x00000010;
1575       onChanged();
1576       return this;
1577     }
1578     /**
1579      *
1580      *
1581      * <pre>
1582      * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
1583      * Check the State enum for the list of possible values.
1584      * </pre>
1585      *
1586      * <code>optional string state = 109757585;</code>
1587      *
1588      * @return This builder for chaining.
1589      */
clearState()1590     public Builder clearState() {
1591       state_ = getDefaultInstance().getState();
1592       bitField0_ = (bitField0_ & ~0x00000010);
1593       onChanged();
1594       return this;
1595     }
1596     /**
1597      *
1598      *
1599      * <pre>
1600      * The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
1601      * Check the State enum for the list of possible values.
1602      * </pre>
1603      *
1604      * <code>optional string state = 109757585;</code>
1605      *
1606      * @param value The bytes for state to set.
1607      * @return This builder for chaining.
1608      */
setStateBytes(com.google.protobuf.ByteString value)1609     public Builder setStateBytes(com.google.protobuf.ByteString value) {
1610       if (value == null) {
1611         throw new NullPointerException();
1612       }
1613       checkByteStringIsUtf8(value);
1614       state_ = value;
1615       bitField0_ |= 0x00000010;
1616       onChanged();
1617       return this;
1618     }
1619 
1620     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1621     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1622       return super.setUnknownFields(unknownFields);
1623     }
1624 
1625     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1626     public final Builder mergeUnknownFields(
1627         final com.google.protobuf.UnknownFieldSet unknownFields) {
1628       return super.mergeUnknownFields(unknownFields);
1629     }
1630 
1631     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.DeprecationStatus)
1632   }
1633 
1634   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.DeprecationStatus)
1635   private static final com.google.cloud.compute.v1.DeprecationStatus DEFAULT_INSTANCE;
1636 
1637   static {
1638     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.DeprecationStatus();
1639   }
1640 
getDefaultInstance()1641   public static com.google.cloud.compute.v1.DeprecationStatus getDefaultInstance() {
1642     return DEFAULT_INSTANCE;
1643   }
1644 
1645   private static final com.google.protobuf.Parser<DeprecationStatus> PARSER =
1646       new com.google.protobuf.AbstractParser<DeprecationStatus>() {
1647         @java.lang.Override
1648         public DeprecationStatus parsePartialFrom(
1649             com.google.protobuf.CodedInputStream input,
1650             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1651             throws com.google.protobuf.InvalidProtocolBufferException {
1652           Builder builder = newBuilder();
1653           try {
1654             builder.mergeFrom(input, extensionRegistry);
1655           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1656             throw e.setUnfinishedMessage(builder.buildPartial());
1657           } catch (com.google.protobuf.UninitializedMessageException e) {
1658             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1659           } catch (java.io.IOException e) {
1660             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1661                 .setUnfinishedMessage(builder.buildPartial());
1662           }
1663           return builder.buildPartial();
1664         }
1665       };
1666 
parser()1667   public static com.google.protobuf.Parser<DeprecationStatus> parser() {
1668     return PARSER;
1669   }
1670 
1671   @java.lang.Override
getParserForType()1672   public com.google.protobuf.Parser<DeprecationStatus> getParserForType() {
1673     return PARSER;
1674   }
1675 
1676   @java.lang.Override
getDefaultInstanceForType()1677   public com.google.cloud.compute.v1.DeprecationStatus getDefaultInstanceForType() {
1678     return DEFAULT_INSTANCE;
1679   }
1680 }
1681