# Interface StreamingPullResponseOrBuilder (1.151.0)

1.151.0 (latest) 1.150.1 1.149.0 1.148.0 1.147.0 1.145.0 1.143.1 1.142.0 1.141.5 1.140.2 1.139.4 1.138.0 1.137.1 1.136.1 1.135.0 1.134.2 1.133.1 1.132.2 1.131.0 1.130.0 1.129.6 1.127.3 1.126.6 1.125.13 1.123.18 1.122.2 1.121.1 1.120.24 1.119.1 1.118.0 1.117.0 1.116.4 1.115.5

    public interface StreamingPullResponseOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAcknowledgeConfirmation()

    public abstract StreamingPullResponse.AcknowledgeConfirmation getAcknowledgeConfirmation()

Optional. This field will only be set if `enable_exactly_once_delivery` is
set to `true` and is not guaranteed to be populated.

`
.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation` | The acknowledgeConfirmation. |

### getAcknowledgeConfirmationOrBuilder()

    public abstract StreamingPullResponse.AcknowledgeConfirmationOrBuilder getAcknowledgeConfirmationOrBuilder()

Optional. This field will only be set if `enable_exactly_once_delivery` is
set to `true` and is not guaranteed to be populated.

`
.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder` |   |

### getModifyAckDeadlineConfirmation()

    public abstract StreamingPullResponse.ModifyAckDeadlineConfirmation getModifyAckDeadlineConfirmation()

Optional. This field will only be set if `enable_exactly_once_delivery` is
set to `true` and is not guaranteed to be populated.

`
.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation` | The modifyAckDeadlineConfirmation. |

### getModifyAckDeadlineConfirmationOrBuilder()

    public abstract StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder getModifyAckDeadlineConfirmationOrBuilder()

Optional. This field will only be set if `enable_exactly_once_delivery` is
set to `true` and is not guaranteed to be populated.

`
.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder` |   |

### getReceivedMessages(int index)

    public abstract ReceivedMessage getReceivedMessages(int index)

Optional. Received Pub/Sub messages.

`
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getReceivedMessagesCount()

    public abstract int getReceivedMessagesCount()

Optional. Received Pub/Sub messages.

`
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getReceivedMessagesList()

    public abstract List<ReceivedMessage> getReceivedMessagesList()

Optional. Received Pub/Sub messages.

`
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.ReceivedMessage>` |   |

### getReceivedMessagesOrBuilder(int index)

    public abstract ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index)

Optional. Received Pub/Sub messages.

`
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getReceivedMessagesOrBuilderList()

    public abstract List<? extends ReceivedMessageOrBuilder> getReceivedMessagesOrBuilderList()

Optional. Received Pub/Sub messages.

`
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.pubsub.v1.ReceivedMessageOrBuilder>` |   |

### getSubscriptionProperties()

    public abstract StreamingPullResponse.SubscriptionProperties getSubscriptionProperties()

Optional. Properties associated with this subscription.

`
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties` | The subscriptionProperties. |

### getSubscriptionPropertiesOrBuilder()

    public abstract StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder()

Optional. Properties associated with this subscription.

`
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder` |   |

### hasAcknowledgeConfirmation()

    public abstract boolean hasAcknowledgeConfirmation()

Optional. This field will only be set if `enable_exactly_once_delivery` is
set to `true` and is not guaranteed to be populated.

`
.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasModifyAckDeadlineConfirmation()

    public abstract boolean hasModifyAckDeadlineConfirmation()

Optional. This field will only be set if `enable_exactly_once_delivery` is
set to `true` and is not guaranteed to be populated.

`
.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasSubscriptionProperties()

    public abstract boolean hasSubscriptionProperties()

Optional. Properties associated with this subscription.

`
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
`

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