io.bloombox.schema.identity.IDMedia 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.
/*
* 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: identity/IDMedia.proto
package io.bloombox.schema.identity;
/**
*
* Known types of document media that can be attached to an ID.
*
*
* Protobuf enum {@code identity.IDMedia}
*/
public enum IDMedia
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Picture of the front of the document.
*
*
* DOCUMENT_FRONT = 0;
*/
DOCUMENT_FRONT(0),
/**
*
* Picture of the back of the document.
*
*
* DOCUMENT_REAR = 1;
*/
DOCUMENT_REAR(1),
/**
*
* Cropped/extracted person portrait from the document.
*
*
* PORTRAIT = 2;
*/
PORTRAIT(2),
UNRECOGNIZED(-1),
;
/**
*
* Picture of the front of the document.
*
*
* DOCUMENT_FRONT = 0;
*/
public static final int DOCUMENT_FRONT_VALUE = 0;
/**
*
* Picture of the back of the document.
*
*
* DOCUMENT_REAR = 1;
*/
public static final int DOCUMENT_REAR_VALUE = 1;
/**
*
* Cropped/extracted person portrait from the document.
*
*
* PORTRAIT = 2;
*/
public static final int PORTRAIT_VALUE = 2;
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 IDMedia valueOf(int value) {
return forNumber(value);
}
public static IDMedia forNumber(int value) {
switch (value) {
case 0: return DOCUMENT_FRONT;
case 1: return DOCUMENT_REAR;
case 2: return PORTRAIT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
IDMedia> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public IDMedia findValueByNumber(int number) {
return IDMedia.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.identity.IDMediaOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final IDMedia[] VALUES = values();
public static IDMedia 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 IDMedia(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:identity.IDMedia)
}