Class ResourceRecord.Builder (2.24.0)

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

A DNS resource record.

Protobuf type google.appengine.v1.ResourceRecord

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceRecord.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResourceRecord.Builder
Overrides

build()

public ResourceRecord build()
Returns
TypeDescription
ResourceRecord

buildPartial()

public ResourceRecord buildPartial()
Returns
TypeDescription
ResourceRecord

clear()

public ResourceRecord.Builder clear()
Returns
TypeDescription
ResourceRecord.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ResourceRecord.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResourceRecord.Builder
Overrides

clearName()

public ResourceRecord.Builder clearName()

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

string name = 1;

Returns
TypeDescription
ResourceRecord.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceRecord.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ResourceRecord.Builder
Overrides

clearRrdata()

public ResourceRecord.Builder clearRrdata()

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

This builder for chaining.

clearType()

public ResourceRecord.Builder clearType()

Resource record type. Example: AAAA.

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

Returns
TypeDescription
ResourceRecord.Builder

This builder for chaining.

clone()

public ResourceRecord.Builder clone()
Returns
TypeDescription
ResourceRecord.Builder
Overrides

getDefaultInstanceForType()

public ResourceRecord getDefaultInstanceForType()
Returns
TypeDescription
ResourceRecord

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

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
TypeDescription
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
TypeDescription
ByteString

The bytes for rrdata.

getType()

public ResourceRecord.RecordType getType()

Resource record type. Example: AAAA.

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

Returns
TypeDescription
ResourceRecord.RecordType

The type.

getTypeValue()

public int getTypeValue()

Resource record type. Example: AAAA.

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

Returns
TypeDescription
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ResourceRecord other)

public ResourceRecord.Builder mergeFrom(ResourceRecord other)
Parameter
NameDescription
otherResourceRecord
Returns
TypeDescription
ResourceRecord.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceRecord.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceRecord.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ResourceRecord.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ResourceRecord.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceRecord.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResourceRecord.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceRecord.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResourceRecord.Builder
Overrides

setName(String value)

public ResourceRecord.Builder setName(String value)

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

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ResourceRecord.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ResourceRecord.Builder setNameBytes(ByteString value)

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

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ResourceRecord.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResourceRecord.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ResourceRecord.Builder
Overrides

setRrdata(String value)

public ResourceRecord.Builder setRrdata(String value)

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;

Parameter
NameDescription
valueString

The rrdata to set.

Returns
TypeDescription
ResourceRecord.Builder

This builder for chaining.

setRrdataBytes(ByteString value)

public ResourceRecord.Builder setRrdataBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for rrdata to set.

Returns
TypeDescription
ResourceRecord.Builder

This builder for chaining.

setType(ResourceRecord.RecordType value)

public ResourceRecord.Builder setType(ResourceRecord.RecordType value)

Resource record type. Example: AAAA.

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

Parameter
NameDescription
valueResourceRecord.RecordType

The type to set.

Returns
TypeDescription
ResourceRecord.Builder

This builder for chaining.

setTypeValue(int value)

public ResourceRecord.Builder setTypeValue(int value)

Resource record type. Example: AAAA.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
ResourceRecord.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceRecord.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResourceRecord.Builder
Overrides