public enum HttpMethod extends Enum<HttpMethod> implements com.google.protobuf.ProtocolMessageEnum
The HTTP method used to deliver the task.Protobuf enum
google.cloud.tasks.v2.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 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<HttpMethod> |
internalGetValueMap() |
static HttpMethod |
valueOf(com.google.protobuf.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
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
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 com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.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 com.google.protobuf.Internal.EnumLiteMap<HttpMethod> 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 HttpMethod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.