Class Router.Interface.Builder (0.11.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
Type Description
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
Name Description
values Iterable<String>

The loopbackIpAddresses to add.

Returns
Type Description
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
Name Description
value String

The loopbackIpAddresses to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the loopbackIpAddresses to add.

Returns
Type Description
Router.Interface.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Router.Interface.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Router.Interface.Builder
Overrides

build()

public Router.Interface build()
Returns
Type Description
Router.Interface

buildPartial()

public Router.Interface buildPartial()
Returns
Type Description
Router.Interface

clear()

public Router.Interface.Builder clear()
Returns
Type Description
Router.Interface.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Router.Interface.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Router.Interface.Builder
Overrides

clearIpv4Cidr()

public Router.Interface.Builder clearIpv4Cidr()

IP address and range of the interface.

string ipv4_cidr = 3;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
Router.Interface.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Router.Interface.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
Router.Interface.Builder

This builder for chaining.

clone()

public Router.Interface.Builder clone()
Returns
Type Description
Router.Interface.Builder
Overrides

getDefaultInstanceForType()

public Router.Interface getDefaultInstanceForType()
Returns
Type Description
Router.Interface

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIpv4Cidr()

public String getIpv4Cidr()

IP address and range of the interface.

string ipv4_cidr = 3;

Returns
Type Description
String

The ipv4Cidr.

getIpv4CidrBytes()

public ByteString getIpv4CidrBytes()

IP address and range of the interface.

string ipv4_cidr = 3;

Returns
Type Description
ByteString

The bytes for ipv4Cidr.

getIpv6Cidr()

public String getIpv6Cidr()

IPv6 address and range of the interface.

string ipv6_cidr = 6;

Returns
Type Description
String

The ipv6Cidr.

getIpv6CidrBytes()

public ByteString getIpv6CidrBytes()

IPv6 address and range of the interface.

string ipv6_cidr = 6;

Returns
Type Description
ByteString

The bytes for ipv6Cidr.

getLinkedInterconnectAttachment()

public String getLinkedInterconnectAttachment()

The canonical name of the linked Interconnect attachment.

string linked_interconnect_attachment = 2;

Returns
Type Description
String

The linkedInterconnectAttachment.

getLinkedInterconnectAttachmentBytes()

public ByteString getLinkedInterconnectAttachmentBytes()

The canonical name of the linked Interconnect attachment.

string linked_interconnect_attachment = 2;

Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the loopbackIpAddresses.

getName()

public String getName()

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

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
Type Description
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
Type Description
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

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

string subnetwork = 4;

Returns
Type Description
ByteString

The bytes for subnetwork.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Router.Interface other)

public Router.Interface.Builder mergeFrom(Router.Interface other)
Parameter
Name Description
other Router.Interface
Returns
Type Description
Router.Interface.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Router.Interface.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Router.Interface.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Router.Interface.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Router.Interface.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Router.Interface.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Router.Interface.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Router.Interface.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The ipv4Cidr to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for ipv4Cidr to set.

Returns
Type Description
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
Name Description
value String

The ipv6Cidr to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for ipv6Cidr to set.

Returns
Type Description
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
Name Description
value String

The linkedInterconnectAttachment to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for linkedInterconnectAttachment to set.

Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The loopbackIpAddresses to set.

Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The subnetwork to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for subnetwork to set.

Returns
Type Description
Router.Interface.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Router.Interface.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Router.Interface.Builder
Overrides