- [Resource: StreamObject](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#StreamObject)
  - [JSON representation](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#StreamObject.SCHEMA_REPRESENTATION)
- [BackfillJob](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#BackfillJob)
  - [JSON representation](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#BackfillJob.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#State)
- [Trigger](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#Trigger)
- [EventFilter](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#EventFilter)
  - [JSON representation](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#EventFilter.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#METHODS_SUMMARY)

## Resource: StreamObject

A specific stream object (e.g a specific DB table).

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "displayName": string, "errors": [ { object (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/Error`) } ], "backfillJob": { object (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#BackfillJob`) }, "sourceObject": { object (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/SourceObjectIdentifier`) }, "customizationRules": [ { object (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/CustomizationRule`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Identifier. The object resource's name. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The creation time of the object. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The last update time of the object. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `displayName` | `string` Required. Display name. |
| `errors[]` | ``object (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/Error`)`` Output only. Active errors on the object. |
| `backfillJob` | ``object (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#BackfillJob`)`` The latest backfill job that was initiated for the stream object. |
| `sourceObject` | ``object (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/SourceObjectIdentifier`)`` The object identifier in the data source. |
| `customizationRules[]` | ``object (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/CustomizationRule`)`` Output only. The customization rules for the object. These rules are derived from the parent Stream's `ruleSets` and represent the intended configuration for the object. |

## BackfillJob

Represents a backfill job on a specific stream object.

| JSON representation |
|---|
| ``` { "state": enum (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#State`), "trigger": enum (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#Trigger`), "lastStartTime": string, "lastEndTime": string, "errors": [ { object (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/Error`) } ], "eventFilter": { object (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#EventFilter`) } } ``` |

| Fields ||
|---|---|
| `state` | ``enum (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#State`)`` Output only. Backfill job state. |
| `trigger` | ``enum (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#Trigger`)`` Backfill job's triggering reason. |
| `lastStartTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Backfill job's start time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `lastEndTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Backfill job's end time. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `errors[]` | ``object (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/Error`)`` Output only. Errors which caused the backfill job to fail. |
| `eventFilter` | ``object (`https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects#EventFilter`)`` Output only. The filter for performing a partial backfill. |

## State

State of the stream object's backfill job.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Default value. |
| `NOT_STARTED` | Backfill job was never started for the stream object (stream has backfill strategy defined as manual or object was explicitly excluded from automatic backfill). |
| `PENDING` | Backfill job will start pending available resources. |
| `ACTIVE` | Backfill job is running. |
| `STOPPED` | Backfill job stopped (next job run will start from beginning). |
| `FAILED` | Backfill job failed (due to an error). |
| `COMPLETED` | Backfill completed successfully. |
| `UNSUPPORTED` | Backfill job failed since the table structure is currently unsupported for backfill. |

## Trigger

Triggering reason for a backfill job.

| Enums ||
|---|---|
| `TRIGGER_UNSPECIFIED` | Default value. |
| `AUTOMATIC` | Object backfill job was triggered automatically according to the stream's backfill strategy. |
| `MANUAL` | Object backfill job was triggered manually using the dedicated API. |

## EventFilter

Represents a filter for included data on a stream object.

| JSON representation |
|---|
| ``` { // Union field `filter` can be only one of the following: "sqlWhereClause": string // End of list of possible types for union field `filter`. } ``` |

| Fields ||
|---|---|
| Union field `filter`. A filter type. `filter` can be only one of the following: ||
| `sqlWhereClause` | `string` An SQL-query Where clause selecting which data should be included, not including the "WHERE" keyword. e.g., `t.key1 = 'value1' AND t.key2 = 'value2'` |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects/get` | Use this method to get details about a stream object. |
| ### `https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects/list` | Use this method to list the objects of a specific stream. |
| ### `https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects/lookup` | Use this method to look up a stream object by its source object identifier. |
| ### `https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects/startBackfillJob` | Use this method to start a backfill job for the specified stream object. |
| ### `https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.streams.objects/stopBackfillJob` | Use this method to stop a backfill job for the specified stream object. |