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 * Deprecated. All resources are only visible to the owner. 26 * An enum that represents who has view access to the resource. 27 * </pre> 28 * 29 * Protobuf enum {@code google.cloud.talent.v4beta1.Visibility} 30 */ 31 @java.lang.Deprecated 32 public enum Visibility implements com.google.protobuf.ProtocolMessageEnum { 33 /** 34 * 35 * 36 * <pre> 37 * Default value. 38 * </pre> 39 * 40 * <code>VISIBILITY_UNSPECIFIED = 0;</code> 41 */ 42 VISIBILITY_UNSPECIFIED(0), 43 /** 44 * 45 * 46 * <pre> 47 * The resource is only visible to the GCP account who owns it. 48 * </pre> 49 * 50 * <code>ACCOUNT_ONLY = 1;</code> 51 */ 52 ACCOUNT_ONLY(1), 53 /** 54 * 55 * 56 * <pre> 57 * The resource is visible to the owner and may be visible to other 58 * applications and processes at Google. 59 * </pre> 60 * 61 * <code>SHARED_WITH_GOOGLE = 2;</code> 62 */ 63 SHARED_WITH_GOOGLE(2), 64 /** 65 * 66 * 67 * <pre> 68 * The resource is visible to the owner and may be visible to all other API 69 * clients. 70 * </pre> 71 * 72 * <code>SHARED_WITH_PUBLIC = 3;</code> 73 */ 74 SHARED_WITH_PUBLIC(3), 75 UNRECOGNIZED(-1), 76 ; 77 78 /** 79 * 80 * 81 * <pre> 82 * Default value. 83 * </pre> 84 * 85 * <code>VISIBILITY_UNSPECIFIED = 0;</code> 86 */ 87 public static final int VISIBILITY_UNSPECIFIED_VALUE = 0; 88 /** 89 * 90 * 91 * <pre> 92 * The resource is only visible to the GCP account who owns it. 93 * </pre> 94 * 95 * <code>ACCOUNT_ONLY = 1;</code> 96 */ 97 public static final int ACCOUNT_ONLY_VALUE = 1; 98 /** 99 * 100 * 101 * <pre> 102 * The resource is visible to the owner and may be visible to other 103 * applications and processes at Google. 104 * </pre> 105 * 106 * <code>SHARED_WITH_GOOGLE = 2;</code> 107 */ 108 public static final int SHARED_WITH_GOOGLE_VALUE = 2; 109 /** 110 * 111 * 112 * <pre> 113 * The resource is visible to the owner and may be visible to all other API 114 * clients. 115 * </pre> 116 * 117 * <code>SHARED_WITH_PUBLIC = 3;</code> 118 */ 119 public static final int SHARED_WITH_PUBLIC_VALUE = 3; 120 getNumber()121 public final int getNumber() { 122 if (this == UNRECOGNIZED) { 123 throw new java.lang.IllegalArgumentException( 124 "Can't get the number of an unknown enum value."); 125 } 126 return value; 127 } 128 129 /** 130 * @param value The numeric wire value of the corresponding enum entry. 131 * @return The enum associated with the given numeric wire value. 132 * @deprecated Use {@link #forNumber(int)} instead. 133 */ 134 @java.lang.Deprecated valueOf(int value)135 public static Visibility valueOf(int value) { 136 return forNumber(value); 137 } 138 139 /** 140 * @param value The numeric wire value of the corresponding enum entry. 141 * @return The enum associated with the given numeric wire value. 142 */ forNumber(int value)143 public static Visibility forNumber(int value) { 144 switch (value) { 145 case 0: 146 return VISIBILITY_UNSPECIFIED; 147 case 1: 148 return ACCOUNT_ONLY; 149 case 2: 150 return SHARED_WITH_GOOGLE; 151 case 3: 152 return SHARED_WITH_PUBLIC; 153 default: 154 return null; 155 } 156 } 157 internalGetValueMap()158 public static com.google.protobuf.Internal.EnumLiteMap<Visibility> internalGetValueMap() { 159 return internalValueMap; 160 } 161 162 private static final com.google.protobuf.Internal.EnumLiteMap<Visibility> internalValueMap = 163 new com.google.protobuf.Internal.EnumLiteMap<Visibility>() { 164 public Visibility findValueByNumber(int number) { 165 return Visibility.forNumber(number); 166 } 167 }; 168 getValueDescriptor()169 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 170 if (this == UNRECOGNIZED) { 171 throw new java.lang.IllegalStateException( 172 "Can't get the descriptor of an unrecognized enum value."); 173 } 174 return getDescriptor().getValues().get(ordinal()); 175 } 176 getDescriptorForType()177 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 178 return getDescriptor(); 179 } 180 getDescriptor()181 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 182 return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(7); 183 } 184 185 private static final Visibility[] VALUES = values(); 186 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)187 public static Visibility valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 188 if (desc.getType() != getDescriptor()) { 189 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 190 } 191 if (desc.getIndex() == -1) { 192 return UNRECOGNIZED; 193 } 194 return VALUES[desc.getIndex()]; 195 } 196 197 private final int value; 198 Visibility(int value)199 private Visibility(int value) { 200 this.value = value; 201 } 202 203 // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Visibility) 204 } 205