Class VpnTunnelInfo.Builder (1.9.0)

public static final class VpnTunnelInfo.Builder extends GeneratedMessageV3.Builder<VpnTunnelInfo.Builder> implements VpnTunnelInfoOrBuilder

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

Protobuf type google.cloud.networkmanagement.v1beta1.VpnTunnelInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VpnTunnelInfo build()
Returns
TypeDescription
VpnTunnelInfo

buildPartial()

public VpnTunnelInfo buildPartial()
Returns
TypeDescription
VpnTunnelInfo

clear()

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

clearDisplayName()

public VpnTunnelInfo.Builder clearDisplayName()

Name of a VPN tunnel.

string display_name = 1;

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNetworkUri()

public VpnTunnelInfo.Builder clearNetworkUri()

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

string network_uri = 7;

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRegion()

public VpnTunnelInfo.Builder clearRegion()

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

string region = 8;

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

clearRemoteGateway()

public VpnTunnelInfo.Builder clearRemoteGateway()

URI of a VPN gateway at remote end of the tunnel.

string remote_gateway = 4;

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

clearRemoteGatewayIp()

public VpnTunnelInfo.Builder clearRemoteGatewayIp()

Remote VPN gateway's IP address.

string remote_gateway_ip = 5;

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

clearRoutingType()

public VpnTunnelInfo.Builder clearRoutingType()

Type of the routing policy.

.google.cloud.networkmanagement.v1beta1.VpnTunnelInfo.RoutingType routing_type = 9;

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

clearSourceGateway()

public VpnTunnelInfo.Builder clearSourceGateway()

URI of the VPN gateway at local end of the tunnel.

string source_gateway = 3;

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

clearSourceGatewayIp()

public VpnTunnelInfo.Builder clearSourceGatewayIp()

Local VPN gateway's IP address.

string source_gateway_ip = 6;

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

clearUri()

public VpnTunnelInfo.Builder clearUri()

URI of a VPN tunnel.

string uri = 2;

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public VpnTunnelInfo getDefaultInstanceForType()
Returns
TypeDescription
VpnTunnelInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Name of a VPN tunnel.

string display_name = 1;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Name of a VPN tunnel.

string display_name = 1;

Returns
TypeDescription
ByteString

The bytes for displayName.

getNetworkUri()

public String getNetworkUri()

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

string network_uri = 7;

Returns
TypeDescription
String

The networkUri.

getNetworkUriBytes()

public ByteString getNetworkUriBytes()

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

string network_uri = 7;

Returns
TypeDescription
ByteString

The bytes for networkUri.

getRegion()

public String getRegion()

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

string region = 8;

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

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

string region = 8;

Returns
TypeDescription
ByteString

The bytes for region.

getRemoteGateway()

public String getRemoteGateway()

URI of a VPN gateway at remote end of the tunnel.

string remote_gateway = 4;

Returns
TypeDescription
String

The remoteGateway.

getRemoteGatewayBytes()

public ByteString getRemoteGatewayBytes()

URI of a VPN gateway at remote end of the tunnel.

string remote_gateway = 4;

Returns
TypeDescription
ByteString

The bytes for remoteGateway.

getRemoteGatewayIp()

public String getRemoteGatewayIp()

Remote VPN gateway's IP address.

string remote_gateway_ip = 5;

Returns
TypeDescription
String

The remoteGatewayIp.

getRemoteGatewayIpBytes()

public ByteString getRemoteGatewayIpBytes()

Remote VPN gateway's IP address.

string remote_gateway_ip = 5;

Returns
TypeDescription
ByteString

The bytes for remoteGatewayIp.

getRoutingType()

public VpnTunnelInfo.RoutingType getRoutingType()

Type of the routing policy.

.google.cloud.networkmanagement.v1beta1.VpnTunnelInfo.RoutingType routing_type = 9;

Returns
TypeDescription
VpnTunnelInfo.RoutingType

The routingType.

getRoutingTypeValue()

public int getRoutingTypeValue()

Type of the routing policy.

.google.cloud.networkmanagement.v1beta1.VpnTunnelInfo.RoutingType routing_type = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for routingType.

getSourceGateway()

public String getSourceGateway()

URI of the VPN gateway at local end of the tunnel.

string source_gateway = 3;

Returns
TypeDescription
String

The sourceGateway.

getSourceGatewayBytes()

public ByteString getSourceGatewayBytes()

URI of the VPN gateway at local end of the tunnel.

string source_gateway = 3;

Returns
TypeDescription
ByteString

The bytes for sourceGateway.

getSourceGatewayIp()

public String getSourceGatewayIp()

Local VPN gateway's IP address.

string source_gateway_ip = 6;

Returns
TypeDescription
String

The sourceGatewayIp.

getSourceGatewayIpBytes()

