# Google Cloud BigQuery Analytics Hub V1 Client - Class ApproveQueryTemplateRequest (1.5.1)

1.5.1 (latest) 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.4 0.5.3 0.4.0 0.3.2 0.2.2 0.1.6 Reference documentation and code samples for the Google Cloud BigQuery Analytics Hub V1 Client class ApproveQueryTemplateRequest.

Message for approving a QueryTemplate.

Generated from protobuf message `google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest`

## Namespace

Google \\ Cloud \\ BigQuery \\ AnalyticsHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The resource path of the QueryTemplate. e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. |

### getName

Required. The resource path of the QueryTemplate.

e.g.
`projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.

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

### setName

Required. The resource path of the QueryTemplate.

e.g.
`projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The resource path of the QueryTemplate. e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. Please see AnalyticsHubServiceClient::queryTemplateName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-analyticshub/latest/V1.ApproveQueryTemplateRequest` |   |