Google Cloud Migration Center V1 Client - Class NetworkConnection (0.1.0)

Reference documentation and code samples for the Google Cloud Migration Center V1 Client class NetworkConnection.

Generated from protobuf message google.cloud.migrationcenter.v1.NetworkConnection

Namespace

Google \ Cloud \ MigrationCenter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ protocol string

Connection protocol (e.g. TCP/UDP).

↳ local_ip_address string

Local IP address.

↳ local_port int

Local port.

↳ remote_ip_address string

Remote IP address.

↳ remote_port int

Remote port.

↳ state int

Network connection state.

↳ pid int|string

Process ID.

↳ process_name string

Process or service name.

getProtocol

Connection protocol (e.g. TCP/UDP).

Returns
TypeDescription
string

setProtocol

Connection protocol (e.g. TCP/UDP).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLocalIpAddress

Local IP address.

Returns
TypeDescription
string

setLocalIpAddress

Local IP address.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLocalPort

Local port.

Returns
TypeDescription
int

setLocalPort

Local port.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRemoteIpAddress

Remote IP address.

Returns
TypeDescription
string

setRemoteIpAddress

Remote IP address.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRemotePort

Remote port.

Returns
TypeDescription
int

setRemotePort

Remote port.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getState

Network connection state.

Returns
TypeDescription
int

setState

Network connection state.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPid

Process ID.

Returns
TypeDescription
int|string

setPid

Process ID.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getProcessName

Process or service name.

Returns
TypeDescription
string

setProcessName

Process or service name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this