public ByteString getSourceGatewayIpBytes()

Local VPN gateway's IP address.

string source_gateway_ip = 6;

Returns
TypeDescription
ByteString

The bytes for sourceGatewayIp.

getUri()

public String getUri()

URI of a VPN tunnel.

string uri = 2;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URI of a VPN tunnel.

string uri = 2;

Returns
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VpnTunnelInfo other)

public VpnTunnelInfo.Builder mergeFrom(VpnTunnelInfo other)
Parameter
NameDescription
otherVpnTunnelInfo
Returns
TypeDescription
VpnTunnelInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDisplayName(String value)

public VpnTunnelInfo.Builder setDisplayName(String value)

Name of a VPN tunnel.

string display_name = 1;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public VpnTunnelInfo.Builder setDisplayNameBytes(ByteString value)

Name of a VPN tunnel.

string display_name = 1;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setNetworkUri(String value)

public VpnTunnelInfo.Builder setNetworkUri(String value)

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

string network_uri = 7;

Parameter
NameDescription
valueString

The networkUri to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setNetworkUriBytes(ByteString value)

public VpnTunnelInfo.Builder setNetworkUriBytes(ByteString value)

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

string network_uri = 7;

Parameter
NameDescription
valueByteString

The bytes for networkUri to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setRegion(String value)

public VpnTunnelInfo.Builder setRegion(String value)

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

string region = 8;

Parameter
NameDescription
valueString

The region to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public VpnTunnelInfo.Builder setRegionBytes(ByteString value)

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

string region = 8;

Parameter
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setRemoteGateway(String value)

public VpnTunnelInfo.Builder setRemoteGateway(String value)

URI of a VPN gateway at remote end of the tunnel.

string remote_gateway = 4;

Parameter
NameDescription
valueString

The remoteGateway to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setRemoteGatewayBytes(ByteString value)

public VpnTunnelInfo.Builder setRemoteGatewayBytes(ByteString value)

URI of a VPN gateway at remote end of the tunnel.

string remote_gateway = 4;

Parameter
NameDescription
valueByteString

The bytes for remoteGateway to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setRemoteGatewayIp(String value)

public VpnTunnelInfo.Builder setRemoteGatewayIp(String value)

Remote VPN gateway's IP address.

string remote_gateway_ip = 5;

Parameter
NameDescription
valueString

The remoteGatewayIp to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setRemoteGatewayIpBytes(ByteString value)

public VpnTunnelInfo.Builder setRemoteGatewayIpBytes(ByteString value)

Remote VPN gateway's IP address.

string remote_gateway_ip = 5;

Parameter
NameDescription
valueByteString

The bytes for remoteGatewayIp to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

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

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

setRoutingType(VpnTunnelInfo.RoutingType value)

public VpnTunnelInfo.Builder setRoutingType(VpnTunnelInfo.RoutingType value)

Type of the routing policy.

.google.cloud.networkmanagement.v1beta1.VpnTunnelInfo.RoutingType routing_type = 9;

Parameter
NameDescription
valueVpnTunnelInfo.RoutingType

The routingType to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setRoutingTypeValue(int value)

public VpnTunnelInfo.Builder setRoutingTypeValue(int value)

Type of the routing policy.

.google.cloud.networkmanagement.v1beta1.VpnTunnelInfo.RoutingType routing_type = 9;

Parameter
NameDescription
valueint

The enum numeric value on the wire for routingType to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setSourceGateway(String value)

public VpnTunnelInfo.Builder setSourceGateway(String value)

URI of the VPN gateway at local end of the tunnel.

string source_gateway = 3;

Parameter
NameDescription
valueString

The sourceGateway to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setSourceGatewayBytes(ByteString value)

public VpnTunnelInfo.Builder setSourceGatewayBytes(ByteString value)

URI of the VPN gateway at local end of the tunnel.

string source_gateway = 3;

Parameter
NameDescription
valueByteString

The bytes for sourceGateway to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setSourceGatewayIp(String value)

public VpnTunnelInfo.Builder setSourceGatewayIp(String value)

Local VPN gateway's IP address.

string source_gateway_ip = 6;

Parameter
NameDescription
valueString

The sourceGatewayIp to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setSourceGatewayIpBytes(ByteString value)

public VpnTunnelInfo.Builder setSourceGatewayIpBytes(ByteString value)

Local VPN gateway's IP address.

string source_gateway_ip = 6;

Parameter
NameDescription
valueByteString

The bytes for sourceGatewayIp to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public VpnTunnelInfo.Builder setUri(String value)

URI of a VPN tunnel.

string uri = 2;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.

setUriBytes(ByteString value)

public VpnTunnelInfo.Builder setUriBytes(ByteString value)

URI of a VPN tunnel.

string uri = 2;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
VpnTunnelInfo.Builder

This builder for chaining.