Class protos.google.cloud.networkconnectivity.v1.ListRouteTablesResponse (3.2.0)

Represents a ListRouteTablesResponse.

Package

@google-cloud/network-connectivity

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.networkconnectivity.v1.IListRouteTablesResponse);

Constructs a new ListRouteTablesResponse.

Parameter
NameDescription
properties IListRouteTablesResponse

Properties to set

Properties

nextPageToken

public nextPageToken: string;

ListRouteTablesResponse nextPageToken.

routeTables

public routeTables: google.cloud.networkconnectivity.v1.IRouteTable[];

ListRouteTablesResponse routeTables.

unreachable

public unreachable: string[];

ListRouteTablesResponse unreachable.

Methods

create(properties)

public static create(properties?: google.cloud.networkconnectivity.v1.IListRouteTablesResponse): google.cloud.networkconnectivity.v1.ListRouteTablesResponse;

Creates a new ListRouteTablesResponse instance using the specified properties.

Parameter
NameDescription
properties IListRouteTablesResponse

Properties to set

Returns
TypeDescription
ListRouteTablesResponse

ListRouteTablesResponse instance

decode(reader, length)

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

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

ListRouteTablesResponse

decodeDelimited(reader)

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

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
ListRouteTablesResponse

ListRouteTablesResponse

encode(message, writer)

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

Encodes the specified ListRouteTablesResponse message. Does not implicitly messages.

Parameters
NameDescription
message IListRouteTablesResponse

ListRouteTablesResponse 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.networkconnectivity.v1.IListRouteTablesResponse, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IListRouteTablesResponse

ListRouteTablesResponse 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.networkconnectivity.v1.ListRouteTablesResponse;

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

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

Plain object

Returns
TypeDescription
ListRouteTablesResponse

ListRouteTablesResponse

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for ListRouteTablesResponse

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

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message ListRouteTablesResponse

ListRouteTablesResponse

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