Class Router.Interface.Builder (0.5.0)

public static final class Router.Interface.Builder extends GeneratedMessageV3.Builder<Router.Interface.Builder> implements Router.InterfaceOrBuilder

Router Interface defines the GDCE zone side layer-3 information for building the BGP session.

Protobuf type google.cloud.edgenetwork.v1.Router.Interface

Static Methods

getDescriptor()

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

Methods

addAllLoopbackIpAddresses(Iterable<String> values)

public Router.Interface.Builder addAllLoopbackIpAddresses(Iterable<String> values)

Create loopback interface in the router when specified. The number of IP addresses must match the number of TOR devices.

repeated string loopback_ip_addresses = 5;

Parameter
NameDescription
valuesIterable<String>

The loopbackIpAddresses to add.

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

addLoopbackIpAddresses(String value)

public Router.Interface.Builder addLoopbackIpAddresses(String value)

Create loopback interface in the router when specified. The number of IP addresses must match the number of TOR devices.

repeated string loopback_ip_addresses = 5;

Parameter
NameDescription
valueString

The loopbackIpAddresses to add.

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

addLoopbackIpAddressesBytes(ByteString value)

public Router.Interface.Builder addLoopbackIpAddressesBytes(ByteString value)

Create loopback interface in the router when specified. The number of IP addresses must match the number of TOR devices.

repeated string loopback_ip_addresses = 5;

Parameter
NameDescription
valueByteString

The bytes of the loopbackIpAddresses to add.

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Router.Interface build()
Returns
TypeDescription
Router.Interface

buildPartial()

public Router.Interface buildPartial()
Returns
TypeDescription
Router.Interface

clear()

public Router.Interface.Builder clear()
Returns
TypeDescription
Router.Interface.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearIpv4Cidr()

public Router.Interface.Builder clearIpv4Cidr()

IP address and range of the interface.

string ipv4_cidr = 3;

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

clearIpv6Cidr()

public Router.Interface.Builder clearIpv6Cidr()

IPv6 address and range of the interface.

string ipv6_cidr = 6;

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

clearLinkedInterconnectAttachment()

public Router.Interface.Builder clearLinkedInterconnectAttachment()

The canonical name of the linked Interconnect attachment.

string linked_interconnect_attachment = 2;

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

clearLoopbackIpAddresses()

public Router.Interface.Builder clearLoopbackIpAddresses()

Create loopback interface in the router when specified. The number of IP addresses must match the number of TOR devices.

repeated string loopback_ip_addresses = 5;

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

clearName()

public Router.Interface.Builder clearName()

Name of this interface entry. Unique within the Zones resource.

string name = 1;

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubnetwork()

public Router.Interface.Builder clearSubnetwork()

The canonical name of the subnetwork resource that this interface belongs to.

string subnetwork = 4;

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

clone()

public Router.Interface.Builder clone()
Returns
TypeDescription
Router.Interface.Builder
Overrides

getDefaultInstanceForType()

public Router.Interface getDefaultInstanceForType()
Returns
TypeDescription
Router.Interface

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIpv4Cidr()

public String getIpv4Cidr()

IP address and range of the interface.

string ipv4_cidr = 3;

Returns
TypeDescription
String

The ipv4Cidr.

getIpv4CidrBytes()

public ByteString getIpv4CidrBytes()

IP address and range of the interface.

string ipv4_cidr = 3;

Returns
TypeDescription
ByteString

The bytes for ipv4Cidr.

getIpv6Cidr()

public String getIpv6Cidr()

IPv6 address and range of the interface.

string ipv6_cidr = 6;

Returns
TypeDescription
String

The ipv6Cidr.

getIpv6CidrBytes()

public ByteString getIpv6CidrBytes()

IPv6 address and range of the interface.

string ipv6_cidr = 6;

Returns
TypeDescription
ByteString

The bytes for ipv6Cidr.

getLinkedInterconnectAttachment()

public String getLinkedInterconnectAttachment()

The canonical name of the linked Interconnect attachment.

string linked_interconnect_attachment = 2;

Returns
TypeDescription
String

The linkedInterconnectAttachment.

getLinkedInterconnectAttachmentBytes()

public ByteString getLinkedInterconnectAttachmentBytes()

The canonical name of the linked Interconnect attachment.

string linked_interconnect_attachment = 2;

Returns
TypeDescription
ByteString

The bytes for linkedInterconnectAttachment.

getLoopbackIpAddresses(int index)

public String getLoopbackIpAddresses(int index)

