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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<NetworkConnection.Builder>
    • clear

      public NetworkConnection.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<NetworkConnection.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<NetworkConnection.Builder>
    • getDefaultInstanceForType

      public NetworkConnection getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public NetworkConnection build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public NetworkConnection buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public NetworkConnection.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkConnection.Builder>
    • mergeFrom

      public NetworkConnection.Builder mergeFrom(NetworkConnection other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface NetworkConnectionOrBuilder
      Returns:
      The protocol.
    • getProtocolBytes

      public com.google.protobuf.ByteString getProtocolBytes()
       Connection protocol (e.g. TCP/UDP).
       
      string protocol = 1;
      Specified by:
      getProtocolBytes in interface NetworkConnectionOrBuilder
      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 interface NetworkConnectionOrBuilder
      Returns:
      The localIpAddress.
    • getLocalIpAddressBytes

      public com.google.protobuf.ByteString getLocalIpAddressBytes()
       Local IP address.
       
      string local_ip_address = 2;
      Specified by:
      getLocalIpAddressBytes in interface NetworkConnectionOrBuilder
      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 interface NetworkConnectionOrBuilder
      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 interface NetworkConnectionOrBuilder
      Returns:
      The remoteIpAddress.
    • getRemoteIpAddressBytes

      public com.google.protobuf.ByteString getRemoteIpAddressBytes()
       Remote IP address.
       
      string remote_ip_address = 4;
      Specified by:
      getRemoteIpAddressBytes in interface NetworkConnectionOrBuilder
      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 interface NetworkConnectionOrBuilder
      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 interface NetworkConnectionOrBuilder
      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 interface NetworkConnectionOrBuilder
      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

      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 interface NetworkConnectionOrBuilder
      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 interface NetworkConnectionOrBuilder
      Returns:
      The processName.
    • getProcessNameBytes

      public com.google.protobuf.ByteString getProcessNameBytes()
       Process or service name.
       
      string process_name = 8;
      Specified by:
      getProcessNameBytes in interface NetworkConnectionOrBuilder
      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.