Class VpnGatewayStatusTunnel.Builder (1.19.0)

public static final class VpnGatewayStatusTunnel.Builder extends GeneratedMessageV3.Builder<VpnGatewayStatusTunnel.Builder> implements VpnGatewayStatusTunnelOrBuilder

Contains some information about a VPN tunnel.

Protobuf type google.cloud.compute.v1.VpnGatewayStatusTunnel

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VpnGatewayStatusTunnel.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VpnGatewayStatusTunnel.Builder
Overrides

build()

public VpnGatewayStatusTunnel build()
Returns
TypeDescription
VpnGatewayStatusTunnel

buildPartial()

public VpnGatewayStatusTunnel buildPartial()
Returns
TypeDescription
VpnGatewayStatusTunnel

clear()

public VpnGatewayStatusTunnel.Builder clear()
Returns
TypeDescription
VpnGatewayStatusTunnel.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public VpnGatewayStatusTunnel.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VpnGatewayStatusTunnel.Builder
Overrides

clearLocalGatewayInterface()

public VpnGatewayStatusTunnel.Builder clearLocalGatewayInterface()

The VPN gateway interface this VPN tunnel is associated with.

optional uint32 local_gateway_interface = 158764330;

Returns
TypeDescription
VpnGatewayStatusTunnel.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VpnGatewayStatusTunnel.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VpnGatewayStatusTunnel.Builder
Overrides

clearPeerGatewayInterface()

public VpnGatewayStatusTunnel.Builder clearPeerGatewayInterface()

The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or GCP VPN gateway.

optional uint32 peer_gateway_interface = 214380385;

Returns
TypeDescription
VpnGatewayStatusTunnel.Builder

This builder for chaining.

clearTunnelUrl()

public VpnGatewayStatusTunnel.Builder clearTunnelUrl()

URL reference to the VPN tunnel.

optional string tunnel_url = 78975256;

Returns
TypeDescription
VpnGatewayStatusTunnel.Builder

This builder for chaining.

clone()

public VpnGatewayStatusTunnel.Builder clone()
Returns
TypeDescription
VpnGatewayStatusTunnel.Builder
Overrides

getDefaultInstanceForType()

public VpnGatewayStatusTunnel getDefaultInstanceForType()
Returns
TypeDescription
VpnGatewayStatusTunnel

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLocalGatewayInterface()

public int getLocalGatewayInterface()

The VPN gateway interface this VPN tunnel is associated with.

optional uint32 local_gateway_interface = 158764330;

Returns
TypeDescription
int

The localGatewayInterface.

getPeerGatewayInterface()

public int getPeerGatewayInterface()

The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or GCP VPN gateway.

optional uint32 peer_gateway_interface = 214380385;

Returns
TypeDescription
int

The peerGatewayInterface.

getTunnelUrl()

public String getTunnelUrl()

URL reference to the VPN tunnel.

optional string tunnel_url = 78975256;

Returns
TypeDescription
String

The tunnelUrl.

getTunnelUrlBytes()

public ByteString getTunnelUrlBytes()

URL reference to the VPN tunnel.

optional string tunnel_url = 78975256;

Returns
TypeDescription
ByteString

The bytes for tunnelUrl.

hasLocalGatewayInterface()

public boolean hasLocalGatewayInterface()

The VPN gateway interface this VPN tunnel is associated with.

optional uint32 local_gateway_interface = 158764330;

Returns
TypeDescription
boolean

Whether the localGatewayInterface field is set.

hasPeerGatewayInterface()

public boolean hasPeerGatewayInterface()

The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or GCP VPN gateway.

optional uint32 peer_gateway_interface = 214380385;

Returns
TypeDescription
boolean

Whether the peerGatewayInterface field is set.

hasTunnelUrl()

public boolean hasTunnelUrl()

URL reference to the VPN tunnel.

optional string tunnel_url = 78975256;

Returns
TypeDescription
boolean

Whether the tunnelUrl field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VpnGatewayStatusTunnel other)

public VpnGatewayStatusTunnel.Builder mergeFrom(VpnGatewayStatusTunnel other)
Parameter
NameDescription
otherVpnGatewayStatusTunnel
Returns
TypeDescription
VpnGatewayStatusTunnel.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VpnGatewayStatusTunnel.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpnGatewayStatusTunnel.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VpnGatewayStatusTunnel.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VpnGatewayStatusTunnel.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VpnGatewayStatusTunnel.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VpnGatewayStatusTunnel.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public VpnGatewayStatusTunnel.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VpnGatewayStatusTunnel.Builder
Overrides

setLocalGatewayInterface(int value)

public VpnGatewayStatusTunnel.Builder setLocalGatewayInterface(int value)

The VPN gateway interface this VPN tunnel is associated with.

optional uint32 local_gateway_interface = 158764330;

Parameter
NameDescription
valueint

The localGatewayInterface to set.

Returns
TypeDescription
VpnGatewayStatusTunnel.Builder

This builder for chaining.

setPeerGatewayInterface(int value)

public VpnGatewayStatusTunnel.Builder setPeerGatewayInterface(int value)

The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or GCP VPN gateway.

optional uint32 peer_gateway_interface = 214380385;

Parameter
NameDescription
valueint

The peerGatewayInterface to set.

Returns
TypeDescription
VpnGatewayStatusTunnel.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VpnGatewayStatusTunnel.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VpnGatewayStatusTunnel.Builder
Overrides

setTunnelUrl(String value)

public VpnGatewayStatusTunnel.Builder setTunnelUrl(String value)

URL reference to the VPN tunnel.

optional string tunnel_url = 78975256;

Parameter
NameDescription
valueString

The tunnelUrl to set.

Returns
TypeDescription
VpnGatewayStatusTunnel.Builder

This builder for chaining.

setTunnelUrlBytes(ByteString value)

public VpnGatewayStatusTunnel.Builder setTunnelUrlBytes(ByteString value)

URL reference to the VPN tunnel.

optional string tunnel_url = 78975256;

Parameter
NameDescription
valueByteString

The bytes for tunnelUrl to set.

Returns
TypeDescription
VpnGatewayStatusTunnel.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final VpnGatewayStatusTunnel.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VpnGatewayStatusTunnel.Builder
Overrides