• 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  * </pre>
26  *
27  * Protobuf type {@code google.cloud.compute.v1.ScalingScheduleStatus}
28  */
29 public final class ScalingScheduleStatus extends com.google.protobuf.GeneratedMessageV3
30     implements
31     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ScalingScheduleStatus)
32     ScalingScheduleStatusOrBuilder {
33   private static final long serialVersionUID = 0L;
34   // Use ScalingScheduleStatus.newBuilder() to construct.
ScalingScheduleStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)35   private ScalingScheduleStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
36     super(builder);
37   }
38 
ScalingScheduleStatus()39   private ScalingScheduleStatus() {
40     lastStartTime_ = "";
41     nextStartTime_ = "";
42     state_ = "";
43   }
44 
45   @java.lang.Override
46   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)47   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
48     return new ScalingScheduleStatus();
49   }
50 
51   @java.lang.Override
getUnknownFields()52   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53     return this.unknownFields;
54   }
55 
getDescriptor()56   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
57     return com.google.cloud.compute.v1.Compute
58         .internal_static_google_cloud_compute_v1_ScalingScheduleStatus_descriptor;
59   }
60 
61   @java.lang.Override
62   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()63       internalGetFieldAccessorTable() {
64     return com.google.cloud.compute.v1.Compute
65         .internal_static_google_cloud_compute_v1_ScalingScheduleStatus_fieldAccessorTable
66         .ensureFieldAccessorsInitialized(
67             com.google.cloud.compute.v1.ScalingScheduleStatus.class,
68             com.google.cloud.compute.v1.ScalingScheduleStatus.Builder.class);
69   }
70 
71   /**
72    *
73    *
74    * <pre>
75    * [Output Only] The current state of a scaling schedule.
76    * </pre>
77    *
78    * Protobuf enum {@code google.cloud.compute.v1.ScalingScheduleStatus.State}
79    */
80   public enum State implements com.google.protobuf.ProtocolMessageEnum {
81     /**
82      *
83      *
84      * <pre>
85      * A value indicating that the enum field is not set.
86      * </pre>
87      *
88      * <code>UNDEFINED_STATE = 0;</code>
89      */
90     UNDEFINED_STATE(0),
91     /**
92      *
93      *
94      * <pre>
95      * The current autoscaling recommendation is influenced by this scaling schedule.
96      * </pre>
97      *
98      * <code>ACTIVE = 314733318;</code>
99      */
100     ACTIVE(314733318),
101     /**
102      *
103      *
104      * <pre>
105      * This scaling schedule has been disabled by the user.
106      * </pre>
107      *
108      * <code>DISABLED = 516696700;</code>
109      */
110     DISABLED(516696700),
111     /**
112      *
113      *
114      * <pre>
115      * This scaling schedule will never become active again.
116      * </pre>
117      *
118      * <code>OBSOLETE = 66532761;</code>
119      */
120     OBSOLETE(66532761),
121     /**
122      *
123      *
124      * <pre>
125      * The current autoscaling recommendation is not influenced by this scaling schedule.
126      * </pre>
127      *
128      * <code>READY = 77848963;</code>
129      */
130     READY(77848963),
131     UNRECOGNIZED(-1),
132     ;
133 
134     /**
135      *
136      *
137      * <pre>
138      * A value indicating that the enum field is not set.
139      * </pre>
140      *
141      * <code>UNDEFINED_STATE = 0;</code>
142      */
143     public static final int UNDEFINED_STATE_VALUE = 0;
144     /**
145      *
146      *
147      * <pre>
148      * The current autoscaling recommendation is influenced by this scaling schedule.
149      * </pre>
150      *
151      * <code>ACTIVE = 314733318;</code>
152      */
153     public static final int ACTIVE_VALUE = 314733318;
154     /**
155      *
156      *
157      * <pre>
158      * This scaling schedule has been disabled by the user.
159      * </pre>
160      *
161      * <code>DISABLED = 516696700;</code>
162      */
163     public static final int DISABLED_VALUE = 516696700;
164     /**
165      *
166      *
167      * <pre>
168      * This scaling schedule will never become active again.
169      * </pre>
170      *
171      * <code>OBSOLETE = 66532761;</code>
172      */
173     public static final int OBSOLETE_VALUE = 66532761;
174     /**
175      *
176      *
177      * <pre>
178      * The current autoscaling recommendation is not influenced by this scaling schedule.
179      * </pre>
180      *
181      * <code>READY = 77848963;</code>
182      */
183     public static final int READY_VALUE = 77848963;
184 
getNumber()185     public final int getNumber() {
186       if (this == UNRECOGNIZED) {
187         throw new java.lang.IllegalArgumentException(
188             "Can't get the number of an unknown enum value.");
189       }
190       return value;
191     }
192 
193     /**
194      * @param value The numeric wire value of the corresponding enum entry.
195      * @return The enum associated with the given numeric wire value.
196      * @deprecated Use {@link #forNumber(int)} instead.
197      */
198     @java.lang.Deprecated
valueOf(int value)199     public static State valueOf(int value) {
200       return forNumber(value);
201     }
202 
203     /**
204      * @param value The numeric wire value of the corresponding enum entry.
205      * @return The enum associated with the given numeric wire value.
206      */
forNumber(int value)207     public static State forNumber(int value) {
208       switch (value) {
209         case 0:
210           return UNDEFINED_STATE;
211         case 314733318:
212           return ACTIVE;
213         case 516696700:
214           return DISABLED;
215         case 66532761:
216           return OBSOLETE;
217         case 77848963:
218           return READY;
219         default:
220           return null;
221       }
222     }
223 
internalGetValueMap()224     public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
225       return internalValueMap;
226     }
227 
228     private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
229         new com.google.protobuf.Internal.EnumLiteMap<State>() {
230           public State findValueByNumber(int number) {
231             return State.forNumber(number);
232           }
233         };
234 
getValueDescriptor()235     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
236       if (this == UNRECOGNIZED) {
237         throw new java.lang.IllegalStateException(
238             "Can't get the descriptor of an unrecognized enum value.");
239       }
240       return getDescriptor().getValues().get(ordinal());
241     }
242 
getDescriptorForType()243     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
244       return getDescriptor();
245     }
246 
getDescriptor()247     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
248       return com.google.cloud.compute.v1.ScalingScheduleStatus.getDescriptor()
249           .getEnumTypes()
250           .get(0);
251     }
252 
253     private static final State[] VALUES = values();
254 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)255     public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
256       if (desc.getType() != getDescriptor()) {
257         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
258       }
259       if (desc.getIndex() == -1) {
260         return UNRECOGNIZED;
261       }
262       return VALUES[desc.getIndex()];
263     }
264 
265     private final int value;
266 
State(int value)267     private State(int value) {
268       this.value = value;
269     }
270 
271     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.ScalingScheduleStatus.State)
272   }
273 
274   private int bitField0_;
275   public static final int LAST_START_TIME_FIELD_NUMBER = 34545107;
276 
277   @SuppressWarnings("serial")
278   private volatile java.lang.Object lastStartTime_ = "";
279   /**
280    *
281    *
282    * <pre>
283    * [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.
284    * </pre>
285    *
286    * <code>optional string last_start_time = 34545107;</code>
287    *
288    * @return Whether the lastStartTime field is set.
289    */
290   @java.lang.Override
hasLastStartTime()291   public boolean hasLastStartTime() {
292     return ((bitField0_ & 0x00000001) != 0);
293   }
294   /**
295    *
296    *
297    * <pre>
298    * [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.
299    * </pre>
300    *
301    * <code>optional string last_start_time = 34545107;</code>
302    *
303    * @return The lastStartTime.
304    */
305   @java.lang.Override
getLastStartTime()306   public java.lang.String getLastStartTime() {
307     java.lang.Object ref = lastStartTime_;
308     if (ref instanceof java.lang.String) {
309       return (java.lang.String) ref;
310     } else {
311       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
312       java.lang.String s = bs.toStringUtf8();
313       lastStartTime_ = s;
314       return s;
315     }
316   }
317   /**
318    *
319    *
320    * <pre>
321    * [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.
322    * </pre>
323    *
324    * <code>optional string last_start_time = 34545107;</code>
325    *
326    * @return The bytes for lastStartTime.
327    */
328   @java.lang.Override
getLastStartTimeBytes()329   public com.google.protobuf.ByteString getLastStartTimeBytes() {
330     java.lang.Object ref = lastStartTime_;
331     if (ref instanceof java.lang.String) {
332       com.google.protobuf.ByteString b =
333           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
334       lastStartTime_ = b;
335       return b;
336     } else {
337       return (com.google.protobuf.ByteString) ref;
338     }
339   }
340 
341   public static final int NEXT_START_TIME_FIELD_NUMBER = 97270102;
342 
343   @SuppressWarnings("serial")
344   private volatile java.lang.Object nextStartTime_ = "";
345   /**
346    *
347    *
348    * <pre>
349    * [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.
350    * </pre>
351    *
352    * <code>optional string next_start_time = 97270102;</code>
353    *
354    * @return Whether the nextStartTime field is set.
355    */
356   @java.lang.Override
hasNextStartTime()357   public boolean hasNextStartTime() {
358     return ((bitField0_ & 0x00000002) != 0);
359   }
360   /**
361    *
362    *
363    * <pre>
364    * [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.
365    * </pre>
366    *
367    * <code>optional string next_start_time = 97270102;</code>
368    *
369    * @return The nextStartTime.
370    */
371   @java.lang.Override
getNextStartTime()372   public java.lang.String getNextStartTime() {
373     java.lang.Object ref = nextStartTime_;
374     if (ref instanceof java.lang.String) {
375       return (java.lang.String) ref;
376     } else {
377       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
378       java.lang.String s = bs.toStringUtf8();
379       nextStartTime_ = s;
380       return s;
381     }
382   }
383   /**
384    *
385    *
386    * <pre>
387    * [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.
388    * </pre>
389    *
390    * <code>optional string next_start_time = 97270102;</code>
391    *
392    * @return The bytes for nextStartTime.
393    */
394   @java.lang.Override
getNextStartTimeBytes()395   public com.google.protobuf.ByteString getNextStartTimeBytes() {
396     java.lang.Object ref = nextStartTime_;
397     if (ref instanceof java.lang.String) {
398       com.google.protobuf.ByteString b =
399           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
400       nextStartTime_ = b;
401       return b;
402     } else {
403       return (com.google.protobuf.ByteString) ref;
404     }
405   }
406 
407   public static final int STATE_FIELD_NUMBER = 109757585;
408 
409   @SuppressWarnings("serial")
410   private volatile java.lang.Object state_ = "";
411   /**
412    *
413    *
414    * <pre>
415    * [Output Only] The current state of a scaling schedule.
416    * Check the State enum for the list of possible values.
417    * </pre>
418    *
419    * <code>optional string state = 109757585;</code>
420    *
421    * @return Whether the state field is set.
422    */
423   @java.lang.Override
hasState()424   public boolean hasState() {
425     return ((bitField0_ & 0x00000004) != 0);
426   }
427   /**
428    *
429    *
430    * <pre>
431    * [Output Only] The current state of a scaling schedule.
432    * Check the State enum for the list of possible values.
433    * </pre>
434    *
435    * <code>optional string state = 109757585;</code>
436    *
437    * @return The state.
438    */
439   @java.lang.Override
getState()440   public java.lang.String getState() {
441     java.lang.Object ref = state_;
442     if (ref instanceof java.lang.String) {
443       return (java.lang.String) ref;
444     } else {
445       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
446       java.lang.String s = bs.toStringUtf8();
447       state_ = s;
448       return s;
449     }
450   }
451   /**
452    *
453    *
454    * <pre>
455    * [Output Only] The current state of a scaling schedule.
456    * Check the State enum for the list of possible values.
457    * </pre>
458    *
459    * <code>optional string state = 109757585;</code>
460    *
461    * @return The bytes for state.
462    */
463   @java.lang.Override
getStateBytes()464   public com.google.protobuf.ByteString getStateBytes() {
465     java.lang.Object ref = state_;
466     if (ref instanceof java.lang.String) {
467       com.google.protobuf.ByteString b =
468           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
469       state_ = b;
470       return b;
471     } else {
472       return (com.google.protobuf.ByteString) ref;
473     }
474   }
475 
476   private byte memoizedIsInitialized = -1;
477 
478   @java.lang.Override
isInitialized()479   public final boolean isInitialized() {
480     byte isInitialized = memoizedIsInitialized;
481     if (isInitialized == 1) return true;
482     if (isInitialized == 0) return false;
483 
484     memoizedIsInitialized = 1;
485     return true;
486   }
487 
488   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)489   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
490     if (((bitField0_ & 0x00000001) != 0)) {
491       com.google.protobuf.GeneratedMessageV3.writeString(output, 34545107, lastStartTime_);
492     }
493     if (((bitField0_ & 0x00000002) != 0)) {
494       com.google.protobuf.GeneratedMessageV3.writeString(output, 97270102, nextStartTime_);
495     }
496     if (((bitField0_ & 0x00000004) != 0)) {
497       com.google.protobuf.GeneratedMessageV3.writeString(output, 109757585, state_);
498     }
499     getUnknownFields().writeTo(output);
500   }
501 
502   @java.lang.Override
getSerializedSize()503   public int getSerializedSize() {
504     int size = memoizedSize;
505     if (size != -1) return size;
506 
507     size = 0;
508     if (((bitField0_ & 0x00000001) != 0)) {
509       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(34545107, lastStartTime_);
510     }
511     if (((bitField0_ & 0x00000002) != 0)) {
512       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(97270102, nextStartTime_);
513     }
514     if (((bitField0_ & 0x00000004) != 0)) {
515       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(109757585, state_);
516     }
517     size += getUnknownFields().getSerializedSize();
518     memoizedSize = size;
519     return size;
520   }
521 
522   @java.lang.Override
equals(final java.lang.Object obj)523   public boolean equals(final java.lang.Object obj) {
524     if (obj == this) {
525       return true;
526     }
527     if (!(obj instanceof com.google.cloud.compute.v1.ScalingScheduleStatus)) {
528       return super.equals(obj);
529     }
530     com.google.cloud.compute.v1.ScalingScheduleStatus other =
531         (com.google.cloud.compute.v1.ScalingScheduleStatus) obj;
532 
533     if (hasLastStartTime() != other.hasLastStartTime()) return false;
534     if (hasLastStartTime()) {
535       if (!getLastStartTime().equals(other.getLastStartTime())) return false;
536     }
537     if (hasNextStartTime() != other.hasNextStartTime()) return false;
538     if (hasNextStartTime()) {
539       if (!getNextStartTime().equals(other.getNextStartTime())) return false;
540     }
541     if (hasState() != other.hasState()) return false;
542     if (hasState()) {
543       if (!getState().equals(other.getState())) return false;
544     }
545     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
546     return true;
547   }
548 
549   @java.lang.Override
hashCode()550   public int hashCode() {
551     if (memoizedHashCode != 0) {
552       return memoizedHashCode;
553     }
554     int hash = 41;
555     hash = (19 * hash) + getDescriptor().hashCode();
556     if (hasLastStartTime()) {
557       hash = (37 * hash) + LAST_START_TIME_FIELD_NUMBER;
558       hash = (53 * hash) + getLastStartTime().hashCode();
559     }
560     if (hasNextStartTime()) {
561       hash = (37 * hash) + NEXT_START_TIME_FIELD_NUMBER;
562       hash = (53 * hash) + getNextStartTime().hashCode();
563     }
564     if (hasState()) {
565       hash = (37 * hash) + STATE_FIELD_NUMBER;
566       hash = (53 * hash) + getState().hashCode();
567     }
568     hash = (29 * hash) + getUnknownFields().hashCode();
569     memoizedHashCode = hash;
570     return hash;
571   }
572 
parseFrom( java.nio.ByteBuffer data)573   public static com.google.cloud.compute.v1.ScalingScheduleStatus parseFrom(
574       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
575     return PARSER.parseFrom(data);
576   }
577 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)578   public static com.google.cloud.compute.v1.ScalingScheduleStatus parseFrom(
579       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
580       throws com.google.protobuf.InvalidProtocolBufferException {
581     return PARSER.parseFrom(data, extensionRegistry);
582   }
583 
parseFrom( com.google.protobuf.ByteString data)584   public static com.google.cloud.compute.v1.ScalingScheduleStatus parseFrom(
585       com.google.protobuf.ByteString data)
586       throws com.google.protobuf.InvalidProtocolBufferException {
587     return PARSER.parseFrom(data);
588   }
589 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)590   public static com.google.cloud.compute.v1.ScalingScheduleStatus parseFrom(
591       com.google.protobuf.ByteString data,
592       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
593       throws com.google.protobuf.InvalidProtocolBufferException {
594     return PARSER.parseFrom(data, extensionRegistry);
595   }
596 
parseFrom(byte[] data)597   public static com.google.cloud.compute.v1.ScalingScheduleStatus parseFrom(byte[] data)
598       throws com.google.protobuf.InvalidProtocolBufferException {
599     return PARSER.parseFrom(data);
600   }
601 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)602   public static com.google.cloud.compute.v1.ScalingScheduleStatus parseFrom(
603       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
604       throws com.google.protobuf.InvalidProtocolBufferException {
605     return PARSER.parseFrom(data, extensionRegistry);
606   }
607 
parseFrom( java.io.InputStream input)608   public static com.google.cloud.compute.v1.ScalingScheduleStatus parseFrom(
609       java.io.InputStream input) throws java.io.IOException {
610     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
611   }
612 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)613   public static com.google.cloud.compute.v1.ScalingScheduleStatus parseFrom(
614       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
615       throws java.io.IOException {
616     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
617         PARSER, input, extensionRegistry);
618   }
619 
parseDelimitedFrom( java.io.InputStream input)620   public static com.google.cloud.compute.v1.ScalingScheduleStatus parseDelimitedFrom(
621       java.io.InputStream input) throws java.io.IOException {
622     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
623   }
624 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)625   public static com.google.cloud.compute.v1.ScalingScheduleStatus parseDelimitedFrom(
626       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
627       throws java.io.IOException {
628     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
629         PARSER, input, extensionRegistry);
630   }
631 
parseFrom( com.google.protobuf.CodedInputStream input)632   public static com.google.cloud.compute.v1.ScalingScheduleStatus parseFrom(
633       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
634     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
635   }
636 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)637   public static com.google.cloud.compute.v1.ScalingScheduleStatus parseFrom(
638       com.google.protobuf.CodedInputStream input,
639       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
640       throws java.io.IOException {
641     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
642         PARSER, input, extensionRegistry);
643   }
644 
645   @java.lang.Override
newBuilderForType()646   public Builder newBuilderForType() {
647     return newBuilder();
648   }
649 
newBuilder()650   public static Builder newBuilder() {
651     return DEFAULT_INSTANCE.toBuilder();
652   }
653 
newBuilder(com.google.cloud.compute.v1.ScalingScheduleStatus prototype)654   public static Builder newBuilder(com.google.cloud.compute.v1.ScalingScheduleStatus prototype) {
655     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
656   }
657 
658   @java.lang.Override
toBuilder()659   public Builder toBuilder() {
660     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
661   }
662 
663   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)664   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
665     Builder builder = new Builder(parent);
666     return builder;
667   }
668   /**
669    *
670    *
671    * <pre>
672    * </pre>
673    *
674    * Protobuf type {@code google.cloud.compute.v1.ScalingScheduleStatus}
675    */
676   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
677       implements
678       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ScalingScheduleStatus)
679       com.google.cloud.compute.v1.ScalingScheduleStatusOrBuilder {
getDescriptor()680     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
681       return com.google.cloud.compute.v1.Compute
682           .internal_static_google_cloud_compute_v1_ScalingScheduleStatus_descriptor;
683     }
684 
685     @java.lang.Override
686     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()687         internalGetFieldAccessorTable() {
688       return com.google.cloud.compute.v1.Compute
689           .internal_static_google_cloud_compute_v1_ScalingScheduleStatus_fieldAccessorTable
690           .ensureFieldAccessorsInitialized(
691               com.google.cloud.compute.v1.ScalingScheduleStatus.class,
692               com.google.cloud.compute.v1.ScalingScheduleStatus.Builder.class);
693     }
694 
695     // Construct using com.google.cloud.compute.v1.ScalingScheduleStatus.newBuilder()
Builder()696     private Builder() {}
697 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)698     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
699       super(parent);
700     }
701 
702     @java.lang.Override
clear()703     public Builder clear() {
704       super.clear();
705       bitField0_ = 0;
706       lastStartTime_ = "";
707       nextStartTime_ = "";
708       state_ = "";
709       return this;
710     }
711 
712     @java.lang.Override
getDescriptorForType()713     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
714       return com.google.cloud.compute.v1.Compute
715           .internal_static_google_cloud_compute_v1_ScalingScheduleStatus_descriptor;
716     }
717 
718     @java.lang.Override
getDefaultInstanceForType()719     public com.google.cloud.compute.v1.ScalingScheduleStatus getDefaultInstanceForType() {
720       return com.google.cloud.compute.v1.ScalingScheduleStatus.getDefaultInstance();
721     }
722 
723     @java.lang.Override
build()724     public com.google.cloud.compute.v1.ScalingScheduleStatus build() {
725       com.google.cloud.compute.v1.ScalingScheduleStatus result = buildPartial();
726       if (!result.isInitialized()) {
727         throw newUninitializedMessageException(result);
728       }
729       return result;
730     }
731 
732     @java.lang.Override
buildPartial()733     public com.google.cloud.compute.v1.ScalingScheduleStatus buildPartial() {
734       com.google.cloud.compute.v1.ScalingScheduleStatus result =
735           new com.google.cloud.compute.v1.ScalingScheduleStatus(this);
736       if (bitField0_ != 0) {
737         buildPartial0(result);
738       }
739       onBuilt();
740       return result;
741     }
742 
buildPartial0(com.google.cloud.compute.v1.ScalingScheduleStatus result)743     private void buildPartial0(com.google.cloud.compute.v1.ScalingScheduleStatus result) {
744       int from_bitField0_ = bitField0_;
745       int to_bitField0_ = 0;
746       if (((from_bitField0_ & 0x00000001) != 0)) {
747         result.lastStartTime_ = lastStartTime_;
748         to_bitField0_ |= 0x00000001;
749       }
750       if (((from_bitField0_ & 0x00000002) != 0)) {
751         result.nextStartTime_ = nextStartTime_;
752         to_bitField0_ |= 0x00000002;
753       }
754       if (((from_bitField0_ & 0x00000004) != 0)) {
755         result.state_ = state_;
756         to_bitField0_ |= 0x00000004;
757       }
758       result.bitField0_ |= to_bitField0_;
759     }
760 
761     @java.lang.Override
clone()762     public Builder clone() {
763       return super.clone();
764     }
765 
766     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)767     public Builder setField(
768         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
769       return super.setField(field, value);
770     }
771 
772     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)773     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
774       return super.clearField(field);
775     }
776 
777     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)778     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
779       return super.clearOneof(oneof);
780     }
781 
782     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)783     public Builder setRepeatedField(
784         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
785       return super.setRepeatedField(field, index, value);
786     }
787 
788     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)789     public Builder addRepeatedField(
790         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
791       return super.addRepeatedField(field, value);
792     }
793 
794     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)795     public Builder mergeFrom(com.google.protobuf.Message other) {
796       if (other instanceof com.google.cloud.compute.v1.ScalingScheduleStatus) {
797         return mergeFrom((com.google.cloud.compute.v1.ScalingScheduleStatus) other);
798       } else {
799         super.mergeFrom(other);
800         return this;
801       }
802     }
803 
mergeFrom(com.google.cloud.compute.v1.ScalingScheduleStatus other)804     public Builder mergeFrom(com.google.cloud.compute.v1.ScalingScheduleStatus other) {
805       if (other == com.google.cloud.compute.v1.ScalingScheduleStatus.getDefaultInstance())
806         return this;
807       if (other.hasLastStartTime()) {
808         lastStartTime_ = other.lastStartTime_;
809         bitField0_ |= 0x00000001;
810         onChanged();
811       }
812       if (other.hasNextStartTime()) {
813         nextStartTime_ = other.nextStartTime_;
814         bitField0_ |= 0x00000002;
815         onChanged();
816       }
817       if (other.hasState()) {
818         state_ = other.state_;
819         bitField0_ |= 0x00000004;
820         onChanged();
821       }
822       this.mergeUnknownFields(other.getUnknownFields());
823       onChanged();
824       return this;
825     }
826 
827     @java.lang.Override
isInitialized()828     public final boolean isInitialized() {
829       return true;
830     }
831 
832     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)833     public Builder mergeFrom(
834         com.google.protobuf.CodedInputStream input,
835         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
836         throws java.io.IOException {
837       if (extensionRegistry == null) {
838         throw new java.lang.NullPointerException();
839       }
840       try {
841         boolean done = false;
842         while (!done) {
843           int tag = input.readTag();
844           switch (tag) {
845             case 0:
846               done = true;
847               break;
848             case 276360858:
849               {
850                 lastStartTime_ = input.readStringRequireUtf8();
851                 bitField0_ |= 0x00000001;
852                 break;
853               } // case 276360858
854             case 778160818:
855               {
856                 nextStartTime_ = input.readStringRequireUtf8();
857                 bitField0_ |= 0x00000002;
858                 break;
859               } // case 778160818
860             case 878060682:
861               {
862                 state_ = input.readStringRequireUtf8();
863                 bitField0_ |= 0x00000004;
864                 break;
865               } // case 878060682
866             default:
867               {
868                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
869                   done = true; // was an endgroup tag
870                 }
871                 break;
872               } // default:
873           } // switch (tag)
874         } // while (!done)
875       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
876         throw e.unwrapIOException();
877       } finally {
878         onChanged();
879       } // finally
880       return this;
881     }
882 
883     private int bitField0_;
884 
885     private java.lang.Object lastStartTime_ = "";
886     /**
887      *
888      *
889      * <pre>
890      * [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.
891      * </pre>
892      *
893      * <code>optional string last_start_time = 34545107;</code>
894      *
895      * @return Whether the lastStartTime field is set.
896      */
hasLastStartTime()897     public boolean hasLastStartTime() {
898       return ((bitField0_ & 0x00000001) != 0);
899     }
900     /**
901      *
902      *
903      * <pre>
904      * [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.
905      * </pre>
906      *
907      * <code>optional string last_start_time = 34545107;</code>
908      *
909      * @return The lastStartTime.
910      */
getLastStartTime()911     public java.lang.String getLastStartTime() {
912       java.lang.Object ref = lastStartTime_;
913       if (!(ref instanceof java.lang.String)) {
914         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
915         java.lang.String s = bs.toStringUtf8();
916         lastStartTime_ = s;
917         return s;
918       } else {
919         return (java.lang.String) ref;
920       }
921     }
922     /**
923      *
924      *
925      * <pre>
926      * [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.
927      * </pre>
928      *
929      * <code>optional string last_start_time = 34545107;</code>
930      *
931      * @return The bytes for lastStartTime.
932      */
getLastStartTimeBytes()933     public com.google.protobuf.ByteString getLastStartTimeBytes() {
934       java.lang.Object ref = lastStartTime_;
935       if (ref instanceof String) {
936         com.google.protobuf.ByteString b =
937             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
938         lastStartTime_ = b;
939         return b;
940       } else {
941         return (com.google.protobuf.ByteString) ref;
942       }
943     }
944     /**
945      *
946      *
947      * <pre>
948      * [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.
949      * </pre>
950      *
951      * <code>optional string last_start_time = 34545107;</code>
952      *
953      * @param value The lastStartTime to set.
954      * @return This builder for chaining.
955      */
setLastStartTime(java.lang.String value)956     public Builder setLastStartTime(java.lang.String value) {
957       if (value == null) {
958         throw new NullPointerException();
959       }
960       lastStartTime_ = value;
961       bitField0_ |= 0x00000001;
962       onChanged();
963       return this;
964     }
965     /**
966      *
967      *
968      * <pre>
969      * [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.
970      * </pre>
971      *
972      * <code>optional string last_start_time = 34545107;</code>
973      *
974      * @return This builder for chaining.
975      */
clearLastStartTime()976     public Builder clearLastStartTime() {
977       lastStartTime_ = getDefaultInstance().getLastStartTime();
978       bitField0_ = (bitField0_ & ~0x00000001);
979       onChanged();
980       return this;
981     }
982     /**
983      *
984      *
985      * <pre>
986      * [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.
987      * </pre>
988      *
989      * <code>optional string last_start_time = 34545107;</code>
990      *
991      * @param value The bytes for lastStartTime to set.
992      * @return This builder for chaining.
993      */
setLastStartTimeBytes(com.google.protobuf.ByteString value)994     public Builder setLastStartTimeBytes(com.google.protobuf.ByteString value) {
995       if (value == null) {
996         throw new NullPointerException();
997       }
998       checkByteStringIsUtf8(value);
999       lastStartTime_ = value;
1000       bitField0_ |= 0x00000001;
1001       onChanged();
1002       return this;
1003     }
1004 
1005     private java.lang.Object nextStartTime_ = "";
1006     /**
1007      *
1008      *
1009      * <pre>
1010      * [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.
1011      * </pre>
1012      *
1013      * <code>optional string next_start_time = 97270102;</code>
1014      *
1015      * @return Whether the nextStartTime field is set.
1016      */
hasNextStartTime()1017     public boolean hasNextStartTime() {
1018       return ((bitField0_ & 0x00000002) != 0);
1019     }
1020     /**
1021      *
1022      *
1023      * <pre>
1024      * [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.
1025      * </pre>
1026      *
1027      * <code>optional string next_start_time = 97270102;</code>
1028      *
1029      * @return The nextStartTime.
1030      */
getNextStartTime()1031     public java.lang.String getNextStartTime() {
1032       java.lang.Object ref = nextStartTime_;
1033       if (!(ref instanceof java.lang.String)) {
1034         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1035         java.lang.String s = bs.toStringUtf8();
1036         nextStartTime_ = s;
1037         return s;
1038       } else {
1039         return (java.lang.String) ref;
1040       }
1041     }
1042     /**
1043      *
1044      *
1045      * <pre>
1046      * [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.
1047      * </pre>
1048      *
1049      * <code>optional string next_start_time = 97270102;</code>
1050      *
1051      * @return The bytes for nextStartTime.
1052      */
getNextStartTimeBytes()1053     public com.google.protobuf.ByteString getNextStartTimeBytes() {
1054       java.lang.Object ref = nextStartTime_;
1055       if (ref instanceof String) {
1056         com.google.protobuf.ByteString b =
1057             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1058         nextStartTime_ = b;
1059         return b;
1060       } else {
1061         return (com.google.protobuf.ByteString) ref;
1062       }
1063     }
1064     /**
1065      *
1066      *
1067      * <pre>
1068      * [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.
1069      * </pre>
1070      *
1071      * <code>optional string next_start_time = 97270102;</code>
1072      *
1073      * @param value The nextStartTime to set.
1074      * @return This builder for chaining.
1075      */
setNextStartTime(java.lang.String value)1076     public Builder setNextStartTime(java.lang.String value) {
1077       if (value == null) {
1078         throw new NullPointerException();
1079       }
1080       nextStartTime_ = value;
1081       bitField0_ |= 0x00000002;
1082       onChanged();
1083       return this;
1084     }
1085     /**
1086      *
1087      *
1088      * <pre>
1089      * [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.
1090      * </pre>
1091      *
1092      * <code>optional string next_start_time = 97270102;</code>
1093      *
1094      * @return This builder for chaining.
1095      */
clearNextStartTime()1096     public Builder clearNextStartTime() {
1097       nextStartTime_ = getDefaultInstance().getNextStartTime();
1098       bitField0_ = (bitField0_ & ~0x00000002);
1099       onChanged();
1100       return this;
1101     }
1102     /**
1103      *
1104      *
1105      * <pre>
1106      * [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.
1107      * </pre>
1108      *
1109      * <code>optional string next_start_time = 97270102;</code>
1110      *
1111      * @param value The bytes for nextStartTime to set.
1112      * @return This builder for chaining.
1113      */
setNextStartTimeBytes(com.google.protobuf.ByteString value)1114     public Builder setNextStartTimeBytes(com.google.protobuf.ByteString value) {
1115       if (value == null) {
1116         throw new NullPointerException();
1117       }
1118       checkByteStringIsUtf8(value);
1119       nextStartTime_ = value;
1120       bitField0_ |= 0x00000002;
1121       onChanged();
1122       return this;
1123     }
1124 
1125     private java.lang.Object state_ = "";
1126     /**
1127      *
1128      *
1129      * <pre>
1130      * [Output Only] The current state of a scaling schedule.
1131      * Check the State enum for the list of possible values.
1132      * </pre>
1133      *
1134      * <code>optional string state = 109757585;</code>
1135      *
1136      * @return Whether the state field is set.
1137      */
hasState()1138     public boolean hasState() {
1139       return ((bitField0_ & 0x00000004) != 0);
1140     }
1141     /**
1142      *
1143      *
1144      * <pre>
1145      * [Output Only] The current state of a scaling schedule.
1146      * Check the State enum for the list of possible values.
1147      * </pre>
1148      *
1149      * <code>optional string state = 109757585;</code>
1150      *
1151      * @return The state.
1152      */
getState()1153     public java.lang.String getState() {
1154       java.lang.Object ref = state_;
1155       if (!(ref instanceof java.lang.String)) {
1156         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1157         java.lang.String s = bs.toStringUtf8();
1158         state_ = s;
1159         return s;
1160       } else {
1161         return (java.lang.String) ref;
1162       }
1163     }
1164     /**
1165      *
1166      *
1167      * <pre>
1168      * [Output Only] The current state of a scaling schedule.
1169      * Check the State enum for the list of possible values.
1170      * </pre>
1171      *
1172      * <code>optional string state = 109757585;</code>
1173      *
1174      * @return The bytes for state.
1175      */
getStateBytes()1176     public com.google.protobuf.ByteString getStateBytes() {
1177       java.lang.Object ref = state_;
1178       if (ref instanceof String) {
1179         com.google.protobuf.ByteString b =
1180             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1181         state_ = b;
1182         return b;
1183       } else {
1184         return (com.google.protobuf.ByteString) ref;
1185       }
1186     }
1187     /**
1188      *
1189      *
1190      * <pre>
1191      * [Output Only] The current state of a scaling schedule.
1192      * Check the State enum for the list of possible values.
1193      * </pre>
1194      *
1195      * <code>optional string state = 109757585;</code>
1196      *
1197      * @param value The state to set.
1198      * @return This builder for chaining.
1199      */
setState(java.lang.String value)1200     public Builder setState(java.lang.String value) {
1201       if (value == null) {
1202         throw new NullPointerException();
1203       }
1204       state_ = value;
1205       bitField0_ |= 0x00000004;
1206       onChanged();
1207       return this;
1208     }
1209     /**
1210      *
1211      *
1212      * <pre>
1213      * [Output Only] The current state of a scaling schedule.
1214      * Check the State enum for the list of possible values.
1215      * </pre>
1216      *
1217      * <code>optional string state = 109757585;</code>
1218      *
1219      * @return This builder for chaining.
1220      */
clearState()1221     public Builder clearState() {
1222       state_ = getDefaultInstance().getState();
1223       bitField0_ = (bitField0_ & ~0x00000004);
1224       onChanged();
1225       return this;
1226     }
1227     /**
1228      *
1229      *
1230      * <pre>
1231      * [Output Only] The current state of a scaling schedule.
1232      * Check the State enum for the list of possible values.
1233      * </pre>
1234      *
1235      * <code>optional string state = 109757585;</code>
1236      *
1237      * @param value The bytes for state to set.
1238      * @return This builder for chaining.
1239      */
setStateBytes(com.google.protobuf.ByteString value)1240     public Builder setStateBytes(com.google.protobuf.ByteString value) {
1241       if (value == null) {
1242         throw new NullPointerException();
1243       }
1244       checkByteStringIsUtf8(value);
1245       state_ = value;
1246       bitField0_ |= 0x00000004;
1247       onChanged();
1248       return this;
1249     }
1250 
1251     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1252     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1253       return super.setUnknownFields(unknownFields);
1254     }
1255 
1256     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1257     public final Builder mergeUnknownFields(
1258         final com.google.protobuf.UnknownFieldSet unknownFields) {
1259       return super.mergeUnknownFields(unknownFields);
1260     }
1261 
1262     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.ScalingScheduleStatus)
1263   }
1264 
1265   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ScalingScheduleStatus)
1266   private static final com.google.cloud.compute.v1.ScalingScheduleStatus DEFAULT_INSTANCE;
1267 
1268   static {
1269     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ScalingScheduleStatus();
1270   }
1271 
getDefaultInstance()1272   public static com.google.cloud.compute.v1.ScalingScheduleStatus getDefaultInstance() {
1273     return DEFAULT_INSTANCE;
1274   }
1275 
1276   private static final com.google.protobuf.Parser<ScalingScheduleStatus> PARSER =
1277       new com.google.protobuf.AbstractParser<ScalingScheduleStatus>() {
1278         @java.lang.Override
1279         public ScalingScheduleStatus parsePartialFrom(
1280             com.google.protobuf.CodedInputStream input,
1281             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1282             throws com.google.protobuf.InvalidProtocolBufferException {
1283           Builder builder = newBuilder();
1284           try {
1285             builder.mergeFrom(input, extensionRegistry);
1286           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1287             throw e.setUnfinishedMessage(builder.buildPartial());
1288           } catch (com.google.protobuf.UninitializedMessageException e) {
1289             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1290           } catch (java.io.IOException e) {
1291             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1292                 .setUnfinishedMessage(builder.buildPartial());
1293           }
1294           return builder.buildPartial();
1295         }
1296       };
1297 
parser()1298   public static com.google.protobuf.Parser<ScalingScheduleStatus> parser() {
1299     return PARSER;
1300   }
1301 
1302   @java.lang.Override
getParserForType()1303   public com.google.protobuf.Parser<ScalingScheduleStatus> getParserForType() {
1304     return PARSER;
1305   }
1306 
1307   @java.lang.Override
getDefaultInstanceForType()1308   public com.google.cloud.compute.v1.ScalingScheduleStatus getDefaultInstanceForType() {
1309     return DEFAULT_INSTANCE;
1310   }
1311 }
1312