Package com.google.cloud.dialogflow.v2
Interface Tool.Authentication.OAuthConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Tool.Authentication.OAuthConfig,Tool.Authentication.OAuthConfig.Builder
- Enclosing class:
- Tool.Authentication
public static interface Tool.Authentication.OAuthConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.Required.intRequired.getScopes(int index) Optional.com.google.protobuf.ByteStringgetScopesBytes(int index) Optional.intOptional.Optional.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getOauthGrantTypeValue
int getOauthGrantTypeValue()Required. OAuth grant types.
.google.cloud.dialogflow.v2.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The enum numeric value on the wire for oauthGrantType.
-
getOauthGrantType
Tool.Authentication.OAuthConfig.OauthGrantType getOauthGrantType()Required. OAuth grant types.
.google.cloud.dialogflow.v2.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The oauthGrantType.
-
getClientId
String getClientId()Required. The client ID from the OAuth provider.
string client_id = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The clientId.
-
getClientIdBytes
com.google.protobuf.ByteString getClientIdBytes()Required. The client ID from the OAuth provider.
string client_id = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for clientId.
-
getClientSecret
String getClientSecret()Optional. The client secret from the OAuth provider. If the `secret_version_for_client_secret` field is set, this field will be ignored.
string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The clientSecret.
-
getClientSecretBytes
com.google.protobuf.ByteString getClientSecretBytes()Optional. The client secret from the OAuth provider. If the `secret_version_for_client_secret` field is set, this field will be ignored.
string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for clientSecret.
-
getSecretVersionForClientSecret
String getSecretVersionForClientSecret()Optional. The name of the SecretManager secret version resource storing the client secret. If this field is set, the `client_secret` field will be ignored. Format: `projects/{project}/secrets/{secret}/versions/{version}`string secret_version_for_client_secret = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- The secretVersionForClientSecret.
-
getSecretVersionForClientSecretBytes
com.google.protobuf.ByteString getSecretVersionForClientSecretBytes()Optional. The name of the SecretManager secret version resource storing the client secret. If this field is set, the `client_secret` field will be ignored. Format: `projects/{project}/secrets/{secret}/versions/{version}`string secret_version_for_client_secret = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for secretVersionForClientSecret.
-
getTokenEndpoint
String getTokenEndpoint()Required. The token endpoint in the OAuth provider to exchange for an access token.
string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The tokenEndpoint.
-
getTokenEndpointBytes
com.google.protobuf.ByteString getTokenEndpointBytes()Required. The token endpoint in the OAuth provider to exchange for an access token.
string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for tokenEndpoint.
-
getScopesList
Optional. The OAuth scopes to grant.
repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- A list containing the scopes.
-
getScopesCount
int getScopesCount()Optional. The OAuth scopes to grant.
repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The count of scopes.
-
getScopes
Optional. The OAuth scopes to grant.
repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the element to return.- Returns:
- The scopes at the given index.
-
getScopesBytes
com.google.protobuf.ByteString getScopesBytes(int index) Optional. The OAuth scopes to grant.
repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the scopes at the given index.
-