# DataStream v1 API - Class SalesforceProfile.Types.UserCredentials (2.12.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.12.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials)
- [2.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.11.0/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials)
- [2.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.10.0/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.9.0/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.8.0/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.7.0/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.6.0/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.5.0/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.4.0/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.3.0/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.2.0/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.1.0/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.0.0/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/1.0.0/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials)

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

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

Username-password credentials.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SalesforceProfile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.Types)[UserCredentials](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials), [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)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.Types)[UserCredentials](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SalesforceProfile](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.Types)[UserCredentials](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## 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)

## Assembly

Google.Cloud.Datastream.V1.dll

## Constructors

### UserCredentials()

    public UserCredentials()

### UserCredentials(UserCredentials)

    public UserCredentials(SalesforceProfile.Types.UserCredentials other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfilehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SalesforceProfile.Types.UserCredentials` |

## Properties

### Password

    public string Password { get; set; }

Optional. Password for the Salesforce connection.
Mutually exclusive with the `secret_manager_stored_password` field.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### SecretManagerStoredPassword

    public string SecretManagerStoredPassword { get; set; }

Optional. A reference to a Secret Manager resource name storing the
Salesforce connection's password. Mutually exclusive with the `password`
field.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### SecretManagerStoredSecurityToken

    public string SecretManagerStoredSecurityToken { get; set; }

Optional. A reference to a Secret Manager resource name storing the
Salesforce connection's security token. Mutually exclusive with the
`security_token` field.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### SecurityToken

    public string SecurityToken { get; set; }

Optional. Security token for the Salesforce connection.
Mutually exclusive with the `secret_manager_stored_security_token` field.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Username

    public string Username { get; set; }

Required. Username for the Salesforce connection.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |