Class RouterInterface.Builder (1.58.0)

public static final class RouterInterface.Builder extends GeneratedMessageV3.Builder<RouterInterface.Builder> implements RouterInterfaceOrBuilder

Protobuf type google.cloud.compute.v1.RouterInterface

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RouterInterface build()
Returns
Type Description
RouterInterface

buildPartial()

public RouterInterface buildPartial()
Returns
Type Description
RouterInterface

clear()

public RouterInterface.Builder clear()
Returns
Type Description
RouterInterface.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearIpRange()

public RouterInterface.Builder clearIpRange()

IP address and range of the interface. - For Internet Protocol version 4 (IPv4), the IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example, 169.254.0.1/30. Note: Do not truncate the IP address, as it represents the IP address of the interface. - For Internet Protocol version 6 (IPv6), the value must be a unique local address (ULA) range from fdff:1::/64 with a mask length of 126 or less. This value should be a CIDR-formatted string, for example, fc00:0:1:1::1/112. Within the router's VPC, this IPv6 prefix will be reserved exclusively for this connection and cannot be used for any other purpose.

optional string ip_range = 145092645;

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

clearIpVersion()

public RouterInterface.Builder clearIpVersion()

IP version of this interface. Check the IpVersion enum for the list of possible values.

optional string ip_version = 294959552;

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

clearLinkedInterconnectAttachment()

public RouterInterface.Builder clearLinkedInterconnectAttachment()

URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork.

optional string linked_interconnect_attachment = 501085518;

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

clearLinkedVpnTunnel()

public RouterInterface.Builder clearLinkedVpnTunnel()

URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork.

optional string linked_vpn_tunnel = 352296953;

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

clearManagementType()

public RouterInterface.Builder clearManagementType()

[Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. Check the ManagementType enum for the list of possible values.

optional string management_type = 173703606;

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

clearName()

public RouterInterface.Builder clearName()

Name of this interface entry. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RouterInterface.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RouterInterface.Builder
Overrides

clearPrivateIpAddress()

public RouterInterface.Builder clearPrivateIpAddress()

The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual Router, or an SD-WAN VM.

optional string private_ip_address = 100854040;

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

clearRedundantInterface()

public RouterInterface.Builder clearRedundantInterface()

Name of the interface that will be redundant with the current interface you are creating. The redundantInterface must belong to the same Cloud Router as the interface here. To establish the BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be attached to two separate interfaces that are redundant with each other. The redundant_interface must be 1-63 characters long, and comply with RFC1035. Specifically, the redundant_interface must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string redundant_interface = 523187303;

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

clearSubnetwork()

public RouterInterface.Builder clearSubnetwork()

The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here.

optional string subnetwork = 307827694;

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

clone()

public RouterInterface.Builder clone()
Returns
Type Description
RouterInterface.Builder
Overrides

getDefaultInstanceForType()

public RouterInterface getDefaultInstanceForType()
Returns
Type Description
RouterInterface

getDescriptorForType()

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

getIpRange()

public String getIpRange()

IP address and range of the interface. - For Internet Protocol version 4 (IPv4), the IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example, 169.254.0.1/30. Note: Do not truncate the IP address, as it represents the IP address of the interface. - For Internet Protocol version 6 (IPv6), the value must be a unique local address (ULA) range from fdff:1::/64 with a mask length of 126 or less. This value should be a CIDR-formatted string, for example, fc00:0:1:1::1/112. Within the router's VPC, this IPv6 prefix will be reserved exclusively for this connection and cannot be used for any other purpose.

optional string ip_range = 145092645;

Returns
Type Description
String

The ipRange.

getIpRangeBytes()

public ByteString getIpRangeBytes()

IP address and range of the interface. - For Internet Protocol version 4 (IPv4), the IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example, 169.254.0.1/30. Note: Do not truncate the IP address, as it represents the IP address of the interface. - For Internet Protocol version 6 (IPv6), the value must be a unique local address (ULA) range from fdff:1::/64 with a mask length of 126 or less. This value should be a CIDR-formatted string, for example, fc00:0:1:1::1/112. Within the router's VPC, this IPv6 prefix will be reserved exclusively for this connection and cannot be used for any other purpose.

optional string ip_range = 145092645;

Returns
Type Description
ByteString

The bytes for ipRange.

getIpVersion()

public String getIpVersion()

IP version of this interface. Check the IpVersion enum for the list of possible values.

optional string ip_version = 294959552;

Returns
Type Description
String

The ipVersion.

getIpVersionBytes()

public ByteString getIpVersionBytes()

IP version of this interface. Check the IpVersion enum for the list of possible values.

optional string ip_version = 294959552;

Returns
Type Description
ByteString

The bytes for ipVersion.

getLinkedInterconnectAttachment()

public String getLinkedInterconnectAttachment()

URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork.

optional string linked_interconnect_attachment = 501085518;

Returns
Type Description
String

The linkedInterconnectAttachment.

getLinkedInterconnectAttachmentBytes()

public ByteString getLinkedInterconnectAttachmentBytes()

URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork.

optional string linked_interconnect_attachment = 501085518;

Returns
Type Description
ByteString

The bytes for linkedInterconnectAttachment.

getLinkedVpnTunnel()

public String getLinkedVpnTunnel()

URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork.

optional string linked_vpn_tunnel = 352296953;

Returns
Type Description
String

The linkedVpnTunnel.

getLinkedVpnTunnelBytes()

public ByteString getLinkedVpnTunnelBytes()

URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork.

optional string linked_vpn_tunnel = 352296953;

Returns
Type Description
ByteString

The bytes for linkedVpnTunnel.

getManagementType()

public String getManagementType()

[Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. Check the ManagementType enum for the list of possible values.

optional string management_type = 173703606;

Returns
Type Description
String

The managementType.

getManagementTypeBytes()

public ByteString getManagementTypeBytes()

[Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. Check the ManagementType enum for the list of possible values.

optional string management_type = 173703606;

Returns
Type Description
ByteString

The bytes for managementType.

getName()

public String getName()

Name of this interface entry. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of this interface entry. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getPrivateIpAddress()

public String getPrivateIpAddress()

The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual Router, or an SD-WAN VM.

optional string private_ip_address = 100854040;

Returns
Type Description
String

The privateIpAddress.

getPrivateIpAddressBytes()

public ByteString getPrivateIpAddressBytes()

The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual Router, or an SD-WAN VM.

optional string private_ip_address = 100854040;

Returns
Type Description
ByteString

The bytes for privateIpAddress.

getRedundantInterface()

public String getRedundantInterface()

Name of the interface that will be redundant with the current interface you are creating. The redundantInterface must belong to the same Cloud Router as the interface here. To establish the BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be attached to two separate interfaces that are redundant with each other. The redundant_interface must be 1-63 characters long, and comply with RFC1035. Specifically, the redundant_interface must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string redundant_interface = 523187303;

Returns
Type Description
String

The redundantInterface.

getRedundantInterfaceBytes()

public ByteString getRedundantInterfaceBytes()

Name of the interface that will be redundant with the current interface you are creating. The redundantInterface must belong to the same Cloud Router as the interface here. To establish the BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be attached to two separate interfaces that are redundant with each other. The redundant_interface must be 1-63 characters long, and comply with RFC1035. Specifically, the redundant_interface must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string redundant_interface = 523187303;

Returns
Type Description
ByteString

The bytes for redundantInterface.

getSubnetwork()

public String getSubnetwork()

The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here.

optional string subnetwork = 307827694;

Returns
Type Description
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here.

optional string subnetwork = 307827694;

Returns
Type Description
ByteString

The bytes for subnetwork.

hasIpRange()

public boolean hasIpRange()

IP address and range of the interface. - For Internet Protocol version 4 (IPv4), the IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example, 169.254.0.1/30. Note: Do not truncate the IP address, as it represents the IP address of the interface. - For Internet Protocol version 6 (IPv6), the value must be a unique local address (ULA) range from fdff:1::/64 with a mask length of 126 or less. This value should be a CIDR-formatted string, for example, fc00:0:1:1::1/112. Within the router's VPC, this IPv6 prefix will be reserved exclusively for this connection and cannot be used for any other purpose.

optional string ip_range = 145092645;

Returns
Type Description
boolean

Whether the ipRange field is set.

hasIpVersion()

public boolean hasIpVersion()

IP version of this interface. Check the IpVersion enum for the list of possible values.

optional string ip_version = 294959552;

Returns
Type Description
boolean

Whether the ipVersion field is set.

hasLinkedInterconnectAttachment()

public boolean hasLinkedInterconnectAttachment()

URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork.

optional string linked_interconnect_attachment = 501085518;

Returns
Type Description
boolean

Whether the linkedInterconnectAttachment field is set.

hasLinkedVpnTunnel()

public boolean hasLinkedVpnTunnel()

URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork.

optional string linked_vpn_tunnel = 352296953;

Returns
Type Description
boolean

Whether the linkedVpnTunnel field is set.

hasManagementType()

public boolean hasManagementType()

[Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. Check the ManagementType enum for the list of possible values.

optional string management_type = 173703606;

Returns
Type Description
boolean

Whether the managementType field is set.

hasName()

public boolean hasName()

Name of this interface entry. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasPrivateIpAddress()

public boolean hasPrivateIpAddress()

The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual Router, or an SD-WAN VM.

optional string private_ip_address = 100854040;

Returns
Type Description
boolean

Whether the privateIpAddress field is set.

hasRedundantInterface()

public boolean hasRedundantInterface()

Name of the interface that will be redundant with the current interface you are creating. The redundantInterface must belong to the same Cloud Router as the interface here. To establish the BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be attached to two separate interfaces that are redundant with each other. The redundant_interface must be 1-63 characters long, and comply with RFC1035. Specifically, the redundant_interface must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string redundant_interface = 523187303;

Returns
Type Description
boolean

Whether the redundantInterface field is set.

hasSubnetwork()

public boolean hasSubnetwork()

The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here.

optional string subnetwork = 307827694;

Returns
Type Description
boolean

Whether the subnetwork field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RouterInterface other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public RouterInterface.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RouterInterface.Builder
Overrides

setIpRange(String value)

public RouterInterface.Builder setIpRange(String value)

IP address and range of the interface. - For Internet Protocol version 4 (IPv4), the IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example, 169.254.0.1/30. Note: Do not truncate the IP address, as it represents the IP address of the interface. - For Internet Protocol version 6 (IPv6), the value must be a unique local address (ULA) range from fdff:1::/64 with a mask length of 126 or less. This value should be a CIDR-formatted string, for example, fc00:0:1:1::1/112. Within the router's VPC, this IPv6 prefix will be reserved exclusively for this connection and cannot be used for any other purpose.

optional string ip_range = 145092645;

Parameter
Name Description
value String

The ipRange to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setIpRangeBytes(ByteString value)

public RouterInterface.Builder setIpRangeBytes(ByteString value)

IP address and range of the interface. - For Internet Protocol version 4 (IPv4), the IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example, 169.254.0.1/30. Note: Do not truncate the IP address, as it represents the IP address of the interface. - For Internet Protocol version 6 (IPv6), the value must be a unique local address (ULA) range from fdff:1::/64 with a mask length of 126 or less. This value should be a CIDR-formatted string, for example, fc00:0:1:1::1/112. Within the router's VPC, this IPv6 prefix will be reserved exclusively for this connection and cannot be used for any other purpose.

optional string ip_range = 145092645;

Parameter
Name Description
value ByteString

The bytes for ipRange to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setIpVersion(String value)

public RouterInterface.Builder setIpVersion(String value)

IP version of this interface. Check the IpVersion enum for the list of possible values.

optional string ip_version = 294959552;

Parameter
Name Description
value String

The ipVersion to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setIpVersionBytes(ByteString value)

public RouterInterface.Builder setIpVersionBytes(ByteString value)

IP version of this interface. Check the IpVersion enum for the list of possible values.

optional string ip_version = 294959552;

Parameter
Name Description
value ByteString

The bytes for ipVersion to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setLinkedInterconnectAttachment(String value)

public RouterInterface.Builder setLinkedInterconnectAttachment(String value)

URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork.

optional string linked_interconnect_attachment = 501085518;

Parameter
Name Description
value String

The linkedInterconnectAttachment to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setLinkedInterconnectAttachmentBytes(ByteString value)

public RouterInterface.Builder setLinkedInterconnectAttachmentBytes(ByteString value)

URI of the linked Interconnect attachment. It must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork.

optional string linked_interconnect_attachment = 501085518;

Parameter
Name Description
value ByteString

The bytes for linkedInterconnectAttachment to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setLinkedVpnTunnel(String value)

public RouterInterface.Builder setLinkedVpnTunnel(String value)

URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork.

optional string linked_vpn_tunnel = 352296953;

Parameter
Name Description
value String

The linkedVpnTunnel to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setLinkedVpnTunnelBytes(ByteString value)

public RouterInterface.Builder setLinkedVpnTunnelBytes(ByteString value)

URI of the linked VPN tunnel, which must be in the same region as the router. Each interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a subnetwork.

optional string linked_vpn_tunnel = 352296953;

Parameter
Name Description
value ByteString

The bytes for linkedVpnTunnel to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setManagementType(String value)

public RouterInterface.Builder setManagementType(String value)

[Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. Check the ManagementType enum for the list of possible values.

optional string management_type = 173703606;

Parameter
Name Description
value String

The managementType to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setManagementTypeBytes(ByteString value)

public RouterInterface.Builder setManagementTypeBytes(ByteString value)

[Output Only] The resource that configures and manages this interface. - MANAGED_BY_USER is the default value and can be managed directly by users. - MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of interface when the PARTNER InterconnectAttachment is created, updated, or deleted. Check the ManagementType enum for the list of possible values.

optional string management_type = 173703606;

Parameter
Name Description
value ByteString

The bytes for managementType to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setName(String value)

public RouterInterface.Builder setName(String value)

Name of this interface entry. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RouterInterface.Builder setNameBytes(ByteString value)

Name of this interface entry. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setPrivateIpAddress(String value)

public RouterInterface.Builder setPrivateIpAddress(String value)

The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual Router, or an SD-WAN VM.

optional string private_ip_address = 100854040;

Parameter
Name Description
value String

The privateIpAddress to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setPrivateIpAddressBytes(ByteString value)

public RouterInterface.Builder setPrivateIpAddressBytes(ByteString value)

The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual Router, or an SD-WAN VM.

optional string private_ip_address = 100854040;

Parameter
Name Description
value ByteString

The bytes for privateIpAddress to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setRedundantInterface(String value)

public RouterInterface.Builder setRedundantInterface(String value)

Name of the interface that will be redundant with the current interface you are creating. The redundantInterface must belong to the same Cloud Router as the interface here. To establish the BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be attached to two separate interfaces that are redundant with each other. The redundant_interface must be 1-63 characters long, and comply with RFC1035. Specifically, the redundant_interface must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string redundant_interface = 523187303;

Parameter
Name Description
value String

The redundantInterface to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setRedundantInterfaceBytes(ByteString value)

public RouterInterface.Builder setRedundantInterfaceBytes(ByteString value)

Name of the interface that will be redundant with the current interface you are creating. The redundantInterface must belong to the same Cloud Router as the interface here. To establish the BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be attached to two separate interfaces that are redundant with each other. The redundant_interface must be 1-63 characters long, and comply with RFC1035. Specifically, the redundant_interface must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string redundant_interface = 523187303;

Parameter
Name Description
value ByteString

The bytes for redundantInterface to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

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

public RouterInterface.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RouterInterface.Builder
Overrides

setSubnetwork(String value)

public RouterInterface.Builder setSubnetwork(String value)

The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here.

optional string subnetwork = 307827694;

Parameter
Name Description
value String

The subnetwork to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setSubnetworkBytes(ByteString value)

public RouterInterface.Builder setSubnetworkBytes(ByteString value)

The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here.

optional string subnetwork = 307827694;

Parameter
Name Description
value ByteString

The bytes for subnetwork to set.

Returns
Type Description
RouterInterface.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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