Class LinkLayerAddress.Builder (0.3.0)

public static final class LinkLayerAddress.Builder extends GeneratedMessageV3.Builder<LinkLayerAddress.Builder> implements LinkLayerAddressOrBuilder

LinkLayerAddress contains an IP address and corresponding link-layer address.

Protobuf type google.cloud.edgenetwork.v1.LinkLayerAddress

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LinkLayerAddress build()
Returns
TypeDescription
LinkLayerAddress

buildPartial()

public LinkLayerAddress buildPartial()
Returns
TypeDescription
LinkLayerAddress

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIpAddress()

public LinkLayerAddress.Builder clearIpAddress()

The IP address of this neighbor.

string ip_address = 2;

Returns
TypeDescription
LinkLayerAddress.Builder

This builder for chaining.

clearMacAddress()

public LinkLayerAddress.Builder clearMacAddress()

The MAC address of this neighbor.

string mac_address = 1;

Returns
TypeDescription
LinkLayerAddress.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public LinkLayerAddress getDefaultInstanceForType()
Returns
TypeDescription
LinkLayerAddress

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIpAddress()

public String getIpAddress()

The IP address of this neighbor.

string ip_address = 2;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

The IP address of this neighbor.

string ip_address = 2;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

getMacAddress()

public String getMacAddress()

The MAC address of this neighbor.

string mac_address = 1;

Returns
TypeDescription
String

The macAddress.

getMacAddressBytes()

public ByteString getMacAddressBytes()

The MAC address of this neighbor.

string mac_address = 1;

Returns
TypeDescription
ByteString

The bytes for macAddress.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LinkLayerAddress other)

public LinkLayerAddress.Builder mergeFrom(LinkLayerAddress other)
Parameter
NameDescription
otherLinkLayerAddress
Returns
TypeDescription
LinkLayerAddress.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpAddress(String value)

public LinkLayerAddress.Builder setIpAddress(String value)

The IP address of this neighbor.

string ip_address = 2;

Parameter
NameDescription
valueString

The ipAddress to set.

Returns
TypeDescription
LinkLayerAddress.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public LinkLayerAddress.Builder setIpAddressBytes(ByteString value)

The IP address of this neighbor.

string ip_address = 2;

Parameter
NameDescription
valueByteString

The bytes for ipAddress to set.

Returns
TypeDescription
LinkLayerAddress.Builder

This builder for chaining.

setMacAddress(String value)

public LinkLayerAddress.Builder setMacAddress(String value)

The MAC address of this neighbor.

string mac_address = 1;

Parameter
NameDescription
valueString

The macAddress to set.

Returns
TypeDescription
LinkLayerAddress.Builder

This builder for chaining.

setMacAddressBytes(ByteString value)

public LinkLayerAddress.Builder setMacAddressBytes(ByteString value)

The MAC address of this neighbor.

string mac_address = 1;

Parameter
NameDescription
valueByteString

The bytes for macAddress to set.

Returns
TypeDescription
LinkLayerAddress.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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