public static enum Document.BoilerplateHandling extends Enum<Document.BoilerplateHandling> implements ProtocolMessageEnum
Ways of handling boilerplate detected in the documentProtobuf enum
google.cloud.language.v1beta2.Document.BoilerplateHandling
Enum Constant and Description |
---|
BOILERPLATE_HANDLING_UNSPECIFIED
The boilerplate handling is not specified.
|
KEEP_BOILERPLATE
Treat boilerplate the same as content.
|
SKIP_BOILERPLATE
Do not analyze detected boilerplate.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
BOILERPLATE_HANDLING_UNSPECIFIED_VALUE
The boilerplate handling is not specified.
|
static int |
KEEP_BOILERPLATE_VALUE
Treat boilerplate the same as content.
|
static int |
SKIP_BOILERPLATE_VALUE
Do not analyze detected boilerplate.
|
Modifier and Type | Method and Description |
---|---|
static Document.BoilerplateHandling |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Document.BoilerplateHandling> |
internalGetValueMap() |
static Document.BoilerplateHandling |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Document.BoilerplateHandling |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Document.BoilerplateHandling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Document.BoilerplateHandling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Document.BoilerplateHandling BOILERPLATE_HANDLING_UNSPECIFIED
The boilerplate handling is not specified.
BOILERPLATE_HANDLING_UNSPECIFIED = 0;
public static final Document.BoilerplateHandling SKIP_BOILERPLATE
Do not analyze detected boilerplate. Reference web URI is required for detecting boilerplate.
SKIP_BOILERPLATE = 1;
public static final Document.BoilerplateHandling KEEP_BOILERPLATE
Treat boilerplate the same as content.
KEEP_BOILERPLATE = 2;
public static final Document.BoilerplateHandling UNRECOGNIZED
public static final int BOILERPLATE_HANDLING_UNSPECIFIED_VALUE
The boilerplate handling is not specified.
BOILERPLATE_HANDLING_UNSPECIFIED = 0;
public static final int SKIP_BOILERPLATE_VALUE
Do not analyze detected boilerplate. Reference web URI is required for detecting boilerplate.
SKIP_BOILERPLATE = 1;
public static final int KEEP_BOILERPLATE_VALUE
Treat boilerplate the same as content.
KEEP_BOILERPLATE = 2;
public static Document.BoilerplateHandling[] values()
for (Document.BoilerplateHandling c : Document.BoilerplateHandling.values()) System.out.println(c);
public static Document.BoilerplateHandling valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static Document.BoilerplateHandling valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Document.BoilerplateHandling forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<Document.BoilerplateHandling> 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 Document.BoilerplateHandling valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.