Class Network (0.3.0)

public final class Network extends GeneratedMessage implements NetworkOrBuilder

A network event.

Protobuf type google.backstory.Network

Implements

NetworkOrBuilder

Static Fields

APPLICATION_PROTOCOL_FIELD_NUMBER

public static final int APPLICATION_PROTOCOL_FIELD_NUMBER
Field Value
Type Description
int

APPLICATION_PROTOCOL_VERSION_FIELD_NUMBER

public static final int APPLICATION_PROTOCOL_VERSION_FIELD_NUMBER
Field Value
Type Description
int

ASN_FIELD_NUMBER

public static final int ASN_FIELD_NUMBER
Field Value
Type Description
int

CARRIER_NAME_FIELD_NUMBER

public static final int CARRIER_NAME_FIELD_NUMBER
Field Value
Type Description
int

COMMUNITY_ID_FIELD_NUMBER

public static final int COMMUNITY_ID_FIELD_NUMBER
Field Value
Type Description
int

CONNECTION_STATE_FIELD_NUMBER

public static final int CONNECTION_STATE_FIELD_NUMBER
Field Value
Type Description
int

DHCP_FIELD_NUMBER

public static final int DHCP_FIELD_NUMBER
Field Value
Type Description
int

DIRECTION_FIELD_NUMBER

public static final int DIRECTION_FIELD_NUMBER
Field Value
Type Description
int

DNS_DOMAIN_FIELD_NUMBER

public static final int DNS_DOMAIN_FIELD_NUMBER
Field Value
Type Description
int

DNS_FIELD_NUMBER

public static final int DNS_FIELD_NUMBER
Field Value
Type Description
int

EMAIL_FIELD_NUMBER

public static final int EMAIL_FIELD_NUMBER
Field Value
Type Description
int

FTP_FIELD_NUMBER

public static final int FTP_FIELD_NUMBER
Field Value
Type Description
int

HTTP_FIELD_NUMBER

public static final int HTTP_FIELD_NUMBER
Field Value
Type Description
int

IPV6_FIELD_NUMBER

public static final int IPV6_FIELD_NUMBER
Field Value
Type Description
int

IP_PROTOCOL_FIELD_NUMBER

public static final int IP_PROTOCOL_FIELD_NUMBER
Field Value
Type Description
int

IP_SUBNET_RANGE_FIELD_NUMBER

public static final int IP_SUBNET_RANGE_FIELD_NUMBER
Field Value
Type Description
int

IS_PROXY_FIELD_NUMBER

public static final int IS_PROXY_FIELD_NUMBER
Field Value
Type Description
int

ORGANIZATION_NAME_FIELD_NUMBER

public static final int ORGANIZATION_NAME_FIELD_NUMBER
Field Value
Type Description
int

PARENT_SESSION_ID_FIELD_NUMBER

public static final int PARENT_SESSION_ID_FIELD_NUMBER
Field Value
Type Description
int

PROXY_INFO_FIELD_NUMBER

public static final int PROXY_INFO_FIELD_NUMBER
Field Value
Type Description
int

RECEIVED_BYTES_FIELD_NUMBER

public static final int RECEIVED_BYTES_FIELD_NUMBER
Field Value
Type Description
int

RECEIVED_PACKETS_FIELD_NUMBER

public static final int RECEIVED_PACKETS_FIELD_NUMBER
Field Value
Type Description
int

SENT_BYTES_FIELD_NUMBER

public static final int SENT_BYTES_FIELD_NUMBER
Field Value
Type Description
int

SENT_PACKETS_FIELD_NUMBER

public static final int SENT_PACKETS_FIELD_NUMBER
Field Value
Type Description
int

SESSION_DURATION_FIELD_NUMBER

public static final int SESSION_DURATION_FIELD_NUMBER
Field Value
Type Description
int

SESSION_ID_FIELD_NUMBER

public static final int SESSION_ID_FIELD_NUMBER
Field Value
Type Description
int

SMTP_FIELD_NUMBER

public static final int SMTP_FIELD_NUMBER
Field Value
Type Description
int

TLS_FIELD_NUMBER

public static final int TLS_FIELD_NUMBER
Field Value
Type Description
int

TOTAL_BYTES_FIELD_NUMBER

