# Datastream V1 API - Class Google::Cloud::Datastream::V1::SalesforceObject (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::SalesforceObject.

Salesforce object.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #fields

    def fields() -> ::Array<::Google::Cloud::Datastream::V1::SalesforceField>

**Returns**

- (::Array\<[::Google::Cloud::Datastream::V1::SalesforceField](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-SalesforceField)\>) --- Salesforce fields. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

### #fields=

    def fields=(value) -> ::Array<::Google::Cloud::Datastream::V1::SalesforceField>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Datastream::V1::SalesforceField](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-SalesforceField)\>) --- Salesforce fields. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.
**Returns**

- (::Array\<[::Google::Cloud::Datastream::V1::SalesforceField](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-SalesforceField)\>) --- Salesforce fields. When unspecified as part of include objects, includes everything, when unspecified as part of exclude objects, excludes nothing.

### #object_name

    def object_name() -> ::String

**Returns**

- (::String) --- Object name.

### #object_name=

    def object_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Object name.
**Returns**

- (::String) --- Object name.