2.1.3 (latest) 2.1.2 2.0.4 1.3.5 1.2.2 1.1.1 1.0.6 Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class ResourceRecord.

A DNS resource record.

Generated from protobuf message `google.appengine.v1.ResourceRecord`

## Namespace

Google \\ Cloud \\ AppEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Relative name of the object affected by this record. Only applicable for `CNAME` records. Example: 'www'. |
| `↳ rrdata` | `string` Data for this record. Values vary by record type, as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1). |
| `↳ type` | `int` Resource record type. Example: `AAAA`. |

### getName

Relative name of the object affected by this record. Only applicable for
`CNAME` records. Example: 'www'.

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

### setName

Relative name of the object affected by this record. Only applicable for
`CNAME` records. Example: 'www'.

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

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

### getRrdata

Data for this record. Values vary by record type, as defined in RFC 1035
(section 5) and RFC 1034 (section 3.6.1).

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

### setRrdata

Data for this record. Values vary by record type, as defined in RFC 1035
(section 5) and RFC 1034 (section 3.6.1).

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

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

### getType

Resource record type. Example: `AAAA`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [RecordType](https://docs.cloud.google.com/php/docs/reference/cloud-appengine-admin/latest/V1.ResourceRecord.RecordType). |

### setType

Resource record type. Example: `AAAA`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [RecordType](https://docs.cloud.google.com/php/docs/reference/cloud-appengine-admin/latest/V1.ResourceRecord.RecordType). |

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