# Datastream V1 API - Class Google::Cloud::Datastream::V1::SalesforceProfile (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.0 0.13.0 0.12.0 0.11.0 0.10.1 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Datastream V1 API class Google::Cloud::Datastream::V1::SalesforceProfile.

Salesforce profile

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #domain

    def domain() -> ::String

**Returns**

- (::String) --- Required. Domain endpoint for the Salesforce connection.

### #domain=

    def domain=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Domain endpoint for the Salesforce connection.
**Returns**

- (::String) --- Required. Domain endpoint for the Salesforce connection.

### #oauth2_client_credentials

    def oauth2_client_credentials() -> ::Google::Cloud::Datastream::V1::SalesforceProfile::Oauth2ClientCredentials

**Returns**

- ([::Google::Cloud::Datastream::V1::SalesforceProfile::Oauth2ClientCredentials](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-SalesforceProfile-Oauth2ClientCredentials)) --- Connected app authentication.


  Note: The following fields are mutually exclusive: `oauth2_client_credentials`, `user_credentials`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #oauth2_client_credentials=

    def oauth2_client_credentials=(value) -> ::Google::Cloud::Datastream::V1::SalesforceProfile::Oauth2ClientCredentials

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::SalesforceProfile::Oauth2ClientCredentials](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-SalesforceProfile-Oauth2ClientCredentials)) --- Connected app authentication.


  Note: The following fields are mutually exclusive: `oauth2_client_credentials`, `user_credentials`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1::SalesforceProfile::Oauth2ClientCredentials](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-SalesforceProfile-Oauth2ClientCredentials)) --- Connected app authentication.


  Note: The following fields are mutually exclusive: `oauth2_client_credentials`, `user_credentials`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #user_credentials

    def user_credentials() -> ::Google::Cloud::Datastream::V1::SalesforceProfile::UserCredentials

**Returns**

- ([::Google::Cloud::Datastream::V1::SalesforceProfile::UserCredentials](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-SalesforceProfile-UserCredentials)) --- User-password authentication.


  Note: The following fields are mutually exclusive: `user_credentials`, `oauth2_client_credentials`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #user_credentials=

    def user_credentials=(value) -> ::Google::Cloud::Datastream::V1::SalesforceProfile::UserCredentials

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::SalesforceProfile::UserCredentials](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-SalesforceProfile-UserCredentials)) --- User-password authentication.


  Note: The following fields are mutually exclusive: `user_credentials`, `oauth2_client_credentials`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1::SalesforceProfile::UserCredentials](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-SalesforceProfile-UserCredentials)) --- User-password authentication.


  Note: The following fields are mutually exclusive: `user_credentials`, `oauth2_client_credentials`. If a field in that set is populated, all other fields in the set will automatically be cleared.