public static final class Dns.ResourceRecord.Builder extends GeneratedMessage.Builder<Dns.ResourceRecord.Builder> implements Dns.ResourceRecordOrBuilderDNS Resource Records. See RFC1035, section 4.1.3.
Protobuf type google.backstory.Dns.ResourceRecord
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Dns.ResourceRecord.BuilderImplements
Dns.ResourceRecordOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
ByteStringThe 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 |
intThe 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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe 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 |
intThe 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 |
intThe type to set. |
| Returns | |
|---|---|
| Type | Description |
Dns.ResourceRecord.Builder |
This builder for chaining. |