Class ResourceRecord (2.46.0)

public final class ResourceRecord extends GeneratedMessageV3 implements ResourceRecordOrBuilder

A DNS resource record.

Protobuf type google.appengine.v1.ResourceRecord

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

RRDATA_FIELD_NUMBER

public static final int RRDATA_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 ResourceRecord getDefaultInstance()
Returns
Type Description
ResourceRecord

getDescriptor()

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

newBuilder()

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

newBuilder(ResourceRecord prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<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

getDefaultInstanceForType()

public ResourceRecord getDefaultInstanceForType()
Returns
Type Description
ResourceRecord

getName()

public String getName()

Relative name of the object affected by this record. Only applicable for CNAME records. Example: 'www'.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Relative name of the object affected by this record. Only applicable for CNAME records. Example: 'www'.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getRrdata()

public String getRrdata()

Data for this record. Values vary by record type, as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).

string rrdata = 2;

Returns
Type Description
String

The rrdata.

getRrdataBytes()

public ByteString getRrdataBytes()

Data for this record. Values vary by record type, as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).

string rrdata = 2;

Returns
Type Description
ByteString

The bytes for rrdata.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getType()

public ResourceRecord.RecordType getType()

Resource record type. Example: AAAA.

.google.appengine.v1.ResourceRecord.RecordType type = 3;

Returns
Type Description
ResourceRecord.RecordType

The type.

getTypeValue()

public int getTypeValue()

Resource record type. Example: AAAA.

.google.appengine.v1.ResourceRecord.RecordType type = 3;

Returns
Type Description
int

The enum numeric value on the wire for type.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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