Class VpnConnection.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VpnConnection.Builder>
com.google.cloud.edgecontainer.v1.VpnConnection.Builder
All Implemented Interfaces:
VpnConnectionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VpnConnection

public static final class VpnConnection.Builder extends com.google.protobuf.GeneratedMessage.Builder<VpnConnection.Builder> implements VpnConnectionOrBuilder
 A VPN connection .
 
Protobuf type google.cloud.edgecontainer.v1.VpnConnection
  • 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.Builder<VpnConnection.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<VpnConnection.Builder>
    • internalGetFieldAccessorTable

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

      public VpnConnection.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<VpnConnection.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<VpnConnection.Builder>
    • getDefaultInstanceForType

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

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

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

      public VpnConnection.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<VpnConnection.Builder>
    • mergeFrom

      public VpnConnection.Builder mergeFrom(VpnConnection other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<VpnConnection.Builder>
    • mergeFrom

      public VpnConnection.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<VpnConnection.Builder>
      Throws:
      IOException
    • 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.
    • setName

      public VpnConnection.Builder setName(String value)
       Required. The resource name of VPN connection
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public VpnConnection.Builder clearName()
       Required. The resource name of VPN connection
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public VpnConnection.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The resource name of VPN connection
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCreateTime

      public VpnConnection.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the VPN connection was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public VpnConnection.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the VPN connection was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public VpnConnection.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the VPN connection was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public VpnConnection.Builder clearCreateTime()
       Output only. The time when the VPN connection was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time when the VPN connection was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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.
    • setUpdateTime

      public VpnConnection.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the VPN connection was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public VpnConnection.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the VPN connection was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public VpnConnection.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the VPN connection was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public VpnConnection.Builder clearUpdateTime()
       Output only. The time when the VPN connection was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The time when the VPN connection was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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
    • clearLabels

      public VpnConnection.Builder clearLabels()
    • removeLabels

      public VpnConnection.Builder removeLabels(String key)
       Labels associated with this resource.
       
      map<string, string> labels = 4;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public VpnConnection.Builder putLabels(String key, String value)
       Labels associated with this resource.
       
      map<string, string> labels = 4;
    • putAllLabels

      public VpnConnection.Builder putAllLabels(Map<String,String> values)
       Labels associated with this resource.
       
      map<string, string> labels = 4;
    • 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.
    • setNatGatewayIp

      public VpnConnection.Builder setNatGatewayIp(String value)
       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;
      Parameters:
      value - The natGatewayIp to set.
      Returns:
      This builder for chaining.
    • clearNatGatewayIp

      public VpnConnection.Builder clearNatGatewayIp()
       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;
      Returns:
      This builder for chaining.
    • setNatGatewayIpBytes

      public VpnConnection.Builder setNatGatewayIpBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for natGatewayIp to set.
      Returns:
      This builder for chaining.
    • 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.
    • setBgpRoutingModeValue

      @Deprecated public VpnConnection.Builder setBgpRoutingModeValue(int value)
      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];
      Parameters:
      value - The enum numeric value on the wire for bgpRoutingMode to set.
      Returns:
      This builder for chaining.
    • 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.
    • setBgpRoutingMode

      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];
      Parameters:
      value - The bgpRoutingMode to set.
      Returns:
      This builder for chaining.
    • clearBgpRoutingMode

      @Deprecated public VpnConnection.Builder clearBgpRoutingMode()
      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];
      Returns:
      This builder for chaining.
    • 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.
    • setCluster

      public VpnConnection.Builder setCluster(String value)
       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) = { ... }
      Parameters:
      value - The cluster to set.
      Returns:
      This builder for chaining.
    • clearCluster

      public VpnConnection.Builder clearCluster()
       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) = { ... }
      Returns:
      This builder for chaining.
    • setClusterBytes

      public VpnConnection.Builder setClusterBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes for cluster to set.
      Returns:
      This builder for chaining.
    • 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.
    • setVpc

      public VpnConnection.Builder setVpc(String value)
       The network ID of VPC to connect to.
       
      string vpc = 8;
      Parameters:
      value - The vpc to set.
      Returns:
      This builder for chaining.
    • clearVpc

      public VpnConnection.Builder clearVpc()
       The network ID of VPC to connect to.
       
      string vpc = 8;
      Returns:
      This builder for chaining.
    • setVpcBytes

      public VpnConnection.Builder setVpcBytes(com.google.protobuf.ByteString value)
       The network ID of VPC to connect to.
       
      string vpc = 8;
      Parameters:
      value - The bytes for vpc to set.
      Returns:
      This builder for chaining.
    • 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.
    • setVpcProject

      public VpnConnection.Builder setVpcProject(VpnConnection.VpcProject value)
       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];
    • setVpcProject

      public VpnConnection.Builder setVpcProject(VpnConnection.VpcProject.Builder builderForValue)
       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];
    • mergeVpcProject

      public VpnConnection.Builder mergeVpcProject(VpnConnection.VpcProject value)
       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];
    • clearVpcProject

      public VpnConnection.Builder clearVpcProject()
       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];
    • getVpcProjectBuilder

      public VpnConnection.VpcProject.Builder getVpcProjectBuilder()
       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];
    • 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.
    • setEnableHighAvailability

      public VpnConnection.Builder setEnableHighAvailability(boolean value)
       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;
      Parameters:
      value - The enableHighAvailability to set.
      Returns:
      This builder for chaining.
    • clearEnableHighAvailability

      public VpnConnection.Builder clearEnableHighAvailability()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setRouter

      public VpnConnection.Builder setRouter(String value)
       Optional. The VPN connection Cloud Router name.
       
      string router = 12 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The router to set.
      Returns:
      This builder for chaining.
    • clearRouter

      public VpnConnection.Builder clearRouter()
       Optional. The VPN connection Cloud Router name.
       
      string router = 12 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRouterBytes

      public VpnConnection.Builder setRouterBytes(com.google.protobuf.ByteString value)
       Optional. The VPN connection Cloud Router name.
       
      string router = 12 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for router to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDetails

      public VpnConnection.Builder setDetails(VpnConnection.Details value)
       Output only. The created connection details.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDetails

      public VpnConnection.Builder setDetails(VpnConnection.Details.Builder builderForValue)
       Output only. The created connection details.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDetails

      public VpnConnection.Builder mergeDetails(VpnConnection.Details value)
       Output only. The created connection details.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDetails

      public VpnConnection.Builder clearDetails()
       Output only. The created connection details.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDetailsBuilder

      public VpnConnection.Details.Builder getDetailsBuilder()
       Output only. The created connection details.
       
      .google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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