# Class protos.google.cloud.run.v2.Services (3.3.0)

3.3.0 (latest) 3.2.0 2.1.0 1.5.0 1.0.2 0.5.0 0.4.2 0.2.3 Represents a Services

## Inheritance

$protobuf.rpc.Service \> protos.google.cloud.run.v2.Services

## Package

[@google-cloud/run](https://docs.cloud.google.com/nodejs/docs/reference/run/latest/overview.html)

## Constructors

### (constructor)(rpcImpl, requestDelimited, responseDelimited)

    constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Services service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `rpcImpl` | `$protobuf.RPCImpl` RPC implementation |
| `requestDelimited` | `boolean` Whether requests are length-delimited |
| `responseDelimited` | `boolean` Whether responses are length-delimited |

## Methods

### create(rpcImpl, requestDelimited, responseDelimited)

    public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Services;

Creates new Services service using the specified rpc implementation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `rpcImpl` | `$protobuf.RPCImpl` RPC implementation |
| `requestDelimited` | `boolean` Whether requests are length-delimited |
| `responseDelimited` | `boolean` Whether responses are length-delimited |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.cloud.run.v2.services-class` | RPC service. Useful where requests and/or responses are streamed. |

### createService(request, callback)

    public createService(request: google.cloud.run.v2.ICreateServiceRequest, callback: google.cloud.run.v2.Services.CreateServiceCallback): void;

Calls CreateService.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.cloud.run.v2.icreateservicerequest` CreateServiceRequest message or plain object |
| `callback` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/overview.html` Node-style callback called with the error, if any, and Operation |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `void` |   |

### createService(request)

    public createService(request: google.cloud.run.v2.ICreateServiceRequest): Promise<google.longrunning.Operation>;

Calls CreateService.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.cloud.run.v2.icreateservicerequest` CreateServiceRequest message or plain object |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Promise<https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.longrunning.operation>` | Promise |

### deleteService(request, callback)

    public deleteService(request: google.cloud.run.v2.IDeleteServiceRequest, callback: google.cloud.run.v2.Services.DeleteServiceCallback): void;

Calls DeleteService.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.cloud.run.v2.ideleteservicerequest` DeleteServiceRequest message or plain object |
| `callback` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/overview.html` Node-style callback called with the error, if any, and Operation |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `void` |   |

### deleteService(request)

    public deleteService(request: google.cloud.run.v2.IDeleteServiceRequest): Promise<google.longrunning.Operation>;

Calls DeleteService.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.cloud.run.v2.ideleteservicerequest` DeleteServiceRequest message or plain object |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Promise<https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.longrunning.operation>` | Promise |

### getIamPolicy(request, callback)

    public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.run.v2.Services.GetIamPolicyCallback): void;

Calls GetIamPolicy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.iam.v1.igetiampolicyrequest` GetIamPolicyRequest message or plain object |
| `callback` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/overview.html` Node-style callback called with the error, if any, and Policy |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `void` |   |

### getIamPolicy(request)

    public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls GetIamPolicy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.iam.v1.igetiampolicyrequest` GetIamPolicyRequest message or plain object |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Promise<https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.iam.v1.policy>` | Promise |

### getService(request, callback)

    public getService(request: google.cloud.run.v2.IGetServiceRequest, callback: google.cloud.run.v2.Services.GetServiceCallback): void;

Calls GetService.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.cloud.run.v2.igetservicerequest` GetServiceRequest message or plain object |
| `callback` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/overview.html` Node-style callback called with the error, if any, and Service |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `void` |   |

### getService(request)

    public getService(request: google.cloud.run.v2.IGetServiceRequest): Promise<google.cloud.run.v2.Service>;

Calls GetService.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.cloud.run.v2.igetservicerequest` GetServiceRequest message or plain object |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Promise<https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.cloud.run.v2.service-class>` | Promise |

### listServices(request, callback)

    public listServices(request: google.cloud.run.v2.IListServicesRequest, callback: google.cloud.run.v2.Services.ListServicesCallback): void;

Calls ListServices.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.cloud.run.v2.ilistservicesrequest` ListServicesRequest message or plain object |
| `callback` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/overview.html` Node-style callback called with the error, if any, and ListServicesResponse |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `void` |   |

### listServices(request)

    public listServices(request: google.cloud.run.v2.IListServicesRequest): Promise<google.cloud.run.v2.ListServicesResponse>;

Calls ListServices.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.cloud.run.v2.ilistservicesrequest` ListServicesRequest message or plain object |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Promise<https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.cloud.run.v2.listservicesresponse>` | Promise |

### setIamPolicy(request, callback)

    public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.run.v2.Services.SetIamPolicyCallback): void;

Calls SetIamPolicy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.iam.v1.isetiampolicyrequest` SetIamPolicyRequest message or plain object |
| `callback` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/overview.html` Node-style callback called with the error, if any, and Policy |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `void` |   |

### setIamPolicy(request)

    public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls SetIamPolicy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.iam.v1.isetiampolicyrequest` SetIamPolicyRequest message or plain object |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Promise<https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.iam.v1.policy>` | Promise |

### testIamPermissions(request, callback)

    public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.cloud.run.v2.Services.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.iam.v1.itestiampermissionsrequest` TestIamPermissionsRequest message or plain object |
| `callback` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/overview.html` Node-style callback called with the error, if any, and TestIamPermissionsResponse |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `void` |   |

### testIamPermissions(request)

    public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;

Calls TestIamPermissions.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.iam.v1.itestiampermissionsrequest` TestIamPermissionsRequest message or plain object |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Promise<https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.iam.v1.testiampermissionsresponse>` | Promise |

### updateService(request, callback)

    public updateService(request: google.cloud.run.v2.IUpdateServiceRequest, callback: google.cloud.run.v2.Services.UpdateServiceCallback): void;

Calls UpdateService.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.cloud.run.v2.iupdateservicerequest` UpdateServiceRequest message or plain object |
| `callback` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/overview.html` Node-style callback called with the error, if any, and Operation |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `void` |   |

### updateService(request)

    public updateService(request: google.cloud.run.v2.IUpdateServiceRequest): Promise<google.longrunning.Operation>;

Calls UpdateService.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.cloud.run.v2.iupdateservicerequest` UpdateServiceRequest message or plain object |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Promise<https://docs.cloud.google.com/nodejs/docs/reference/run/latest/run/protos.google.longrunning.operation>` | Promise |