public static enum UptimeCheckConfig.HttpCheck.ContentType extends Enum<UptimeCheckConfig.HttpCheck.ContentType> implements com.google.protobuf.ProtocolMessageEnum
Header options corresponding to the content type of a HTTP request body.Protobuf enum
google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType| Enum Constant and Description |
|---|
TYPE_UNSPECIFIED
No content type specified.
|
UNRECOGNIZED |
URL_ENCODED
`body` is in URL-encoded form.
|
USER_PROVIDED
`body` is in `custom_content_type` form.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_UNSPECIFIED_VALUE
No content type specified.
|
static int |
URL_ENCODED_VALUE
`body` is in URL-encoded form.
|
static int |
USER_PROVIDED_VALUE
`body` is in `custom_content_type` form.
|
| Modifier and Type | Method and Description |
|---|---|
static UptimeCheckConfig.HttpCheck.ContentType |
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<UptimeCheckConfig.HttpCheck.ContentType> |
internalGetValueMap() |
static UptimeCheckConfig.HttpCheck.ContentType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static UptimeCheckConfig.HttpCheck.ContentType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static UptimeCheckConfig.HttpCheck.ContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UptimeCheckConfig.HttpCheck.ContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UptimeCheckConfig.HttpCheck.ContentType TYPE_UNSPECIFIED
No content type specified.
TYPE_UNSPECIFIED = 0;public static final UptimeCheckConfig.HttpCheck.ContentType URL_ENCODED
`body` is in URL-encoded form. Equivalent to setting the `Content-Type` to `application/x-www-form-urlencoded` in the HTTP request.
URL_ENCODED = 1;public static final UptimeCheckConfig.HttpCheck.ContentType USER_PROVIDED
`body` is in `custom_content_type` form. Equivalent to setting the `Content-Type` to the contents of `custom_content_type` in the HTTP request.
USER_PROVIDED = 2;public static final UptimeCheckConfig.HttpCheck.ContentType UNRECOGNIZED
public static final int TYPE_UNSPECIFIED_VALUE
No content type specified.
TYPE_UNSPECIFIED = 0;public static final int URL_ENCODED_VALUE
`body` is in URL-encoded form. Equivalent to setting the `Content-Type` to `application/x-www-form-urlencoded` in the HTTP request.
URL_ENCODED = 1;public static final int USER_PROVIDED_VALUE
`body` is in `custom_content_type` form. Equivalent to setting the `Content-Type` to the contents of `custom_content_type` in the HTTP request.
USER_PROVIDED = 2;public static UptimeCheckConfig.HttpCheck.ContentType[] values()
for (UptimeCheckConfig.HttpCheck.ContentType c : UptimeCheckConfig.HttpCheck.ContentType.values()) System.out.println(c);
public static UptimeCheckConfig.HttpCheck.ContentType 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 UptimeCheckConfig.HttpCheck.ContentType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static UptimeCheckConfig.HttpCheck.ContentType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<UptimeCheckConfig.HttpCheck.ContentType> 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 UptimeCheckConfig.HttpCheck.ContentType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.