public enum HttpMethod extends Enum<HttpMethod> implements ProtocolMessageEnum
The HTTP method used to execute the job.Protobuf enum
google.cloud.scheduler.v1.HttpMethod
Enum Constant and Description |
---|
DELETE
HTTP DELETE
|
GET
HTTP GET
|
HEAD
HTTP HEAD
|
HTTP_METHOD_UNSPECIFIED
HTTP method unspecified.
|
OPTIONS
HTTP OPTIONS
|
PATCH
HTTP PATCH
|
POST
HTTP POST
|
PUT
HTTP PUT
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
DELETE_VALUE
HTTP DELETE
|
static int |
GET_VALUE
HTTP GET
|
static int |
HEAD_VALUE
HTTP HEAD
|
static int |
HTTP_METHOD_UNSPECIFIED_VALUE
HTTP method unspecified.
|
static int |
OPTIONS_VALUE
HTTP OPTIONS
|
static int |
PATCH_VALUE
HTTP PATCH
|
static int |
POST_VALUE
HTTP POST
|
static int |
PUT_VALUE
HTTP PUT
|
Modifier and Type | Method and Description |
---|---|
static HttpMethod |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<HttpMethod> |
internalGetValueMap() |
static HttpMethod |
valueOf(Descriptors.EnumValueDescriptor desc) |
static HttpMethod |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static HttpMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpMethod HTTP_METHOD_UNSPECIFIED
HTTP method unspecified. Defaults to POST.
HTTP_METHOD_UNSPECIFIED = 0;
public static final HttpMethod POST
HTTP POST
POST = 1;
public static final HttpMethod GET
HTTP GET
GET = 2;
public static final HttpMethod HEAD
HTTP HEAD
HEAD = 3;
public static final HttpMethod PUT
HTTP PUT
PUT = 4;
public static final HttpMethod DELETE
HTTP DELETE
DELETE = 5;
public static final HttpMethod PATCH
HTTP PATCH
PATCH = 6;
public static final HttpMethod OPTIONS
HTTP OPTIONS
OPTIONS = 7;
public static final HttpMethod UNRECOGNIZED
public static final int HTTP_METHOD_UNSPECIFIED_VALUE
HTTP method unspecified. Defaults to POST.
HTTP_METHOD_UNSPECIFIED = 0;
public static final int POST_VALUE
HTTP POST
POST = 1;
public static final int GET_VALUE
HTTP GET
GET = 2;
public static final int HEAD_VALUE
HTTP HEAD
HEAD = 3;
public static final int PUT_VALUE
HTTP PUT
PUT = 4;
public static final int DELETE_VALUE
HTTP DELETE
DELETE = 5;
public static final int PATCH_VALUE
HTTP PATCH
PATCH = 6;
public static final int OPTIONS_VALUE
HTTP OPTIONS
OPTIONS = 7;
public static HttpMethod[] values()
for (HttpMethod c : HttpMethod.values()) System.out.println(c);
public static HttpMethod 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 HttpMethod valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static HttpMethod forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<HttpMethod> 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 HttpMethod valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.