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 * An enum that represents the job posting region. In most cases, job postings 26 * don't need to specify a region. If a region is given, jobs are 27 * eligible for searches in the specified region. 28 * </pre> 29 * 30 * Protobuf enum {@code google.cloud.talent.v4.PostingRegion} 31 */ 32 public enum PostingRegion implements com.google.protobuf.ProtocolMessageEnum { 33 /** 34 * 35 * 36 * <pre> 37 * If the region is unspecified, the job is only returned if it 38 * matches the [LocationFilter][google.cloud.talent.v4.LocationFilter]. 39 * </pre> 40 * 41 * <code>POSTING_REGION_UNSPECIFIED = 0;</code> 42 */ 43 POSTING_REGION_UNSPECIFIED(0), 44 /** 45 * 46 * 47 * <pre> 48 * In addition to exact location matching, job posting is returned when the 49 * [LocationFilter][google.cloud.talent.v4.LocationFilter] in the search query 50 * is in the same administrative area as the returned job posting. For 51 * example, if a `ADMINISTRATIVE_AREA` job is posted in "CA, USA", it's 52 * returned if [LocationFilter][google.cloud.talent.v4.LocationFilter] has 53 * "Mountain View". 54 * Administrative area refers to top-level administrative subdivision of this 55 * country. For example, US state, IT region, UK constituent nation and 56 * JP prefecture. 57 * </pre> 58 * 59 * <code>ADMINISTRATIVE_AREA = 1;</code> 60 */ 61 ADMINISTRATIVE_AREA(1), 62 /** 63 * 64 * 65 * <pre> 66 * In addition to exact location matching, job is returned when 67 * [LocationFilter][google.cloud.talent.v4.LocationFilter] in search query is 68 * in the same country as this job. For example, if a `NATION_WIDE` job is 69 * posted in "USA", it's returned if 70 * [LocationFilter][google.cloud.talent.v4.LocationFilter] has 'Mountain 71 * View'. 72 * </pre> 73 * 74 * <code>NATION = 2;</code> 75 */ 76 NATION(2), 77 /** 78 * 79 * 80 * <pre> 81 * Job allows employees to work remotely (telecommute). 82 * If locations are provided with this value, the job is 83 * considered as having a location, but telecommuting is allowed. 84 * </pre> 85 * 86 * <code>TELECOMMUTE = 3;</code> 87 */ 88 TELECOMMUTE(3), 89 UNRECOGNIZED(-1), 90 ; 91 92 /** 93 * 94 * 95 * <pre> 96 * If the region is unspecified, the job is only returned if it 97 * matches the [LocationFilter][google.cloud.talent.v4.LocationFilter]. 98 * </pre> 99 * 100 * <code>POSTING_REGION_UNSPECIFIED = 0;</code> 101 */ 102 public static final int POSTING_REGION_UNSPECIFIED_VALUE = 0; 103 /** 104 * 105 * 106 * <pre> 107 * In addition to exact location matching, job posting is returned when the 108 * [LocationFilter][google.cloud.talent.v4.LocationFilter] in the search query 109 * is in the same administrative area as the returned job posting. For 110 * example, if a `ADMINISTRATIVE_AREA` job is posted in "CA, USA", it's 111 * returned if [LocationFilter][google.cloud.talent.v4.LocationFilter] has 112 * "Mountain View". 113 * Administrative area refers to top-level administrative subdivision of this 114 * country. For example, US state, IT region, UK constituent nation and 115 * JP prefecture. 116 * </pre> 117 * 118 * <code>ADMINISTRATIVE_AREA = 1;</code> 119 */ 120 public static final int ADMINISTRATIVE_AREA_VALUE = 1; 121 /** 122 * 123 * 124 * <pre> 125 * In addition to exact location matching, job is returned when 126 * [LocationFilter][google.cloud.talent.v4.LocationFilter] in search query is 127 * in the same country as this job. For example, if a `NATION_WIDE` job is 128 * posted in "USA", it's returned if 129 * [LocationFilter][google.cloud.talent.v4.LocationFilter] has 'Mountain 130 * View'. 131 * </pre> 132 * 133 * <code>NATION = 2;</code> 134 */ 135 public static final int NATION_VALUE = 2; 136 /** 137 * 138 * 139 * <pre> 140 * Job allows employees to work remotely (telecommute). 141 * If locations are provided with this value, the job is 142 * considered as having a location, but telecommuting is allowed. 143 * </pre> 144 * 145 * <code>TELECOMMUTE = 3;</code> 146 */ 147 public static final int TELECOMMUTE_VALUE = 3; 148 getNumber()149 public final int getNumber() { 150 if (this == UNRECOGNIZED) { 151 throw new java.lang.IllegalArgumentException( 152 "Can't get the number of an unknown enum value."); 153 } 154 return value; 155 } 156 157 /** 158 * @param value The numeric wire value of the corresponding enum entry. 159 * @return The enum associated with the given numeric wire value. 160 * @deprecated Use {@link #forNumber(int)} instead. 161 */ 162 @java.lang.Deprecated valueOf(int value)163 public static PostingRegion valueOf(int value) { 164 return forNumber(value); 165 } 166 167 /** 168 * @param value The numeric wire value of the corresponding enum entry. 169 * @return The enum associated with the given numeric wire value. 170 */ forNumber(int value)171 public static PostingRegion forNumber(int value) { 172 switch (value) { 173 case 0: 174 return POSTING_REGION_UNSPECIFIED; 175 case 1: 176 return ADMINISTRATIVE_AREA; 177 case 2: 178 return NATION; 179 case 3: 180 return TELECOMMUTE; 181 default: 182 return null; 183 } 184 } 185 internalGetValueMap()186 public static com.google.protobuf.Internal.EnumLiteMap<PostingRegion> internalGetValueMap() { 187 return internalValueMap; 188 } 189 190 private static final com.google.protobuf.Internal.EnumLiteMap<PostingRegion> internalValueMap = 191 new com.google.protobuf.Internal.EnumLiteMap<PostingRegion>() { 192 public PostingRegion findValueByNumber(int number) { 193 return PostingRegion.forNumber(number); 194 } 195 }; 196 getValueDescriptor()197 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 198 if (this == UNRECOGNIZED) { 199 throw new java.lang.IllegalStateException( 200 "Can't get the descriptor of an unrecognized enum value."); 201 } 202 return getDescriptor().getValues().get(ordinal()); 203 } 204 getDescriptorForType()205 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 206 return getDescriptor(); 207 } 208 getDescriptor()209 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 210 return com.google.cloud.talent.v4.CommonProto.getDescriptor().getEnumTypes().get(6); 211 } 212 213 private static final PostingRegion[] VALUES = values(); 214 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)215 public static PostingRegion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 216 if (desc.getType() != getDescriptor()) { 217 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 218 } 219 if (desc.getIndex() == -1) { 220 return UNRECOGNIZED; 221 } 222 return VALUES[desc.getIndex()]; 223 } 224 225 private final int value; 226 PostingRegion(int value)227 private PostingRegion(int value) { 228 this.value = value; 229 } 230 231 // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4.PostingRegion) 232 } 233