public static final int TOTAL_BYTES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Network getDefaultInstance()
Returns
Type Description
Network

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Network.Builder newBuilder()
Returns
Type Description
Network.Builder

newBuilder(Network prototype)

public static Network.Builder newBuilder(Network prototype)
Parameter
Name Description
prototype Network
Returns
Type Description
Network.Builder

parseDelimitedFrom(InputStream input)

public static Network parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Network parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Network parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Network parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Network parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Network parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Network parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Network> parser()
Returns
Type Description
Parser<Network>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getApplicationProtocol()

public Network.ApplicationProtocol getApplicationProtocol()

The application protocol.

.google.backstory.Network.ApplicationProtocol application_protocol = 4;

Returns
Type Description
Network.ApplicationProtocol

The applicationProtocol.

getApplicationProtocolValue()

public int getApplicationProtocolValue()

The application protocol.

.google.backstory.Network.ApplicationProtocol application_protocol = 4;

Returns
Type Description
int

The enum numeric value on the wire for applicationProtocol.

getApplicationProtocolVersion()

public String getApplicationProtocolVersion()

The version of the application protocol. e.g. "1.1, 2.0"

string application_protocol_version = 21;

Returns
Type Description
String

The applicationProtocolVersion.

getApplicationProtocolVersionBytes()

public ByteString getApplicationProtocolVersionBytes()

The version of the application protocol. e.g. "1.1, 2.0"

string application_protocol_version = 21;

Returns
Type Description
ByteString

The bytes for applicationProtocolVersion.

getAsn()

public String getAsn()

Autonomous system number.

string asn = 16;

Returns
Type Description
String

The asn.

getAsnBytes()

public ByteString getAsnBytes()

Autonomous system number.

string asn = 16;

Returns
Type Description
ByteString

The bytes for asn.

getCarrierName()

public String getCarrierName()

Carrier identification.

string carrier_name = 18;

Returns
Type Description
String

The carrierName.

getCarrierNameBytes()

public ByteString getCarrierNameBytes()

Carrier identification.

string carrier_name = 18;

Returns
Type Description
ByteString

The bytes for carrierName.

getCommunityId()

public String getCommunityId()

Community ID network flow value.

string community_id = 15;

Returns
Type Description
String

The communityId.

getCommunityIdBytes()

public ByteString getCommunityIdBytes()

Community ID network flow value.

string community_id = 15;

Returns
Type Description
ByteString

The bytes for communityId.

getConnectionState()

public Network.ConnectionState getConnectionState()

The state of the network connection.

.google.backstory.Network.ConnectionState connection_state = 28;

Returns
Type Description
Network.ConnectionState

The connectionState.

getConnectionStateValue()

public int getConnectionStateValue()

The state of the network connection.

.google.backstory.Network.ConnectionState connection_state = 28;

Returns
Type Description
int

The enum numeric value on the wire for connectionState.

getDefaultInstanceForType()

public Network getDefaultInstanceForType()
Returns
Type Description
Network

getDhcp()

public Dhcp getDhcp()

DHCP info.

.google.backstory.Dhcp dhcp = 8;

Returns
Type Description
Dhcp

The dhcp.

getDhcpOrBuilder()

public DhcpOrBuilder getDhcpOrBuilder()

DHCP info.

.google.backstory.Dhcp dhcp = 8;

Returns
Type Description
DhcpOrBuilder

getDirection()

public Network.Direction getDirection()

The direction of network traffic.

.google.backstory.Network.Direction direction = 12;

Returns
Type Description
Network.Direction

The direction.

getDirectionValue()

public int getDirectionValue()

The direction of network traffic.

.google.backstory.Network.Direction direction = 12;

Returns
Type Description
int

The enum numeric value on the wire for direction.

getDns()

public Dns getDns()

DNS info.

.google.backstory.Dns dns = 7;

Returns
Type Description
Dns

The dns.

getDnsDomain()

public String getDnsDomain()

DNS domain name.

string dns_domain = 17;

Returns
Type Description
String

The dnsDomain.

getDnsDomainBytes()

public ByteString getDnsDomainBytes()

DNS domain name.

string dns_domain = 17;

Returns
Type Description
ByteString

The bytes for dnsDomain.

getDnsOrBuilder()

