Class VpnGatewayInfo.Builder (1.48.0)

public static final class VpnGatewayInfo.Builder extends GeneratedMessageV3.Builder<VpnGatewayInfo.Builder> implements VpnGatewayInfoOrBuilder

For display only. Metadata associated with a Compute Engine VPN gateway.

Protobuf type google.cloud.networkmanagement.v1.VpnGatewayInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VpnGatewayInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VpnGatewayInfo.Builder
Overrides

build()

public VpnGatewayInfo build()
Returns
Type Description
VpnGatewayInfo

buildPartial()

public VpnGatewayInfo buildPartial()
Returns
Type Description
VpnGatewayInfo

clear()

public VpnGatewayInfo.Builder clear()
Returns
Type Description
VpnGatewayInfo.Builder
Overrides

clearDisplayName()

public VpnGatewayInfo.Builder clearDisplayName()

Name of a VPN gateway.

string display_name = 1;

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VpnGatewayInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VpnGatewayInfo.Builder
Overrides

clearIpAddress()

public VpnGatewayInfo.Builder clearIpAddress()

IP address of the VPN gateway.

string ip_address = 4;

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

clearNetworkUri()

public VpnGatewayInfo.Builder clearNetworkUri()

URI of a Compute Engine network where the VPN gateway is configured.

string network_uri = 3;

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VpnGatewayInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VpnGatewayInfo.Builder
Overrides

clearRegion()

public VpnGatewayInfo.Builder clearRegion()

Name of a Google Cloud region where this VPN gateway is configured.

string region = 6;

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

clearUri()

public VpnGatewayInfo.Builder clearUri()

URI of a VPN gateway.

string uri = 2;

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

clearVpnTunnelUri()

public VpnGatewayInfo.Builder clearVpnTunnelUri()

A VPN tunnel that is associated with this VPN gateway. There may be multiple VPN tunnels configured on a VPN gateway, and only the one relevant to the test is displayed.

string vpn_tunnel_uri = 5;

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

clone()

public VpnGatewayInfo.Builder clone()
Returns
Type Description
VpnGatewayInfo.Builder
Overrides

getDefaultInstanceForType()

public VpnGatewayInfo getDefaultInstanceForType()
Returns
Type Description
VpnGatewayInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Name of a VPN gateway.

string display_name = 1;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Name of a VPN gateway.

string display_name = 1;

Returns
Type Description
ByteString

The bytes for displayName.

getIpAddress()

public String getIpAddress()

IP address of the VPN gateway.

string ip_address = 4;

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

IP address of the VPN gateway.

string ip_address = 4;

Returns
Type Description
ByteString

The bytes for ipAddress.

getNetworkUri()

public String getNetworkUri()

URI of a Compute Engine network where the VPN gateway is configured.

string network_uri = 3;

Returns
Type Description
String

The networkUri.

getNetworkUriBytes()

public ByteString getNetworkUriBytes()

URI of a Compute Engine network where the VPN gateway is configured.

string network_uri = 3;

Returns
Type Description
ByteString

The bytes for networkUri.

getRegion()

public String getRegion()

Name of a Google Cloud region where this VPN gateway is configured.

string region = 6;

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of a Google Cloud region where this VPN gateway is configured.

string region = 6;

Returns
Type Description
ByteString

The bytes for region.

getUri()

public String getUri()

URI of a VPN gateway.

string uri = 2;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URI of a VPN gateway.

string uri = 2;

Returns
Type Description
ByteString

The bytes for uri.

getVpnTunnelUri()

public String getVpnTunnelUri()

A VPN tunnel that is associated with this VPN gateway. There may be multiple VPN tunnels configured on a VPN gateway, and only the one relevant to the test is displayed.

string vpn_tunnel_uri = 5;

Returns
Type Description
String

The vpnTunnelUri.

getVpnTunnelUriBytes()

public ByteString getVpnTunnelUriBytes()

A VPN tunnel that is associated with this VPN gateway. There may be multiple VPN tunnels configured on a VPN gateway, and only the one relevant to the test is displayed.

string vpn_tunnel_uri = 5;

Returns
Type Description
ByteString

The bytes for vpnTunnelUri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VpnGatewayInfo other)

public VpnGatewayInfo.Builder mergeFrom(VpnGatewayInfo other)
Parameter
Name Description
other VpnGatewayInfo
Returns
Type Description
VpnGatewayInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VpnGatewayInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpnGatewayInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VpnGatewayInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VpnGatewayInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VpnGatewayInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VpnGatewayInfo.Builder
Overrides

setDisplayName(String value)

public VpnGatewayInfo.Builder setDisplayName(String value)

Name of a VPN gateway.

string display_name = 1;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public VpnGatewayInfo.Builder setDisplayNameBytes(ByteString value)

Name of a VPN gateway.

string display_name = 1;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VpnGatewayInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VpnGatewayInfo.Builder
Overrides

setIpAddress(String value)

public VpnGatewayInfo.Builder setIpAddress(String value)

IP address of the VPN gateway.

string ip_address = 4;

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public VpnGatewayInfo.Builder setIpAddressBytes(ByteString value)

IP address of the VPN gateway.

string ip_address = 4;

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

setNetworkUri(String value)

public VpnGatewayInfo.Builder setNetworkUri(String value)

URI of a Compute Engine network where the VPN gateway is configured.

string network_uri = 3;

Parameter
Name Description
value String

The networkUri to set.

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

setNetworkUriBytes(ByteString value)

public VpnGatewayInfo.Builder setNetworkUriBytes(ByteString value)

URI of a Compute Engine network where the VPN gateway is configured.

string network_uri = 3;

Parameter
Name Description
value ByteString

The bytes for networkUri to set.

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

setRegion(String value)

public VpnGatewayInfo.Builder setRegion(String value)

Name of a Google Cloud region where this VPN gateway is configured.

string region = 6;

Parameter
Name Description
value String

The region to set.

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public VpnGatewayInfo.Builder setRegionBytes(ByteString value)

Name of a Google Cloud region where this VPN gateway is configured.

string region = 6;

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

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

public VpnGatewayInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VpnGatewayInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VpnGatewayInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VpnGatewayInfo.Builder
Overrides

setUri(String value)

public VpnGatewayInfo.Builder setUri(String value)

URI of a VPN gateway.

string uri = 2;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

setUriBytes(ByteString value)

public VpnGatewayInfo.Builder setUriBytes(ByteString value)

URI of a VPN gateway.

string uri = 2;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

setVpnTunnelUri(String value)

public VpnGatewayInfo.Builder setVpnTunnelUri(String value)

A VPN tunnel that is associated with this VPN gateway. There may be multiple VPN tunnels configured on a VPN gateway, and only the one relevant to the test is displayed.

string vpn_tunnel_uri = 5;

Parameter
Name Description
value String

The vpnTunnelUri to set.

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.

setVpnTunnelUriBytes(ByteString value)

public VpnGatewayInfo.Builder setVpnTunnelUriBytes(ByteString value)

A VPN tunnel that is associated with this VPN gateway. There may be multiple VPN tunnels configured on a VPN gateway, and only the one relevant to the test is displayed.

string vpn_tunnel_uri = 5;

Parameter
Name Description
value ByteString

The bytes for vpnTunnelUri to set.

Returns
Type Description
VpnGatewayInfo.Builder

This builder for chaining.