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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<VpnGatewayStatusVpnConnection.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<VpnGatewayStatusVpnConnection.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<VpnGatewayStatusVpnConnection.Builder>
    • getDefaultInstanceForType

      public VpnGatewayStatusVpnConnection getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public VpnGatewayStatusVpnConnection buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public VpnGatewayStatusVpnConnection.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VpnGatewayStatusVpnConnection.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasPeerExternalGateway in interface VpnGatewayStatusVpnConnectionOrBuilder
      Returns:
      Whether the peerExternalGateway field is set.
    • getPeerExternalGateway

      public String 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:
      getPeerExternalGateway in interface VpnGatewayStatusVpnConnectionOrBuilder
      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:
      getPeerExternalGatewayBytes in interface VpnGatewayStatusVpnConnectionOrBuilder
      Returns:
      The bytes for peerExternalGateway.
    • setPeerExternalGateway

      public VpnGatewayStatusVpnConnection.Builder setPeerExternalGateway(String 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 peerExternalGateway to set.
      Returns:
      This builder for chaining.
    • clearPeerExternalGateway

      public VpnGatewayStatusVpnConnection.Builder 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:
      hasPeerGcpGateway in interface VpnGatewayStatusVpnConnectionOrBuilder
      Returns:
      Whether the peerGcpGateway field is set.
    • getPeerGcpGateway

      public String 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:
      getPeerGcpGateway in interface VpnGatewayStatusVpnConnectionOrBuilder
      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:
      getPeerGcpGatewayBytes in interface VpnGatewayStatusVpnConnectionOrBuilder
      Returns:
      The bytes for peerGcpGateway.
    • setPeerGcpGateway

      public VpnGatewayStatusVpnConnection.Builder setPeerGcpGateway(String 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 peerGcpGateway to set.
      Returns:
      This builder for chaining.
    • clearPeerGcpGateway

      public VpnGatewayStatusVpnConnection.Builder 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:
      hasState in interface VpnGatewayStatusVpnConnectionOrBuilder
      Returns:
      Whether the state field is set.
    • getState

       HighAvailabilityRequirementState for the VPN connection.
       
      optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;
      Specified by:
      getState in interface VpnGatewayStatusVpnConnectionOrBuilder
      Returns:
      The state.
    • setState

       HighAvailabilityRequirementState for the VPN connection.
       
      optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;
    • setState

       HighAvailabilityRequirementState for the VPN connection.
       
      optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;
    • mergeState

       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:
      getStateOrBuilder in interface VpnGatewayStatusVpnConnectionOrBuilder
    • getTunnelsList

      public List<VpnGatewayStatusTunnel> getTunnelsList()
       List of VPN tunnels that are in this VPN connection.
       
      repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;
      Specified by:
      getTunnelsList in interface VpnGatewayStatusVpnConnectionOrBuilder
    • getTunnelsCount

      public int getTunnelsCount()
       List of VPN tunnels that are in this VPN connection.
       
      repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;
      Specified by:
      getTunnelsCount in interface VpnGatewayStatusVpnConnectionOrBuilder
    • getTunnels

      public VpnGatewayStatusTunnel getTunnels(int index)
       List of VPN tunnels that are in this VPN connection.
       
      repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;
      Specified by:
      getTunnels in interface VpnGatewayStatusVpnConnectionOrBuilder
    • setTunnels

      public VpnGatewayStatusVpnConnection.Builder setTunnels(int index, VpnGatewayStatusTunnel value)
       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

      public VpnGatewayStatusVpnConnection.Builder addTunnels(int index, VpnGatewayStatusTunnel value)
       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(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

      public VpnGatewayStatusVpnConnection.Builder removeTunnels(int index)
       List of VPN tunnels that are in this VPN connection.
       
      repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;
    • getTunnelsBuilder

      public VpnGatewayStatusTunnel.Builder getTunnelsBuilder(int index)
       List of VPN tunnels that are in this VPN connection.
       
      repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;
    • getTunnelsOrBuilder

      public VpnGatewayStatusTunnelOrBuilder getTunnelsOrBuilder(int index)
       List of VPN tunnels that are in this VPN connection.
       
      repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;
      Specified by:
      getTunnelsOrBuilder in interface VpnGatewayStatusVpnConnectionOrBuilder
    • getTunnelsOrBuilderList

      public List<? extends VpnGatewayStatusTunnelOrBuilder> getTunnelsOrBuilderList()
       List of VPN tunnels that are in this VPN connection.
       
      repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;
      Specified by:
      getTunnelsOrBuilderList in interface VpnGatewayStatusVpnConnectionOrBuilder
    • addTunnelsBuilder

      public VpnGatewayStatusTunnel.Builder addTunnelsBuilder()
       List of VPN tunnels that are in this VPN connection.
       
      repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;
    • addTunnelsBuilder

      public VpnGatewayStatusTunnel.Builder addTunnelsBuilder(int index)
       List of VPN tunnels that are in this VPN connection.
       
      repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;
    • getTunnelsBuilderList

      public List<VpnGatewayStatusTunnel.Builder> getTunnelsBuilderList()
       List of VPN tunnels that are in this VPN connection.
       
      repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;