public static enum Agent.ApiVersion extends Enum<Agent.ApiVersion> implements ProtocolMessageEnum
API version for the agent.Protobuf enum
google.cloud.dialogflow.v2.Agent.ApiVersion
Enum Constant and Description |
---|
API_VERSION_UNSPECIFIED
Not specified.
|
API_VERSION_V1
Legacy V1 API.
|
API_VERSION_V2
V2 API.
|
API_VERSION_V2_BETA_1
V2beta1 API.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
API_VERSION_UNSPECIFIED_VALUE
Not specified.
|
static int |
API_VERSION_V1_VALUE
Legacy V1 API.
|
static int |
API_VERSION_V2_BETA_1_VALUE
V2beta1 API.
|
static int |
API_VERSION_V2_VALUE
V2 API.
|
Modifier and Type | Method and Description |
---|---|
static Agent.ApiVersion |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Agent.ApiVersion> |
internalGetValueMap() |
static Agent.ApiVersion |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Agent.ApiVersion |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Agent.ApiVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Agent.ApiVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Agent.ApiVersion API_VERSION_UNSPECIFIED
Not specified.
API_VERSION_UNSPECIFIED = 0;
public static final Agent.ApiVersion API_VERSION_V1
Legacy V1 API.
API_VERSION_V1 = 1;
public static final Agent.ApiVersion API_VERSION_V2
V2 API.
API_VERSION_V2 = 2;
public static final Agent.ApiVersion API_VERSION_V2_BETA_1
V2beta1 API.
API_VERSION_V2_BETA_1 = 3;
public static final Agent.ApiVersion UNRECOGNIZED
public static final int API_VERSION_UNSPECIFIED_VALUE
Not specified.
API_VERSION_UNSPECIFIED = 0;
public static final int API_VERSION_V1_VALUE
Legacy V1 API.
API_VERSION_V1 = 1;
public static final int API_VERSION_V2_VALUE
V2 API.
API_VERSION_V2 = 2;
public static final int API_VERSION_V2_BETA_1_VALUE
V2beta1 API.
API_VERSION_V2_BETA_1 = 3;
public static Agent.ApiVersion[] values()
for (Agent.ApiVersion c : Agent.ApiVersion.values()) System.out.println(c);
public static Agent.ApiVersion 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 Agent.ApiVersion valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Agent.ApiVersion forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<Agent.ApiVersion> 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 Agent.ApiVersion valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.