Class protos.google.cloud.compute.v1.PacketMirroring (3.1.2)

Represents a PacketMirroring.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.compute.v1.IPacketMirroring);

Constructs a new PacketMirroring.

Parameter
NameDescription
properties IPacketMirroring

Properties to set

Properties

_collectorIlb

public _collectorIlb?: "collectorIlb";

PacketMirroring _collectorIlb.

_creationTimestamp

public _creationTimestamp?: "creationTimestamp";

PacketMirroring _creationTimestamp.

_description

public _description?: "description";

PacketMirroring _description.

_enable

public _enable?: "enable";

PacketMirroring _enable.

_filter

public _filter?: "filter";

PacketMirroring _filter.

_id

public _id?: "id";

PacketMirroring _id.

_kind

public _kind?: "kind";

PacketMirroring _kind.

_mirroredResources

public _mirroredResources?: "mirroredResources";

PacketMirroring _mirroredResources.

_name

public _name?: "name";

PacketMirroring _name.

_network

public _network?: "network";

PacketMirroring _network.

_priority

public _priority?: "priority";

PacketMirroring _priority.

_region

public _region?: "region";

PacketMirroring _region.

public _selfLink?: "selfLink";

PacketMirroring _selfLink.

collectorIlb

public collectorIlb?: (google.cloud.compute.v1.IPacketMirroringForwardingRuleInfo|null);

PacketMirroring collectorIlb.

creationTimestamp

public creationTimestamp?: (string|null);

PacketMirroring creationTimestamp.

description

public description?: (string|null);

PacketMirroring description.

enable

public enable?: (string|null);

PacketMirroring enable.

filter

public filter?: (google.cloud.compute.v1.IPacketMirroringFilter|null);

PacketMirroring filter.

id

public id?: (number|Long|string|null);

PacketMirroring id.

kind

public kind?: (string|null);

PacketMirroring kind.

mirroredResources

public mirroredResources?: (google.cloud.compute.v1.IPacketMirroringMirroredResourceInfo|null);

PacketMirroring mirroredResources.

name

public name?: (string|null);

PacketMirroring name.

network

public network?: (google.cloud.compute.v1.IPacketMirroringNetworkInfo|null);

PacketMirroring network.

priority

public priority?: (number|null);

PacketMirroring priority.

region

public region?: (string|null);

PacketMirroring region.

public selfLink?: (string|null);

PacketMirroring selfLink.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.IPacketMirroring): google.cloud.compute.v1.PacketMirroring;

Creates a new PacketMirroring instance using the specified properties.

Parameter
NameDescription
properties IPacketMirroring

Properties to set

Returns
TypeDescription
google.cloud.compute.v1.PacketMirroring

PacketMirroring instance

decode(reader, length)

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

Decodes a PacketMirroring message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.compute.v1.PacketMirroring

PacketMirroring

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.PacketMirroring;

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

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.compute.v1.PacketMirroring

PacketMirroring

encode(message, writer)

public static encode(message: google.cloud.compute.v1.IPacketMirroring, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified PacketMirroring message. Does not implicitly messages.

Parameters
NameDescription
message IPacketMirroring

PacketMirroring 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.compute.v1.IPacketMirroring, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IPacketMirroring

PacketMirroring 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.compute.v1.PacketMirroring;

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

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

Plain object

Returns
TypeDescription
google.cloud.compute.v1.PacketMirroring

PacketMirroring

toJSON()

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

Converts this PacketMirroring to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.cloud.compute.v1.PacketMirroring

PacketMirroring

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 PacketMirroring 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