public enum HtmlSanitization extends Enum<HtmlSanitization> implements ProtocolMessageEnum
Option for HTML content sanitization on user input fields, for example, job description. By setting this option, user can determine whether and how sanitization is performed on these fields.Protobuf enum
google.cloud.talent.v4.HtmlSanitization
Enum Constant and Description |
---|
HTML_SANITIZATION_DISABLED
Disables sanitization on HTML input.
|
HTML_SANITIZATION_UNSPECIFIED
Default value.
|
SIMPLE_FORMATTING_ONLY
Sanitizes HTML input, only accepts bold, italic, ordered list, and
unordered list markup tags.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
HTML_SANITIZATION_DISABLED_VALUE
Disables sanitization on HTML input.
|
static int |
HTML_SANITIZATION_UNSPECIFIED_VALUE
Default value.
|
static int |
SIMPLE_FORMATTING_ONLY_VALUE
Sanitizes HTML input, only accepts bold, italic, ordered list, and
unordered list markup tags.
|
Modifier and Type | Method and Description |
---|---|
static HtmlSanitization |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<HtmlSanitization> |
internalGetValueMap() |
static HtmlSanitization |
valueOf(Descriptors.EnumValueDescriptor desc) |
static HtmlSanitization |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static HtmlSanitization |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HtmlSanitization[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HtmlSanitization HTML_SANITIZATION_UNSPECIFIED
Default value.
HTML_SANITIZATION_UNSPECIFIED = 0;
public static final HtmlSanitization HTML_SANITIZATION_DISABLED
Disables sanitization on HTML input.
HTML_SANITIZATION_DISABLED = 1;
public static final HtmlSanitization SIMPLE_FORMATTING_ONLY
Sanitizes HTML input, only accepts bold, italic, ordered list, and unordered list markup tags.
SIMPLE_FORMATTING_ONLY = 2;
public static final HtmlSanitization UNRECOGNIZED
public static final int HTML_SANITIZATION_UNSPECIFIED_VALUE
Default value.
HTML_SANITIZATION_UNSPECIFIED = 0;
public static final int HTML_SANITIZATION_DISABLED_VALUE
Disables sanitization on HTML input.
HTML_SANITIZATION_DISABLED = 1;
public static final int SIMPLE_FORMATTING_ONLY_VALUE
Sanitizes HTML input, only accepts bold, italic, ordered list, and unordered list markup tags.
SIMPLE_FORMATTING_ONLY = 2;
public static HtmlSanitization[] values()
for (HtmlSanitization c : HtmlSanitization.values()) System.out.println(c);
public static HtmlSanitization 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 HtmlSanitization valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static HtmlSanitization forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<HtmlSanitization> 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 HtmlSanitization valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.