Class Dns.ResourceRecord.Builder (0.3.0)

public static final class Dns.ResourceRecord.Builder extends GeneratedMessage.Builder<Dns.ResourceRecord.Builder> implements Dns.ResourceRecordOrBuilder

DNS Resource Records. See RFC1035, section 4.1.3.

Protobuf type google.backstory.Dns.ResourceRecord

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

public Dns.ResourceRecord.Builder clear()
Returns
Type Description
Dns.ResourceRecord.Builder
Overrides

clearBinaryData()

public Dns.ResourceRecord.Builder clearBinaryData()

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
Dns.ResourceRecord.Builder

This builder for chaining.

clearClass_()

public Dns.ResourceRecord.Builder clearClass_()

The code specifying the class of the resource record.

uint32 class = 3;

Returns
Type Description
Dns.ResourceRecord.Builder

This builder for chaining.

clearData()

public Dns.ResourceRecord.Builder clearData()

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

string data = 5;

Returns
Type Description
Dns.ResourceRecord.Builder

This builder for chaining.

clearName()

public Dns.ResourceRecord.Builder clearName()

The name of the owner of the resource record.

string name = 1;

Returns
Type Description
Dns.ResourceRecord.Builder

This builder for chaining.

clearTtl()

public Dns.ResourceRecord.Builder clearTtl()

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
Dns.ResourceRecord.Builder

This builder for chaining.

clearType()

public Dns.ResourceRecord.Builder clearType()

The code specifying the type of the resource record.

uint32 type = 2;

Returns
Type Description
Dns.ResourceRecord.Builder

This builder for chaining.

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Dns.ResourceRecord other)

public Dns.ResourceRecord.Builder mergeFrom(Dns.ResourceRecord other)
Parameter
Name Description
other Dns.ResourceRecord
Returns
Type Description
Dns.ResourceRecord.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Dns.ResourceRecord.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dns.ResourceRecord.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Dns.ResourceRecord.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Dns.ResourceRecord.Builder
Overrides

setBinaryData(ByteString value)

public Dns.ResourceRecord.Builder setBinaryData(ByteString value)

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

bytes binary_data = 6;

Parameter
Name Description
value ByteString

The binaryData to set.

Returns
Type Description
Dns.ResourceRecord.Builder

This builder for chaining.

setClass_(int value)

public Dns.ResourceRecord.Builder setClass_(int value)

The code specifying the class of the resource record.

uint32 class = 3;

Parameter
Name Description
value int

The class to set.

Returns
Type Description
Dns.ResourceRecord.Builder

This builder for chaining.

setData(String value)

public Dns.ResourceRecord.Builder setData(String value)

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

string data = 5;

Parameter
Name Description
value String

The data to set.

Returns
Type Description
Dns.ResourceRecord.Builder

This builder for chaining.

setDataBytes(ByteString value)

public Dns.ResourceRecord.Builder setDataBytes(ByteString value)

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

string data = 5;

Parameter
Name Description
value ByteString

The bytes for data to set.

Returns
Type Description
Dns.ResourceRecord.Builder

This builder for chaining.

setName(String value)

public Dns.ResourceRecord.Builder setName(String value)

The name of the owner of the resource record.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Dns.ResourceRecord.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Dns.ResourceRecord.Builder setNameBytes(ByteString value)

The name of the owner of the resource record.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Dns.ResourceRecord.Builder

This builder for chaining.

setTtl(int value)

public Dns.ResourceRecord.Builder setTtl(int value)

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

uint32 ttl = 4;

Parameter
Name Description
value int

The ttl to set.

Returns
Type Description
Dns.ResourceRecord.Builder

This builder for chaining.

setType(int value)

public Dns.ResourceRecord.Builder setType(int value)

The code specifying the type of the resource record.

uint32 type = 2;

Parameter
Name Description
value int

The type to set.

Returns
Type Description
Dns.ResourceRecord.Builder

This builder for chaining.