Class Channel (7.16.0)
Stay organized with collections
Save and categorize content based on your preferences.
Inheritance
ServiceObject
< Channel
, BaseMetadata
>
>
Channel
Package
@google-cloud/storage
Example
const
{
Storage
}
=
require
(
' @google-cloud/storage
'
);
const
storage
=
new
Storage
();
const
channel
=
storage
.
channel
(
'id'
,
'resource-id'
);
Constructors
(constructor)(storage, id, resourceId)
constructor
(
storage
:
Storage
,
id
:
string
,
resourceId
:
string
);
Constructs a new instance of the Channel
class
Methods
stop()
stop
()
:
Promise<unknown>
;
stop(callback)
stop
(
callback
:
StopCallback
)
:
void
;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Class Channel (7.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [7.16.0 (latest)](/nodejs/docs/reference/storage/latest/storage/channel)\n- [7.13.0](/nodejs/docs/reference/storage/7.13.0/storage/channel)\n- [7.3.2](/nodejs/docs/reference/storage/7.3.2/storage/channel)\n- [7.2.0](/nodejs/docs/reference/storage/7.2.0/storage/channel)\n- [7.1.0](/nodejs/docs/reference/storage/7.1.0/storage/channel)\n- [7.0.1](/nodejs/docs/reference/storage/7.0.1/storage/channel)\n- [6.12.0](/nodejs/docs/reference/storage/6.12.0/storage/channel)\n- [6.11.0](/nodejs/docs/reference/storage/6.11.0/storage/channel)\n- [6.7.0](/nodejs/docs/reference/storage/6.7.0/storage/channel)\n- [6.6.0](/nodejs/docs/reference/storage/6.6.0/storage/channel)\n- [6.5.4](/nodejs/docs/reference/storage/6.5.4/storage/channel)\n- [6.4.2](/nodejs/docs/reference/storage/6.4.2/storage/channel)\n- [6.3.0](/nodejs/docs/reference/storage/6.3.0/storage/channel)\n- [6.2.3](/nodejs/docs/reference/storage/6.2.3/storage/channel)\n- [5.19.1](/nodejs/docs/reference/storage/5.19.1/storage/channel)\n- [5.18.3](/nodejs/docs/reference/storage/5.18.3/storage/channel)\n- [5.17.0](/nodejs/docs/reference/storage/5.17.0/storage/channel)\n- [5.16.1](/nodejs/docs/reference/storage/5.16.1/storage/channel)\n- [5.15.6](/nodejs/docs/reference/storage/5.15.6/storage/channel)\n- [5.14.8](/nodejs/docs/reference/storage/5.14.8/storage/channel)\n- [5.13.2](/nodejs/docs/reference/storage/5.13.2/storage/channel)\n- [5.12.0](/nodejs/docs/reference/storage/5.12.0/storage/channel)\n- [5.11.1](/nodejs/docs/reference/storage/5.11.1/storage/channel)\n- [5.10.0](/nodejs/docs/reference/storage/5.10.0/storage/channel)\n- [5.9.0](/nodejs/docs/reference/storage/5.9.0/storage/channel)\n- [5.8.5](/nodejs/docs/reference/storage/5.8.5/storage/channel) \nCreate a channel object to interact with a Cloud Storage channel.\n\nSee [Object Change Notification](https://cloud.google.com/storage/docs/object-change-notification) \n\nInheritance\n-----------\n\nServiceObject\\\u003c[Channel](/nodejs/docs/reference/storage/latest/storage/channel), BaseMetadata\\\u003e \\\u003e Channel\n\nPackage\n-------\n\n[@google-cloud/storage](../overview.html)\n\nExample\n-------\n\n\n const {Storage} = require('https://cloud.google.com/nodejs/docs/reference/storage/latest/overview.html');\n const storage = new Storage();\n const channel = storage.https://cloud.google.com/nodejs/docs/reference/storage/latest/storage/storage_2.html('id', 'resource-id');\n\nConstructors\n------------\n\n### (constructor)(storage, id, resourceId)\n\n constructor(storage: Storage, id: string, resourceId: string);\n\nConstructs a new instance of the `Channel` class\n\nMethods\n-------\n\n### stop()\n\n stop(): Promise\u003cunknown\u003e;\n\n### stop(callback)\n\n stop(callback: StopCallback): void;"]]