Class Dns (0.3.0)

public final class Dns extends GeneratedMessage implements DnsOrBuilder

DNS information.

Protobuf type google.backstory.Dns

Implements

DnsOrBuilder

Static Fields

ADDITIONAL_FIELD_NUMBER

public static final int ADDITIONAL_FIELD_NUMBER
Field Value
Type Description
int

ANSWERS_FIELD_NUMBER

public static final int ANSWERS_FIELD_NUMBER
Field Value
Type Description
int

AUTHORITATIVE_FIELD_NUMBER

public static final int AUTHORITATIVE_FIELD_NUMBER
Field Value
Type Description
int

AUTHORITY_FIELD_NUMBER

public static final int AUTHORITY_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

OPCODE_FIELD_NUMBER

public static final int OPCODE_FIELD_NUMBER
Field Value
Type Description
int

QUESTIONS_FIELD_NUMBER

public static final int QUESTIONS_FIELD_NUMBER
Field Value
Type Description
int

RECURSION_AVAILABLE_FIELD_NUMBER

public static final int RECURSION_AVAILABLE_FIELD_NUMBER
Field Value
Type Description
int

RECURSION_DESIRED_FIELD_NUMBER

public static final int RECURSION_DESIRED_FIELD_NUMBER
Field Value
Type Description
int

RESPONSE_CODE_FIELD_NUMBER

public static final int RESPONSE_CODE_FIELD_NUMBER
Field Value
Type Description
int

RESPONSE_FIELD_NUMBER

public static final int RESPONSE_FIELD_NUMBER
Field Value
Type Description
int

TRUNCATED_FIELD_NUMBER

public static final int TRUNCATED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Dns getDefaultInstance()
Returns
Type Description
Dns

getDescriptor()

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

newBuilder()

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

