Package com.google.cloud.compute.v1
Class VpnGatewayVpnGatewayInterface.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VpnGatewayVpnGatewayInterface.Builder>
com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface.Builder
- All Implemented Interfaces:
VpnGatewayVpnGatewayInterfaceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VpnGatewayVpnGatewayInterface
public static final class VpnGatewayVpnGatewayInterface.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VpnGatewayVpnGatewayInterface.Builder>
implements VpnGatewayVpnGatewayInterfaceOrBuilder
A VPN gateway interface.Protobuf type
google.cloud.compute.v1.VpnGatewayVpnGatewayInterface-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()clearId()Output only.URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintgetId()Output only.URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.com.google.protobuf.ByteStringURL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleanhasId()Output only.booleanURL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setId(int value) Output only.setInterconnectAttachment(String value) URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.setInterconnectAttachmentBytes(com.google.protobuf.ByteString value) URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.setIpAddress(String value) Output only.setIpAddressBytes(com.google.protobuf.ByteString value) Output only.setIpv6Address(String value) Output only.setIpv6AddressBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<VpnGatewayVpnGatewayInterface.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<VpnGatewayVpnGatewayInterface.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.GeneratedMessage.Builder<VpnGatewayVpnGatewayInterface.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VpnGatewayVpnGatewayInterface.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VpnGatewayVpnGatewayInterface.Builder>
-
mergeFrom
public VpnGatewayVpnGatewayInterface.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<VpnGatewayVpnGatewayInterface.Builder>- Throws:
IOException
-
hasId
public boolean hasId()Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.
optional uint32 id = 3355;- Specified by:
hasIdin interfaceVpnGatewayVpnGatewayInterfaceOrBuilder- Returns:
- Whether the id field is set.
-
getId
public int getId()Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.
optional uint32 id = 3355;- Specified by:
getIdin interfaceVpnGatewayVpnGatewayInterfaceOrBuilder- Returns:
- The id.
-
setId
Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.
optional uint32 id = 3355;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.
optional uint32 id = 3355;- Returns:
- This builder for chaining.
-
hasInterconnectAttachment
public boolean hasInterconnectAttachment()URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
optional string interconnect_attachment = 308135284;- Specified by:
hasInterconnectAttachmentin interfaceVpnGatewayVpnGatewayInterfaceOrBuilder- Returns:
- Whether the interconnectAttachment field is set.
-
getInterconnectAttachment
URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
optional string interconnect_attachment = 308135284;- Specified by:
getInterconnectAttachmentin interfaceVpnGatewayVpnGatewayInterfaceOrBuilder- Returns:
- The interconnectAttachment.
-
getInterconnectAttachmentBytes
public com.google.protobuf.ByteString getInterconnectAttachmentBytes()URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
optional string interconnect_attachment = 308135284;- Specified by:
getInterconnectAttachmentBytesin interfaceVpnGatewayVpnGatewayInterfaceOrBuilder- Returns:
- The bytes for interconnectAttachment.
-
setInterconnectAttachment
URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
optional string interconnect_attachment = 308135284;- Parameters:
value- The interconnectAttachment to set.- Returns:
- This builder for chaining.
-
clearInterconnectAttachment
URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
optional string interconnect_attachment = 308135284;- Returns:
- This builder for chaining.
-
setInterconnectAttachmentBytes
public VpnGatewayVpnGatewayInterface.Builder setInterconnectAttachmentBytes(com.google.protobuf.ByteString value) URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
optional string interconnect_attachment = 308135284;- Parameters:
value- The bytes for interconnectAttachment to set.- Returns:
- This builder for chaining.
-
hasIpAddress
public boolean hasIpAddress()Output only. [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
optional string ip_address = 406272220;- Specified by:
hasIpAddressin interfaceVpnGatewayVpnGatewayInterfaceOrBuilder- Returns:
- Whether the ipAddress field is set.
-
getIpAddress
Output only. [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
optional string ip_address = 406272220;- Specified by:
getIpAddressin interfaceVpnGatewayVpnGatewayInterfaceOrBuilder- Returns:
- The ipAddress.
-
getIpAddressBytes
public com.google.protobuf.ByteString getIpAddressBytes()Output only. [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
optional string ip_address = 406272220;- Specified by:
getIpAddressBytesin interfaceVpnGatewayVpnGatewayInterfaceOrBuilder- Returns:
- The bytes for ipAddress.
-
setIpAddress
Output only. [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
optional string ip_address = 406272220;- Parameters:
value- The ipAddress to set.- Returns:
- This builder for chaining.
-
clearIpAddress
Output only. [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
optional string ip_address = 406272220;- Returns:
- This builder for chaining.
-
setIpAddressBytes
public VpnGatewayVpnGatewayInterface.Builder setIpAddressBytes(com.google.protobuf.ByteString value) Output only. [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
optional string ip_address = 406272220;- Parameters:
value- The bytes for ipAddress to set.- Returns:
- This builder for chaining.
-
hasIpv6Address
public boolean hasIpv6Address()Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
optional string ipv6_address = 341563804;- Specified by:
hasIpv6Addressin interfaceVpnGatewayVpnGatewayInterfaceOrBuilder- Returns:
- Whether the ipv6Address field is set.
-
getIpv6Address
Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
optional string ipv6_address = 341563804;- Specified by:
getIpv6Addressin interfaceVpnGatewayVpnGatewayInterfaceOrBuilder- Returns:
- The ipv6Address.
-
getIpv6AddressBytes
public com.google.protobuf.ByteString getIpv6AddressBytes()Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
optional string ipv6_address = 341563804;- Specified by:
getIpv6AddressBytesin interfaceVpnGatewayVpnGatewayInterfaceOrBuilder- Returns:
- The bytes for ipv6Address.
-
setIpv6Address
Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
optional string ipv6_address = 341563804;- Parameters:
value- The ipv6Address to set.- Returns:
- This builder for chaining.
-
clearIpv6Address
Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
optional string ipv6_address = 341563804;- Returns:
- This builder for chaining.
-
setIpv6AddressBytes
public VpnGatewayVpnGatewayInterface.Builder setIpv6AddressBytes(com.google.protobuf.ByteString value) Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
optional string ipv6_address = 341563804;- Parameters:
value- The bytes for ipv6Address to set.- Returns:
- This builder for chaining.
-