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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<VpnGatewayVpnGatewayInterface.Builder> implements VpnGatewayVpnGatewayInterfaceOrBuilder
A VPN gateway interface.
Protobuf typegoogle.cloud.compute.v1.VpnGatewayVpnGatewayInterface
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VpnGatewayVpnGatewayInterface.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VpnGatewayVpnGatewayInterfacebuild()VpnGatewayVpnGatewayInterfacebuildPartial()VpnGatewayVpnGatewayInterface.Builderclear()VpnGatewayVpnGatewayInterface.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)VpnGatewayVpnGatewayInterface.BuilderclearId()[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.VpnGatewayVpnGatewayInterface.BuilderclearInterconnectAttachment()URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.VpnGatewayVpnGatewayInterface.BuilderclearIpAddress()[Output Only] IP address for this VPN interface associated with the VPN gateway.VpnGatewayVpnGatewayInterface.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)VpnGatewayVpnGatewayInterface.Builderclone()VpnGatewayVpnGatewayInterfacegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetId()[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.StringgetInterconnectAttachment()URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.com.google.protobuf.ByteStringgetInterconnectAttachmentBytes()URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.StringgetIpAddress()[Output Only] IP address for this VPN interface associated with the VPN gateway.com.google.protobuf.ByteStringgetIpAddressBytes()[Output Only] IP address for this VPN interface associated with the VPN gateway.booleanhasId()[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.booleanhasInterconnectAttachment()URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.booleanhasIpAddress()[Output Only] IP address for this VPN interface associated with the VPN gateway.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()VpnGatewayVpnGatewayInterface.BuildermergeFrom(VpnGatewayVpnGatewayInterface other)VpnGatewayVpnGatewayInterface.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)VpnGatewayVpnGatewayInterface.BuildermergeFrom(com.google.protobuf.Message other)VpnGatewayVpnGatewayInterface.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VpnGatewayVpnGatewayInterface.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VpnGatewayVpnGatewayInterface.BuildersetId(int value)[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.VpnGatewayVpnGatewayInterface.BuildersetInterconnectAttachment(String value)URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.VpnGatewayVpnGatewayInterface.BuildersetInterconnectAttachmentBytes(com.google.protobuf.ByteString value)URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.VpnGatewayVpnGatewayInterface.BuildersetIpAddress(String value)[Output Only] IP address for this VPN interface associated with the VPN gateway.VpnGatewayVpnGatewayInterface.BuildersetIpAddressBytes(com.google.protobuf.ByteString value)[Output Only] IP address for this VPN interface associated with the VPN gateway.VpnGatewayVpnGatewayInterface.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)VpnGatewayVpnGatewayInterface.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<VpnGatewayVpnGatewayInterface.Builder>
-
clear
public VpnGatewayVpnGatewayInterface.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<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.GeneratedMessageV3.Builder<VpnGatewayVpnGatewayInterface.Builder>
-
getDefaultInstanceForType
public VpnGatewayVpnGatewayInterface getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public VpnGatewayVpnGatewayInterface build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VpnGatewayVpnGatewayInterface buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VpnGatewayVpnGatewayInterface.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<VpnGatewayVpnGatewayInterface.Builder>
-
setField
public VpnGatewayVpnGatewayInterface.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<VpnGatewayVpnGatewayInterface.Builder>
-
clearField
public VpnGatewayVpnGatewayInterface.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnGatewayVpnGatewayInterface.Builder>
-
clearOneof
public VpnGatewayVpnGatewayInterface.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnGatewayVpnGatewayInterface.Builder>
-
setRepeatedField
public VpnGatewayVpnGatewayInterface.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<VpnGatewayVpnGatewayInterface.Builder>
-
addRepeatedField
public VpnGatewayVpnGatewayInterface.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<VpnGatewayVpnGatewayInterface.Builder>
-
mergeFrom
public VpnGatewayVpnGatewayInterface.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VpnGatewayVpnGatewayInterface.Builder>
-
mergeFrom
public VpnGatewayVpnGatewayInterface.Builder mergeFrom(VpnGatewayVpnGatewayInterface other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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] 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] Numeric identifier for this VPN interface associated with the VPN gateway.
optional uint32 id = 3355;- Specified by:
getIdin interfaceVpnGatewayVpnGatewayInterfaceOrBuilder- Returns:
- The id.
-
setId
public VpnGatewayVpnGatewayInterface.Builder setId(int value)
[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
public VpnGatewayVpnGatewayInterface.Builder clearId()
[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
public String 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
public VpnGatewayVpnGatewayInterface.Builder setInterconnectAttachment(String 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 interconnectAttachment to set.- Returns:
- This builder for chaining.
-
clearInterconnectAttachment
public VpnGatewayVpnGatewayInterface.Builder 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] 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
public String getIpAddress()
[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] 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
public VpnGatewayVpnGatewayInterface.Builder setIpAddress(String value)
[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
public VpnGatewayVpnGatewayInterface.Builder clearIpAddress()
[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] 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.
-
setUnknownFields
public final VpnGatewayVpnGatewayInterface.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnGatewayVpnGatewayInterface.Builder>
-
mergeUnknownFields
public final VpnGatewayVpnGatewayInterface.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VpnGatewayVpnGatewayInterface.Builder>
-
-