public enum HtmlSanitization extends Enum<HtmlSanitization> implements com.google.protobuf.ProtocolMessageEnum
Input only. 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.v4beta1.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 com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<HtmlSanitization> |
internalGetValueMap() |
static HtmlSanitization |
valueOf(com.google.protobuf.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 com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static HtmlSanitization valueOf(int value)
forNumber(int) instead.public static HtmlSanitization forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<HtmlSanitization> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static HtmlSanitization valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2019 Google LLC. All rights reserved.