Create loopback interface in the router when specified. The number of IP addresses must match the number of TOR devices.

repeated string loopback_ip_addresses = 5;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The loopbackIpAddresses at the given index.

getLoopbackIpAddressesBytes(int index)

public ByteString getLoopbackIpAddressesBytes(int index)

Create loopback interface in the router when specified. The number of IP addresses must match the number of TOR devices.

repeated string loopback_ip_addresses = 5;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the loopbackIpAddresses at the given index.

getLoopbackIpAddressesCount()

public int getLoopbackIpAddressesCount()

Create loopback interface in the router when specified. The number of IP addresses must match the number of TOR devices.

repeated string loopback_ip_addresses = 5;

Returns
TypeDescription
int

The count of loopbackIpAddresses.

getLoopbackIpAddressesList()

public ProtocolStringList getLoopbackIpAddressesList()

Create loopback interface in the router when specified. The number of IP addresses must match the number of TOR devices.

repeated string loopback_ip_addresses = 5;

Returns
TypeDescription
ProtocolStringList

A list containing the loopbackIpAddresses.

getName()

public String getName()

Name of this interface entry. Unique within the Zones resource.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of this interface entry. Unique within the Zones resource.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getSubnetwork()

public String getSubnetwork()

The canonical name of the subnetwork resource that this interface belongs to.

string subnetwork = 4;

Returns
TypeDescription
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

The canonical name of the subnetwork resource that this interface belongs to.

string subnetwork = 4;

Returns
TypeDescription
ByteString

The bytes for subnetwork.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Router.Interface other)

public Router.Interface.Builder mergeFrom(Router.Interface other)
Parameter
NameDescription
otherRouter.Interface
Returns
TypeDescription
Router.Interface.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpv4Cidr(String value)

public Router.Interface.Builder setIpv4Cidr(String value)

IP address and range of the interface.

string ipv4_cidr = 3;

Parameter
NameDescription
valueString

The ipv4Cidr to set.

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

setIpv4CidrBytes(ByteString value)

public Router.Interface.Builder setIpv4CidrBytes(ByteString value)

IP address and range of the interface.

string ipv4_cidr = 3;

Parameter
NameDescription
valueByteString

The bytes for ipv4Cidr to set.

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

setIpv6Cidr(String value)

public Router.Interface.Builder setIpv6Cidr(String value)

IPv6 address and range of the interface.

string ipv6_cidr = 6;

Parameter
NameDescription
valueString

The ipv6Cidr to set.

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

setIpv6CidrBytes(ByteString value)

public Router.Interface.Builder setIpv6CidrBytes(ByteString value)

IPv6 address and range of the interface.

string ipv6_cidr = 6;

Parameter
NameDescription
valueByteString

The bytes for ipv6Cidr to set.

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

setLinkedInterconnectAttachment(String value)

public Router.Interface.Builder setLinkedInterconnectAttachment(String value)

The canonical name of the linked Interconnect attachment.

string linked_interconnect_attachment = 2;

Parameter
NameDescription
valueString

The linkedInterconnectAttachment to set.

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

setLinkedInterconnectAttachmentBytes(ByteString value)

public Router.Interface.Builder setLinkedInterconnectAttachmentBytes(ByteString value)

The canonical name of the linked Interconnect attachment.

string linked_interconnect_attachment = 2;

Parameter
NameDescription
valueByteString

The bytes for linkedInterconnectAttachment to set.

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

setLoopbackIpAddresses(int index, String value)

public Router.Interface.Builder setLoopbackIpAddresses(int index, String value)

Create loopback interface in the router when specified. The number of IP addresses must match the number of TOR devices.

repeated string loopback_ip_addresses = 5;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The loopbackIpAddresses to set.

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

setName(String value)

public Router.Interface.Builder setName(String value)

Name of this interface entry. Unique within the Zones resource.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Router.Interface.Builder setNameBytes(ByteString value)

Name of this interface entry. Unique within the Zones resource.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

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

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

setSubnetwork(String value)

public Router.Interface.Builder setSubnetwork(String value)

The canonical name of the subnetwork resource that this interface belongs to.

string subnetwork = 4;

Parameter
NameDescription
valueString

The subnetwork to set.

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

setSubnetworkBytes(ByteString value)

public Router.Interface.Builder setSubnetworkBytes(ByteString value)

The canonical name of the subnetwork resource that this interface belongs to.

string subnetwork = 4;

Parameter
NameDescription
valueByteString

The bytes for subnetwork to set.

Returns
TypeDescription
Router.Interface.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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