Class protos.google.cloud.compute.v1.RouterList (4.3.0)

Represents a RouterList.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

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

Constructs a new RouterList.

Parameter
NameDescription
properties IRouterList

Properties to set

Properties

_id

public _id?: "id";

RouterList _id.

_kind

public _kind?: "kind";

RouterList _kind.

_nextPageToken

public _nextPageToken?: "nextPageToken";

RouterList _nextPageToken.

public _selfLink?: "selfLink";

RouterList _selfLink.

_warning

public _warning?: "warning";

RouterList _warning.

id

public id?: (string|null);

RouterList id.

items

public items: google.cloud.compute.v1.IRouter[];

RouterList items.

kind

public kind?: (string|null);

RouterList kind.

nextPageToken

public nextPageToken?: (string|null);

RouterList nextPageToken.

public selfLink?: (string|null);

RouterList selfLink.

warning

public warning?: (google.cloud.compute.v1.IWarning|null);

RouterList warning.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.IRouterList): google.cloud.compute.v1.RouterList;

Creates a new RouterList instance using the specified properties.

Parameter
NameDescription
properties IRouterList

Properties to set

Returns
TypeDescription
RouterList

RouterList instance

decode(reader, length)

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

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

RouterList

decodeDelimited(reader)

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

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
RouterList

RouterList

encode(message, writer)

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

Encodes the specified RouterList message. Does not implicitly messages.

Parameters
NameDescription
message IRouterList

RouterList 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.IRouterList, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IRouterList

RouterList 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.RouterList;

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

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

Plain object

Returns
TypeDescription
RouterList

RouterList

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for RouterList

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

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message RouterList

RouterList

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