# Vision AI V1 API - Class Google::Cloud::VisionAI::V1::ReceivePacketsRequest (v1.5.0)

1.5.0 (latest) 1.4.1 1.3.1 1.2.0 1.1.1 1.0.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::ReceivePacketsRequest.

Request message for receiving packets.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #commit_request

    def commit_request() -> ::Google::Cloud::VisionAI::V1::CommitRequest

**Returns**

- ([::Google::Cloud::VisionAI::V1::CommitRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-CommitRequest)) --- This request checkpoints the consumer's read progress.


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

### #commit_request=

    def commit_request=(value) -> ::Google::Cloud::VisionAI::V1::CommitRequest

**Parameter**

- **value** ([::Google::Cloud::VisionAI::V1::CommitRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-CommitRequest)) --- This request checkpoints the consumer's read progress.


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

- ([::Google::Cloud::VisionAI::V1::CommitRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-CommitRequest)) --- This request checkpoints the consumer's read progress.


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

### #setup_request

    def setup_request() -> ::Google::Cloud::VisionAI::V1::ReceivePacketsRequest::SetupRequest

**Returns**

- ([::Google::Cloud::VisionAI::V1::ReceivePacketsRequest::SetupRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-ReceivePacketsRequest-SetupRequest)) --- The request to setup the initial state of session.


  The client must send and only send this as the first message.

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

### #setup_request=

    def setup_request=(value) -> ::Google::Cloud::VisionAI::V1::ReceivePacketsRequest::SetupRequest

**Parameter**

- **value** ([::Google::Cloud::VisionAI::V1::ReceivePacketsRequest::SetupRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-ReceivePacketsRequest-SetupRequest)) --- The request to setup the initial state of session.


  The client must send and only send this as the first message.

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

- ([::Google::Cloud::VisionAI::V1::ReceivePacketsRequest::SetupRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-ReceivePacketsRequest-SetupRequest)) --- The request to setup the initial state of session.


  The client must send and only send this as the first message.

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