Class Dns.ResourceRecord (0.3.0)

public static final class Dns.ResourceRecord extends GeneratedMessage implements Dns.ResourceRecordOrBuilder

DNS Resource Records. See RFC1035, section 4.1.3.

Protobuf type google.backstory.Dns.ResourceRecord

Static Fields

BINARY_DATA_FIELD_NUMBER

public static final int BINARY_DATA_FIELD_NUMBER
Field Value
Type Description
int

CLASS_FIELD_NUMBER

public static final int CLASS_FIELD_NUMBER
Field Value
Type Description
int

DATA_FIELD_NUMBER

public static final int DATA_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

TTL_FIELD_NUMBER

public static final int TTL_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Dns.ResourceRecord getDefaultInstance()
Returns
Type Description
Dns.ResourceRecord

getDescriptor()

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

newBuilder()

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

newBuilder(Dns.ResourceRecord prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBinaryData()

public ByteString getBinaryData()

The raw bytes of any non-UTF8 strings that might be included as part of a DNS response.

bytes binary_data = 6;

Returns
Type Description
ByteString

The binaryData.

getClass_()

public int getClass_()

The code specifying the class of the resource record.

uint32 class = 3;

Returns
Type Description
int

The class.

getData()

public String getData()

The payload or response to the DNS question for all responses encoded in UTF-8 format

string data = 5;

Returns
Type Description
String

The data.

getDataBytes()

public ByteString getDataBytes()

The payload or response to the DNS question for all responses encoded in UTF-8 format

string data = 5;

Returns
Type Description
ByteString

The bytes for data.

getDefaultInstanceForType()

public Dns.ResourceRecord getDefaultInstanceForType()
Returns
Type Description
Dns.ResourceRecord

getName()

public String getName()

The name of the owner of the resource record.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the owner of the resource record.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTtl()

public int getTtl()

The time interval for which the resource record can be cached before the source of the information should again be queried.

uint32 ttl = 4;

Returns
Type Description
int

The ttl.

getType()

public int getType()

The code specifying the type of the resource record.

uint32 type = 2;

Returns
Type Description
int

The type.

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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