public DnsOrBuilder getDnsOrBuilder()

DNS info.

.google.backstory.Dns dns = 7;

Returns
Type Description
DnsOrBuilder

getEmail()

public Email getEmail()

Email info for the sender/recipient.

.google.backstory.Email email = 6;

Returns
Type Description
Email

The email.

getEmailOrBuilder()

public EmailOrBuilder getEmailOrBuilder()

Email info for the sender/recipient.

.google.backstory.Email email = 6;

Returns
Type Description
EmailOrBuilder

getFtp()

public Ftp getFtp()

FTP info.

.google.backstory.Ftp ftp = 5;

Returns
Type Description
Ftp

The ftp.

getFtpOrBuilder()

public FtpOrBuilder getFtpOrBuilder()

FTP info.

.google.backstory.Ftp ftp = 5;

Returns
Type Description
FtpOrBuilder

getHttp()

public Http getHttp()

HTTP info.

.google.backstory.Http http = 9;

Returns
Type Description
Http

The http.

getHttpOrBuilder()

public HttpOrBuilder getHttpOrBuilder()

HTTP info.

.google.backstory.Http http = 9;

Returns
Type Description
HttpOrBuilder

getIpProtocol()

public Network.IpProtocol getIpProtocol()

The IP protocol.

.google.backstory.Network.IpProtocol ip_protocol = 3;

Returns
Type Description
Network.IpProtocol

The ipProtocol.

getIpProtocolValue()

public int getIpProtocolValue()

The IP protocol.

.google.backstory.Network.IpProtocol ip_protocol = 3;

Returns
Type Description
int

The enum numeric value on the wire for ipProtocol.

getIpSubnetRange()

public String getIpSubnetRange()

Associated human-readable IP subnet range (e.g. 10.1.2.0/24).

string ip_subnet_range = 24;

Returns
Type Description
String

The ipSubnetRange.

getIpSubnetRangeBytes()

public ByteString getIpSubnetRangeBytes()

Associated human-readable IP subnet range (e.g. 10.1.2.0/24).

string ip_subnet_range = 24;

Returns
Type Description
ByteString

The bytes for ipSubnetRange.

getIpv6()

public boolean getIpv6()

True if IPv6 is used.

bool ipv6 = 29;

Returns
Type Description
boolean

The ipv6.

getIsProxy()

public boolean getIsProxy()

Whether the IP address is a known proxy.

bool is_proxy = 25;

Returns
Type Description
boolean

The isProxy.

getOrganizationName()

public String getOrganizationName()

Organization name (e.g Google).

string organization_name = 19;

Returns
Type Description
String

The organizationName.

getOrganizationNameBytes()

public ByteString getOrganizationNameBytes()

Organization name (e.g Google).

string organization_name = 19;

Returns
Type Description
ByteString

The bytes for organizationName.

getParentSessionId()

public String getParentSessionId()

The ID of the parent network session.

string parent_session_id = 20;

Returns
Type Description
String

The parentSessionId.

getParentSessionIdBytes()

public ByteString getParentSessionIdBytes()

The ID of the parent network session.

string parent_session_id = 20;

Returns
Type Description
ByteString

The bytes for parentSessionId.

getParserForType()

public Parser<Network> getParserForType()
Returns
Type Description
Parser<Network>
Overrides

getProxyInfo()

public ProxyInfo getProxyInfo()

Proxy information. Only set if is_proxy is true.

.google.backstory.ProxyInfo proxy_info = 26;

Returns
Type Description
ProxyInfo

The proxyInfo.

getProxyInfoOrBuilder()

public ProxyInfoOrBuilder getProxyInfoOrBuilder()

Proxy information. Only set if is_proxy is true.

.google.backstory.ProxyInfo proxy_info = 26;

Returns
Type Description
ProxyInfoOrBuilder

getReceivedBytes()

public long getReceivedBytes()

The number of bytes received.

uint64 received_bytes = 2;

Returns
Type Description
long

The receivedBytes.

getReceivedPackets()

public long getReceivedPackets()

The number of packets received.

int64 received_packets = 23;

Returns
Type Description
long

The receivedPackets.

getSentBytes()

public long getSentBytes()

The number of bytes sent.

uint64 sent_bytes = 1;

Returns
Type Description
long

