Class Channel (7.16.0)

Inheritance

ServiceObject<Channel,BaseMetadata> >Channel

Package

@google-cloud/storage

Example

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
NameDescription
storageStorage_2
idstring
resourceIdstring

Methods

stop()

stop():Promise<unknown>;
Returns
TypeDescription
Promise<unknown>

stop(callback)

stop(callback:StopCallback):void;
Parameter
NameDescription
callbackStopCallback
Returns
TypeDescription
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.