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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VpnGatewayVpnGatewayInterface
build()
VpnGatewayVpnGatewayInterface
buildPartial()
VpnGatewayVpnGatewayInterface.Builder
clear()
VpnGatewayVpnGatewayInterface.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
VpnGatewayVpnGatewayInterface.Builder
clearId()
[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.VpnGatewayVpnGatewayInterface.Builder
clearInterconnectAttachment()
URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.VpnGatewayVpnGatewayInterface.Builder
clearIpAddress()
[Output Only] IP address for this VPN interface associated with the VPN gateway.VpnGatewayVpnGatewayInterface.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
VpnGatewayVpnGatewayInterface.Builder
clone()
VpnGatewayVpnGatewayInterface
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getId()
[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.String
getInterconnectAttachment()
URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.com.google.protobuf.ByteString
getInterconnectAttachmentBytes()
URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.String
getIpAddress()
[Output Only] IP address for this VPN interface associated with the VPN gateway.com.google.protobuf.ByteString
getIpAddressBytes()
[Output Only] IP address for this VPN interface associated with the VPN gateway.boolean
hasId()
[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.boolean
hasInterconnectAttachment()
URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.boolean
hasIpAddress()
[Output Only] IP address for this VPN interface associated with the VPN gateway.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
VpnGatewayVpnGatewayInterface.Builder
mergeFrom(VpnGatewayVpnGatewayInterface other)
VpnGatewayVpnGatewayInterface.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
VpnGatewayVpnGatewayInterface.Builder
mergeFrom(com.google.protobuf.Message other)
VpnGatewayVpnGatewayInterface.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
VpnGatewayVpnGatewayInterface.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VpnGatewayVpnGatewayInterface.Builder
setId(int value)
[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.VpnGatewayVpnGatewayInterface.Builder
setInterconnectAttachment(String value)
URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.VpnGatewayVpnGatewayInterface.Builder
setInterconnectAttachmentBytes(com.google.protobuf.ByteString value)
URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface.VpnGatewayVpnGatewayInterface.Builder
setIpAddress(String value)
[Output Only] IP address for this VPN interface associated with the VPN gateway.VpnGatewayVpnGatewayInterface.Builder
setIpAddressBytes(com.google.protobuf.ByteString value)
[Output Only] IP address for this VPN interface associated with the VPN gateway.VpnGatewayVpnGatewayInterface.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
VpnGatewayVpnGatewayInterface.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<VpnGatewayVpnGatewayInterface.Builder>
-
clear
public VpnGatewayVpnGatewayInterface.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<VpnGatewayVpnGatewayInterface.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<VpnGatewayVpnGatewayInterface.Builder>
-
getDefaultInstanceForType
public VpnGatewayVpnGatewayInterface getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public VpnGatewayVpnGatewayInterface build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VpnGatewayVpnGatewayInterface buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VpnGatewayVpnGatewayInterface.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<VpnGatewayVpnGatewayInterface.Builder>
-
setField
public VpnGatewayVpnGatewayInterface.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<VpnGatewayVpnGatewayInterface.Builder>
-
clearField
public VpnGatewayVpnGatewayInterface.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<VpnGatewayVpnGatewayInterface.Builder>
-
clearOneof
public VpnGatewayVpnGatewayInterface.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<VpnGatewayVpnGatewayInterface.Builder>
-
setRepeatedField
public VpnGatewayVpnGatewayInterface.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<VpnGatewayVpnGatewayInterface.Builder>
-
addRepeatedField
public VpnGatewayVpnGatewayInterface.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<VpnGatewayVpnGatewayInterface.Builder>
-
mergeFrom
public VpnGatewayVpnGatewayInterface.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VpnGatewayVpnGatewayInterface.Builder>
-
mergeFrom
public VpnGatewayVpnGatewayInterface.Builder mergeFrom(VpnGatewayVpnGatewayInterface other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasId
in 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:
getId
in 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:
hasInterconnectAttachment
in 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:
getInterconnectAttachment
in 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:
getInterconnectAttachmentBytes
in 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:
hasIpAddress
in 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:
getIpAddress
in 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:
getIpAddressBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnGatewayVpnGatewayInterface.Builder>
-
mergeUnknownFields
public final VpnGatewayVpnGatewayInterface.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VpnGatewayVpnGatewayInterface.Builder>
-
-