Class VpnGatewayInfo.Builder (1.8.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VpnGatewayInfo build()
Returns
TypeDescription
VpnGatewayInfo

buildPartial()

public VpnGatewayInfo buildPartial()
Returns
TypeDescription
VpnGatewayInfo

clear()

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

clearDisplayName()

public VpnGatewayInfo.Builder clearDisplayName()

Name of a VPN gateway.

string display_name = 1;

Returns
TypeDescription
VpnGatewayInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIpAddress()

public VpnGatewayInfo.Builder clearIpAddress()

IP address of the VPN gateway.

string ip_address = 4;

Returns
TypeDescription
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
TypeDescription
VpnGatewayInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRegion()

public VpnGatewayInfo.Builder clearRegion()

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

string region = 6;

Returns
TypeDescription
VpnGatewayInfo.Builder

This builder for chaining.

clearUri()

public VpnGatewayInfo.Builder clearUri()

URI of a VPN gateway.

string uri = 2;

Returns
TypeDescription
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
TypeDescription
VpnGatewayInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public VpnGatewayInfo getDefaultInstanceForType()
Returns
TypeDescription
VpnGatewayInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Name of a VPN gateway.

string display_name = 1;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Name of a VPN gateway.

string display_name = 1;

Returns
TypeDescription
ByteString

The bytes for displayName.

getIpAddress()

public String getIpAddress()

IP address of the VPN gateway.

string ip_address = 4;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

IP address of the VPN gateway.

string ip_address = 4;

Returns
TypeDescription
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
TypeDescription
String

The networkUri.

getNetworkUriBytes()

public ByteString getNetworkUriBytes()

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

string network_uri = 3;

Returns
TypeDescription
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
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

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

string region = 6;

Returns
TypeDescription
ByteString

The bytes for region.

getUri()

public String getUri()

URI of a VPN gateway.

string uri = 2;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URI of a VPN gateway.

string uri = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for vpnTunnelUri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VpnGatewayInfo other)

public VpnGatewayInfo.Builder mergeFrom(VpnGatewayInfo other)
Parameter
NameDescription
otherVpnGatewayInfo
Returns
TypeDescription
VpnGatewayInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDisplayName(String value)

public VpnGatewayInfo.Builder setDisplayName(String value)

Name of a VPN gateway.

string display_name = 1;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
VpnGatewayInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpAddress(String value)

public VpnGatewayInfo.Builder setIpAddress(String value)

IP address of the VPN gateway.

string ip_address = 4;

Parameter
NameDescription
valueString

The ipAddress to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for ipAddress to set.

Returns
TypeDescription
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
NameDescription
valueString

The networkUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for networkUri to set.

Returns
TypeDescription
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
NameDescription
valueString

The region to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VpnGatewayInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public VpnGatewayInfo.Builder setUri(String value)

URI of a VPN gateway.

string uri = 2;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
VpnGatewayInfo.Builder

This builder for chaining.

setUriBytes(ByteString value)

public VpnGatewayInfo.Builder setUriBytes(ByteString value)

URI of a VPN gateway.

string uri = 2;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
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
NameDescription
valueString

The vpnTunnelUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for vpnTunnelUri to set.

Returns
TypeDescription
VpnGatewayInfo.Builder

This builder for chaining.