
io.bloombox.schema.services.wallet.v1.WalletError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java RPCAPI client for the Bloombox Cloud.
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: wallet/v1/WalletService_v1.proto
package io.bloombox.schema.services.wallet.v1;
/**
*
* Enumerates known errors that may be thrown by wallet operations.
*
*
* Protobuf enum {@code bloombox.services.wallet.v1.WalletError}
*/
public enum WalletError
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* There was no error.
*
*
* NO_ERROR = 0;
*/
NO_ERROR(0),
/**
*
* The specified partner key was invalid.
*
*
* INVALID_PARTNER = 1;
*/
INVALID_PARTNER(1),
/**
*
* The specified location key was invalid.
*
*
* INVALID_LOCATION = 2;
*/
INVALID_LOCATION(2),
/**
*
* The specified device key was invalid.
*
*
* INVALID_DEVICE = 3;
*/
INVALID_DEVICE(3),
/**
*
* The specified ID or authorization token was invalid.
*
*
* INVALID_TOKEN = 4;
*/
INVALID_TOKEN(4),
/**
*
* The subject partner could not be found.
*
*
* PARTNER_NOT_FOUND = 5;
*/
PARTNER_NOT_FOUND(5),
/**
*
* The subject location could not be found.
*
*
* LOCATION_NOT_FOUND = 6;
*/
LOCATION_NOT_FOUND(6),
/**
*
* Generic access-denied-error.
*
*
* ACCESS_DENIED = 98;
*/
ACCESS_DENIED(98),
/**
*
* An internal error was encountered.
*
*
* INTERNAL_ERROR = 99;
*/
INTERNAL_ERROR(99),
UNRECOGNIZED(-1),
;
/**
*
* There was no error.
*
*
* NO_ERROR = 0;
*/
public static final int NO_ERROR_VALUE = 0;
/**
*
* The specified partner key was invalid.
*
*
* INVALID_PARTNER = 1;
*/
public static final int INVALID_PARTNER_VALUE = 1;
/**
*
* The specified location key was invalid.
*
*
* INVALID_LOCATION = 2;
*/
public static final int INVALID_LOCATION_VALUE = 2;
/**
*
* The specified device key was invalid.
*
*
* INVALID_DEVICE = 3;
*/
public static final int INVALID_DEVICE_VALUE = 3;
/**
*
* The specified ID or authorization token was invalid.
*
*
* INVALID_TOKEN = 4;
*/
public static final int INVALID_TOKEN_VALUE = 4;
/**
*
* The subject partner could not be found.
*
*
* PARTNER_NOT_FOUND = 5;
*/
public static final int PARTNER_NOT_FOUND_VALUE = 5;
/**
*
* The subject location could not be found.
*
*
* LOCATION_NOT_FOUND = 6;
*/
public static final int LOCATION_NOT_FOUND_VALUE = 6;
/**
*
* Generic access-denied-error.
*
*
* ACCESS_DENIED = 98;
*/
public static final int ACCESS_DENIED_VALUE = 98;
/**
*
* An internal error was encountered.
*
*
* 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 WalletError valueOf(int value) {
return forNumber(value);
}
public static WalletError 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_TOKEN;
case 5: return PARTNER_NOT_FOUND;
case 6: return LOCATION_NOT_FOUND;
case 98: return ACCESS_DENIED;
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<
WalletError> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public WalletError findValueByNumber(int number) {
return WalletError.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.wallet.v1.WalletServiceV1.getDescriptor().getEnumTypes().get(0);
}
private static final WalletError[] VALUES = values();
public static WalletError 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 WalletError(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:bloombox.services.wallet.v1.WalletError)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy