Class VpnConnection

  • All Implemented Interfaces:
    VpnConnectionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class VpnConnection
    extends com.google.protobuf.GeneratedMessageV3
    implements VpnConnectionOrBuilder
     A VPN connection .
     
    Protobuf type google.cloud.edgecontainer.v1.VpnConnection
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getName

        public String getName()
         Required. The resource name of VPN connection
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface VpnConnectionOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The resource name of VPN connection
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface VpnConnectionOrBuilder
        Returns:
        The bytes for name.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time when the VPN connection was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface VpnConnectionOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time when the VPN connection was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface VpnConnectionOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time when the VPN connection was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface VpnConnectionOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The time when the VPN connection was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface VpnConnectionOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The time when the VPN connection was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface VpnConnectionOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time when the VPN connection was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface VpnConnectionOrBuilder
      • getNatGatewayIp

        public String getNatGatewayIp()
         NAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the
         customer needs to configure NAT such that only one external IP maps to the
         GMEC Anthos cluster. This is empty if NAT is not used.
         
        string nat_gateway_ip = 5;
        Specified by:
        getNatGatewayIp in interface VpnConnectionOrBuilder
        Returns:
        The natGatewayIp.
      • getNatGatewayIpBytes

        public com.google.protobuf.ByteString getNatGatewayIpBytes()
         NAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the
         customer needs to configure NAT such that only one external IP maps to the
         GMEC Anthos cluster. This is empty if NAT is not used.
         
        string nat_gateway_ip = 5;
        Specified by:
        getNatGatewayIpBytes in interface VpnConnectionOrBuilder
        Returns:
        The bytes for natGatewayIp.
      • getBgpRoutingModeValue

        @Deprecated
        public int getBgpRoutingModeValue()
        Deprecated.
        google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=361
         Dynamic routing mode of the VPC network, `regional` or `global`.
         
        .google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];
        Specified by:
        getBgpRoutingModeValue in interface VpnConnectionOrBuilder
        Returns:
        The enum numeric value on the wire for bgpRoutingMode.
      • getBgpRoutingMode

        @Deprecated
        public VpnConnection.BgpRoutingMode getBgpRoutingMode()
        Deprecated.
        google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=361
         Dynamic routing mode of the VPC network, `regional` or `global`.
         
        .google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];
        Specified by:
        getBgpRoutingMode in interface VpnConnectionOrBuilder
        Returns:
        The bgpRoutingMode.
      • getCluster

        public String getCluster()
         The canonical Cluster name to connect to. It is in the form of
         projects/{project}/locations/{location}/clusters/{cluster}.
         
        string cluster = 7 [(.google.api.resource_reference) = { ... }
        Specified by:
        getCluster in interface VpnConnectionOrBuilder
        Returns:
        The cluster.
      • getClusterBytes

        public com.google.protobuf.ByteString getClusterBytes()
         The canonical Cluster name to connect to. It is in the form of
         projects/{project}/locations/{location}/clusters/{cluster}.
         
        string cluster = 7 [(.google.api.resource_reference) = { ... }
        Specified by:
        getClusterBytes in interface VpnConnectionOrBuilder
        Returns:
        The bytes for cluster.
      • getVpcBytes

        public com.google.protobuf.ByteString getVpcBytes()
         The network ID of VPC to connect to.
         
        string vpc = 8;
        Specified by:
        getVpcBytes in interface VpnConnectionOrBuilder
        Returns:
        The bytes for vpc.
      • hasVpcProject

        public boolean hasVpcProject()
         Optional. Project detail of the VPC network. Required if VPC is in a different
         project than the cluster project.
         
        .google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasVpcProject in interface VpnConnectionOrBuilder
        Returns:
        Whether the vpcProject field is set.
      • getVpcProject

        public VpnConnection.VpcProject getVpcProject()
         Optional. Project detail of the VPC network. Required if VPC is in a different
         project than the cluster project.
         
        .google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getVpcProject in interface VpnConnectionOrBuilder
        Returns:
        The vpcProject.
      • getVpcProjectOrBuilder

        public VpnConnection.VpcProjectOrBuilder getVpcProjectOrBuilder()
         Optional. Project detail of the VPC network. Required if VPC is in a different
         project than the cluster project.
         
        .google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getVpcProjectOrBuilder in interface VpnConnectionOrBuilder
      • getEnableHighAvailability

        public boolean getEnableHighAvailability()
         Whether this VPN connection has HA enabled on cluster side. If enabled,
         when creating VPN connection we will attempt to use 2 ANG floating IPs.
         
        bool enable_high_availability = 9;
        Specified by:
        getEnableHighAvailability in interface VpnConnectionOrBuilder
        Returns:
        The enableHighAvailability.
      • hasDetails

        public boolean hasDetails()
         Output only. The created connection details.
         
        .google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasDetails in interface VpnConnectionOrBuilder
        Returns:
        Whether the details field is set.
      • getDetails

        public VpnConnection.Details getDetails()
         Output only. The created connection details.
         
        .google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDetails in interface VpnConnectionOrBuilder
        Returns:
        The details.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static VpnConnection parseFrom​(ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VpnConnection parseFrom​(ByteBuffer data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VpnConnection parseFrom​(com.google.protobuf.ByteString data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VpnConnection parseFrom​(com.google.protobuf.ByteString data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VpnConnection parseFrom​(byte[] data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VpnConnection parseFrom​(byte[] data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VpnConnection parseFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws IOException
        Throws:
        IOException
      • newBuilderForType

        public VpnConnection.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public VpnConnection.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected VpnConnection.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static VpnConnection getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<VpnConnection> parser()
      • getParserForType

        public com.google.protobuf.Parser<VpnConnection> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public VpnConnection getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder