Class NetworkConnection.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public NetworkConnection.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
      • setField

        public NetworkConnection.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
      • clearField

        public NetworkConnection.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
      • clearOneof

        public NetworkConnection.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
      • addRepeatedField

        public NetworkConnection.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • setPid

        public NetworkConnection.Builder setPid​(long value)
         Process ID.
         
        int64 pid = 7;
        Parameters:
        value - The pid to set.
        Returns:
        This builder for chaining.
      • 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.
      • setUnknownFields

        public final NetworkConnection.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>
      • mergeUnknownFields

        public final NetworkConnection.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConnection.Builder>