public enum Likelihood extends java.lang.Enum<Likelihood> implements ProtocolMessageEnum
A bucketized representation of likelihood, which is intended to give clients highly stable results across model upgrades.Protobuf enum
google.cloud.vision.v1.Likelihood
Enum Constant and Description |
---|
LIKELY
It is likely that the image belongs to the specified vertical.
|
POSSIBLE
It is possible that the image belongs to the specified vertical.
|
UNKNOWN
Unknown likelihood.
|
UNLIKELY
It is unlikely that the image belongs to the specified vertical.
|
UNRECOGNIZED |
VERY_LIKELY
It is very likely that the image belongs to the specified vertical.
|
VERY_UNLIKELY
It is very unlikely that the image belongs to the specified vertical.
|
Modifier and Type | Field and Description |
---|---|
static int |
LIKELY_VALUE
It is likely that the image belongs to the specified vertical.
|
static int |
POSSIBLE_VALUE
It is possible that the image belongs to the specified vertical.
|
static int |
UNKNOWN_VALUE
Unknown likelihood.
|
static int |
UNLIKELY_VALUE
It is unlikely that the image belongs to the specified vertical.
|
static int |
VERY_LIKELY_VALUE
It is very likely that the image belongs to the specified vertical.
|
static int |
VERY_UNLIKELY_VALUE
It is very unlikely that the image belongs to the specified vertical.
|
Modifier and Type | Method and Description |
---|---|
static Likelihood |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Likelihood> |
internalGetValueMap() |
static Likelihood |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Likelihood |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Likelihood |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Likelihood[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Likelihood UNKNOWN
Unknown likelihood.
UNKNOWN = 0;
public static final Likelihood VERY_UNLIKELY
It is very unlikely that the image belongs to the specified vertical.
VERY_UNLIKELY = 1;
public static final Likelihood UNLIKELY
It is unlikely that the image belongs to the specified vertical.
UNLIKELY = 2;
public static final Likelihood POSSIBLE
It is possible that the image belongs to the specified vertical.
POSSIBLE = 3;
public static final Likelihood LIKELY
It is likely that the image belongs to the specified vertical.
LIKELY = 4;
public static final Likelihood VERY_LIKELY
It is very likely that the image belongs to the specified vertical.
VERY_LIKELY = 5;
public static final Likelihood UNRECOGNIZED
public static final int UNKNOWN_VALUE
Unknown likelihood.
UNKNOWN = 0;
public static final int VERY_UNLIKELY_VALUE
It is very unlikely that the image belongs to the specified vertical.
VERY_UNLIKELY = 1;
public static final int UNLIKELY_VALUE
It is unlikely that the image belongs to the specified vertical.
UNLIKELY = 2;
public static final int POSSIBLE_VALUE
It is possible that the image belongs to the specified vertical.
POSSIBLE = 3;
public static final int LIKELY_VALUE
It is likely that the image belongs to the specified vertical.
LIKELY = 4;
public static final int VERY_LIKELY_VALUE
It is very likely that the image belongs to the specified vertical.
VERY_LIKELY = 5;
public static Likelihood[] values()
for (Likelihood c : Likelihood.values()) System.out.println(c);
public static Likelihood valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static Likelihood valueOf(int value)
forNumber(int)
instead.public static Likelihood forNumber(int value)
public static Internal.EnumLiteMap<Likelihood> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static Likelihood valueOf(Descriptors.EnumValueDescriptor desc)