Class protos.google.cloud.networkconnectivity.v1.PscPropagationStatus (4.6.0)

Represents a PscPropagationStatus.

Package

@google-cloud/network-connectivity

Constructors

(constructor)(properties)

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

Constructs a new PscPropagationStatus.

Parameter
Name Description
properties IPscPropagationStatus

Properties to set

Properties

code

public code: (google.cloud.networkconnectivity.v1.PscPropagationStatus.Code|keyof typeof google.cloud.networkconnectivity.v1.PscPropagationStatus.Code);

PscPropagationStatus code.

message

public message: string;

PscPropagationStatus message.

sourceForwardingRule

public sourceForwardingRule: string;

PscPropagationStatus sourceForwardingRule.

sourceGroup

public sourceGroup: string;

PscPropagationStatus sourceGroup.

sourceSpoke

public sourceSpoke: string;

PscPropagationStatus sourceSpoke.

targetGroup

public targetGroup: string;

PscPropagationStatus targetGroup.

targetSpoke

public targetSpoke: string;

PscPropagationStatus targetSpoke.

Methods

create(properties)

public static create(properties?: google.cloud.networkconnectivity.v1.IPscPropagationStatus): google.cloud.networkconnectivity.v1.PscPropagationStatus;

Creates a new PscPropagationStatus instance using the specified properties.

Parameter
Name Description
properties IPscPropagationStatus

Properties to set

Returns
Type Description
PscPropagationStatus

PscPropagationStatus instance

decode(reader, length)

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

Decodes a PscPropagationStatus message from the specified reader or buffer.

Parameters
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
Type Description
PscPropagationStatus

PscPropagationStatus

decodeDelimited(reader)

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

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
PscPropagationStatus

PscPropagationStatus

encode(message, writer)

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

Encodes the specified PscPropagationStatus message. Does not implicitly messages.

Parameters
Name Description
message IPscPropagationStatus

PscPropagationStatus message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

encodeDelimited(message, writer)

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

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

Parameters
Name Description
message IPscPropagationStatus

PscPropagationStatus message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.networkconnectivity.v1.PscPropagationStatus;

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

Parameter
Name Description
object { [k: string]: any }

Plain object

Returns
Type Description
PscPropagationStatus

PscPropagationStatus

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for PscPropagationStatus

Parameter
Name Description
typeUrlPrefix string

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

Returns
Type Description
string

The default type url

toJSON()

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

Converts this PscPropagationStatus to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message PscPropagationStatus

PscPropagationStatus

options $protobuf.IConversionOptions

Conversion options

Returns
Type Description
{ [k: string]: any }

Plain object

verify(message)

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

Verifies a PscPropagationStatus message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not