• 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/talent/v4beta1/common.proto
18 
19 package com.google.cloud.talent.v4beta1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Method for commute.
26  * </pre>
27  *
28  * Protobuf enum {@code google.cloud.talent.v4beta1.CommuteMethod}
29  */
30 public enum CommuteMethod implements com.google.protobuf.ProtocolMessageEnum {
31   /**
32    *
33    *
34    * <pre>
35    * Commute method isn't specified.
36    * </pre>
37    *
38    * <code>COMMUTE_METHOD_UNSPECIFIED = 0;</code>
39    */
40   COMMUTE_METHOD_UNSPECIFIED(0),
41   /**
42    *
43    *
44    * <pre>
45    * Commute time is calculated based on driving time.
46    * </pre>
47    *
48    * <code>DRIVING = 1;</code>
49    */
50   DRIVING(1),
51   /**
52    *
53    *
54    * <pre>
55    * Commute time is calculated based on public transit including bus, metro,
56    * subway, and so on.
57    * </pre>
58    *
59    * <code>TRANSIT = 2;</code>
60    */
61   TRANSIT(2),
62   /**
63    *
64    *
65    * <pre>
66    * Commute time is calculated based on walking time.
67    * </pre>
68    *
69    * <code>WALKING = 3;</code>
70    */
71   WALKING(3),
72   /**
73    *
74    *
75    * <pre>
76    * Commute time is calculated based on biking time.
77    * </pre>
78    *
79    * <code>CYCLING = 4;</code>
80    */
81   CYCLING(4),
82   UNRECOGNIZED(-1),
83   ;
84 
85   /**
86    *
87    *
88    * <pre>
89    * Commute method isn't specified.
90    * </pre>
91    *
92    * <code>COMMUTE_METHOD_UNSPECIFIED = 0;</code>
93    */
94   public static final int COMMUTE_METHOD_UNSPECIFIED_VALUE = 0;
95   /**
96    *
97    *
98    * <pre>
99    * Commute time is calculated based on driving time.
100    * </pre>
101    *
102    * <code>DRIVING = 1;</code>
103    */
104   public static final int DRIVING_VALUE = 1;
105   /**
106    *
107    *
108    * <pre>
109    * Commute time is calculated based on public transit including bus, metro,
110    * subway, and so on.
111    * </pre>
112    *
113    * <code>TRANSIT = 2;</code>
114    */
115   public static final int TRANSIT_VALUE = 2;
116   /**
117    *
118    *
119    * <pre>
120    * Commute time is calculated based on walking time.
121    * </pre>
122    *
123    * <code>WALKING = 3;</code>
124    */
125   public static final int WALKING_VALUE = 3;
126   /**
127    *
128    *
129    * <pre>
130    * Commute time is calculated based on biking time.
131    * </pre>
132    *
133    * <code>CYCLING = 4;</code>
134    */
135   public static final int CYCLING_VALUE = 4;
136 
getNumber()137   public final int getNumber() {
138     if (this == UNRECOGNIZED) {
139       throw new java.lang.IllegalArgumentException(
140           "Can't get the number of an unknown enum value.");
141     }
142     return value;
143   }
144 
145   /**
146    * @param value The numeric wire value of the corresponding enum entry.
147    * @return The enum associated with the given numeric wire value.
148    * @deprecated Use {@link #forNumber(int)} instead.
149    */
150   @java.lang.Deprecated
valueOf(int value)151   public static CommuteMethod valueOf(int value) {
152     return forNumber(value);
153   }
154 
155   /**
156    * @param value The numeric wire value of the corresponding enum entry.
157    * @return The enum associated with the given numeric wire value.
158    */
forNumber(int value)159   public static CommuteMethod forNumber(int value) {
160     switch (value) {
161       case 0:
162         return COMMUTE_METHOD_UNSPECIFIED;
163       case 1:
164         return DRIVING;
165       case 2:
166         return TRANSIT;
167       case 3:
168         return WALKING;
169       case 4:
170         return CYCLING;
171       default:
172         return null;
173     }
174   }
175 
internalGetValueMap()176   public static com.google.protobuf.Internal.EnumLiteMap<CommuteMethod> internalGetValueMap() {
177     return internalValueMap;
178   }
179 
180   private static final com.google.protobuf.Internal.EnumLiteMap<CommuteMethod> internalValueMap =
181       new com.google.protobuf.Internal.EnumLiteMap<CommuteMethod>() {
182         public CommuteMethod findValueByNumber(int number) {
183           return CommuteMethod.forNumber(number);
184         }
185       };
186 
getValueDescriptor()187   public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
188     if (this == UNRECOGNIZED) {
189       throw new java.lang.IllegalStateException(
190           "Can't get the descriptor of an unrecognized enum value.");
191     }
192     return getDescriptor().getValues().get(ordinal());
193   }
194 
getDescriptorForType()195   public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
196     return getDescriptor();
197   }
198 
getDescriptor()199   public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
200     return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(9);
201   }
202 
203   private static final CommuteMethod[] VALUES = values();
204 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)205   public static CommuteMethod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
206     if (desc.getType() != getDescriptor()) {
207       throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
208     }
209     if (desc.getIndex() == -1) {
210       return UNRECOGNIZED;
211     }
212     return VALUES[desc.getIndex()];
213   }
214 
215   private final int value;
216 
CommuteMethod(int value)217   private CommuteMethod(int value) {
218     this.value = value;
219   }
220 
221   // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CommuteMethod)
222 }
223