# Cloud Firestore V1 API - Class Google::Cloud::Firestore::V1::ExecutePipelineRequest (v2.4.0)

2.4.0 (latest) 2.3.0 2.2.1 2.1.1 2.0.1 1.3.0 1.2.0 1.1.1 1.0.0 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.8 Reference documentation and code samples for the Cloud Firestore V1 API class Google::Cloud::Firestore::V1::ExecutePipelineRequest.

The request for
[Firestore.ExecutePipeline](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-Firestore-Client#Google__Cloud__Firestore__V1__Firestore__Client_execute_pipeline_instance_ "Google::Cloud::Firestore::V1::Firestore::Client#execute_pipeline (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #auto_commit_transaction

    def auto_commit_transaction() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Automatically commits the transaction after the pipeline has been executed. Only permitted in combination with `transaction` or `new_transaction`.

### #auto_commit_transaction=

    def auto_commit_transaction=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Automatically commits the transaction after the pipeline has been executed. Only permitted in combination with `transaction` or `new_transaction`.
**Returns**

- (::Boolean) --- Optional. Automatically commits the transaction after the pipeline has been executed. Only permitted in combination with `transaction` or `new_transaction`.

### #database

    def database() -> ::String

**Returns**

- (::String) --- Required. Database identifier, in the form `projects/{project}/databases/{database}`.

### #database=

    def database=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Database identifier, in the form `projects/{project}/databases/{database}`.
**Returns**

- (::String) --- Required. Database identifier, in the form `projects/{project}/databases/{database}`.

### #new_transaction

    def new_transaction() -> ::Google::Cloud::Firestore::V1::TransactionOptions

**Returns**

- ([::Google::Cloud::Firestore::V1::TransactionOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-TransactionOptions)) --- Execute the pipeline in a new transaction.


  The identifier of the newly created transaction will be returned in the
  first response on the stream. This defaults to a read-only transaction.

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

### #new_transaction=

    def new_transaction=(value) -> ::Google::Cloud::Firestore::V1::TransactionOptions

**Parameter**

- **value** ([::Google::Cloud::Firestore::V1::TransactionOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-TransactionOptions)) --- Execute the pipeline in a new transaction.


  The identifier of the newly created transaction will be returned in the
  first response on the stream. This defaults to a read-only transaction.

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

- ([::Google::Cloud::Firestore::V1::TransactionOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-TransactionOptions)) --- Execute the pipeline in a new transaction.


  The identifier of the newly created transaction will be returned in the
  first response on the stream. This defaults to a read-only transaction.

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

### #read_time

    def read_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Protobuf-Timestamp)) --- Execute the pipeline in a snapshot transaction at the given time.


  This must be a microsecond precision timestamp within the past one hour,
  or if Point-in-Time Recovery is enabled, can additionally be a whole
  minute timestamp within the past 7 days.

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

### #read_time=

    def read_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Protobuf-Timestamp)) --- Execute the pipeline in a snapshot transaction at the given time.


  This must be a microsecond precision timestamp within the past one hour,
  or if Point-in-Time Recovery is enabled, can additionally be a whole
  minute timestamp within the past 7 days.

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

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Protobuf-Timestamp)) --- Execute the pipeline in a snapshot transaction at the given time.


  This must be a microsecond precision timestamp within the past one hour,
  or if Point-in-Time Recovery is enabled, can additionally be a whole
  minute timestamp within the past 7 days.

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

### #structured_pipeline

    def structured_pipeline() -> ::Google::Cloud::Firestore::V1::StructuredPipeline

**Returns**

- ([::Google::Cloud::Firestore::V1::StructuredPipeline](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-StructuredPipeline)) --- A pipelined operation.

### #structured_pipeline=

    def structured_pipeline=(value) -> ::Google::Cloud::Firestore::V1::StructuredPipeline

**Parameter**

- **value** ([::Google::Cloud::Firestore::V1::StructuredPipeline](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-StructuredPipeline)) --- A pipelined operation.
**Returns**

- ([::Google::Cloud::Firestore::V1::StructuredPipeline](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-StructuredPipeline)) --- A pipelined operation.

### #transaction

    def transaction() -> ::String

**Returns**

- (::String) --- Run the query within an already active transaction.

  The value here is the opaque transaction ID to execute the query in.

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

### #transaction=

    def transaction=(value) -> ::String

**Parameter**

- **value** (::String) --- Run the query within an already active transaction.


  The value here is the opaque transaction ID to execute the query in.

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

- (::String) --- Run the query within an already active transaction.

  The value here is the opaque transaction ID to execute the query in.

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