Class RouterInterface.Builder (1.51.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RouterInterface build()
Returns
TypeDescription
RouterInterface

buildPartial()

public RouterInterface buildPartial()
Returns
TypeDescription
RouterInterface

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIpRange()

public RouterInterface.Builder clearIpRange()

IP address and range of the interface. 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 address as it represents the IP address of the interface.

optional string ip_range = 145092645;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RouterInterface.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RouterInterface.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RouterInterface.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RouterInterface getDefaultInstanceForType()
Returns
TypeDescription
RouterInterface

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIpRange()

public String getIpRange()

IP address and range of the interface. 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 address as it represents the IP address of the interface.

optional string ip_range = 145092645;

Returns
TypeDescription
String

The ipRange.

getIpRangeBytes()

public ByteString getIpRangeBytes()

IP address and range of the interface. 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 address as it represents the IP address of the interface.

optional string ip_range = 145092645;

Returns
TypeDescription
ByteString

The bytes for ipRange.

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

The bytes for subnetwork.

hasIpRange()

public boolean hasIpRange()

IP address and range of the interface. 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 address as it represents the IP address of the interface.

optional string ip_range = 145092645;

Returns
TypeDescription
boolean

Whether the ipRange 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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the subnetwork field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RouterInterface other)

public RouterInterface.Builder mergeFrom(RouterInterface other)
Parameter
NameDescription
otherRouterInterface
Returns
TypeDescription
RouterInterface.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpRange(String value)

public RouterInterface.Builder setIpRange(String value)

IP address and range of the interface. 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 address as it represents the IP address of the interface.

optional string ip_range = 145092645;

Parameter
NameDescription
valueString

The ipRange to set.

Returns
TypeDescription
RouterInterface.Builder

This builder for chaining.

setIpRangeBytes(ByteString value)

public RouterInterface.Builder setIpRangeBytes(ByteString value)

IP address and range of the interface. 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 address as it represents the IP address of the interface.

optional string ip_range = 145092645;

Parameter
NameDescription
valueByteString

The bytes for ipRange to set.

Returns
TypeDescription
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
NameDescription
valueString

The linkedInterconnectAttachment to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for linkedInterconnectAttachment to set.

Returns
TypeDescription
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
NameDescription
valueString

The linkedVpnTunnel to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for linkedVpnTunnel to set.

Returns
TypeDescription
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
NameDescription
valueString

The managementType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for managementType to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The privateIpAddress to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for privateIpAddress to set.

Returns
TypeDescription
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
NameDescription
valueString

The redundantInterface to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for redundantInterface to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The subnetwork to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for subnetwork to set.

Returns
TypeDescription
RouterInterface.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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