Class VpnGatewayStatusVpnConnection.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public VpnGatewayStatusVpnConnection 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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()
         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()
         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()
         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)
         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()
         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)
         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()
         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()
         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()
         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)
         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()
         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)
         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.
      • clearState

        public VpnGatewayStatusVpnConnection.Builder clearState()
         HighAvailabilityRequirementState for the VPN connection.
         
        optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;
      • clearTunnels

        public VpnGatewayStatusVpnConnection.Builder 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;
      • 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;