Package com.google.cloud.compute.v1
Class RouterInterface.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
- com.google.cloud.compute.v1.RouterInterface.Builder
-
- All Implemented Interfaces:
RouterInterfaceOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- RouterInterface
public static final class RouterInterface.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder> implements RouterInterfaceOrBuilder
google.cloud.compute.v1.RouterInterface
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouterInterface.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RouterInterface
build()
RouterInterface
buildPartial()
RouterInterface.Builder
clear()
RouterInterface.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RouterInterface.Builder
clearIpRange()
IP address and range of the interface.RouterInterface.Builder
clearLinkedInterconnectAttachment()
URI of the linked Interconnect attachment.RouterInterface.Builder
clearLinkedVpnTunnel()
URI of the linked VPN tunnel, which must be in the same region as the router.RouterInterface.Builder
clearManagementType()
[Output Only] The resource that configures and manages this interface.RouterInterface.Builder
clearName()
Name of this interface entry.RouterInterface.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
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.RouterInterface.Builder
clearRedundantInterface()
Name of the interface that will be redundant with the current interface you are creating.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.RouterInterface.Builder
clone()
RouterInterface
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getIpRange()
IP address and range of the interface.com.google.protobuf.ByteString
getIpRangeBytes()
IP address and range of the interface.String
getLinkedInterconnectAttachment()
URI of the linked Interconnect attachment.com.google.protobuf.ByteString
getLinkedInterconnectAttachmentBytes()
URI of the linked Interconnect attachment.String
getLinkedVpnTunnel()
URI of the linked VPN tunnel, which must be in the same region as the router.com.google.protobuf.ByteString
getLinkedVpnTunnelBytes()
URI of the linked VPN tunnel, which must be in the same region as the router.String
getManagementType()
[Output Only] The resource that configures and manages this interface.com.google.protobuf.ByteString
getManagementTypeBytes()
[Output Only] The resource that configures and manages this interface.String
getName()
Name of this interface entry.com.google.protobuf.ByteString
getNameBytes()
Name of this interface entry.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.com.google.protobuf.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.String
getRedundantInterface()
Name of the interface that will be redundant with the current interface you are creating.com.google.protobuf.ByteString
getRedundantInterfaceBytes()
Name of the interface that will be redundant with the current interface you are creating.String
getSubnetwork()
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router.com.google.protobuf.ByteString
getSubnetworkBytes()
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router.boolean
hasIpRange()
IP address and range of the interface.boolean
hasLinkedInterconnectAttachment()
URI of the linked Interconnect attachment.boolean
hasLinkedVpnTunnel()
URI of the linked VPN tunnel, which must be in the same region as the router.boolean
hasManagementType()
[Output Only] The resource that configures and manages this interface.boolean
hasName()
Name of this interface entry.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.boolean
hasRedundantInterface()
Name of the interface that will be redundant with the current interface you are creating.boolean
hasSubnetwork()
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
RouterInterface.Builder
mergeFrom(RouterInterface other)
RouterInterface.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RouterInterface.Builder
mergeFrom(com.google.protobuf.Message other)
RouterInterface.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RouterInterface.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RouterInterface.Builder
setIpRange(String value)
IP address and range of the interface.RouterInterface.Builder
setIpRangeBytes(com.google.protobuf.ByteString value)
IP address and range of the interface.RouterInterface.Builder
setLinkedInterconnectAttachment(String value)
URI of the linked Interconnect attachment.RouterInterface.Builder
setLinkedInterconnectAttachmentBytes(com.google.protobuf.ByteString value)
URI of the linked Interconnect attachment.RouterInterface.Builder
setLinkedVpnTunnel(String value)
URI of the linked VPN tunnel, which must be in the same region as the router.RouterInterface.Builder
setLinkedVpnTunnelBytes(com.google.protobuf.ByteString value)
URI of the linked VPN tunnel, which must be in the same region as the router.RouterInterface.Builder
setManagementType(String value)
[Output Only] The resource that configures and manages this interface.RouterInterface.Builder
setManagementTypeBytes(com.google.protobuf.ByteString value)
[Output Only] The resource that configures and manages this interface.RouterInterface.Builder
setName(String value)
Name of this interface entry.RouterInterface.Builder
setNameBytes(com.google.protobuf.ByteString value)
Name of this interface entry.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.RouterInterface.Builder
setPrivateIpAddressBytes(com.google.protobuf.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.RouterInterface.Builder
setRedundantInterface(String value)
Name of the interface that will be redundant with the current interface you are creating.RouterInterface.Builder
setRedundantInterfaceBytes(com.google.protobuf.ByteString value)
Name of the interface that will be redundant with the current interface you are creating.RouterInterface.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
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.RouterInterface.Builder
setSubnetworkBytes(com.google.protobuf.ByteString value)
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router.RouterInterface.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
clear
public RouterInterface.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
getDefaultInstanceForType
public RouterInterface getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouterInterface build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouterInterface buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouterInterface.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
setField
public RouterInterface.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
clearField
public RouterInterface.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
clearOneof
public RouterInterface.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
setRepeatedField
public RouterInterface.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
addRepeatedField
public RouterInterface.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
mergeFrom
public RouterInterface.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouterInterface.Builder>
-
mergeFrom
public RouterInterface.Builder mergeFrom(RouterInterface other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
mergeFrom
public RouterInterface.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouterInterface.Builder>
- Throws:
IOException
-
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;
- Specified by:
hasIpRange
in interfaceRouterInterfaceOrBuilder
- Returns:
- Whether the ipRange field is set.
-
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;
- Specified by:
getIpRange
in interfaceRouterInterfaceOrBuilder
- Returns:
- The ipRange.
-
getIpRangeBytes
public com.google.protobuf.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;
- Specified by:
getIpRangeBytes
in interfaceRouterInterfaceOrBuilder
- Returns:
- The bytes for ipRange.
-
setIpRange
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;
- Parameters:
value
- The ipRange to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setIpRangeBytes
public RouterInterface.Builder setIpRangeBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for ipRange to set.- Returns:
- This builder for chaining.
-
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 virtual machine instance.
optional string linked_interconnect_attachment = 501085518;
- Specified by:
hasLinkedInterconnectAttachment
in interfaceRouterInterfaceOrBuilder
- Returns:
- Whether the linkedInterconnectAttachment field is set.
-
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 virtual machine instance.
optional string linked_interconnect_attachment = 501085518;
- Specified by:
getLinkedInterconnectAttachment
in interfaceRouterInterfaceOrBuilder
- Returns:
- The linkedInterconnectAttachment.
-
getLinkedInterconnectAttachmentBytes
public com.google.protobuf.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 virtual machine instance.
optional string linked_interconnect_attachment = 501085518;
- Specified by:
getLinkedInterconnectAttachmentBytes
in interfaceRouterInterfaceOrBuilder
- Returns:
- The bytes for linkedInterconnectAttachment.
-
setLinkedInterconnectAttachment
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 virtual machine instance.
optional string linked_interconnect_attachment = 501085518;
- Parameters:
value
- The linkedInterconnectAttachment to set.- Returns:
- 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 virtual machine instance.
optional string linked_interconnect_attachment = 501085518;
- Returns:
- This builder for chaining.
-
setLinkedInterconnectAttachmentBytes
public RouterInterface.Builder setLinkedInterconnectAttachmentBytes(com.google.protobuf.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 virtual machine instance.
optional string linked_interconnect_attachment = 501085518;
- Parameters:
value
- The bytes for linkedInterconnectAttachment to set.- Returns:
- This builder for chaining.
-
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 virtual machine instance.
optional string linked_vpn_tunnel = 352296953;
- Specified by:
hasLinkedVpnTunnel
in interfaceRouterInterfaceOrBuilder
- Returns:
- Whether the linkedVpnTunnel field is set.
-
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 virtual machine instance.
optional string linked_vpn_tunnel = 352296953;
- Specified by:
getLinkedVpnTunnel
in interfaceRouterInterfaceOrBuilder
- Returns:
- The linkedVpnTunnel.
-
getLinkedVpnTunnelBytes
public com.google.protobuf.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 virtual machine instance.
optional string linked_vpn_tunnel = 352296953;
- Specified by:
getLinkedVpnTunnelBytes
in interfaceRouterInterfaceOrBuilder
- Returns:
- The bytes for linkedVpnTunnel.
-
setLinkedVpnTunnel
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 virtual machine instance.
optional string linked_vpn_tunnel = 352296953;
- Parameters:
value
- The linkedVpnTunnel to set.- Returns:
- 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 virtual machine instance.
optional string linked_vpn_tunnel = 352296953;
- Returns:
- This builder for chaining.
-
setLinkedVpnTunnelBytes
public RouterInterface.Builder setLinkedVpnTunnelBytes(com.google.protobuf.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 virtual machine instance.
optional string linked_vpn_tunnel = 352296953;
- Parameters:
value
- The bytes for linkedVpnTunnel to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasManagementType
in interfaceRouterInterfaceOrBuilder
- Returns:
- Whether the managementType field is set.
-
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;
- Specified by:
getManagementType
in interfaceRouterInterfaceOrBuilder
- Returns:
- The managementType.
-
getManagementTypeBytes
public com.google.protobuf.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;
- Specified by:
getManagementTypeBytes
in interfaceRouterInterfaceOrBuilder
- Returns:
- The bytes for managementType.
-
setManagementType
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;
- Parameters:
value
- The managementType to set.- Returns:
- 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:
- This builder for chaining.
-
setManagementTypeBytes
public RouterInterface.Builder setManagementTypeBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for managementType to set.- Returns:
- This builder for chaining.
-
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]([-a-z0-9]*[a-z0-9])?` 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;
- Specified by:
hasName
in interfaceRouterInterfaceOrBuilder
- Returns:
- Whether the name field is set.
-
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]([-a-z0-9]*[a-z0-9])?` 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;
- Specified by:
getName
in interfaceRouterInterfaceOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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]([-a-z0-9]*[a-z0-9])?` 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;
- Specified by:
getNameBytes
in interfaceRouterInterfaceOrBuilder
- Returns:
- The bytes for name.
-
setName
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]([-a-z0-9]*[a-z0-9])?` 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;
- Parameters:
value
- The name to set.- Returns:
- 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]([-a-z0-9]*[a-z0-9])?` 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:
- This builder for chaining.
-
setNameBytes
public RouterInterface.Builder setNameBytes(com.google.protobuf.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]([-a-z0-9]*[a-z0-9])?` 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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasPrivateIpAddress
in interfaceRouterInterfaceOrBuilder
- Returns:
- Whether the privateIpAddress field is set.
-
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;
- Specified by:
getPrivateIpAddress
in interfaceRouterInterfaceOrBuilder
- Returns:
- The privateIpAddress.
-
getPrivateIpAddressBytes
public com.google.protobuf.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;
- Specified by:
getPrivateIpAddressBytes
in interfaceRouterInterfaceOrBuilder
- Returns:
- The bytes for privateIpAddress.
-
setPrivateIpAddress
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;
- Parameters:
value
- The privateIpAddress to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPrivateIpAddressBytes
public RouterInterface.Builder setPrivateIpAddressBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for privateIpAddress to set.- Returns:
- This builder for chaining.
-
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]([-a-z0-9]*[a-z0-9])?` 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;
- Specified by:
hasRedundantInterface
in interfaceRouterInterfaceOrBuilder
- Returns:
- Whether the redundantInterface field is set.
-
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]([-a-z0-9]*[a-z0-9])?` 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;
- Specified by:
getRedundantInterface
in interfaceRouterInterfaceOrBuilder
- Returns:
- The redundantInterface.
-
getRedundantInterfaceBytes
public com.google.protobuf.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]([-a-z0-9]*[a-z0-9])?` 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;
- Specified by:
getRedundantInterfaceBytes
in interfaceRouterInterfaceOrBuilder
- Returns:
- The bytes for redundantInterface.
-
setRedundantInterface
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]([-a-z0-9]*[a-z0-9])?` 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;
- Parameters:
value
- The redundantInterface to set.- Returns:
- 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]([-a-z0-9]*[a-z0-9])?` 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:
- This builder for chaining.
-
setRedundantInterfaceBytes
public RouterInterface.Builder setRedundantInterfaceBytes(com.google.protobuf.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]([-a-z0-9]*[a-z0-9])?` 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;
- Parameters:
value
- The bytes for redundantInterface to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasSubnetwork
in interfaceRouterInterfaceOrBuilder
- Returns:
- Whether the subnetwork field is set.
-
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;
- Specified by:
getSubnetwork
in interfaceRouterInterfaceOrBuilder
- Returns:
- The subnetwork.
-
getSubnetworkBytes
public com.google.protobuf.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;
- Specified by:
getSubnetworkBytes
in interfaceRouterInterfaceOrBuilder
- Returns:
- The bytes for subnetwork.
-
setSubnetwork
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;
- Parameters:
value
- The subnetwork to set.- Returns:
- 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:
- This builder for chaining.
-
setSubnetworkBytes
public RouterInterface.Builder setSubnetworkBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for subnetwork to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final RouterInterface.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
mergeUnknownFields
public final RouterInterface.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
-