Class protos.google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter (0.4.0)

Represents a PrefixCounter.

Package

@google-cloud/edgenetwork

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.edgenetwork.v1.RouterStatus.IPrefixCounter);

Constructs a new PrefixCounter.

Parameter
NameDescription
properties IPrefixCounter

Properties to set

Properties

advertised

public advertised: (number|Long|string);

PrefixCounter advertised.

denied

public denied: (number|Long|string);

PrefixCounter denied.

received

public received: (number|Long|string);

PrefixCounter received.

sent

public sent: (number|Long|string);

PrefixCounter sent.

suppressed

public suppressed: (number|Long|string);

PrefixCounter suppressed.

withdrawn

public withdrawn: (number|Long|string);

PrefixCounter withdrawn.

Methods

create(properties)

public static create(properties?: google.cloud.edgenetwork.v1.RouterStatus.IPrefixCounter): google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter;

Creates a new PrefixCounter instance using the specified properties.

Parameter
NameDescription
properties IPrefixCounter

Properties to set

Returns
TypeDescription
PrefixCounter

PrefixCounter instance

decode(reader, length)

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

Decodes a PrefixCounter 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
PrefixCounter

PrefixCounter

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter;

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
PrefixCounter

PrefixCounter

encode(message, writer)

public static encode(message: google.cloud.edgenetwork.v1.RouterStatus.IPrefixCounter, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified PrefixCounter message. Does not implicitly messages.

Parameters
NameDescription
message IPrefixCounter

PrefixCounter 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.edgenetwork.v1.RouterStatus.IPrefixCounter, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IPrefixCounter

PrefixCounter 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.edgenetwork.v1.RouterStatus.PrefixCounter;

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

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

Plain object

Returns
TypeDescription
PrefixCounter

PrefixCounter

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for PrefixCounter

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 PrefixCounter to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message PrefixCounter

PrefixCounter

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