# Google Cloud Channel V1 Client - Class ChannelPartnerLink (2.4.1)

2.4.1 (latest) 2.4.0 2.3.1 2.2.1 2.1.4 2.0.0 1.9.5 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Channel V1 Client class ChannelPartnerLink.

Entity representing a link between distributors and their indirect
resellers in an n-tier resale channel.

Generated from protobuf message `google.cloud.channel.v1.ChannelPartnerLink`

## Namespace

Google \\ Cloud \\ Channel \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. Resource name for the channel partner link, in the format accounts/{account_id}/channelPartnerLinks/{id}. |
| `↳ reseller_cloud_identity_id` | `string` Required. Cloud Identity ID of the linked reseller. |
| `↳ link_state` | `int` Required. State of the channel partner link. |
| `↳ invite_link_uri` | `string` Output only. URI of the web page where partner accepts the link invitation. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp of when the channel partner link is created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp of when the channel partner link is updated. |
| `↳ public_id` | `string` Output only. Public identifier that a customer must use to generate a transfer token to move to this distributor-reseller combination. |
| `↳ channel_partner_cloud_identity_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.CloudIdentityInfo` Output only. Cloud Identity info of the channel partner (IR). |

### getName

Output only. Resource name for the channel partner link, in the format
accounts/{account_id}/channelPartnerLinks/{id}.

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

### setName

Output only. Resource name for the channel partner link, in the format
accounts/{account_id}/channelPartnerLinks/{id}.

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

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

### getResellerCloudIdentityId

Required. Cloud Identity ID of the linked reseller.

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

### setResellerCloudIdentityId

Required. Cloud Identity ID of the linked reseller.

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

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

### getLinkState

Required. State of the channel partner link.

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

### setLinkState

Required. State of the channel partner link.

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

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

### getInviteLinkUri

Output only. URI of the web page where partner accepts the link invitation.

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

### setInviteLinkUri

Output only. URI of the web page where partner accepts the link invitation.

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

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

### getCreateTime

Output only. Timestamp of when the channel partner link is created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Timestamp of when the channel partner link is created.

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

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

### getUpdateTime

Output only. Timestamp of when the channel partner link is updated.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Timestamp of when the channel partner link is updated.

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

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

### getPublicId

Output only. Public identifier that a customer must use to generate a
transfer token to move to this distributor-reseller combination.

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

### setPublicId

Output only. Public identifier that a customer must use to generate a
transfer token to move to this distributor-reseller combination.

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

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

### getChannelPartnerCloudIdentityInfo

Output only. Cloud Identity info of the channel partner (IR).

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

### hasChannelPartnerCloudIdentityInfo

### clearChannelPartnerCloudIdentityInfo

### setChannelPartnerCloudIdentityInfo

Output only. Cloud Identity info of the channel partner (IR).

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

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