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