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/channel/v1/channel_partner_links.proto 18 19 package com.google.cloud.channel.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * The level of granularity the 26 * [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] will 27 * display. 28 * </pre> 29 * 30 * Protobuf enum {@code google.cloud.channel.v1.ChannelPartnerLinkView} 31 */ 32 public enum ChannelPartnerLinkView implements com.google.protobuf.ProtocolMessageEnum { 33 /** 34 * 35 * 36 * <pre> 37 * The default / unset value. 38 * The API will default to the BASIC view. 39 * </pre> 40 * 41 * <code>UNSPECIFIED = 0;</code> 42 */ 43 UNSPECIFIED(0), 44 /** 45 * 46 * 47 * <pre> 48 * Includes all fields except the 49 * [ChannelPartnerLink.channel_partner_cloud_identity_info][google.cloud.channel.v1.ChannelPartnerLink.channel_partner_cloud_identity_info]. 50 * </pre> 51 * 52 * <code>BASIC = 1;</code> 53 */ 54 BASIC(1), 55 /** 56 * 57 * 58 * <pre> 59 * Includes all fields. 60 * </pre> 61 * 62 * <code>FULL = 2;</code> 63 */ 64 FULL(2), 65 UNRECOGNIZED(-1), 66 ; 67 68 /** 69 * 70 * 71 * <pre> 72 * The default / unset value. 73 * The API will default to the BASIC view. 74 * </pre> 75 * 76 * <code>UNSPECIFIED = 0;</code> 77 */ 78 public static final int UNSPECIFIED_VALUE = 0; 79 /** 80 * 81 * 82 * <pre> 83 * Includes all fields except the 84 * [ChannelPartnerLink.channel_partner_cloud_identity_info][google.cloud.channel.v1.ChannelPartnerLink.channel_partner_cloud_identity_info]. 85 * </pre> 86 * 87 * <code>BASIC = 1;</code> 88 */ 89 public static final int BASIC_VALUE = 1; 90 /** 91 * 92 * 93 * <pre> 94 * Includes all fields. 95 * </pre> 96 * 97 * <code>FULL = 2;</code> 98 */ 99 public static final int FULL_VALUE = 2; 100 getNumber()101 public final int getNumber() { 102 if (this == UNRECOGNIZED) { 103 throw new java.lang.IllegalArgumentException( 104 "Can't get the number of an unknown enum value."); 105 } 106 return value; 107 } 108 109 /** 110 * @param value The numeric wire value of the corresponding enum entry. 111 * @return The enum associated with the given numeric wire value. 112 * @deprecated Use {@link #forNumber(int)} instead. 113 */ 114 @java.lang.Deprecated valueOf(int value)115 public static ChannelPartnerLinkView valueOf(int value) { 116 return forNumber(value); 117 } 118 119 /** 120 * @param value The numeric wire value of the corresponding enum entry. 121 * @return The enum associated with the given numeric wire value. 122 */ forNumber(int value)123 public static ChannelPartnerLinkView forNumber(int value) { 124 switch (value) { 125 case 0: 126 return UNSPECIFIED; 127 case 1: 128 return BASIC; 129 case 2: 130 return FULL; 131 default: 132 return null; 133 } 134 } 135 136 public static com.google.protobuf.Internal.EnumLiteMap<ChannelPartnerLinkView> internalGetValueMap()137 internalGetValueMap() { 138 return internalValueMap; 139 } 140 141 private static final com.google.protobuf.Internal.EnumLiteMap<ChannelPartnerLinkView> 142 internalValueMap = 143 new com.google.protobuf.Internal.EnumLiteMap<ChannelPartnerLinkView>() { 144 public ChannelPartnerLinkView findValueByNumber(int number) { 145 return ChannelPartnerLinkView.forNumber(number); 146 } 147 }; 148 getValueDescriptor()149 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 150 if (this == UNRECOGNIZED) { 151 throw new java.lang.IllegalStateException( 152 "Can't get the descriptor of an unrecognized enum value."); 153 } 154 return getDescriptor().getValues().get(ordinal()); 155 } 156 getDescriptorForType()157 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 158 return getDescriptor(); 159 } 160 getDescriptor()161 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 162 return com.google.cloud.channel.v1.ChannelPartnerLinksProto.getDescriptor() 163 .getEnumTypes() 164 .get(0); 165 } 166 167 private static final ChannelPartnerLinkView[] VALUES = values(); 168 valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)169 public static ChannelPartnerLinkView valueOf( 170 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 171 if (desc.getType() != getDescriptor()) { 172 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 173 } 174 if (desc.getIndex() == -1) { 175 return UNRECOGNIZED; 176 } 177 return VALUES[desc.getIndex()]; 178 } 179 180 private final int value; 181 ChannelPartnerLinkView(int value)182 private ChannelPartnerLinkView(int value) { 183 this.value = value; 184 } 185 186 // @@protoc_insertion_point(enum_scope:google.cloud.channel.v1.ChannelPartnerLinkView) 187 } 188