public final class Connection extends GeneratedMessageV3 implements ConnectionOrBuilder
Contains information about the IP connection associated with the finding.
Protobuf type google.cloud.securitycenter.v2.Connection
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DESTINATION_IP_FIELD_NUMBER
public static final int DESTINATION_IP_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DESTINATION_PORT_FIELD_NUMBER
public static final int DESTINATION_PORT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PROTOCOL_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SOURCE_IP_FIELD_NUMBER
public static final int SOURCE_IP_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SOURCE_PORT_FIELD_NUMBER
public static final int SOURCE_PORT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Connection getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Connection.Builder newBuilder()
newBuilder(Connection prototype)
public static Connection.Builder newBuilder(Connection prototype)
public static Connection parseDelimitedFrom(InputStream input)
public static Connection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Connection parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Connection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Connection parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Connection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Connection parseFrom(CodedInputStream input)
public static Connection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Connection parseFrom(InputStream input)
public static Connection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Connection parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Connection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Connection> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Connection getDefaultInstanceForType()
getDestinationIp()
public String getDestinationIp()
Destination IP address. Not present for sockets that are listening and not
connected.
string destination_ip = 1;
Returns |
Type |
Description |
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 |
Type |
Description |
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 |
Type |
Description |
int |
The destinationPort.
|
getParserForType()
public Parser<Connection> getParserForType()
Overrides
getProtocol()
public Connection.Protocol getProtocol()
IANA Internet Protocol Number such as TCP(6) and UDP(17).
.google.cloud.securitycenter.v2.Connection.Protocol protocol = 5;
getProtocolValue()
public int getProtocolValue()
IANA Internet Protocol Number such as TCP(6) and UDP(17).
.google.cloud.securitycenter.v2.Connection.Protocol protocol = 5;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for protocol.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getSourceIp()
public String getSourceIp()
Source IP address.
string source_ip = 3;
Returns |
Type |
Description |
String |
The sourceIp.
|
getSourceIpBytes()
public ByteString getSourceIpBytes()
Source IP address.
string source_ip = 3;
Returns |
Type |
Description |
ByteString |
The bytes for sourceIp.
|
getSourcePort()
public int getSourcePort()
Source port.
int32 source_port = 4;
Returns |
Type |
Description |
int |
The sourcePort.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Connection.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Connection.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Connection.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides