Package com.google.cloud.compute.v1
Class VpnGatewayStatusVpnConnection.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VpnGatewayStatusVpnConnection.Builder>
com.google.cloud.compute.v1.VpnGatewayStatusVpnConnection.Builder
- All Implemented Interfaces:
VpnGatewayStatusVpnConnectionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VpnGatewayStatusVpnConnection
public static final class VpnGatewayStatusVpnConnection.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VpnGatewayStatusVpnConnection.Builder>
implements VpnGatewayStatusVpnConnectionOrBuilder
A VPN connection contains all VPN tunnels connected from this VpnGateway to the same peer gateway. The peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.Protobuf type
google.cloud.compute.v1.VpnGatewayStatusVpnConnection-
Method Summary
Modifier and TypeMethodDescriptionaddAllTunnels(Iterable<? extends VpnGatewayStatusTunnel> values) List of VPN tunnels that are in this VPN connection.addTunnels(int index, VpnGatewayStatusTunnel value) List of VPN tunnels that are in this VPN connection.addTunnels(int index, VpnGatewayStatusTunnel.Builder builderForValue) List of VPN tunnels that are in this VPN connection.addTunnels(VpnGatewayStatusTunnel value) List of VPN tunnels that are in this VPN connection.addTunnels(VpnGatewayStatusTunnel.Builder builderForValue) List of VPN tunnels that are in this VPN connection.List of VPN tunnels that are in this VPN connection.addTunnelsBuilder(int index) List of VPN tunnels that are in this VPN connection.build()clear()Output only.Output only.HighAvailabilityRequirementState for the VPN connection.List of VPN tunnels that are in this VPN connection.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.getState()HighAvailabilityRequirementState for the VPN connection.HighAvailabilityRequirementState for the VPN connection.HighAvailabilityRequirementState for the VPN connection.getTunnels(int index) List of VPN tunnels that are in this VPN connection.getTunnelsBuilder(int index) List of VPN tunnels that are in this VPN connection.List of VPN tunnels that are in this VPN connection.intList of VPN tunnels that are in this VPN connection.List of VPN tunnels that are in this VPN connection.getTunnelsOrBuilder(int index) List of VPN tunnels that are in this VPN connection.List<? extends VpnGatewayStatusTunnelOrBuilder>List of VPN tunnels that are in this VPN connection.booleanOutput only.booleanOutput only.booleanhasState()HighAvailabilityRequirementState for the VPN connection.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) HighAvailabilityRequirementState for the VPN connection.removeTunnels(int index) List of VPN tunnels that are in this VPN connection.setPeerExternalGateway(String value) Output only.setPeerExternalGatewayBytes(com.google.protobuf.ByteString value) Output only.setPeerGcpGateway(String value) Output only.setPeerGcpGatewayBytes(com.google.protobuf.ByteString value) Output only.HighAvailabilityRequirementState for the VPN connection.setState(VpnGatewayStatusHighAvailabilityRequirementState.Builder builderForValue) HighAvailabilityRequirementState for the VPN connection.setTunnels(int index, VpnGatewayStatusTunnel value) List of VPN tunnels that are in this VPN connection.setTunnels(int index, VpnGatewayStatusTunnel.Builder builderForValue) List of VPN tunnels that are in this VPN connection.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<VpnGatewayStatusVpnConnection.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<VpnGatewayStatusVpnConnection.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<VpnGatewayStatusVpnConnection.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<VpnGatewayStatusVpnConnection.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VpnGatewayStatusVpnConnection.Builder>
-
mergeFrom
public VpnGatewayStatusVpnConnection.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<VpnGatewayStatusVpnConnection.Builder>- Throws:
IOException
-
hasPeerExternalGateway
public boolean hasPeerExternalGateway()Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
optional string peer_external_gateway = 384956173;- Specified by:
hasPeerExternalGatewayin interfaceVpnGatewayStatusVpnConnectionOrBuilder- Returns:
- Whether the peerExternalGateway field is set.
-
getPeerExternalGateway
Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
optional string peer_external_gateway = 384956173;- Specified by:
getPeerExternalGatewayin interfaceVpnGatewayStatusVpnConnectionOrBuilder- Returns:
- The peerExternalGateway.
-
getPeerExternalGatewayBytes
public com.google.protobuf.ByteString getPeerExternalGatewayBytes()Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
optional string peer_external_gateway = 384956173;- Specified by:
getPeerExternalGatewayBytesin interfaceVpnGatewayStatusVpnConnectionOrBuilder- Returns:
- The bytes for peerExternalGateway.
-
setPeerExternalGateway
Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
optional string peer_external_gateway = 384956173;- Parameters:
value- The peerExternalGateway to set.- Returns:
- This builder for chaining.
-
clearPeerExternalGateway
Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
optional string peer_external_gateway = 384956173;- Returns:
- This builder for chaining.
-
setPeerExternalGatewayBytes
public VpnGatewayStatusVpnConnection.Builder setPeerExternalGatewayBytes(com.google.protobuf.ByteString value) Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
optional string peer_external_gateway = 384956173;- Parameters:
value- The bytes for peerExternalGateway to set.- Returns:
- This builder for chaining.
-
hasPeerGcpGateway
public boolean hasPeerGcpGateway()Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
optional string peer_gcp_gateway = 281867452;- Specified by:
hasPeerGcpGatewayin interfaceVpnGatewayStatusVpnConnectionOrBuilder- Returns:
- Whether the peerGcpGateway field is set.
-
getPeerGcpGateway
Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
optional string peer_gcp_gateway = 281867452;- Specified by:
getPeerGcpGatewayin interfaceVpnGatewayStatusVpnConnectionOrBuilder- Returns:
- The peerGcpGateway.
-
getPeerGcpGatewayBytes
public com.google.protobuf.ByteString getPeerGcpGatewayBytes()Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
optional string peer_gcp_gateway = 281867452;- Specified by:
getPeerGcpGatewayBytesin interfaceVpnGatewayStatusVpnConnectionOrBuilder- Returns:
- The bytes for peerGcpGateway.
-
setPeerGcpGateway
Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
optional string peer_gcp_gateway = 281867452;- Parameters:
value- The peerGcpGateway to set.- Returns:
- This builder for chaining.
-
clearPeerGcpGateway
Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
optional string peer_gcp_gateway = 281867452;- Returns:
- This builder for chaining.
-
setPeerGcpGatewayBytes
public VpnGatewayStatusVpnConnection.Builder setPeerGcpGatewayBytes(com.google.protobuf.ByteString value) Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
optional string peer_gcp_gateway = 281867452;- Parameters:
value- The bytes for peerGcpGateway to set.- Returns:
- This builder for chaining.
-
hasState
public boolean hasState()HighAvailabilityRequirementState for the VPN connection.
optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;- Specified by:
hasStatein interfaceVpnGatewayStatusVpnConnectionOrBuilder- Returns:
- Whether the state field is set.
-
getState
HighAvailabilityRequirementState for the VPN connection.
optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;- Specified by:
getStatein interfaceVpnGatewayStatusVpnConnectionOrBuilder- Returns:
- The state.
-
setState
public VpnGatewayStatusVpnConnection.Builder setState(VpnGatewayStatusHighAvailabilityRequirementState value) HighAvailabilityRequirementState for the VPN connection.
optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585; -
setState
public VpnGatewayStatusVpnConnection.Builder setState(VpnGatewayStatusHighAvailabilityRequirementState.Builder builderForValue) HighAvailabilityRequirementState for the VPN connection.
optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585; -
mergeState
public VpnGatewayStatusVpnConnection.Builder mergeState(VpnGatewayStatusHighAvailabilityRequirementState value) HighAvailabilityRequirementState for the VPN connection.
optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585; -
clearState
HighAvailabilityRequirementState for the VPN connection.
optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585; -
getStateBuilder
HighAvailabilityRequirementState for the VPN connection.
optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585; -
getStateOrBuilder
HighAvailabilityRequirementState for the VPN connection.
optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;- Specified by:
getStateOrBuilderin interfaceVpnGatewayStatusVpnConnectionOrBuilder
-
getTunnelsList
List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;- Specified by:
getTunnelsListin interfaceVpnGatewayStatusVpnConnectionOrBuilder
-
getTunnelsCount
public int getTunnelsCount()List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;- Specified by:
getTunnelsCountin interfaceVpnGatewayStatusVpnConnectionOrBuilder
-
getTunnels
List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;- Specified by:
getTunnelsin interfaceVpnGatewayStatusVpnConnectionOrBuilder
-
setTunnels
List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931; -
setTunnels
public VpnGatewayStatusVpnConnection.Builder setTunnels(int index, VpnGatewayStatusTunnel.Builder builderForValue) List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931; -
addTunnels
List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931; -
addTunnels
List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931; -
addTunnels
public VpnGatewayStatusVpnConnection.Builder addTunnels(VpnGatewayStatusTunnel.Builder builderForValue) List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931; -
addTunnels
public VpnGatewayStatusVpnConnection.Builder addTunnels(int index, VpnGatewayStatusTunnel.Builder builderForValue) List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931; -
addAllTunnels
public VpnGatewayStatusVpnConnection.Builder addAllTunnels(Iterable<? extends VpnGatewayStatusTunnel> values) List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931; -
clearTunnels
List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931; -
removeTunnels
List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931; -
getTunnelsBuilder
List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931; -
getTunnelsOrBuilder
List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;- Specified by:
getTunnelsOrBuilderin interfaceVpnGatewayStatusVpnConnectionOrBuilder
-
getTunnelsOrBuilderList
List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;- Specified by:
getTunnelsOrBuilderListin interfaceVpnGatewayStatusVpnConnectionOrBuilder
-
addTunnelsBuilder
List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931; -
addTunnelsBuilder
List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931; -
getTunnelsBuilderList
List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;
-