Class Connection.Builder

  • All Implemented Interfaces:
    ConnectionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Connection

    public static final class Connection.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Connection.Builder>
    implements ConnectionOrBuilder
     Contains information about the IP connection associated with the finding.
     
    Protobuf type google.cloud.securitycenter.v1.Connection
    • 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<Connection.Builder>
      • clear

        public Connection.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<Connection.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<Connection.Builder>
      • getDefaultInstanceForType

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

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

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

        public Connection.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<Connection.Builder>
      • setField

        public Connection.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<Connection.Builder>
      • clearField

        public Connection.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<Connection.Builder>
      • clearOneof

        public Connection.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<Connection.Builder>
      • setRepeatedField

        public Connection.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<Connection.Builder>
      • addRepeatedField

        public Connection.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<Connection.Builder>
      • mergeFrom

        public Connection.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<Connection.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Connection.Builder>
      • mergeFrom

        public Connection.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<Connection.Builder>
        Throws:
        IOException
      • getDestinationIp

        public String getDestinationIp()
         Destination IP address. Not present for sockets that are listening and not
         connected.
         
        string destination_ip = 1;
        Specified by:
        getDestinationIp in interface ConnectionOrBuilder
        Returns:
        The destinationIp.
      • getDestinationIpBytes

        public com.google.protobuf.ByteString getDestinationIpBytes()
         Destination IP address. Not present for sockets that are listening and not
         connected.
         
        string destination_ip = 1;
        Specified by:
        getDestinationIpBytes in interface ConnectionOrBuilder
        Returns:
        The bytes for destinationIp.
      • setDestinationIp

        public Connection.Builder setDestinationIp​(String value)
         Destination IP address. Not present for sockets that are listening and not
         connected.
         
        string destination_ip = 1;
        Parameters:
        value - The destinationIp to set.
        Returns:
        This builder for chaining.
      • clearDestinationIp

        public Connection.Builder clearDestinationIp()
         Destination IP address. Not present for sockets that are listening and not
         connected.
         
        string destination_ip = 1;
        Returns:
        This builder for chaining.
      • setDestinationIpBytes

        public Connection.Builder setDestinationIpBytes​(com.google.protobuf.ByteString value)
         Destination IP address. Not present for sockets that are listening and not
         connected.
         
        string destination_ip = 1;
        Parameters:
        value - The bytes for destinationIp to set.
        Returns:
        This builder for chaining.
      • getDestinationPort

        public int getDestinationPort()
         Destination port. Not present for sockets that are listening and not
         connected.
         
        int32 destination_port = 2;
        Specified by:
        getDestinationPort in interface ConnectionOrBuilder
        Returns:
        The destinationPort.
      • setDestinationPort

        public Connection.Builder setDestinationPort​(int value)
         Destination port. Not present for sockets that are listening and not
         connected.
         
        int32 destination_port = 2;
        Parameters:
        value - The destinationPort to set.
        Returns:
        This builder for chaining.
      • clearDestinationPort

        public Connection.Builder clearDestinationPort()
         Destination port. Not present for sockets that are listening and not
         connected.
         
        int32 destination_port = 2;
        Returns:
        This builder for chaining.
      • getSourceIpBytes

        public com.google.protobuf.ByteString getSourceIpBytes()
         Source IP address.
         
        string source_ip = 3;
        Specified by:
        getSourceIpBytes in interface ConnectionOrBuilder
        Returns:
        The bytes for sourceIp.
      • setSourceIp

        public Connection.Builder setSourceIp​(String value)
         Source IP address.
         
        string source_ip = 3;
        Parameters:
        value - The sourceIp to set.
        Returns:
        This builder for chaining.
      • clearSourceIp

        public Connection.Builder clearSourceIp()
         Source IP address.
         
        string source_ip = 3;
        Returns:
        This builder for chaining.
      • setSourceIpBytes

        public Connection.Builder setSourceIpBytes​(com.google.protobuf.ByteString value)
         Source IP address.
         
        string source_ip = 3;
        Parameters:
        value - The bytes for sourceIp to set.
        Returns:
        This builder for chaining.
      • getSourcePort

        public int getSourcePort()
         Source port.
         
        int32 source_port = 4;
        Specified by:
        getSourcePort in interface ConnectionOrBuilder
        Returns:
        The sourcePort.
      • setSourcePort

        public Connection.Builder setSourcePort​(int value)
         Source port.
         
        int32 source_port = 4;
        Parameters:
        value - The sourcePort to set.
        Returns:
        This builder for chaining.
      • clearSourcePort

        public Connection.Builder clearSourcePort()
         Source port.
         
        int32 source_port = 4;
        Returns:
        This builder for chaining.
      • getProtocolValue

        public int getProtocolValue()
         IANA Internet Protocol Number such as TCP(6) and UDP(17).
         
        .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5;
        Specified by:
        getProtocolValue in interface ConnectionOrBuilder
        Returns:
        The enum numeric value on the wire for protocol.
      • setProtocolValue

        public Connection.Builder setProtocolValue​(int value)
         IANA Internet Protocol Number such as TCP(6) and UDP(17).
         
        .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5;
        Parameters:
        value - The enum numeric value on the wire for protocol to set.
        Returns:
        This builder for chaining.
      • getProtocol

        public Connection.Protocol getProtocol()
         IANA Internet Protocol Number such as TCP(6) and UDP(17).
         
        .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5;
        Specified by:
        getProtocol in interface ConnectionOrBuilder
        Returns:
        The protocol.
      • setProtocol

        public Connection.Builder setProtocol​(Connection.Protocol value)
         IANA Internet Protocol Number such as TCP(6) and UDP(17).
         
        .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5;
        Parameters:
        value - The protocol to set.
        Returns:
        This builder for chaining.
      • clearProtocol

        public Connection.Builder clearProtocol()
         IANA Internet Protocol Number such as TCP(6) and UDP(17).
         
        .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Connection.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<Connection.Builder>
      • mergeUnknownFields

        public final Connection.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<Connection.Builder>