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

io.bloombox.schema.services.pos.v1beta1.POSError Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019, Momentum Ideas, Co. All rights reserved.
 *
 * Source and object computer code contained herein is the private intellectual
 * property of Momentum Ideas Co., a Delaware Corporation. Use of this
 * code in source form requires permission in writing before use or the
 * assembly, distribution, or 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: pos/v1beta1/POSService_Beta1.proto

package io.bloombox.schema.services.pos.v1beta1;

/**
 * 
 * Enumerates error states that may be served from the POS service.
 * 
* * Protobuf enum {@code bloombox.services.pos.v1beta1.POSError} */ public enum POSError implements com.google.protobuf.ProtocolMessageEnum { /** *
   * An unknown internal error occurred.
   * 
* * NO_ERROR = 0; */ NO_ERROR(0), /** *
   * The partner code was missing or found to be invalid.
   * 
* * INVALID_PARTNER = 1; */ INVALID_PARTNER(1), /** *
   * The location code was missing or found to be invalid.
   * 
* * INVALID_LOCATION = 2; */ INVALID_LOCATION(2), /** *
   * The device key was missing or found to be invalid.
   * 
* * INVALID_DEVICE = 3; */ INVALID_DEVICE(3), /** *
   * The specified ID token was invalid or missing.
   * 
* * INVALID_ID_TOKEN = 4; */ INVALID_ID_TOKEN(4), /** *
   * The device's signature was invalid or missing.
   * 
* * INVALID_DEVICE_SIGNATURE = 5; */ INVALID_DEVICE_SIGNATURE(5), /** *
   * Invalid purchase payload.
   * 
* * INVALID_TICKET = 6; */ INVALID_TICKET(6), /** *
   * Invalid purchase key.
   * 
* * INVALID_TICKET_KEY = 7; */ INVALID_TICKET_KEY(7), /** *
   * Purchase signature could not be validated.
   * 
* * INVALID_TICKET_SIGNATURE = 8; */ INVALID_TICKET_SIGNATURE(8), /** *
   * An invalid timestamp was provided.
   * 
* * INVALID_TIMESTAMP = 9; */ INVALID_TIMESTAMP(9), /** *
   * Unable to locate the specified device.
   * 
* * DEVICE_NOT_FOUND = 10; */ DEVICE_NOT_FOUND(10), /** *
   * Unable to locate the specified session.
   * 
* * SESSION_NOT_FOUND = 11; */ SESSION_NOT_FOUND(11), /** *
   * Specifies an illegal session state.
   * 
* * SESSION_CONFLICT = 12; */ SESSION_CONFLICT(12), /** *
   * The given purchase was structurally invalid.
   * 
* * ILLEGAL_TICKET_STRUCTURE = 20; */ ILLEGAL_TICKET_STRUCTURE(20), /** *
   * The specified ticket version is out of date or invalid.
   * 
* * ILLEGAL_TICKET_VERSION = 21; */ ILLEGAL_TICKET_VERSION(21), /** *
   * The provided timestamp occurs before the last known event.
   * 
* * ILLEGAL_TIMESTAMP = 22; */ ILLEGAL_TIMESTAMP(22), /** *
   * Purchase could not be found.
   * 
* * TICKET_NOT_FOUND = 30; */ TICKET_NOT_FOUND(30), /** *
   * There was a conflict preventing the ticket operation.
   * 
* * TICKET_CONFLICT = 31; */ TICKET_CONFLICT(31), /** *
   * The ticket in question is currently claimed and cannot be claimed again until closed.
   * 
* * TICKET_CLAIMED = 32; */ TICKET_CLAIMED(32), /** *
   * Generic invalid request.
   * 
* * INVALID_REQUEST = 96; */ INVALID_REQUEST(96), /** *
   * Access was denied due to authorization failure.
   * 
* * AUTHORIZATION_DENIED = 97; */ AUTHORIZATION_DENIED(97), /** *
   * Access cannot be granted due to a conflict.
   * 
* * ACCESS_CONFLICT = 98; */ ACCESS_CONFLICT(98), /** *
   * An internal error occurred.
   * 
* * INTERNAL_ERROR = 99; */ INTERNAL_ERROR(99), UNRECOGNIZED(-1), ; /** *
   * An unknown internal error occurred.
   * 
* * NO_ERROR = 0; */ public static final int NO_ERROR_VALUE = 0; /** *
   * The partner code was missing or found to be invalid.
   * 
* * INVALID_PARTNER = 1; */ public static final int INVALID_PARTNER_VALUE = 1; /** *
   * The location code was missing or found to be invalid.
   * 
* * INVALID_LOCATION = 2; */ public static final int INVALID_LOCATION_VALUE = 2; /** *
   * The device key was missing or found to be invalid.
   * 
* * INVALID_DEVICE = 3; */ public static final int INVALID_DEVICE_VALUE = 3; /** *
   * The specified ID token was invalid or missing.
   * 
* * INVALID_ID_TOKEN = 4; */ public static final int INVALID_ID_TOKEN_VALUE = 4; /** *
   * The device's signature was invalid or missing.
   * 
* * INVALID_DEVICE_SIGNATURE = 5; */ public static final int INVALID_DEVICE_SIGNATURE_VALUE = 5; /** *
   * Invalid purchase payload.
   * 
* * INVALID_TICKET = 6; */ public static final int INVALID_TICKET_VALUE = 6; /** *
   * Invalid purchase key.
   * 
* * INVALID_TICKET_KEY = 7; */ public static final int INVALID_TICKET_KEY_VALUE = 7; /** *
   * Purchase signature could not be validated.
   * 
* * INVALID_TICKET_SIGNATURE = 8; */ public static final int INVALID_TICKET_SIGNATURE_VALUE = 8; /** *
   * An invalid timestamp was provided.
   * 
* * INVALID_TIMESTAMP = 9; */ public static final int INVALID_TIMESTAMP_VALUE = 9; /** *
   * Unable to locate the specified device.
   * 
* * DEVICE_NOT_FOUND = 10; */ public static final int DEVICE_NOT_FOUND_VALUE = 10; /** *
   * Unable to locate the specified session.
   * 
* * SESSION_NOT_FOUND = 11; */ public static final int SESSION_NOT_FOUND_VALUE = 11; /** *
   * Specifies an illegal session state.
   * 
* * SESSION_CONFLICT = 12; */ public static final int SESSION_CONFLICT_VALUE = 12; /** *
   * The given purchase was structurally invalid.
   * 
* * ILLEGAL_TICKET_STRUCTURE = 20; */ public static final int ILLEGAL_TICKET_STRUCTURE_VALUE = 20; /** *
   * The specified ticket version is out of date or invalid.
   * 
* * ILLEGAL_TICKET_VERSION = 21; */ public static final int ILLEGAL_TICKET_VERSION_VALUE = 21; /** *
   * The provided timestamp occurs before the last known event.
   * 
* * ILLEGAL_TIMESTAMP = 22; */ public static final int ILLEGAL_TIMESTAMP_VALUE = 22; /** *
   * Purchase could not be found.
   * 
* * TICKET_NOT_FOUND = 30; */ public static final int TICKET_NOT_FOUND_VALUE = 30; /** *
   * There was a conflict preventing the ticket operation.
   * 
* * TICKET_CONFLICT = 31; */ public static final int TICKET_CONFLICT_VALUE = 31; /** *
   * The ticket in question is currently claimed and cannot be claimed again until closed.
   * 
* * TICKET_CLAIMED = 32; */ public static final int TICKET_CLAIMED_VALUE = 32; /** *
   * Generic invalid request.
   * 
* * INVALID_REQUEST = 96; */ public static final int INVALID_REQUEST_VALUE = 96; /** *
   * Access was denied due to authorization failure.
   * 
* * AUTHORIZATION_DENIED = 97; */ public static final int AUTHORIZATION_DENIED_VALUE = 97; /** *
   * Access cannot be granted due to a conflict.
   * 
* * ACCESS_CONFLICT = 98; */ public static final int ACCESS_CONFLICT_VALUE = 98; /** *
   * An internal error occurred.
   * 
* * INTERNAL_ERROR = 99; */ public static final int INTERNAL_ERROR_VALUE = 99; 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 POSError valueOf(int value) { return forNumber(value); } public static POSError forNumber(int value) { switch (value) { case 0: return NO_ERROR; case 1: return INVALID_PARTNER; case 2: return INVALID_LOCATION; case 3: return INVALID_DEVICE; case 4: return INVALID_ID_TOKEN; case 5: return INVALID_DEVICE_SIGNATURE; case 6: return INVALID_TICKET; case 7: return INVALID_TICKET_KEY; case 8: return INVALID_TICKET_SIGNATURE; case 9: return INVALID_TIMESTAMP; case 10: return DEVICE_NOT_FOUND; case 11: return SESSION_NOT_FOUND; case 12: return SESSION_CONFLICT; case 20: return ILLEGAL_TICKET_STRUCTURE; case 21: return ILLEGAL_TICKET_VERSION; case 22: return ILLEGAL_TIMESTAMP; case 30: return TICKET_NOT_FOUND; case 31: return TICKET_CONFLICT; case 32: return TICKET_CLAIMED; case 96: return INVALID_REQUEST; case 97: return AUTHORIZATION_DENIED; case 98: return ACCESS_CONFLICT; case 99: return INTERNAL_ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< POSError> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public POSError findValueByNumber(int number) { return POSError.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.pos.v1beta1.POSServiceBeta1.getDescriptor().getEnumTypes().get(0); } private static final POSError[] VALUES = values(); public static POSError 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 POSError(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:bloombox.services.pos.v1beta1.POSError) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy