Class VpnGatewayStatusTunnel.Builder

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

public static final class VpnGatewayStatusTunnel.Builder extends com.google.protobuf.GeneratedMessage.Builder<VpnGatewayStatusTunnel.Builder> implements VpnGatewayStatusTunnelOrBuilder
 Contains some information about a VPN tunnel.
 
Protobuf type google.cloud.compute.v1.VpnGatewayStatusTunnel
  • 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<VpnGatewayStatusTunnel.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<VpnGatewayStatusTunnel.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<VpnGatewayStatusTunnel.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public VpnGatewayStatusTunnel.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<VpnGatewayStatusTunnel.Builder>
      Throws:
      IOException
    • hasLocalGatewayInterface

      public boolean hasLocalGatewayInterface()
       Output only. The VPN gateway interface this VPN tunnel is associated with.
       
      optional uint32 local_gateway_interface = 158764330;
      Specified by:
      hasLocalGatewayInterface in interface VpnGatewayStatusTunnelOrBuilder
      Returns:
      Whether the localGatewayInterface field is set.
    • getLocalGatewayInterface

      public int getLocalGatewayInterface()
       Output only. The VPN gateway interface this VPN tunnel is associated with.
       
      optional uint32 local_gateway_interface = 158764330;
      Specified by:
      getLocalGatewayInterface in interface VpnGatewayStatusTunnelOrBuilder
      Returns:
      The localGatewayInterface.
    • setLocalGatewayInterface

      public VpnGatewayStatusTunnel.Builder setLocalGatewayInterface(int value)
       Output only. The VPN gateway interface this VPN tunnel is associated with.
       
      optional uint32 local_gateway_interface = 158764330;
      Parameters:
      value - The localGatewayInterface to set.
      Returns:
      This builder for chaining.
    • clearLocalGatewayInterface

      public VpnGatewayStatusTunnel.Builder clearLocalGatewayInterface()
       Output only. The VPN gateway interface this VPN tunnel is associated with.
       
      optional uint32 local_gateway_interface = 158764330;
      Returns:
      This builder for chaining.
    • hasPeerGatewayInterface

      public boolean hasPeerGatewayInterface()
       Output only. The peer gateway interface this VPN tunnel is connected to, the peer
       gateway could either be an external VPN gateway or a Google Cloud
       VPN gateway.
       
      optional uint32 peer_gateway_interface = 214380385;
      Specified by:
      hasPeerGatewayInterface in interface VpnGatewayStatusTunnelOrBuilder
      Returns:
      Whether the peerGatewayInterface field is set.
    • getPeerGatewayInterface

      public int getPeerGatewayInterface()
       Output only. The peer gateway interface this VPN tunnel is connected to, the peer
       gateway could either be an external VPN gateway or a Google Cloud
       VPN gateway.
       
      optional uint32 peer_gateway_interface = 214380385;
      Specified by:
      getPeerGatewayInterface in interface VpnGatewayStatusTunnelOrBuilder
      Returns:
      The peerGatewayInterface.
    • setPeerGatewayInterface

      public VpnGatewayStatusTunnel.Builder setPeerGatewayInterface(int value)
       Output only. The peer gateway interface this VPN tunnel is connected to, the peer
       gateway could either be an external VPN gateway or a Google Cloud
       VPN gateway.
       
      optional uint32 peer_gateway_interface = 214380385;
      Parameters:
      value - The peerGatewayInterface to set.
      Returns:
      This builder for chaining.
    • clearPeerGatewayInterface

      public VpnGatewayStatusTunnel.Builder clearPeerGatewayInterface()
       Output only. The peer gateway interface this VPN tunnel is connected to, the peer
       gateway could either be an external VPN gateway or a Google Cloud
       VPN gateway.
       
      optional uint32 peer_gateway_interface = 214380385;
      Returns:
      This builder for chaining.
    • hasTunnelUrl

      public boolean hasTunnelUrl()
       Output only. URL reference to the VPN tunnel.
       
      optional string tunnel_url = 78975256;
      Specified by:
      hasTunnelUrl in interface VpnGatewayStatusTunnelOrBuilder
      Returns:
      Whether the tunnelUrl field is set.
    • getTunnelUrl

      public String getTunnelUrl()
       Output only. URL reference to the VPN tunnel.
       
      optional string tunnel_url = 78975256;
      Specified by:
      getTunnelUrl in interface VpnGatewayStatusTunnelOrBuilder
      Returns:
      The tunnelUrl.
    • getTunnelUrlBytes

      public com.google.protobuf.ByteString getTunnelUrlBytes()
       Output only. URL reference to the VPN tunnel.
       
      optional string tunnel_url = 78975256;
      Specified by:
      getTunnelUrlBytes in interface VpnGatewayStatusTunnelOrBuilder
      Returns:
      The bytes for tunnelUrl.
    • setTunnelUrl

      public VpnGatewayStatusTunnel.Builder setTunnelUrl(String value)
       Output only. URL reference to the VPN tunnel.
       
      optional string tunnel_url = 78975256;
      Parameters:
      value - The tunnelUrl to set.
      Returns:
      This builder for chaining.
    • clearTunnelUrl

      public VpnGatewayStatusTunnel.Builder clearTunnelUrl()
       Output only. URL reference to the VPN tunnel.
       
      optional string tunnel_url = 78975256;
      Returns:
      This builder for chaining.
    • setTunnelUrlBytes

      public VpnGatewayStatusTunnel.Builder setTunnelUrlBytes(com.google.protobuf.ByteString value)
       Output only. URL reference to the VPN tunnel.
       
      optional string tunnel_url = 78975256;
      Parameters:
      value - The bytes for tunnelUrl to set.
      Returns:
      This builder for chaining.