Class protos.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection (4.6.0)

Represents a ConsumerPscConnection.

Package

@google-cloud/network-connectivity

Constructors

(constructor)(properties)

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

Constructs a new ConsumerPscConnection.

Parameter
Name Description
properties IConsumerPscConnection

Properties to set

Properties

error

public error?: (google.rpc.IStatus|null);

ConsumerPscConnection error.

errorInfo

public errorInfo?: (google.rpc.IErrorInfo|null);

ConsumerPscConnection errorInfo.

errorType

public errorType: (google.cloud.networkconnectivity.v1.ConnectionErrorType|keyof typeof google.cloud.networkconnectivity.v1.ConnectionErrorType);

ConsumerPscConnection errorType.

forwardingRule

public forwardingRule: string;

ConsumerPscConnection forwardingRule.

gceOperation

public gceOperation: string;

ConsumerPscConnection gceOperation.

ip

public ip: string;

ConsumerPscConnection ip.

ipVersion

public ipVersion?: (google.cloud.networkconnectivity.v1.IPVersion|keyof typeof google.cloud.networkconnectivity.v1.IPVersion|null);

ConsumerPscConnection ipVersion.

network

public network: string;

ConsumerPscConnection network.

producerInstanceId

public producerInstanceId: string;

ConsumerPscConnection producerInstanceId.

producerInstanceMetadata

public producerInstanceMetadata: { [k: string]: string };

ConsumerPscConnection producerInstanceMetadata.

project

public project: string;

ConsumerPscConnection project.

pscConnectionId

public pscConnectionId: string;

ConsumerPscConnection pscConnectionId.

selectedSubnetwork

public selectedSubnetwork: string;

ConsumerPscConnection selectedSubnetwork.

serviceAttachmentUri

public serviceAttachmentUri: string;

ConsumerPscConnection serviceAttachmentUri.

state

public state: (google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.State|keyof typeof google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection.State);

ConsumerPscConnection state.

Methods

create(properties)

public static create(properties?: google.cloud.networkconnectivity.v1.ServiceConnectionMap.IConsumerPscConnection): google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection;

Creates a new ConsumerPscConnection instance using the specified properties.

Parameter
Name Description
properties IConsumerPscConnection

Properties to set

Returns
Type Description
ConsumerPscConnection

ConsumerPscConnection instance

decode(reader, length)

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

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

ConsumerPscConnection

decodeDelimited(reader)

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

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
ConsumerPscConnection

ConsumerPscConnection

encode(message, writer)

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

Encodes the specified ConsumerPscConnection message. Does not implicitly messages.

Parameters
Name Description
message IConsumerPscConnection

ConsumerPscConnection 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.ServiceConnectionMap.IConsumerPscConnection, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IConsumerPscConnection

ConsumerPscConnection 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.ServiceConnectionMap.ConsumerPscConnection;

Creates a ConsumerPscConnection 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
ConsumerPscConnection

ConsumerPscConnection

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for ConsumerPscConnection

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

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

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message ConsumerPscConnection

ConsumerPscConnection

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