# Compute V1 Client - Class NotificationEndpointGrpcSettings (2.10.0)

2.10.0 (latest) 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.1 1.21.0 1.20.0 1.19.0 1.18.1 1.17.0 1.16.2 1.14.0 1.13.0 1.12.1 1.11.1 1.10.1 1.9.1 1.8.3 1.7.1 1.6.1 1.5.0 Reference documentation and code samples for the Compute V1 Client class NotificationEndpointGrpcSettings.

Represents a gRPC setting that describes one gRPC notification endpoint and
the retry duration attempting to send notification to this endpoint.

Generated from protobuf message `google.cloud.compute.v1.NotificationEndpointGrpcSettings`

## Namespace

Google \\ Cloud \\ Compute \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ authority` | `string` Optional. If specified, this field is used to set the authority header by the sender of notifications. See <https://tools.ietf.org/html/rfc7540#section-8.1.2.3> |
| `↳ endpoint` | `string` Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name. |
| `↳ payload_name` | `string` Optional. If specified, this field is used to populate the "name" field in gRPC requests. |
| `↳ resend_interval` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.Duration` Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification endpoints. |
| `↳ retry_duration_sec` | `int` How much time (in seconds) is spent attempting notification retries until a successful response is received. Default is 30s. Limit is 20m (1200s). Must be a positive number. |

### getAuthority

Optional. If specified, this field is used to set the authority header by
the sender of notifications. See
<https://tools.ietf.org/html/rfc7540#section-8.1.2.3>

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasAuthority

### clearAuthority

### setAuthority

Optional. If specified, this field is used to set the authority header by
the sender of notifications. See
<https://tools.ietf.org/html/rfc7540#section-8.1.2.3>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEndpoint

Endpoint to which gRPC notifications are sent. This must be a valid
gRPCLB DNS name.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasEndpoint

### clearEndpoint

### setEndpoint

Endpoint to which gRPC notifications are sent. This must be a valid
gRPCLB DNS name.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPayloadName

Optional. If specified, this field is used to populate the "name" field
in gRPC requests.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasPayloadName

### clearPayloadName

### setPayloadName

Optional. If specified, this field is used to populate the "name" field
in gRPC requests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResendInterval

Optional. This field is used to configure how often to send a full update
of all non-healthy backends. If unspecified, full updates are not sent.

If specified, must be in the range between 600 seconds to 3600 seconds.
Nanos are disallowed. Can only be set for regional notification
endpoints.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.Duration|null` |   |

### hasResendInterval

### clearResendInterval

### setResendInterval

Optional. This field is used to configure how often to send a full update
of all non-healthy backends. If unspecified, full updates are not sent.

If specified, must be in the range between 600 seconds to 3600 seconds.
Nanos are disallowed. Can only be set for regional notification
endpoints.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRetryDurationSec

How much time (in seconds) is spent attempting notification retries
until a successful response is received. Default is 30s. Limit is 20m
(1200s). Must be a positive number.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasRetryDurationSec

### clearRetryDurationSec

### setRetryDurationSec

How much time (in seconds) is spent attempting notification retries
until a successful response is received. Default is 30s. Limit is 20m
(1200s). Must be a positive number.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |