Class Channel (7.16.0) Stay organized with collections Save and categorize content based on your preferences.
Create a channel object to interact with a Cloud Storage channel.
Package
@google-cloud/storageExample
const{Storage}=require('@google-cloud/storage');conststorage=newStorage();constchannel=storage.channel('id','resource-id');Constructors
(constructor)(storage, id, resourceId)
constructor(storage:Storage,id:string,resourceId:string);Constructs a new instance of theChannel class
| Parameters | |
|---|---|
| Name | Description |
storage | Storage_2 |
id | string |
resourceId | string |
Methods
stop()
stop():Promise<unknown>;| Returns | |
|---|---|
| Type | Description |
Promise<unknown> | |
stop(callback)
stop(callback:StopCallback):void;| Parameter | |
|---|---|
| Name | Description |
callback | StopCallback |
| Returns | |
|---|---|
| Type | Description |
void | |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.