newBuilder(Dns prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAdditional(int index)

public Dns.ResourceRecord getAdditional(int index)

A list of additional domain name servers that can be used to verify the answer to the domain.

repeated .google.backstory.Dns.ResourceRecord additional = 4;

Parameter
Name Description
index int
Returns
Type Description
Dns.ResourceRecord

getAdditionalCount()

public int getAdditionalCount()

A list of additional domain name servers that can be used to verify the answer to the domain.

repeated .google.backstory.Dns.ResourceRecord additional = 4;

Returns
Type Description
int

getAdditionalList()

public List<Dns.ResourceRecord> getAdditionalList()

A list of additional domain name servers that can be used to verify the answer to the domain.

repeated .google.backstory.Dns.ResourceRecord additional = 4;

Returns
Type Description
List<ResourceRecord>

getAdditionalOrBuilder(int index)

public Dns.ResourceRecordOrBuilder getAdditionalOrBuilder(int index)

A list of additional domain name servers that can be used to verify the answer to the domain.

repeated .google.backstory.Dns.ResourceRecord additional = 4;

Parameter
Name Description
index int
Returns
Type Description
Dns.ResourceRecordOrBuilder

getAdditionalOrBuilderList()

public List<? extends Dns.ResourceRecordOrBuilder> getAdditionalOrBuilderList()

A list of additional domain name servers that can be used to verify the answer to the domain.

repeated .google.backstory.Dns.ResourceRecord additional = 4;

Returns
Type Description
List<? extends com.google.backstory.Dns.ResourceRecordOrBuilder>

getAnswers(int index)

public Dns.ResourceRecord getAnswers(int index)

A list of answers to the domain name query.

repeated .google.backstory.Dns.ResourceRecord answers = 2;

Parameter
Name Description
index int
Returns
Type Description
Dns.ResourceRecord

getAnswersCount()

public int getAnswersCount()

A list of answers to the domain name query.

repeated .google.backstory.Dns.ResourceRecord answers = 2;

Returns
Type Description
int

getAnswersList()

public List<Dns.ResourceRecord> getAnswersList()

A list of answers to the domain name query.

repeated .google.backstory.Dns.ResourceRecord answers = 2;

Returns
Type Description
List<ResourceRecord>

getAnswersOrBuilder(int index)

public Dns.ResourceRecordOrBuilder getAnswersOrBuilder(int index)

A list of answers to the domain name query.

repeated .google.backstory.Dns.ResourceRecord answers = 2;

Parameter
Name Description
index int
Returns
Type Description
Dns.ResourceRecordOrBuilder

getAnswersOrBuilderList()

public List<? extends Dns.ResourceRecordOrBuilder> getAnswersOrBuilderList()

A list of answers to the domain name query.

repeated .google.backstory.Dns.ResourceRecord answers = 2;

Returns
Type Description
List<? extends com.google.backstory.Dns.ResourceRecordOrBuilder>

getAuthoritative()

public boolean getAuthoritative()

Other DNS header flags. See RFC1035, section 4.1.1.

bool authoritative = 9;

Returns
Type Description
boolean

The authoritative.

getAuthority(int index)

public Dns.ResourceRecord getAuthority(int index)

A list of domain name servers which verified the answers to the domain name queries.

repeated .google.backstory.Dns.ResourceRecord authority = 3;

Parameter
Name Description
index int
Returns
Type Description
Dns.ResourceRecord

getAuthorityCount()

public int getAuthorityCount()

A list of domain name servers which verified the answers to the domain name queries.

repeated .google.backstory.Dns.ResourceRecord authority = 3;

Returns
Type Description
int

getAuthorityList()

public List<Dns.ResourceRecord> getAuthorityList()

A list of domain name servers which verified the answers to the domain name queries.

repeated .google.backstory.Dns.ResourceRecord authority = 3;

Returns
Type Description
List<ResourceRecord>

getAuthorityOrBuilder(int index)

public Dns.ResourceRecordOrBuilder getAuthorityOrBuilder(int index)

A list of domain name servers which verified the answers to the domain name queries.

repeated .google.backstory.Dns.ResourceRecord authority = 3;

Parameter
Name Description
index int
Returns
Type Description
Dns.ResourceRecordOrBuilder

getAuthorityOrBuilderList()

public List<? extends Dns.ResourceRecordOrBuilder> getAuthorityOrBuilderList()

A list of domain name servers which verified the answers to the domain name queries.

repeated .google.backstory.Dns.ResourceRecord authority = 3;

Returns
Type Description
List<? extends com.google.backstory.Dns.ResourceRecordOrBuilder>

getDefaultInstanceForType()

public Dns getDefaultInstanceForType()
Returns
Type Description
Dns

getId()

public int getId()

DNS query id.

uint32 id = 6;

Returns
Type Description
int

The id.

getOpcode()

public int getOpcode()

The DNS OpCode used to specify the type of DNS query (for example, QUERY, IQUERY, or STATUS).

uint32 opcode = 8;

Returns
Type Description
int

The opcode.

getParserForType()

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

getQuestions(int index)

public Dns.Question getQuestions(int index)

A list of domain protocol message questions.

repeated .google.backstory.Dns.Question questions = 1;

Parameter
Name Description
index int
Returns
Type Description
Dns.Question

getQuestionsCount()

public int getQuestionsCount()

A list of domain protocol message questions.

repeated .google.backstory.Dns.Question questions = 1;

Returns
Type Description
int

getQuestionsList()

public List<Dns.Question> getQuestionsList()

A list of domain protocol message questions.

repeated .google.backstory.Dns.Question questions = 1;

Returns
Type Description
List<Question>

getQuestionsOrBuilder(int index)

public Dns.QuestionOrBuilder getQuestionsOrBuilder(int index)

A list of domain protocol message questions.

repeated .google.backstory.Dns.Question questions = 1;

Parameter
Name Description
index int
Returns
Type Description
Dns.QuestionOrBuilder

getQuestionsOrBuilderList()

public List<? extends Dns.QuestionOrBuilder> getQuestionsOrBuilderList()

A list of domain protocol message questions.

repeated .google.backstory.Dns.Question questions = 1;

Returns
Type Description
List<? extends com.google.backstory.Dns.QuestionOrBuilder>

getRecursionAvailable()

public boolean getRecursionAvailable()

Whether a recursive DNS lookup is available.

bool recursion_available = 12;

Returns
Type Description
boolean

The recursionAvailable.

getRecursionDesired()

public boolean getRecursionDesired()

Whether a recursive DNS lookup is desired.

bool recursion_desired = 11;

Returns
Type Description
boolean

The recursionDesired.

getResponse()

public boolean getResponse()

Set to true if the event is a DNS response. See QR field from RFC1035.

bool response = 7;

Returns
Type Description
boolean

The response.

getResponseCode()

public int getResponseCode()

Response code. See RCODE from RFC1035.

uint32 response_code = 13;

Returns
Type Description
int

The responseCode.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTruncated()

public boolean getTruncated()

Whether the DNS response was truncated.

bool truncated = 10;

Returns
Type Description
boolean

The truncated.

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 Dns.Builder newBuilderForType()
Returns
Type Description
Dns.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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