Class NetworkConnection.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<NetworkConnection.Builder>
implements NetworkConnectionOrBuilder
Protobuf type
google.cloud.migrationcenter.v1.NetworkConnection-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Local IP address.Local port.clearPid()Process ID.Process or service name.Connection protocol (e.g.Remote IP address.Remote port.Network connection state.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorLocal IP address.com.google.protobuf.ByteStringLocal IP address.intLocal port.longgetPid()Process ID.Process or service name.com.google.protobuf.ByteStringProcess or service name.Connection protocol (e.g.com.google.protobuf.ByteStringConnection protocol (e.g.Remote IP address.com.google.protobuf.ByteStringRemote IP address.intRemote port.getState()Network connection state.intNetwork connection state.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(NetworkConnection other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setLocalIpAddress(String value) Local IP address.setLocalIpAddressBytes(com.google.protobuf.ByteString value) Local IP address.setLocalPort(int value) Local port.setPid(long value) Process ID.setProcessName(String value) Process or service name.setProcessNameBytes(com.google.protobuf.ByteString value) Process or service name.setProtocol(String value) Connection protocol (e.g.setProtocolBytes(com.google.protobuf.ByteString value) Connection protocol (e.g.setRemoteIpAddress(String value) Remote IP address.setRemoteIpAddressBytes(com.google.protobuf.ByteString value) Remote IP address.setRemotePort(int value) Remote port.setState(NetworkConnection.State value) Network connection state.setStateValue(int value) Network connection state.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NetworkConnection.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<NetworkConnection.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<NetworkConnection.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkConnection.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NetworkConnection.Builder>
-
mergeFrom
public NetworkConnection.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkConnection.Builder>- Throws:
IOException
-
getProtocol
Connection protocol (e.g. TCP/UDP).
string protocol = 1;- Specified by:
getProtocolin interfaceNetworkConnectionOrBuilder- Returns:
- The protocol.
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()Connection protocol (e.g. TCP/UDP).
string protocol = 1;- Specified by:
getProtocolBytesin interfaceNetworkConnectionOrBuilder- Returns:
- The bytes for protocol.
-
setProtocol
Connection protocol (e.g. TCP/UDP).
string protocol = 1;- Parameters:
value- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
Connection protocol (e.g. TCP/UDP).
string protocol = 1;- Returns:
- This builder for chaining.
-
setProtocolBytes
Connection protocol (e.g. TCP/UDP).
string protocol = 1;- Parameters:
value- The bytes for protocol to set.- Returns:
- This builder for chaining.
-
getLocalIpAddress
Local IP address.
string local_ip_address = 2;- Specified by:
getLocalIpAddressin interfaceNetworkConnectionOrBuilder- Returns:
- The localIpAddress.
-
getLocalIpAddressBytes
public com.google.protobuf.ByteString getLocalIpAddressBytes()Local IP address.
string local_ip_address = 2;- Specified by:
getLocalIpAddressBytesin interfaceNetworkConnectionOrBuilder- Returns:
- The bytes for localIpAddress.
-
setLocalIpAddress
Local IP address.
string local_ip_address = 2;- Parameters:
value- The localIpAddress to set.- Returns:
- This builder for chaining.
-
clearLocalIpAddress
Local IP address.
string local_ip_address = 2;- Returns:
- This builder for chaining.
-
setLocalIpAddressBytes
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:
getLocalPortin interfaceNetworkConnectionOrBuilder- Returns:
- The localPort.
-
setLocalPort
Local port.
int32 local_port = 3;- Parameters:
value- The localPort to set.- Returns:
- This builder for chaining.
-
clearLocalPort
Local port.
int32 local_port = 3;- Returns:
- This builder for chaining.
-
getRemoteIpAddress
Remote IP address.
string remote_ip_address = 4;- Specified by:
getRemoteIpAddressin interfaceNetworkConnectionOrBuilder- Returns:
- The remoteIpAddress.
-
getRemoteIpAddressBytes
public com.google.protobuf.ByteString getRemoteIpAddressBytes()Remote IP address.
string remote_ip_address = 4;- Specified by:
getRemoteIpAddressBytesin interfaceNetworkConnectionOrBuilder- Returns:
- The bytes for remoteIpAddress.
-
setRemoteIpAddress
Remote IP address.
string remote_ip_address = 4;- Parameters:
value- The remoteIpAddress to set.- Returns:
- This builder for chaining.
-
clearRemoteIpAddress
Remote IP address.
string remote_ip_address = 4;- Returns:
- This builder for chaining.
-
setRemoteIpAddressBytes
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:
getRemotePortin interfaceNetworkConnectionOrBuilder- Returns:
- The remotePort.
-
setRemotePort
Remote port.
int32 remote_port = 5;- Parameters:
value- The remotePort to set.- Returns:
- This builder for chaining.
-
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:
getStateValuein interfaceNetworkConnectionOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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
Network connection state.
.google.cloud.migrationcenter.v1.NetworkConnection.State state = 6;- Specified by:
getStatein interfaceNetworkConnectionOrBuilder- Returns:
- The state.
-
setState
Network connection state.
.google.cloud.migrationcenter.v1.NetworkConnection.State state = 6;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
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:
getPidin interfaceNetworkConnectionOrBuilder- Returns:
- The pid.
-
setPid
Process ID.
int64 pid = 7;- Parameters:
value- The pid to set.- Returns:
- This builder for chaining.
-
clearPid
Process ID.
int64 pid = 7;- Returns:
- This builder for chaining.
-
getProcessName
Process or service name.
string process_name = 8;- Specified by:
getProcessNamein interfaceNetworkConnectionOrBuilder- Returns:
- The processName.
-
getProcessNameBytes
public com.google.protobuf.ByteString getProcessNameBytes()Process or service name.
string process_name = 8;- Specified by:
getProcessNameBytesin interfaceNetworkConnectionOrBuilder- Returns:
- The bytes for processName.
-
setProcessName
Process or service name.
string process_name = 8;- Parameters:
value- The processName to set.- Returns:
- This builder for chaining.
-
clearProcessName
Process or service name.
string process_name = 8;- Returns:
- This builder for chaining.
-
setProcessNameBytes
Process or service name.
string process_name = 8;- Parameters:
value- The bytes for processName to set.- Returns:
- This builder for chaining.
-