Class NetworkConnection.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
-
- com.google.cloud.migrationcenter.v1.NetworkConnection.Builder
-
- All Implemented Interfaces:
NetworkConnectionOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- NetworkConnection
public static final class NetworkConnection.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder> implements NetworkConnectionOrBuilder
Protobuf typegoogle.cloud.migrationcenter.v1.NetworkConnection
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkConnection.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
NetworkConnection
build()
NetworkConnection
buildPartial()
NetworkConnection.Builder
clear()
NetworkConnection.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
NetworkConnection.Builder
clearLocalIpAddress()
Local IP address.NetworkConnection.Builder
clearLocalPort()
Local port.NetworkConnection.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
NetworkConnection.Builder
clearPid()
Process ID.NetworkConnection.Builder
clearProcessName()
Process or service name.NetworkConnection.Builder
clearProtocol()
Connection protocol (e.g.NetworkConnection.Builder
clearRemoteIpAddress()
Remote IP address.NetworkConnection.Builder
clearRemotePort()
Remote port.NetworkConnection.Builder
clearState()
Network connection state.NetworkConnection.Builder
clone()
NetworkConnection
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getLocalIpAddress()
Local IP address.com.google.protobuf.ByteString
getLocalIpAddressBytes()
Local IP address.int
getLocalPort()
Local port.long
getPid()
Process ID.String
getProcessName()
Process or service name.com.google.protobuf.ByteString
getProcessNameBytes()
Process or service name.String
getProtocol()
Connection protocol (e.g.com.google.protobuf.ByteString
getProtocolBytes()
Connection protocol (e.g.String
getRemoteIpAddress()
Remote IP address.com.google.protobuf.ByteString
getRemoteIpAddressBytes()
Remote IP address.int
getRemotePort()
Remote port.NetworkConnection.State
getState()
Network connection state.int
getStateValue()
Network connection state.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
NetworkConnection.Builder
mergeFrom(NetworkConnection other)
NetworkConnection.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
NetworkConnection.Builder
mergeFrom(com.google.protobuf.Message other)
NetworkConnection.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
NetworkConnection.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
NetworkConnection.Builder
setLocalIpAddress(String value)
Local IP address.NetworkConnection.Builder
setLocalIpAddressBytes(com.google.protobuf.ByteString value)
Local IP address.NetworkConnection.Builder
setLocalPort(int value)
Local port.NetworkConnection.Builder
setPid(long value)
Process ID.NetworkConnection.Builder
setProcessName(String value)
Process or service name.NetworkConnection.Builder
setProcessNameBytes(com.google.protobuf.ByteString value)
Process or service name.NetworkConnection.Builder
setProtocol(String value)
Connection protocol (e.g.NetworkConnection.Builder
setProtocolBytes(com.google.protobuf.ByteString value)
Connection protocol (e.g.NetworkConnection.Builder
setRemoteIpAddress(String value)
Remote IP address.NetworkConnection.Builder
setRemoteIpAddressBytes(com.google.protobuf.ByteString value)
Remote IP address.NetworkConnection.Builder
setRemotePort(int value)
Remote port.NetworkConnection.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
NetworkConnection.Builder
setState(NetworkConnection.State value)
Network connection state.NetworkConnection.Builder
setStateValue(int value)
Network connection state.NetworkConnection.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
-
clear
public NetworkConnection.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
-
getDefaultInstanceForType
public NetworkConnection getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public NetworkConnection build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NetworkConnection buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NetworkConnection.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
-
setField
public NetworkConnection.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
-
clearField
public NetworkConnection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
-
clearOneof
public NetworkConnection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
-
setRepeatedField
public NetworkConnection.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
-
addRepeatedField
public NetworkConnection.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
-
mergeFrom
public NetworkConnection.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NetworkConnection.Builder>
-
mergeFrom
public NetworkConnection.Builder mergeFrom(NetworkConnection other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
-
mergeFrom
public NetworkConnection.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NetworkConnection.Builder>
- Throws:
IOException
-
getProtocol
public String getProtocol()
Connection protocol (e.g. TCP/UDP).
string protocol = 1;
- Specified by:
getProtocol
in interfaceNetworkConnectionOrBuilder
- Returns:
- The protocol.
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()
Connection protocol (e.g. TCP/UDP).
string protocol = 1;
- Specified by:
getProtocolBytes
in interfaceNetworkConnectionOrBuilder
- Returns:
- The bytes for protocol.
-
setProtocol
public NetworkConnection.Builder setProtocol(String value)
Connection protocol (e.g. TCP/UDP).
string protocol = 1;
- Parameters:
value
- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
public NetworkConnection.Builder clearProtocol()
Connection protocol (e.g. TCP/UDP).
string protocol = 1;
- Returns:
- This builder for chaining.
-
setProtocolBytes
public NetworkConnection.Builder setProtocolBytes(com.google.protobuf.ByteString value)
Connection protocol (e.g. TCP/UDP).
string protocol = 1;
- Parameters:
value
- The bytes for protocol to set.- Returns:
- This builder for chaining.
-
getLocalIpAddress
public String getLocalIpAddress()
Local IP address.
string local_ip_address = 2;
- Specified by:
getLocalIpAddress
in interfaceNetworkConnectionOrBuilder
- Returns:
- The localIpAddress.
-
getLocalIpAddressBytes
public com.google.protobuf.ByteString getLocalIpAddressBytes()
Local IP address.
string local_ip_address = 2;
- Specified by:
getLocalIpAddressBytes
in interfaceNetworkConnectionOrBuilder
- Returns:
- The bytes for localIpAddress.
-
setLocalIpAddress
public NetworkConnection.Builder setLocalIpAddress(String value)
Local IP address.
string local_ip_address = 2;
- Parameters:
value
- The localIpAddress to set.- Returns:
- This builder for chaining.
-
clearLocalIpAddress
public NetworkConnection.Builder clearLocalIpAddress()
Local IP address.
string local_ip_address = 2;
- Returns:
- This builder for chaining.
-
setLocalIpAddressBytes
public NetworkConnection.Builder setLocalIpAddressBytes(com.google.protobuf.ByteString value)
Local IP address.
string local_ip_address = 2;
- Parameters:
value
- The bytes for localIpAddress to set.- Returns:
- This builder for chaining.
-
getLocalPort
public int getLocalPort()
Local port.
int32 local_port = 3;
- Specified by:
getLocalPort
in interfaceNetworkConnectionOrBuilder
- Returns:
- The localPort.
-
setLocalPort
public NetworkConnection.Builder setLocalPort(int value)
Local port.
int32 local_port = 3;
- Parameters:
value
- The localPort to set.- Returns:
- This builder for chaining.
-
clearLocalPort
public NetworkConnection.Builder clearLocalPort()
Local port.
int32 local_port = 3;
- Returns:
- This builder for chaining.
-
getRemoteIpAddress
public String getRemoteIpAddress()
Remote IP address.
string remote_ip_address = 4;
- Specified by:
getRemoteIpAddress
in interfaceNetworkConnectionOrBuilder
- Returns:
- The remoteIpAddress.
-
getRemoteIpAddressBytes
public com.google.protobuf.ByteString getRemoteIpAddressBytes()
Remote IP address.
string remote_ip_address = 4;
- Specified by:
getRemoteIpAddressBytes
in interfaceNetworkConnectionOrBuilder
- Returns:
- The bytes for remoteIpAddress.
-
setRemoteIpAddress
public NetworkConnection.Builder setRemoteIpAddress(String value)
Remote IP address.
string remote_ip_address = 4;
- Parameters:
value
- The remoteIpAddress to set.- Returns:
- This builder for chaining.
-
clearRemoteIpAddress
public NetworkConnection.Builder clearRemoteIpAddress()
Remote IP address.
string remote_ip_address = 4;
- Returns:
- This builder for chaining.
-
setRemoteIpAddressBytes
public NetworkConnection.Builder setRemoteIpAddressBytes(com.google.protobuf.ByteString value)
Remote IP address.
string remote_ip_address = 4;
- Parameters:
value
- The bytes for remoteIpAddress to set.- Returns:
- This builder for chaining.
-
getRemotePort
public int getRemotePort()
Remote port.
int32 remote_port = 5;
- Specified by:
getRemotePort
in interfaceNetworkConnectionOrBuilder
- Returns:
- The remotePort.
-
setRemotePort
public NetworkConnection.Builder setRemotePort(int value)
Remote port.
int32 remote_port = 5;
- Parameters:
value
- The remotePort to set.- Returns:
- This builder for chaining.
-
clearRemotePort
public NetworkConnection.Builder clearRemotePort()
Remote port.
int32 remote_port = 5;
- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()
Network connection state.
.google.cloud.migrationcenter.v1.NetworkConnection.State state = 6;
- Specified by:
getStateValue
in interfaceNetworkConnectionOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public NetworkConnection.Builder setStateValue(int value)
Network connection state.
.google.cloud.migrationcenter.v1.NetworkConnection.State state = 6;
- Parameters:
value
- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public NetworkConnection.State getState()
Network connection state.
.google.cloud.migrationcenter.v1.NetworkConnection.State state = 6;
- Specified by:
getState
in interfaceNetworkConnectionOrBuilder
- Returns:
- The state.
-
setState
public NetworkConnection.Builder setState(NetworkConnection.State value)
Network connection state.
.google.cloud.migrationcenter.v1.NetworkConnection.State state = 6;
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
clearState
public NetworkConnection.Builder clearState()
Network connection state.
.google.cloud.migrationcenter.v1.NetworkConnection.State state = 6;
- Returns:
- This builder for chaining.
-
getPid
public long getPid()
Process ID.
int64 pid = 7;
- Specified by:
getPid
in interfaceNetworkConnectionOrBuilder
- Returns:
- The pid.
-
setPid
public NetworkConnection.Builder setPid(long value)
Process ID.
int64 pid = 7;
- Parameters:
value
- The pid to set.- Returns:
- This builder for chaining.
-
clearPid
public NetworkConnection.Builder clearPid()
Process ID.
int64 pid = 7;
- Returns:
- This builder for chaining.
-
getProcessName
public String getProcessName()
Process or service name.
string process_name = 8;
- Specified by:
getProcessName
in interfaceNetworkConnectionOrBuilder
- Returns:
- The processName.
-
getProcessNameBytes
public com.google.protobuf.ByteString getProcessNameBytes()
Process or service name.
string process_name = 8;
- Specified by:
getProcessNameBytes
in interfaceNetworkConnectionOrBuilder
- Returns:
- The bytes for processName.
-
setProcessName
public NetworkConnection.Builder setProcessName(String value)
Process or service name.
string process_name = 8;
- Parameters:
value
- The processName to set.- Returns:
- This builder for chaining.
-
clearProcessName
public NetworkConnection.Builder clearProcessName()
Process or service name.
string process_name = 8;
- Returns:
- This builder for chaining.
-
setProcessNameBytes
public NetworkConnection.Builder setProcessNameBytes(com.google.protobuf.ByteString value)
Process or service name.
string process_name = 8;
- Parameters:
value
- The bytes for processName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final NetworkConnection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
-
mergeUnknownFields
public final NetworkConnection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
-
-