Class protos.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest (3.2.0)

Represents a PublishChannelConnectionEventsRequest.

Package

@google-cloud/eventarc-publishing

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.eventarc.publishing.v1.IPublishChannelConnectionEventsRequest);

Constructs a new PublishChannelConnectionEventsRequest.

Parameter
NameDescription
properties IPublishChannelConnectionEventsRequest

Properties to set

Properties

channelConnection

public channelConnection: string;

PublishChannelConnectionEventsRequest channelConnection.

events

public events: google.protobuf.IAny[];

PublishChannelConnectionEventsRequest events.

textEvents

public textEvents: string[];

PublishChannelConnectionEventsRequest textEvents.

Methods

create(properties)

public static create(properties?: google.cloud.eventarc.publishing.v1.IPublishChannelConnectionEventsRequest): google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest;

Creates a new PublishChannelConnectionEventsRequest instance using the specified properties.

Parameter
NameDescription
properties IPublishChannelConnectionEventsRequest

Properties to set

Returns
TypeDescription
PublishChannelConnectionEventsRequest

PublishChannelConnectionEventsRequest instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest;

Decodes a PublishChannelConnectionEventsRequest message from the specified reader or buffer.

Parameters
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
PublishChannelConnectionEventsRequest

PublishChannelConnectionEventsRequest

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest;

Decodes a PublishChannelConnectionEventsRequest message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
PublishChannelConnectionEventsRequest

PublishChannelConnectionEventsRequest

encode(message, writer)

public static encode(message: google.cloud.eventarc.publishing.v1.IPublishChannelConnectionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified PublishChannelConnectionEventsRequest message. Does not implicitly messages.

Parameters
NameDescription
message IPublishChannelConnectionEventsRequest

PublishChannelConnectionEventsRequest message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.eventarc.publishing.v1.IPublishChannelConnectionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified PublishChannelConnectionEventsRequest message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IPublishChannelConnectionEventsRequest

PublishChannelConnectionEventsRequest message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest;

Creates a PublishChannelConnectionEventsRequest message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
PublishChannelConnectionEventsRequest

PublishChannelConnectionEventsRequest

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for PublishChannelConnectionEventsRequest

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this PublishChannelConnectionEventsRequest to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a PublishChannelConnectionEventsRequest message. Also converts values to other types if specified.

Parameters
NameDescription
message PublishChannelConnectionEventsRequest

PublishChannelConnectionEventsRequest

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a PublishChannelConnectionEventsRequest message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not