The sentBytes.

getSentPackets()

public long getSentPackets()

The number of packets sent.

int64 sent_packets = 22;

Returns
Type Description
long

The sentPackets.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSessionDuration()

public Duration getSessionDuration()

The duration of the session as the number of seconds and nanoseconds. For seconds, network.session_duration.seconds, the type is a 64-bit integer. For nanoseconds, network.session_duration.nanos, the type is a 32-bit integer.

.google.protobuf.Duration session_duration = 13;

Returns
Type Description
Duration

The sessionDuration.

getSessionDurationOrBuilder()

public DurationOrBuilder getSessionDurationOrBuilder()

The duration of the session as the number of seconds and nanoseconds. For seconds, network.session_duration.seconds, the type is a 64-bit integer. For nanoseconds, network.session_duration.nanos, the type is a 32-bit integer.

.google.protobuf.Duration session_duration = 13;

Returns
Type Description
DurationOrBuilder

getSessionId()

public String getSessionId()

The ID of the network session.

string session_id = 14;

Returns
Type Description
String

The sessionId.

getSessionIdBytes()

public ByteString getSessionIdBytes()

The ID of the network session.

string session_id = 14;

Returns
Type Description
ByteString

The bytes for sessionId.

getSmtp()

public Smtp getSmtp()

SMTP info. Store fields specific to SMTP not covered by Email.

.google.backstory.Smtp smtp = 11;

Returns
Type Description
Smtp

The smtp.

getSmtpOrBuilder()

public SmtpOrBuilder getSmtpOrBuilder()

SMTP info. Store fields specific to SMTP not covered by Email.

.google.backstory.Smtp smtp = 11;

Returns
Type Description
SmtpOrBuilder

getTls()

public Tls getTls()

TLS info.

.google.backstory.Tls tls = 10;

Returns
Type Description
Tls

The tls.

getTlsOrBuilder()

public TlsOrBuilder getTlsOrBuilder()

TLS info.

.google.backstory.Tls tls = 10;

Returns
Type Description
TlsOrBuilder

getTotalBytes()

public long getTotalBytes()

The number of total bytes.

int64 total_bytes = 27;

Returns
Type Description
long

The totalBytes.

hasDhcp()

public boolean hasDhcp()

DHCP info.

.google.backstory.Dhcp dhcp = 8;

Returns
Type Description
boolean

Whether the dhcp field is set.

hasDns()

public boolean hasDns()

DNS info.

.google.backstory.Dns dns = 7;

Returns
Type Description
boolean

Whether the dns field is set.

hasEmail()

public boolean hasEmail()

Email info for the sender/recipient.

.google.backstory.Email email = 6;

Returns
Type Description
boolean

Whether the email field is set.

hasFtp()

public boolean hasFtp()

FTP info.

.google.backstory.Ftp ftp = 5;

Returns
Type Description
boolean

Whether the ftp field is set.

hasHttp()

public boolean hasHttp()

HTTP info.

.google.backstory.Http http = 9;

Returns
Type Description
boolean

Whether the http field is set.

hasProxyInfo()

public boolean hasProxyInfo()

Proxy information. Only set if is_proxy is true.

.google.backstory.ProxyInfo proxy_info = 26;

Returns
Type Description
boolean

Whether the proxyInfo field is set.

hasSessionDuration()

public boolean hasSessionDuration()

The duration of the session as the number of seconds and nanoseconds. For seconds, network.session_duration.seconds, the type is a 64-bit integer. For nanoseconds, network.session_duration.nanos, the type is a 32-bit integer.

.google.protobuf.Duration session_duration = 13;

Returns
Type Description
boolean

Whether the sessionDuration field is set.

hasSmtp()

public boolean hasSmtp()

SMTP info. Store fields specific to SMTP not covered by Email.

.google.backstory.Smtp smtp = 11;

Returns
Type Description
boolean

Whether the smtp field is set.

hasTls()

public boolean hasTls()

TLS info.

.google.backstory.Tls tls = 10;

Returns
Type Description
boolean

Whether the tls field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Network.Builder newBuilderForType()
Returns
Type Description
Network.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Network.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Network.Builder
Overrides

toBuilder()

public Network.Builder toBuilder()
Returns
Type Description
Network.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException