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 DiscoveredService.

DiscoveredService is a network or API interface that exposes some
functionality to clients for consumption over the network. A discovered
service can be registered to a App Hub service.

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

## Namespace

Google \\ Cloud \\ AppHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the discovered service. Format: `"projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}"` |
| `↳ service_reference` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.ServiceReference` Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable. |
| `↳ service_properties` | `https://docs.cloud.google.com/php/docs/reference/cloud-apphub/latest/V1.ServiceProperties` Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable. |

### getName

Identifier. The resource name of the discovered service. Format:
`"projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}"`

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

### setName

Identifier. The resource name of the discovered service. Format:
`"projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}"`

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

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

### getServiceReference

Output only. Reference to an underlying networking resource that can
comprise a Service. These are immutable.

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

### hasServiceReference

### clearServiceReference

### setServiceReference

Output only. Reference to an underlying networking resource that can
comprise a Service. These are immutable.

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

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

### getServiceProperties

Output only. Properties of an underlying compute resource that can comprise
a Service. These are immutable.

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

### hasServiceProperties

### clearServiceProperties

### setServiceProperties

Output only. Properties of an underlying compute resource that can comprise
a Service. These are immutable.

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

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