2.13.0 (latest) 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.0.0

    public sealed class SalesforceProfile.Types.Oauth2ClientCredentials : IMessage<SalesforceProfile.Types.Oauth2ClientCredentials>, IEquatable<SalesforceProfile.Types.Oauth2ClientCredentials>, IDeepCloneable<SalesforceProfile.Types.Oauth2ClientCredentials>, IBufferMessage, IMessage

Reference documentation and code samples for the DataStream v1 API class SalesforceProfile.Types.Oauth2ClientCredentials.

OAuth2 Client Credentials.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> SalesforceProfile.Types.Oauth2ClientCredentials

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[SalesforceProfile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.Types.md.txt)[Oauth2ClientCredentials](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.Types.Oauth2ClientCredentials.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SalesforceProfile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.Types.md.txt)[Oauth2ClientCredentials](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.Types.Oauth2ClientCredentials.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[SalesforceProfile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.Types.md.txt)[Oauth2ClientCredentials](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.Types.Oauth2ClientCredentials.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Datastream.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.md.txt)

## Assembly

Google.Cloud.Datastream.V1.dll

## Constructors

### Oauth2ClientCredentials()

    public Oauth2ClientCredentials()

### Oauth2ClientCredentials(Oauth2ClientCredentials)

    public Oauth2ClientCredentials(SalesforceProfile.Types.Oauth2ClientCredentials other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `SalesforceProfileTypesOauth2ClientCredentials` |

## Properties

### ClientId

    public string ClientId { get; set; }

Required. Client ID for Salesforce OAuth2 Client Credentials.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ClientSecret

    public string ClientSecret { get; set; }

Optional. Client secret for Salesforce OAuth2 Client Credentials.
Mutually exclusive with the `secret_manager_stored_client_secret` field.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### SecretManagerStoredClientSecret

    public string SecretManagerStoredClientSecret { get; set; }

Optional. A reference to a Secret Manager resource name storing the
Salesforce OAuth2 client_secret. Mutually exclusive with the
`client_secret` field.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |