/*!
@page dataproc-override-authentication How to Override the Authentication Credentials

Unless otherwise configured, the client libraries use
[Application Default Credentials] to authenticate with Google Cloud Services.
While this works for most applications, in some cases you may need to override
this default. You can do so by providing the
[UnifiedCredentialsOption](@ref google::cloud::UnifiedCredentialsOption)
The following example shows how to explicitly load a service account key file:

<!-- inject-service-account-snippet-start -->
@snippet autoscaling_policy_client_samples.cc with-service-account

Follow these links to find examples for other \c *Client classes:

- [\c dataproc_v1::AutoscalingPolicyServiceClient](@ref dataproc_v1::AutoscalingPolicyServiceClient-service-account-snippet)
- [\c dataproc_v1::BatchControllerClient](@ref dataproc_v1::BatchControllerClient-service-account-snippet)
- [\c dataproc_v1::ClusterControllerClient](@ref dataproc_v1::ClusterControllerClient-service-account-snippet)
- [\c dataproc_v1::JobControllerClient](@ref dataproc_v1::JobControllerClient-service-account-snippet)
- [\c dataproc_v1::NodeGroupControllerClient](@ref dataproc_v1::NodeGroupControllerClient-service-account-snippet)
- [\c dataproc_v1::SessionControllerClient](@ref dataproc_v1::SessionControllerClient-service-account-snippet)
- [\c dataproc_v1::SessionTemplateControllerClient](@ref dataproc_v1::SessionTemplateControllerClient-service-account-snippet)
- [\c dataproc_v1::WorkflowTemplateServiceClient](@ref dataproc_v1::WorkflowTemplateServiceClient-service-account-snippet)

<!-- inject-service-account-snippet-end -->

Keep in mind that we chose this as an example because it is relatively easy to
understand. Consult the [Best practices for managing service account keys]
guide for more details.

@see @ref guac - for more information on the factory functions to create
`google::cloud::Credentials` objects.

[Best practices for managing service account keys]: https://cloud.google.com/iam/docs/best-practices-for-managing-service-account-keys
[Application Default Credentials]: https://cloud.google.com/docs/authentication#adc

*/

// <!-- inject-authentication-pages-start -->

/*! @page dataproc_v1::AutoscalingPolicyServiceClient-service-account-snippet Override dataproc_v1::AutoscalingPolicyServiceClient Authentication Defaults

@snippet google/cloud/dataproc/v1/samples/autoscaling_policy_client_samples.cc with-service-account

*/

/*! @page dataproc_v1::BatchControllerClient-service-account-snippet Override dataproc_v1::BatchControllerClient Authentication Defaults

@snippet google/cloud/dataproc/v1/samples/batch_controller_client_samples.cc with-service-account

*/

/*! @page dataproc_v1::ClusterControllerClient-service-account-snippet Override dataproc_v1::ClusterControllerClient Authentication Defaults

@snippet google/cloud/dataproc/v1/samples/cluster_controller_client_samples.cc with-service-account

*/

/*! @page dataproc_v1::JobControllerClient-service-account-snippet Override dataproc_v1::JobControllerClient Authentication Defaults

@snippet google/cloud/dataproc/v1/samples/job_controller_client_samples.cc with-service-account

*/

/*! @page dataproc_v1::NodeGroupControllerClient-service-account-snippet Override dataproc_v1::NodeGroupControllerClient Authentication Defaults

@snippet google/cloud/dataproc/v1/samples/node_group_controller_client_samples.cc with-service-account

*/

/*! @page dataproc_v1::SessionControllerClient-service-account-snippet Override dataproc_v1::SessionControllerClient Authentication Defaults

@snippet google/cloud/dataproc/v1/samples/session_controller_client_samples.cc with-service-account

*/

/*! @page dataproc_v1::SessionTemplateControllerClient-service-account-snippet Override dataproc_v1::SessionTemplateControllerClient Authentication Defaults

@snippet google/cloud/dataproc/v1/samples/session_template_controller_client_samples.cc with-service-account

*/

/*! @page dataproc_v1::WorkflowTemplateServiceClient-service-account-snippet Override dataproc_v1::WorkflowTemplateServiceClient Authentication Defaults

@snippet google/cloud/dataproc/v1/samples/workflow_template_client_samples.cc with-service-account

*/
// <!-- inject-authentication-pages-end -->
