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/job_service.proto 18 19 package com.google.cloud.talent.v4; 20 21 /** 22 * 23 * 24 * <pre> 25 * An enum that specifies the job attributes that are returned in the 26 * [MatchingJob.job][google.cloud.talent.v4.SearchJobsResponse.MatchingJob.job] 27 * or [ListJobsResponse.jobs][google.cloud.talent.v4.ListJobsResponse.jobs] 28 * fields. 29 * </pre> 30 * 31 * Protobuf enum {@code google.cloud.talent.v4.JobView} 32 */ 33 public enum JobView implements com.google.protobuf.ProtocolMessageEnum { 34 /** 35 * 36 * 37 * <pre> 38 * Default value. 39 * </pre> 40 * 41 * <code>JOB_VIEW_UNSPECIFIED = 0;</code> 42 */ 43 JOB_VIEW_UNSPECIFIED(0), 44 /** 45 * 46 * 47 * <pre> 48 * A ID only view of job, with following attributes: 49 * [Job.name][google.cloud.talent.v4.Job.name], 50 * [Job.requisition_id][google.cloud.talent.v4.Job.requisition_id], 51 * [Job.language_code][google.cloud.talent.v4.Job.language_code]. 52 * </pre> 53 * 54 * <code>JOB_VIEW_ID_ONLY = 1;</code> 55 */ 56 JOB_VIEW_ID_ONLY(1), 57 /** 58 * 59 * 60 * <pre> 61 * A minimal view of the job, with the following attributes: 62 * [Job.name][google.cloud.talent.v4.Job.name], 63 * [Job.requisition_id][google.cloud.talent.v4.Job.requisition_id], 64 * [Job.title][google.cloud.talent.v4.Job.title], 65 * [Job.company][google.cloud.talent.v4.Job.company], 66 * [Job.DerivedInfo.locations][google.cloud.talent.v4.Job.DerivedInfo.locations], 67 * [Job.language_code][google.cloud.talent.v4.Job.language_code]. 68 * </pre> 69 * 70 * <code>JOB_VIEW_MINIMAL = 2;</code> 71 */ 72 JOB_VIEW_MINIMAL(2), 73 /** 74 * 75 * 76 * <pre> 77 * A small view of the job, with the following attributes in the search 78 * results: [Job.name][google.cloud.talent.v4.Job.name], 79 * [Job.requisition_id][google.cloud.talent.v4.Job.requisition_id], 80 * [Job.title][google.cloud.talent.v4.Job.title], 81 * [Job.company][google.cloud.talent.v4.Job.company], 82 * [Job.DerivedInfo.locations][google.cloud.talent.v4.Job.DerivedInfo.locations], 83 * [Job.visibility][google.cloud.talent.v4.Job.visibility], 84 * [Job.language_code][google.cloud.talent.v4.Job.language_code], 85 * [Job.description][google.cloud.talent.v4.Job.description]. 86 * </pre> 87 * 88 * <code>JOB_VIEW_SMALL = 3;</code> 89 */ 90 JOB_VIEW_SMALL(3), 91 /** 92 * 93 * 94 * <pre> 95 * All available attributes are included in the search results. 96 * </pre> 97 * 98 * <code>JOB_VIEW_FULL = 4;</code> 99 */ 100 JOB_VIEW_FULL(4), 101 UNRECOGNIZED(-1), 102 ; 103 104 /** 105 * 106 * 107 * <pre> 108 * Default value. 109 * </pre> 110 * 111 * <code>JOB_VIEW_UNSPECIFIED = 0;</code> 112 */ 113 public static final int JOB_VIEW_UNSPECIFIED_VALUE = 0; 114 /** 115 * 116 * 117 * <pre> 118 * A ID only view of job, with following attributes: 119 * [Job.name][google.cloud.talent.v4.Job.name], 120 * [Job.requisition_id][google.cloud.talent.v4.Job.requisition_id], 121 * [Job.language_code][google.cloud.talent.v4.Job.language_code]. 122 * </pre> 123 * 124 * <code>JOB_VIEW_ID_ONLY = 1;</code> 125 */ 126 public static final int JOB_VIEW_ID_ONLY_VALUE = 1; 127 /** 128 * 129 * 130 * <pre> 131 * A minimal view of the job, with the following attributes: 132 * [Job.name][google.cloud.talent.v4.Job.name], 133 * [Job.requisition_id][google.cloud.talent.v4.Job.requisition_id], 134 * [Job.title][google.cloud.talent.v4.Job.title], 135 * [Job.company][google.cloud.talent.v4.Job.company], 136 * [Job.DerivedInfo.locations][google.cloud.talent.v4.Job.DerivedInfo.locations], 137 * [Job.language_code][google.cloud.talent.v4.Job.language_code]. 138 * </pre> 139 * 140 * <code>JOB_VIEW_MINIMAL = 2;</code> 141 */ 142 public static final int JOB_VIEW_MINIMAL_VALUE = 2; 143 /** 144 * 145 * 146 * <pre> 147 * A small view of the job, with the following attributes in the search 148 * results: [Job.name][google.cloud.talent.v4.Job.name], 149 * [Job.requisition_id][google.cloud.talent.v4.Job.requisition_id], 150 * [Job.title][google.cloud.talent.v4.Job.title], 151 * [Job.company][google.cloud.talent.v4.Job.company], 152 * [Job.DerivedInfo.locations][google.cloud.talent.v4.Job.DerivedInfo.locations], 153 * [Job.visibility][google.cloud.talent.v4.Job.visibility], 154 * [Job.language_code][google.cloud.talent.v4.Job.language_code], 155 * [Job.description][google.cloud.talent.v4.Job.description]. 156 * </pre> 157 * 158 * <code>JOB_VIEW_SMALL = 3;</code> 159 */ 160 public static final int JOB_VIEW_SMALL_VALUE = 3; 161 /** 162 * 163 * 164 * <pre> 165 * All available attributes are included in the search results. 166 * </pre> 167 * 168 * <code>JOB_VIEW_FULL = 4;</code> 169 */ 170 public static final int JOB_VIEW_FULL_VALUE = 4; 171 getNumber()172 public final int getNumber() { 173 if (this == UNRECOGNIZED) { 174 throw new java.lang.IllegalArgumentException( 175 "Can't get the number of an unknown enum value."); 176 } 177 return value; 178 } 179 180 /** 181 * @param value The numeric wire value of the corresponding enum entry. 182 * @return The enum associated with the given numeric wire value. 183 * @deprecated Use {@link #forNumber(int)} instead. 184 */ 185 @java.lang.Deprecated valueOf(int value)186 public static JobView valueOf(int value) { 187 return forNumber(value); 188 } 189 190 /** 191 * @param value The numeric wire value of the corresponding enum entry. 192 * @return The enum associated with the given numeric wire value. 193 */ forNumber(int value)194 public static JobView forNumber(int value) { 195 switch (value) { 196 case 0: 197 return JOB_VIEW_UNSPECIFIED; 198 case 1: 199 return JOB_VIEW_ID_ONLY; 200 case 2: 201 return JOB_VIEW_MINIMAL; 202 case 3: 203 return JOB_VIEW_SMALL; 204 case 4: 205 return JOB_VIEW_FULL; 206 default: 207 return null; 208 } 209 } 210 internalGetValueMap()211 public static com.google.protobuf.Internal.EnumLiteMap<JobView> internalGetValueMap() { 212 return internalValueMap; 213 } 214 215 private static final com.google.protobuf.Internal.EnumLiteMap<JobView> internalValueMap = 216 new com.google.protobuf.Internal.EnumLiteMap<JobView>() { 217 public JobView findValueByNumber(int number) { 218 return JobView.forNumber(number); 219 } 220 }; 221 getValueDescriptor()222 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 223 if (this == UNRECOGNIZED) { 224 throw new java.lang.IllegalStateException( 225 "Can't get the descriptor of an unrecognized enum value."); 226 } 227 return getDescriptor().getValues().get(ordinal()); 228 } 229 getDescriptorForType()230 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 231 return getDescriptor(); 232 } 233 getDescriptor()234 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 235 return com.google.cloud.talent.v4.JobServiceProto.getDescriptor().getEnumTypes().get(0); 236 } 237 238 private static final JobView[] VALUES = values(); 239 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)240 public static JobView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 241 if (desc.getType() != getDescriptor()) { 242 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 243 } 244 if (desc.getIndex() == -1) { 245 return UNRECOGNIZED; 246 } 247 return VALUES[desc.getIndex()]; 248 } 249 250 private final int value; 251 JobView(int value)252 private JobView(int value) { 253 this.value = value; 254 } 255 256 // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4.JobView) 257 } 258