Package com.google.cloud.dialogflow.v2
Enum Tool.MethodType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Tool.MethodType>
- Enclosing class:
- Tool
public static enum Tool.MethodType
extends Enum<Tool.MethodType>
implements com.google.protobuf.ProtocolMessageEnum
The method type of the tool.Protobuf enum
google.cloud.dialogflow.v2.Tool.MethodType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDELETE method.GET method.Unspecified.PATCH method.POST method.PUT method. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDELETE method.static final intGET method.static final intUnspecified.static final intPATCH method.static final intPOST method.static final intPUT method. -
Method Summary
Modifier and TypeMethodDescriptionstatic Tool.MethodTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Tool.MethodType>static Tool.MethodTypevalueOf(int value) Deprecated.static Tool.MethodTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Tool.MethodTypeReturns the enum constant of this type with the specified name.static Tool.MethodType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
METHOD_TYPE_UNSPECIFIED
Unspecified.
METHOD_TYPE_UNSPECIFIED = 0; -
GET
GET method.
GET = 1; -
POST
POST method.
POST = 2; -
PUT
PUT method.
PUT = 3; -
DELETE
DELETE method.
DELETE = 4; -
PATCH
PATCH method.
PATCH = 5; -
UNRECOGNIZED
-
-
Field Details
-
METHOD_TYPE_UNSPECIFIED_VALUE
public static final int METHOD_TYPE_UNSPECIFIED_VALUEUnspecified.
METHOD_TYPE_UNSPECIFIED = 0;- See Also:
-
GET_VALUE
public static final int GET_VALUEGET method.
GET = 1;- See Also:
-
POST_VALUE
public static final int POST_VALUEPOST method.
POST = 2;- See Also:
-
PUT_VALUE
public static final int PUT_VALUEPUT method.
PUT = 3;- See Also:
-
DELETE_VALUE
public static final int DELETE_VALUEDELETE method.
DELETE = 4;- See Also:
-
PATCH_VALUE
public static final int PATCH_VALUEPATCH method.
PATCH = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-