# Interface ReceiveEventsRequest.SetupRequestOrBuilder (0.50.0)

0.50.0 (latest) 0.48.0 0.45.0 0.44.0 0.42.0 0.40.0 0.39.0 0.37.0 0.35.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.27.0 0.25.0 0.24.0 0.21.0 0.20.0 0.19.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public static interface ReceiveEventsRequest.SetupRequestOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getCluster()

    public abstract String getCluster()

The cluster name.

`string cluster = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The cluster. |

### getClusterBytes()

    public abstract ByteString getClusterBytes()

The cluster name.

`string cluster = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for cluster. |

### getControlledMode()

    public abstract ControlledMode getControlledMode()

Controller mode configuration for receiving events from the server.

`.google.cloud.visionai.v1.ControlledMode controlled_mode = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.ControlledMode` | The controlledMode. |

### getControlledModeOrBuilder()

    public abstract ControlledModeOrBuilder getControlledModeOrBuilder()

Controller mode configuration for receiving events from the server.

`.google.cloud.visionai.v1.ControlledMode controlled_mode = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.ControlledModeOrBuilder` |   |

### getHeartbeatInterval()

    public abstract Duration getHeartbeatInterval()

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

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

`.google.protobuf.Duration heartbeat_interval = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The heartbeatInterval. |

### getHeartbeatIntervalOrBuilder()

    public abstract DurationOrBuilder getHeartbeatIntervalOrBuilder()

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

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

`.google.protobuf.Duration heartbeat_interval = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### getReceiver()

    public abstract String getReceiver()

A name for the receiver to self-identify.

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

`string receiver = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The receiver. |

### getReceiverBytes()

    public abstract ByteString getReceiverBytes()

A name for the receiver to self-identify.

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

`string receiver = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for receiver. |

### getStream()

    public abstract String getStream()

The stream name. The service will return the events for the given stream.

`string stream = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The stream. |

### getStreamBytes()

    public abstract ByteString getStreamBytes()

The stream name. The service will return the events for the given stream.

`string stream = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for stream. |

### getWritesDoneGracePeriod()

    public abstract Duration getWritesDoneGracePeriod()

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.

`.google.protobuf.Duration writes_done_grace_period = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The writesDoneGracePeriod. |

### getWritesDoneGracePeriodOrBuilder()

    public abstract DurationOrBuilder getWritesDoneGracePeriodOrBuilder()

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.

`.google.protobuf.Duration writes_done_grace_period = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### hasControlledMode()

    public abstract boolean hasControlledMode()

Controller mode configuration for receiving events from the server.

`.google.cloud.visionai.v1.ControlledMode controlled_mode = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the controlledMode field is set. |

### hasHeartbeatInterval()

    public abstract boolean hasHeartbeatInterval()

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

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

`.google.protobuf.Duration heartbeat_interval = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the heartbeatInterval field is set. |

### hasWritesDoneGracePeriod()

    public abstract boolean hasWritesDoneGracePeriod()

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.

`.google.protobuf.Duration writes_done_grace_period = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the writesDoneGracePeriod field is set. |