0.6.0 (latest) 0.5.3 0.4.5 0.3.1 0.2.0 0.1.6 Reference documentation and code samples for the Google Cloud App Hub V1 Client class ServiceProperties.

Properties of an underlying cloud resource that can comprise a Service.

Generated from protobuf message `google.cloud.apphub.v1.ServiceProperties`

## Namespace

Google \\ Cloud \\ AppHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gcp_project` | `string` Output only. The service project identifier that the underlying cloud resource resides in. |
| `↳ location` | `string` Output only. The location that the underlying resource resides in, for example, us-west1. |
| `↳ zone` | `string` Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a). |
| `↳ functional_type` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.FunctionalType` Output only. The type of the service. |
| `↳ registration_type` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.RegistrationType` Output only. The registration type of the service. |
| `↳ extended_metadata` | `array|Google\Protobuf\Internal\MapField` Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: `apphub.googleapis.com/{metadataType}` |
| `↳ identity` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.Identity` Output only. The identity associated with the service. |

### getGcpProject

Output only. The service project identifier that the underlying cloud
resource resides in.

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

### setGcpProject

Output only. The service project identifier that the underlying cloud
resource resides in.

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

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

### getLocation

Output only. The location that the underlying resource resides in, for
example, us-west1.

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

### setLocation

Output only. The location that the underlying resource resides in, for
example, us-west1.

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

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

### getZone

Output only. The location that the underlying resource resides in if it is
zonal, for example, us-west1-a).

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

### setZone

Output only. The location that the underlying resource resides in if it is
zonal, for example, us-west1-a).

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

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

### getFunctionalType

Output only. The type of the service.

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

### hasFunctionalType

### clearFunctionalType

### setFunctionalType

Output only. The type of the service.

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

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

### getRegistrationType

Output only. The registration type of the service.

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

### hasRegistrationType

### clearRegistrationType

### setRegistrationType

Output only. The registration type of the service.

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

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

### getExtendedMetadata

Output only. Additional metadata specific to the resource type.

The key is a string that identifies the type of metadata and the value is
the metadata contents specific to that type.
Key format: `apphub.googleapis.com/{metadataType}`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setExtendedMetadata

Output only. Additional metadata specific to the resource type.

The key is a string that identifies the type of metadata and the value is
the metadata contents specific to that type.
Key format: `apphub.googleapis.com/{metadataType}`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

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

### getIdentity

Output only. The identity associated with the service.

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

### hasIdentity

### clearIdentity

### setIdentity

Output only. The identity associated with the service.

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

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