Class VpnConnection

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.edgecontainer.v1.VpnConnection
All Implemented Interfaces:
VpnConnectionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class VpnConnection extends com.google.protobuf.GeneratedMessage implements VpnConnectionOrBuilder
 A VPN connection .
 
Protobuf type google.cloud.edgecontainer.v1.VpnConnection
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • NAT_GATEWAY_IP_FIELD_NUMBER

      public static final int NAT_GATEWAY_IP_FIELD_NUMBER
      See Also:
    • BGP_ROUTING_MODE_FIELD_NUMBER

      public static final int BGP_ROUTING_MODE_FIELD_NUMBER
      See Also:
    • CLUSTER_FIELD_NUMBER

      public static final int CLUSTER_FIELD_NUMBER
      See Also:
    • VPC_FIELD_NUMBER

      public static final int VPC_FIELD_NUMBER
      See Also:
    • VPC_PROJECT_FIELD_NUMBER

      public static final int VPC_PROJECT_FIELD_NUMBER
      See Also:
    • ENABLE_HIGH_AVAILABILITY_FIELD_NUMBER

      public static final int ENABLE_HIGH_AVAILABILITY_FIELD_NUMBER
      See Also:
    • ROUTER_FIELD_NUMBER

      public static final int ROUTER_FIELD_NUMBER
      See Also:
    • DETAILS_FIELD_NUMBER

      public static final int DETAILS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

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

      public int getLabelsCount()
      Description copied from interface: VpnConnectionOrBuilder
       Labels associated with this resource.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsCount in interface VpnConnectionOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Labels associated with this resource.
       
      map<string, string> labels = 4;
      Specified by:
      containsLabels in interface VpnConnectionOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface VpnConnectionOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Labels associated with this resource.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsMap in interface VpnConnectionOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels associated with this resource.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrDefault in interface VpnConnectionOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels associated with this resource.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrThrow 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=763
       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=763
       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.
    • getVpc

      public String getVpc()
       The network ID of VPC to connect to.
       
      string vpc = 8;
      Specified by:
      getVpc in interface VpnConnectionOrBuilder
      Returns:
      The vpc.
    • 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.
    • getRouter

      public String getRouter()
       Optional. The VPN connection Cloud Router name.
       
      string router = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRouter in interface VpnConnectionOrBuilder
      Returns:
      The router.
    • getRouterBytes

      public com.google.protobuf.ByteString getRouterBytes()
       Optional. The VPN connection Cloud Router name.
       
      string router = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRouterBytes in interface VpnConnectionOrBuilder
      Returns:
      The bytes for router.
    • 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.
    • getDetailsOrBuilder

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

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

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VpnConnection parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static VpnConnection parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static VpnConnection parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VpnConnection parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static VpnConnection.Builder newBuilder()
    • newBuilder

      public static VpnConnection.Builder newBuilder(VpnConnection prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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