All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.bloombox.schema.services.shop.VerifyError Maven / Gradle / Ivy

There is a newer version: 1.8
Show newest version
/*
 * Copyright 2017, Bloombox, LLC. All rights reserved.
 *
 * Source and object computer code contained herein is the private intellectual property
 * of Bloombox, a California Limited Liability Corporation. Use of this code in source form
 * requires permission in writing before use or the publishing of derivative works, for
 * commercial purposes or any other purpose, from a duly authorized officer of Momentum
 * Ideas Co.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: shop/v1/ShopService_v1.proto

package io.bloombox.schema.services.shop;

/**
 * 
 * Enumerates errors that may prevent a user from being considered eligible for express and delivery orders.
 * 
* * Protobuf enum {@code services.shop.v1.VerifyError} */ public enum VerifyError implements com.google.protobuf.ProtocolMessageEnum { /** *
   * The user could not be found at all.
   * 
* * NOT_FOUND = 0; */ NOT_FOUND(0), /** *
   * The user was found, but their rec was expired.
   * 
* * REC_EXPIRED = 1; */ REC_EXPIRED(1), /** *
   * The user was found, but their ID was expired.
   * 
* * ID_EXPIRED = 2; */ ID_EXPIRED(2), /** *
   * The payload was invalid - usually an invalid email address.
   * 
* * INVALID_PAYLOAD = 3; */ INVALID_PAYLOAD(3), /** *
   * Generic error that indicates the user is not eligible.
   * 
* * NOT_ELIGIBLE = 4; */ NOT_ELIGIBLE(4), UNRECOGNIZED(-1), ; /** *
   * The user could not be found at all.
   * 
* * NOT_FOUND = 0; */ public static final int NOT_FOUND_VALUE = 0; /** *
   * The user was found, but their rec was expired.
   * 
* * REC_EXPIRED = 1; */ public static final int REC_EXPIRED_VALUE = 1; /** *
   * The user was found, but their ID was expired.
   * 
* * ID_EXPIRED = 2; */ public static final int ID_EXPIRED_VALUE = 2; /** *
   * The payload was invalid - usually an invalid email address.
   * 
* * INVALID_PAYLOAD = 3; */ public static final int INVALID_PAYLOAD_VALUE = 3; /** *
   * Generic error that indicates the user is not eligible.
   * 
* * NOT_ELIGIBLE = 4; */ public static final int NOT_ELIGIBLE_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static VerifyError valueOf(int value) { return forNumber(value); } public static VerifyError forNumber(int value) { switch (value) { case 0: return NOT_FOUND; case 1: return REC_EXPIRED; case 2: return ID_EXPIRED; case 3: return INVALID_PAYLOAD; case 4: return NOT_ELIGIBLE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< VerifyError> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public VerifyError findValueByNumber(int number) { return VerifyError.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.bloombox.schema.services.shop.ShopServiceV1.getDescriptor().getEnumTypes().get(0); } private static final VerifyError[] VALUES = values(); public static VerifyError valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private VerifyError(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:services.shop.v1.VerifyError) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy