# Google Cloud Network Security V1 Client - Class CertificateProvider (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.0 1.0.4 0.6.5 0.5.2 0.4.1 0.3.7 Reference documentation and code samples for the Google Cloud Network Security V1 Client class CertificateProvider.

Specification of certificate provider. Defines the mechanism to obtain the
certificate and private key for peer to peer authentication.

Generated from protobuf message `google.cloud.networksecurity.v1.CertificateProvider`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ grpc_endpoint` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.GrpcEndpoint` gRPC specific configuration to access the gRPC server to obtain the cert and private key. |
| `↳ certificate_provider_instance` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.CertificateProviderInstance` The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information. |

### getGrpcEndpoint

gRPC specific configuration to access the gRPC server to
obtain the cert and private key.

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

### hasGrpcEndpoint

### setGrpcEndpoint

gRPC specific configuration to access the gRPC server to
obtain the cert and private key.

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

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

### getCertificateProviderInstance

The certificate provider instance specification that will be passed to
the data plane, which will be used to load necessary credential
information.

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

### hasCertificateProviderInstance

### setCertificateProviderInstance

The certificate provider instance specification that will be passed to
the data plane, which will be used to load necessary credential
information.

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

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

### getType

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