Class NetworkConnection.Builder (0.18.0)

public static final class NetworkConnection.Builder extends GeneratedMessageV3.Builder<NetworkConnection.Builder> implements NetworkConnectionOrBuilder

Protobuf type google.cloud.migrationcenter.v1.NetworkConnection

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkConnection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkConnection.Builder
Overrides

build()

public NetworkConnection build()
Returns
TypeDescription
NetworkConnection

buildPartial()

public NetworkConnection buildPartial()
Returns
TypeDescription
NetworkConnection

clear()

public NetworkConnection.Builder clear()
Returns
TypeDescription
NetworkConnection.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NetworkConnection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NetworkConnection.Builder
Overrides

clearLocalIpAddress()

public NetworkConnection.Builder clearLocalIpAddress()

Local IP address.

string local_ip_address = 2;

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

clearLocalPort()

public NetworkConnection.Builder clearLocalPort()

Local port.

int32 local_port = 3;

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkConnection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NetworkConnection.Builder
Overrides

clearPid()

public NetworkConnection.Builder clearPid()

Process ID.

int64 pid = 7;

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

clearProcessName()

public NetworkConnection.Builder clearProcessName()

Process or service name.

string process_name = 8;

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

clearProtocol()

public NetworkConnection.Builder clearProtocol()

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

string protocol = 1;

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

clearRemoteIpAddress()

public NetworkConnection.Builder clearRemoteIpAddress()

Remote IP address.

string remote_ip_address = 4;

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

clearRemotePort()

public NetworkConnection.Builder clearRemotePort()

Remote port.

int32 remote_port = 5;

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

clearState()

public NetworkConnection.Builder clearState()

Network connection state.

.google.cloud.migrationcenter.v1.NetworkConnection.State state = 6;

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

clone()

public NetworkConnection.Builder clone()
Returns
TypeDescription
NetworkConnection.Builder
Overrides

getDefaultInstanceForType()

public NetworkConnection getDefaultInstanceForType()
Returns
TypeDescription
NetworkConnection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLocalIpAddress()

public String getLocalIpAddress()

Local IP address.

string local_ip_address = 2;

Returns
TypeDescription
String

The localIpAddress.

getLocalIpAddressBytes()

public ByteString getLocalIpAddressBytes()

Local IP address.

string local_ip_address = 2;

Returns
TypeDescription
ByteString

The bytes for localIpAddress.

getLocalPort()

public int getLocalPort()

Local port.

int32 local_port = 3;

Returns
TypeDescription
int

The localPort.

getPid()

public long getPid()

Process ID.

int64 pid = 7;

Returns
TypeDescription
long

The pid.

getProcessName()

public String getProcessName()

Process or service name.

string process_name = 8;

Returns
TypeDescription
String

The processName.

getProcessNameBytes()

public ByteString getProcessNameBytes()

Process or service name.

string process_name = 8;

Returns
TypeDescription
ByteString

The bytes for processName.

getProtocol()

public String getProtocol()

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

string protocol = 1;

Returns
TypeDescription
String

The protocol.

getProtocolBytes()

public ByteString getProtocolBytes()

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

string protocol = 1;

Returns
TypeDescription
ByteString

The bytes for protocol.

getRemoteIpAddress()

public String getRemoteIpAddress()

Remote IP address.

string remote_ip_address = 4;

Returns
TypeDescription
String

The remoteIpAddress.

getRemoteIpAddressBytes()

public ByteString getRemoteIpAddressBytes()

Remote IP address.

string remote_ip_address = 4;

Returns
TypeDescription
ByteString

The bytes for remoteIpAddress.

getRemotePort()

public int getRemotePort()

Remote port.

int32 remote_port = 5;

Returns
TypeDescription
int

The remotePort.

getState()

public NetworkConnection.State getState()

Network connection state.

.google.cloud.migrationcenter.v1.NetworkConnection.State state = 6;

Returns
TypeDescription
NetworkConnection.State

The state.

getStateValue()

public int getStateValue()

Network connection state.

.google.cloud.migrationcenter.v1.NetworkConnection.State state = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NetworkConnection other)

public NetworkConnection.Builder mergeFrom(NetworkConnection other)
Parameter
NameDescription
otherNetworkConnection
Returns
TypeDescription
NetworkConnection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworkConnection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkConnection.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NetworkConnection.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NetworkConnection.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkConnection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkConnection.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkConnection.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkConnection.Builder
Overrides

setLocalIpAddress(String value)

public NetworkConnection.Builder setLocalIpAddress(String value)

Local IP address.

string local_ip_address = 2;

Parameter
NameDescription
valueString

The localIpAddress to set.

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

setLocalIpAddressBytes(ByteString value)

public NetworkConnection.Builder setLocalIpAddressBytes(ByteString value)

Local IP address.

string local_ip_address = 2;

Parameter
NameDescription
valueByteString

The bytes for localIpAddress to set.

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

setLocalPort(int value)

public NetworkConnection.Builder setLocalPort(int value)

Local port.

int32 local_port = 3;

Parameter
NameDescription
valueint

The localPort to set.

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

setPid(long value)

public NetworkConnection.Builder setPid(long value)

Process ID.

int64 pid = 7;

Parameter
NameDescription
valuelong

The pid to set.

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

setProcessName(String value)

public NetworkConnection.Builder setProcessName(String value)

Process or service name.

string process_name = 8;

Parameter
NameDescription
valueString

The processName to set.

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

setProcessNameBytes(ByteString value)

public NetworkConnection.Builder setProcessNameBytes(ByteString value)

Process or service name.

string process_name = 8;

Parameter
NameDescription
valueByteString

The bytes for processName to set.

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

setProtocol(String value)

public NetworkConnection.Builder setProtocol(String value)

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

string protocol = 1;

Parameter
NameDescription
valueString

The protocol to set.

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

setProtocolBytes(ByteString value)

public NetworkConnection.Builder setProtocolBytes(ByteString value)

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

string protocol = 1;

Parameter
NameDescription
valueByteString

The bytes for protocol to set.

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

setRemoteIpAddress(String value)

public NetworkConnection.Builder setRemoteIpAddress(String value)

Remote IP address.

string remote_ip_address = 4;

Parameter
NameDescription
valueString

The remoteIpAddress to set.

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

setRemoteIpAddressBytes(ByteString value)

public NetworkConnection.Builder setRemoteIpAddressBytes(ByteString value)

Remote IP address.

string remote_ip_address = 4;

Parameter
NameDescription
valueByteString

The bytes for remoteIpAddress to set.

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

setRemotePort(int value)

public NetworkConnection.Builder setRemotePort(int value)

Remote port.

int32 remote_port = 5;

Parameter
NameDescription
valueint

The remotePort to set.

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NetworkConnection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NetworkConnection.Builder
Overrides

setState(NetworkConnection.State value)

public NetworkConnection.Builder setState(NetworkConnection.State value)

Network connection state.

.google.cloud.migrationcenter.v1.NetworkConnection.State state = 6;

Parameter
NameDescription
valueNetworkConnection.State

The state to set.

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

setStateValue(int value)

public NetworkConnection.Builder setStateValue(int value)

Network connection state.

.google.cloud.migrationcenter.v1.NetworkConnection.State state = 6;

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
NetworkConnection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkConnection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkConnection.Builder
Overrides