public static enum Tool.Authentication.OAuthConfig.OauthGrantType extends Enum<Tool.Authentication.OAuthConfig.OauthGrantType> implements com.google.protobuf.ProtocolMessageEnum
OAuth grant types. Only [client credential grant](https://oauth.net/2/grant-types/client-credentials) is supported.Protobuf enum
google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig.OauthGrantType| Enum Constant and Description |
|---|
CLIENT_CREDENTIAL
Represents the [client credential
flow](https://oauth.net/2/grant-types/client-credentials).
|
OAUTH_GRANT_TYPE_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
CLIENT_CREDENTIAL_VALUE
Represents the [client credential
flow](https://oauth.net/2/grant-types/client-credentials).
|
static int |
OAUTH_GRANT_TYPE_UNSPECIFIED_VALUE
Default value.
|
| Modifier and Type | Method and Description |
|---|---|
static Tool.Authentication.OAuthConfig.OauthGrantType |
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<Tool.Authentication.OAuthConfig.OauthGrantType> |
internalGetValueMap() |
static Tool.Authentication.OAuthConfig.OauthGrantType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Tool.Authentication.OAuthConfig.OauthGrantType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Tool.Authentication.OAuthConfig.OauthGrantType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Tool.Authentication.OAuthConfig.OauthGrantType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Tool.Authentication.OAuthConfig.OauthGrantType OAUTH_GRANT_TYPE_UNSPECIFIED
Default value. This value is unused.
OAUTH_GRANT_TYPE_UNSPECIFIED = 0;public static final Tool.Authentication.OAuthConfig.OauthGrantType CLIENT_CREDENTIAL
Represents the [client credential flow](https://oauth.net/2/grant-types/client-credentials).
CLIENT_CREDENTIAL = 1;public static final Tool.Authentication.OAuthConfig.OauthGrantType UNRECOGNIZED
public static final int OAUTH_GRANT_TYPE_UNSPECIFIED_VALUE
Default value. This value is unused.
OAUTH_GRANT_TYPE_UNSPECIFIED = 0;public static final int CLIENT_CREDENTIAL_VALUE
Represents the [client credential flow](https://oauth.net/2/grant-types/client-credentials).
CLIENT_CREDENTIAL = 1;public static Tool.Authentication.OAuthConfig.OauthGrantType[] values()
for (Tool.Authentication.OAuthConfig.OauthGrantType c : Tool.Authentication.OAuthConfig.OauthGrantType.values()) System.out.println(c);
public static Tool.Authentication.OAuthConfig.OauthGrantType 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 Tool.Authentication.OAuthConfig.OauthGrantType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Tool.Authentication.OAuthConfig.OauthGrantType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Tool.Authentication.OAuthConfig.OauthGrantType> 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 Tool.Authentication.OAuthConfig.OauthGrantType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.