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/area120/tables/v1alpha1/tables.proto 18 19 package com.google.area120.tables.v1alpha1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Column identifier used for the values in the row. 26 * </pre> 27 * 28 * Protobuf enum {@code google.area120.tables.v1alpha1.View} 29 */ 30 public enum View implements com.google.protobuf.ProtocolMessageEnum { 31 /** 32 * 33 * 34 * <pre> 35 * Defaults to user entered text. 36 * </pre> 37 * 38 * <code>VIEW_UNSPECIFIED = 0;</code> 39 */ 40 VIEW_UNSPECIFIED(0), 41 /** 42 * 43 * 44 * <pre> 45 * Uses internally generated column id to identify values. 46 * </pre> 47 * 48 * <code>COLUMN_ID_VIEW = 1;</code> 49 */ 50 COLUMN_ID_VIEW(1), 51 UNRECOGNIZED(-1), 52 ; 53 54 /** 55 * 56 * 57 * <pre> 58 * Defaults to user entered text. 59 * </pre> 60 * 61 * <code>VIEW_UNSPECIFIED = 0;</code> 62 */ 63 public static final int VIEW_UNSPECIFIED_VALUE = 0; 64 /** 65 * 66 * 67 * <pre> 68 * Uses internally generated column id to identify values. 69 * </pre> 70 * 71 * <code>COLUMN_ID_VIEW = 1;</code> 72 */ 73 public static final int COLUMN_ID_VIEW_VALUE = 1; 74 getNumber()75 public final int getNumber() { 76 if (this == UNRECOGNIZED) { 77 throw new java.lang.IllegalArgumentException( 78 "Can't get the number of an unknown enum value."); 79 } 80 return value; 81 } 82 83 /** 84 * @param value The numeric wire value of the corresponding enum entry. 85 * @return The enum associated with the given numeric wire value. 86 * @deprecated Use {@link #forNumber(int)} instead. 87 */ 88 @java.lang.Deprecated valueOf(int value)89 public static View valueOf(int value) { 90 return forNumber(value); 91 } 92 93 /** 94 * @param value The numeric wire value of the corresponding enum entry. 95 * @return The enum associated with the given numeric wire value. 96 */ forNumber(int value)97 public static View forNumber(int value) { 98 switch (value) { 99 case 0: 100 return VIEW_UNSPECIFIED; 101 case 1: 102 return COLUMN_ID_VIEW; 103 default: 104 return null; 105 } 106 } 107 internalGetValueMap()108 public static com.google.protobuf.Internal.EnumLiteMap<View> internalGetValueMap() { 109 return internalValueMap; 110 } 111 112 private static final com.google.protobuf.Internal.EnumLiteMap<View> internalValueMap = 113 new com.google.protobuf.Internal.EnumLiteMap<View>() { 114 public View findValueByNumber(int number) { 115 return View.forNumber(number); 116 } 117 }; 118 getValueDescriptor()119 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 120 if (this == UNRECOGNIZED) { 121 throw new java.lang.IllegalStateException( 122 "Can't get the descriptor of an unrecognized enum value."); 123 } 124 return getDescriptor().getValues().get(ordinal()); 125 } 126 getDescriptorForType()127 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 128 return getDescriptor(); 129 } 130 getDescriptor()131 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 132 return com.google.area120.tables.v1alpha1.TablesProto.getDescriptor().getEnumTypes().get(0); 133 } 134 135 private static final View[] VALUES = values(); 136 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)137 public static View valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 138 if (desc.getType() != getDescriptor()) { 139 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 140 } 141 if (desc.getIndex() == -1) { 142 return UNRECOGNIZED; 143 } 144 return VALUES[desc.getIndex()]; 145 } 146 147 private final int value; 148 View(int value)149 private View(int value) { 150 this.value = value; 151 } 152 153 // @@protoc_insertion_point(enum_scope:google.area120.tables.v1alpha1.View) 154 } 155