1.0.0 (latest) 1.0.0-beta01

    public sealed class ReceivePacketsRequest.Types.SetupRequest : IMessage<ReceivePacketsRequest.Types.SetupRequest>, IEquatable<ReceivePacketsRequest.Types.SetupRequest>, IDeepCloneable<ReceivePacketsRequest.Types.SetupRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Vision AI v1 API class ReceivePacketsRequest.Types.SetupRequest.

The message specifying the initial settings for the ReceivePackets session.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ReceivePacketsRequest.Types.SetupRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ReceivePacketsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequest)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequest.Types)[SetupRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequest.Types.SetupRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ReceivePacketsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequest)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequest.Types)[SetupRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequest.Types.SetupRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ReceivePacketsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequest)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequest.Types)[SetupRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequest.Types.SetupRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.VisionAI.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1)

## Assembly

Google.Cloud.VisionAI.V1.dll

## Constructors

### SetupRequest()

    public SetupRequest()

### SetupRequest(SetupRequest)

    public SetupRequest(ReceivePacketsRequest.Types.SetupRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequest.Types.SetupRequest` |

## Properties

### ConsumerModeCase

    public ReceivePacketsRequest.Types.SetupRequest.ConsumerModeOneofCase ConsumerModeCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequest.Types.SetupRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ReceivePacketsRequest.Types.SetupRequest.ConsumerModeOneofCase` |   |

### ControlledReceiveMode

    public ControlledMode ControlledReceiveMode { get; set; }

Options for configuring controlled mode.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.ControlledMode` |   |

### EagerReceiveMode

    public EagerMode EagerReceiveMode { get; set; }

Options for configuring eager mode.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.EagerMode` |   |

### HeartbeatInterval

    public Duration HeartbeatInterval { get; set; }

The maximum duration of server silence before the client determines the server unreachable.

The client must either receive a `Packet` or a heart beat message before this duration expires; otherwise, the client will automatically cancel the current connection and retry.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Duration.html` |   |

### Metadata

    public RequestMetadata Metadata { get; set; }

The configurations that specify where packets are retrieved.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.RequestMetadata` |   |

### Receiver

    public string Receiver { get; set; }

A name for the receiver to self-identify.

This is used to keep track of a receiver's read progress.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### WritesDoneGracePeriod

    public Duration WritesDoneGracePeriod { get; set; }

The grace period after which a `writes_done_request` is issued, that a `WritesDone` is expected from the client.

The server is free to cancel the RPC should this expire.

A system default will be chosen if unset.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Duration.html` |   |