public static enum Webhook.GenericWebService.ServiceAgentAuth extends Enum<Webhook.GenericWebService.ServiceAgentAuth> implements com.google.protobuf.ProtocolMessageEnum
Indicate the auth token type generated from the [Diglogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).Protobuf enum
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth| Enum Constant and Description |
|---|
ACCESS_TOKEN
Use [access
token](https://cloud.google.com/docs/authentication/token-types#access)
generated from service agent.
|
ID_TOKEN
Use [ID
token](https://cloud.google.com/docs/authentication/token-types#id)
generated from service agent.
|
NONE
No token used.
|
SERVICE_AGENT_AUTH_UNSPECIFIED
Service agent auth type unspecified.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCESS_TOKEN_VALUE
Use [access
token](https://cloud.google.com/docs/authentication/token-types#access)
generated from service agent.
|
static int |
ID_TOKEN_VALUE
Use [ID
token](https://cloud.google.com/docs/authentication/token-types#id)
generated from service agent.
|
static int |
NONE_VALUE
No token used.
|
static int |
SERVICE_AGENT_AUTH_UNSPECIFIED_VALUE
Service agent auth type unspecified.
|
| Modifier and Type | Method and Description |
|---|---|
static Webhook.GenericWebService.ServiceAgentAuth |
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<Webhook.GenericWebService.ServiceAgentAuth> |
internalGetValueMap() |
static Webhook.GenericWebService.ServiceAgentAuth |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Webhook.GenericWebService.ServiceAgentAuth |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Webhook.GenericWebService.ServiceAgentAuth |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Webhook.GenericWebService.ServiceAgentAuth[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Webhook.GenericWebService.ServiceAgentAuth SERVICE_AGENT_AUTH_UNSPECIFIED
Service agent auth type unspecified. Default to ID_TOKEN.
SERVICE_AGENT_AUTH_UNSPECIFIED = 0;public static final Webhook.GenericWebService.ServiceAgentAuth NONE
No token used.
NONE = 1;public static final Webhook.GenericWebService.ServiceAgentAuth ID_TOKEN
Use [ID token](https://cloud.google.com/docs/authentication/token-types#id) generated from service agent. This can be used to access Cloud Function and Cloud Run after you grant Invoker role to `service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com`.
ID_TOKEN = 2;public static final Webhook.GenericWebService.ServiceAgentAuth ACCESS_TOKEN
Use [access token](https://cloud.google.com/docs/authentication/token-types#access) generated from service agent. This can be used to access other Google Cloud APIs after you grant required roles to `service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com`.
ACCESS_TOKEN = 3;public static final Webhook.GenericWebService.ServiceAgentAuth UNRECOGNIZED
public static final int SERVICE_AGENT_AUTH_UNSPECIFIED_VALUE
Service agent auth type unspecified. Default to ID_TOKEN.
SERVICE_AGENT_AUTH_UNSPECIFIED = 0;public static final int NONE_VALUE
No token used.
NONE = 1;public static final int ID_TOKEN_VALUE
Use [ID token](https://cloud.google.com/docs/authentication/token-types#id) generated from service agent. This can be used to access Cloud Function and Cloud Run after you grant Invoker role to `service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com`.
ID_TOKEN = 2;public static final int ACCESS_TOKEN_VALUE
Use [access token](https://cloud.google.com/docs/authentication/token-types#access) generated from service agent. This can be used to access other Google Cloud APIs after you grant required roles to `service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com`.
ACCESS_TOKEN = 3;public static Webhook.GenericWebService.ServiceAgentAuth[] values()
for (Webhook.GenericWebService.ServiceAgentAuth c : Webhook.GenericWebService.ServiceAgentAuth.values()) System.out.println(c);
public static Webhook.GenericWebService.ServiceAgentAuth 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 Webhook.GenericWebService.ServiceAgentAuth valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Webhook.GenericWebService.ServiceAgentAuth forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Webhook.GenericWebService.ServiceAgentAuth> 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 Webhook.GenericWebService.ServiceAgentAuth valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.