Class Connection (2.37.0)

public final class Connection extends GeneratedMessageV3 implements ConnectionOrBuilder

Contains information about the IP connection associated with the finding.

Protobuf type google.cloud.securitycenter.v1.Connection

Implements

ConnectionOrBuilder

Static Fields

DESTINATION_IP_FIELD_NUMBER

public static final int DESTINATION_IP_FIELD_NUMBER
Field Value
TypeDescription
int

DESTINATION_PORT_FIELD_NUMBER

public static final int DESTINATION_PORT_FIELD_NUMBER
Field Value
TypeDescription
int

PROTOCOL_FIELD_NUMBER

public static final int PROTOCOL_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_IP_FIELD_NUMBER

public static final int SOURCE_IP_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_PORT_FIELD_NUMBER

public static final int SOURCE_PORT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Connection getDefaultInstance()
Returns
TypeDescription
Connection

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Connection.Builder newBuilder()
Returns
TypeDescription
Connection.Builder

newBuilder(Connection prototype)

public static Connection.Builder newBuilder(Connection prototype)
Parameter
NameDescription
prototypeConnection
Returns
TypeDescription
Connection.Builder

parseDelimitedFrom(InputStream input)

public static Connection parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Connection
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Connection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Connection
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Connection parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Connection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Connection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Connection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Connection parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Connection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Connection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Connection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Connection parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Connection
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Connection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Connection
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Connection parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Connection
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Connection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Connection
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Connection parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Connection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Connection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Connection
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Connection> parser()
Returns
TypeDescription
Parser<Connection>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Connection getDefaultInstanceForType()
Returns
TypeDescription
Connection

getDestinationIp()

public String getDestinationIp()

Destination IP address. Not present for sockets that are listening and not connected.

string destination_ip = 1;

Returns
TypeDescription
String

The destinationIp.

getDestinationIpBytes()

public ByteString getDestinationIpBytes()

Destination IP address. Not present for sockets that are listening and not connected.

string destination_ip = 1;

Returns
TypeDescription
ByteString

The bytes for destinationIp.

getDestinationPort()

public int getDestinationPort()

Destination port. Not present for sockets that are listening and not connected.

int32 destination_port = 2;

Returns
TypeDescription
int

The destinationPort.

getParserForType()

public Parser<Connection> getParserForType()
Returns
TypeDescription
Parser<Connection>
Overrides

getProtocol()

public Connection.Protocol getProtocol()

IANA Internet Protocol Number such as TCP(6) and UDP(17).

.google.cloud.securitycenter.v1.Connection.Protocol protocol = 5;

Returns
TypeDescription
Connection.Protocol

The protocol.

getProtocolValue()

public int getProtocolValue()

IANA Internet Protocol Number such as TCP(6) and UDP(17).

.google.cloud.securitycenter.v1.Connection.Protocol protocol = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for protocol.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceIp()

public String getSourceIp()

Source IP address.

string source_ip = 3;

Returns
TypeDescription
String

The sourceIp.

getSourceIpBytes()

public ByteString getSourceIpBytes()

Source IP address.

string source_ip = 3;

Returns
TypeDescription
ByteString

The bytes for sourceIp.

getSourcePort()

public int getSourcePort()

Source port.

int32 source_port = 4;

Returns
TypeDescription
int

The sourcePort.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Connection.Builder newBuilderForType()
Returns
TypeDescription
Connection.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Connection.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Connection.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Connection.Builder toBuilder()
Returns
TypeDescription
Connection.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException