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
Protobuf typegoogle.cloud.compute.v1.RouterInterface
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouterInterface.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouterInterfacebuild()RouterInterfacebuildPartial()RouterInterface.Builderclear()RouterInterface.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RouterInterface.BuilderclearIpRange()IP address and range of the interface.RouterInterface.BuilderclearLinkedInterconnectAttachment()URI of the linked Interconnect attachment.RouterInterface.BuilderclearLinkedVpnTunnel()URI of the linked VPN tunnel, which must be in the same region as the router.RouterInterface.BuilderclearManagementType()[Output Only] The resource that configures and manages this interface.RouterInterface.BuilderclearName()Name of this interface entry.RouterInterface.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RouterInterface.BuilderclearPrivateIpAddress()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.BuilderclearRedundantInterface()Name of the interface that will be redundant with the current interface you are creating.RouterInterface.BuilderclearSubnetwork()The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router.RouterInterface.Builderclone()RouterInterfacegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetIpRange()IP address and range of the interface.com.google.protobuf.ByteStringgetIpRangeBytes()IP address and range of the interface.StringgetLinkedInterconnectAttachment()URI of the linked Interconnect attachment.com.google.protobuf.ByteStringgetLinkedInterconnectAttachmentBytes()URI of the linked Interconnect attachment.StringgetLinkedVpnTunnel()URI of the linked VPN tunnel, which must be in the same region as the router.com.google.protobuf.ByteStringgetLinkedVpnTunnelBytes()URI of the linked VPN tunnel, which must be in the same region as the router.StringgetManagementType()[Output Only] The resource that configures and manages this interface.com.google.protobuf.ByteStringgetManagementTypeBytes()[Output Only] The resource that configures and manages this interface.StringgetName()Name of this interface entry.com.google.protobuf.ByteStringgetNameBytes()Name of this interface entry.StringgetPrivateIpAddress()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.ByteStringgetPrivateIpAddressBytes()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.StringgetRedundantInterface()Name of the interface that will be redundant with the current interface you are creating.com.google.protobuf.ByteStringgetRedundantInterfaceBytes()Name of the interface that will be redundant with the current interface you are creating.StringgetSubnetwork()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.ByteStringgetSubnetworkBytes()The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router.booleanhasIpRange()IP address and range of the interface.booleanhasLinkedInterconnectAttachment()URI of the linked Interconnect attachment.booleanhasLinkedVpnTunnel()URI of the linked VPN tunnel, which must be in the same region as the router.booleanhasManagementType()[Output Only] The resource that configures and manages this interface.booleanhasName()Name of this interface entry.booleanhasPrivateIpAddress()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.booleanhasRedundantInterface()Name of the interface that will be redundant with the current interface you are creating.booleanhasSubnetwork()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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RouterInterface.BuildermergeFrom(RouterInterface other)RouterInterface.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RouterInterface.BuildermergeFrom(com.google.protobuf.Message other)RouterInterface.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RouterInterface.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouterInterface.BuildersetIpRange(String value)IP address and range of the interface.RouterInterface.BuildersetIpRangeBytes(com.google.protobuf.ByteString value)IP address and range of the interface.RouterInterface.BuildersetLinkedInterconnectAttachment(String value)URI of the linked Interconnect attachment.RouterInterface.BuildersetLinkedInterconnectAttachmentBytes(com.google.protobuf.ByteString value)URI of the linked Interconnect attachment.RouterInterface.BuildersetLinkedVpnTunnel(String value)URI of the linked VPN tunnel, which must be in the same region as the router.RouterInterface.BuildersetLinkedVpnTunnelBytes(com.google.protobuf.ByteString value)URI of the linked VPN tunnel, which must be in the same region as the router.RouterInterface.BuildersetManagementType(String value)[Output Only] The resource that configures and manages this interface.RouterInterface.BuildersetManagementTypeBytes(com.google.protobuf.ByteString value)[Output Only] The resource that configures and manages this interface.RouterInterface.BuildersetName(String value)Name of this interface entry.RouterInterface.BuildersetNameBytes(com.google.protobuf.ByteString value)Name of this interface entry.RouterInterface.BuildersetPrivateIpAddress(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.BuildersetPrivateIpAddressBytes(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.BuildersetRedundantInterface(String value)Name of the interface that will be redundant with the current interface you are creating.RouterInterface.BuildersetRedundantInterfaceBytes(com.google.protobuf.ByteString value)Name of the interface that will be redundant with the current interface you are creating.RouterInterface.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RouterInterface.BuildersetSubnetwork(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.BuildersetSubnetworkBytes(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.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
clear
public RouterInterface.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
getDefaultInstanceForType
public RouterInterface getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouterInterface build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouterInterface buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouterInterface.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
setField
public RouterInterface.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
clearField
public RouterInterface.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
clearOneof
public RouterInterface.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
setRepeatedField
public RouterInterface.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
addRepeatedField
public RouterInterface.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
mergeFrom
public RouterInterface.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouterInterface.Builder>
-
mergeFrom
public RouterInterface.Builder mergeFrom(RouterInterface other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasIpRangein 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:
getIpRangein 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:
getIpRangeBytesin 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:
hasLinkedInterconnectAttachmentin 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:
getLinkedInterconnectAttachmentin 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:
getLinkedInterconnectAttachmentBytesin 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:
hasLinkedVpnTunnelin 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:
getLinkedVpnTunnelin 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:
getLinkedVpnTunnelBytesin 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:
hasManagementTypein 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:
getManagementTypein 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:
getManagementTypeBytesin 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:
hasNamein 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:
getNamein 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:
getNameBytesin 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:
hasPrivateIpAddressin 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:
getPrivateIpAddressin 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:
getPrivateIpAddressBytesin 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:
hasRedundantInterfacein 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:
getRedundantInterfacein 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:
getRedundantInterfaceBytesin 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:
hasSubnetworkin 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:
getSubnetworkin 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:
getSubnetworkBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
mergeUnknownFields
public final RouterInterface.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouterInterface.Builder>
-
-