# Google Cloud Vmware Engine V1 Client - Class LoggingServer (1.3.0)

1.3.0 (latest) 1.2.2 1.1.4 1.0.0 0.5.6 0.4.0 0.3.3 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class LoggingServer.

Logging server to receive vCenter or ESXi logs.

Generated from protobuf message `google.cloud.vmwareengine.v1.LoggingServer`

## Namespace

Google \\ Cloud \\ VmwareEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The resource name of this logging server. Resource names are schemeless URIs that follow the conventions in <https://cloud.google.com/apis/design/resource_names>. For example: `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server` |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Creation time of this resource. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Last update time of this resource. |
| `↳ hostname` | `string` Required. Fully-qualified domain name (FQDN) or IP Address of the logging server. |
| `↳ port` | `int` Required. Port number at which the logging server receives logs. |
| `↳ protocol` | `int` Required. Protocol used by vCenter to send logs to a logging server. |
| `↳ source_type` | `int` Required. The type of component that produces logs that will be forwarded to this logging server. |
| `↳ uid` | `string` Output only. System-generated unique identifier for the resource. |

### getName

Output only. The resource name of this logging server.

Resource names are schemeless URIs that follow the conventions in
<https://cloud.google.com/apis/design/resource_names>.
For example:
`projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server`

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

### setName

Output only. The resource name of this logging server.

Resource names are schemeless URIs that follow the conventions in
<https://cloud.google.com/apis/design/resource_names>.
For example:
`projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server`

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

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

### getCreateTime

Output only. Creation time of this resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Creation time of this resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. Last update time of this resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Last update time of this resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getHostname

Required. Fully-qualified domain name (FQDN) or IP Address of the logging
server.

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

### setHostname

Required. Fully-qualified domain name (FQDN) or IP Address of the logging
server.

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

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

### getPort

Required. Port number at which the logging server receives logs.

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

### setPort

Required. Port number at which the logging server receives logs.

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

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

### getProtocol

Required. Protocol used by vCenter to send logs to a logging server.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Protocol](https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.LoggingServer.Protocol). |

### setProtocol

Required. Protocol used by vCenter to send logs to a logging server.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Protocol](https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.LoggingServer.Protocol). |

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

### getSourceType

Required. The type of component that produces logs that will be forwarded
to this logging server.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SourceType](https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.LoggingServer.SourceType). |

### setSourceType

Required. The type of component that produces logs that will be forwarded
to this logging server.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [SourceType](https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.LoggingServer.SourceType). |

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

### getUid

Output only. System-generated unique identifier for the resource.

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

### setUid

Output only. System-generated unique identifier for the resource.

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

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