Class ProxyConnectionInfo.Builder (1.48.0)

public static final class ProxyConnectionInfo.Builder extends GeneratedMessageV3.Builder<ProxyConnectionInfo.Builder> implements ProxyConnectionInfoOrBuilder

For display only. Metadata associated with ProxyConnection.

Protobuf type google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProxyConnectionInfo build()
Returns
Type Description
ProxyConnectionInfo

buildPartial()

public ProxyConnectionInfo buildPartial()
Returns
Type Description
ProxyConnectionInfo

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNetworkUri()

public ProxyConnectionInfo.Builder clearNetworkUri()

URI of the network where connection is proxied.

string network_uri = 11;

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

clearNewDestinationIp()

public ProxyConnectionInfo.Builder clearNewDestinationIp()

Destination IP address of a new connection.

string new_destination_ip = 5;

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

clearNewDestinationPort()

public ProxyConnectionInfo.Builder clearNewDestinationPort()

Destination port of a new connection. Only valid when protocol is TCP or UDP.

int32 new_destination_port = 9;

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

clearNewSourceIp()

public ProxyConnectionInfo.Builder clearNewSourceIp()

Source IP address of a new connection.

string new_source_ip = 3;

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

clearNewSourcePort()

public ProxyConnectionInfo.Builder clearNewSourcePort()

Source port of a new connection. Only valid when protocol is TCP or UDP.

int32 new_source_port = 7;

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

clearOldDestinationIp()

public ProxyConnectionInfo.Builder clearOldDestinationIp()

Destination IP address of an original connection

string old_destination_ip = 4;

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

clearOldDestinationPort()

public ProxyConnectionInfo.Builder clearOldDestinationPort()

Destination port of an original connection. Only valid when protocol is TCP or UDP.

int32 old_destination_port = 8;

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

clearOldSourceIp()

public ProxyConnectionInfo.Builder clearOldSourceIp()

Source IP address of an original connection.

string old_source_ip = 2;

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

clearOldSourcePort()

public ProxyConnectionInfo.Builder clearOldSourcePort()

Source port of an original connection. Only valid when protocol is TCP or UDP.

int32 old_source_port = 6;

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProtocol()

public ProxyConnectionInfo.Builder clearProtocol()

IP protocol in string format, for example: "TCP", "UDP", "ICMP".

string protocol = 1;

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

clearSubnetUri()

public ProxyConnectionInfo.Builder clearSubnetUri()

Uri of proxy subnet.

string subnet_uri = 10;

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ProxyConnectionInfo getDefaultInstanceForType()
Returns
Type Description
ProxyConnectionInfo

getDescriptorForType()

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

getNetworkUri()

public String getNetworkUri()

URI of the network where connection is proxied.

string network_uri = 11;

Returns
Type Description
String

The networkUri.

getNetworkUriBytes()

public ByteString getNetworkUriBytes()

URI of the network where connection is proxied.

string network_uri = 11;

Returns
Type Description
ByteString

The bytes for networkUri.

getNewDestinationIp()

public String getNewDestinationIp()

Destination IP address of a new connection.

string new_destination_ip = 5;

Returns
Type Description
String

The newDestinationIp.

getNewDestinationIpBytes()

public ByteString getNewDestinationIpBytes()

Destination IP address of a new connection.

string new_destination_ip = 5;

Returns
Type Description
ByteString

The bytes for newDestinationIp.

getNewDestinationPort()

public int getNewDestinationPort()

Destination port of a new connection. Only valid when protocol is TCP or UDP.

int32 new_destination_port = 9;

Returns
Type Description
int

The newDestinationPort.

getNewSourceIp()

public String getNewSourceIp()

Source IP address of a new connection.

string new_source_ip = 3;

Returns
Type Description
String

The newSourceIp.

getNewSourceIpBytes()

public ByteString getNewSourceIpBytes()

Source IP address of a new connection.

string new_source_ip = 3;

Returns
Type Description
ByteString

The bytes for newSourceIp.

getNewSourcePort()

public int getNewSourcePort()

Source port of a new connection. Only valid when protocol is TCP or UDP.

int32 new_source_port = 7;

Returns
Type Description
int

The newSourcePort.

getOldDestinationIp()

public String getOldDestinationIp()

Destination IP address of an original connection

string old_destination_ip = 4;

Returns
Type Description
String

The oldDestinationIp.

getOldDestinationIpBytes()

public ByteString getOldDestinationIpBytes()

Destination IP address of an original connection

string old_destination_ip = 4;

Returns
Type Description
ByteString

The bytes for oldDestinationIp.

getOldDestinationPort()

public int getOldDestinationPort()

Destination port of an original connection. Only valid when protocol is TCP or UDP.

int32 old_destination_port = 8;

Returns
Type Description
int

The oldDestinationPort.

getOldSourceIp()

public String getOldSourceIp()

Source IP address of an original connection.

string old_source_ip = 2;

Returns
Type Description
String

The oldSourceIp.

getOldSourceIpBytes()

public ByteString getOldSourceIpBytes()

Source IP address of an original connection.

string old_source_ip = 2;

Returns
Type Description
ByteString

The bytes for oldSourceIp.

getOldSourcePort()

public int getOldSourcePort()

Source port of an original connection. Only valid when protocol is TCP or UDP.

int32 old_source_port = 6;

Returns
Type Description
int

The oldSourcePort.

getProtocol()

public String getProtocol()

IP protocol in string format, for example: "TCP", "UDP", "ICMP".

string protocol = 1;

Returns
Type Description
String

The protocol.

getProtocolBytes()

public ByteString getProtocolBytes()

IP protocol in string format, for example: "TCP", "UDP", "ICMP".

string protocol = 1;

Returns
Type Description
ByteString

The bytes for protocol.

getSubnetUri()

public String getSubnetUri()

Uri of proxy subnet.

string subnet_uri = 10;

Returns
Type Description
String

The subnetUri.

getSubnetUriBytes()

public ByteString getSubnetUriBytes()

Uri of proxy subnet.

string subnet_uri = 10;

Returns
Type Description
ByteString

The bytes for subnetUri.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProxyConnectionInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNetworkUri(String value)

public ProxyConnectionInfo.Builder setNetworkUri(String value)

URI of the network where connection is proxied.

string network_uri = 11;

Parameter
Name Description
value String

The networkUri to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setNetworkUriBytes(ByteString value)

public ProxyConnectionInfo.Builder setNetworkUriBytes(ByteString value)

URI of the network where connection is proxied.

string network_uri = 11;

Parameter
Name Description
value ByteString

The bytes for networkUri to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setNewDestinationIp(String value)

public ProxyConnectionInfo.Builder setNewDestinationIp(String value)

Destination IP address of a new connection.

string new_destination_ip = 5;

Parameter
Name Description
value String

The newDestinationIp to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setNewDestinationIpBytes(ByteString value)

public ProxyConnectionInfo.Builder setNewDestinationIpBytes(ByteString value)

Destination IP address of a new connection.

string new_destination_ip = 5;

Parameter
Name Description
value ByteString

The bytes for newDestinationIp to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setNewDestinationPort(int value)

public ProxyConnectionInfo.Builder setNewDestinationPort(int value)

Destination port of a new connection. Only valid when protocol is TCP or UDP.

int32 new_destination_port = 9;

Parameter
Name Description
value int

The newDestinationPort to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setNewSourceIp(String value)

public ProxyConnectionInfo.Builder setNewSourceIp(String value)

Source IP address of a new connection.

string new_source_ip = 3;

Parameter
Name Description
value String

The newSourceIp to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setNewSourceIpBytes(ByteString value)

public ProxyConnectionInfo.Builder setNewSourceIpBytes(ByteString value)

Source IP address of a new connection.

string new_source_ip = 3;

Parameter
Name Description
value ByteString

The bytes for newSourceIp to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setNewSourcePort(int value)

public ProxyConnectionInfo.Builder setNewSourcePort(int value)

Source port of a new connection. Only valid when protocol is TCP or UDP.

int32 new_source_port = 7;

Parameter
Name Description
value int

The newSourcePort to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setOldDestinationIp(String value)

public ProxyConnectionInfo.Builder setOldDestinationIp(String value)

Destination IP address of an original connection

string old_destination_ip = 4;

Parameter
Name Description
value String

The oldDestinationIp to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setOldDestinationIpBytes(ByteString value)

public ProxyConnectionInfo.Builder setOldDestinationIpBytes(ByteString value)

Destination IP address of an original connection

string old_destination_ip = 4;

Parameter
Name Description
value ByteString

The bytes for oldDestinationIp to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setOldDestinationPort(int value)

public ProxyConnectionInfo.Builder setOldDestinationPort(int value)

Destination port of an original connection. Only valid when protocol is TCP or UDP.

int32 old_destination_port = 8;

Parameter
Name Description
value int

The oldDestinationPort to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setOldSourceIp(String value)

public ProxyConnectionInfo.Builder setOldSourceIp(String value)

Source IP address of an original connection.

string old_source_ip = 2;

Parameter
Name Description
value String

The oldSourceIp to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setOldSourceIpBytes(ByteString value)

public ProxyConnectionInfo.Builder setOldSourceIpBytes(ByteString value)

Source IP address of an original connection.

string old_source_ip = 2;

Parameter
Name Description
value ByteString

The bytes for oldSourceIp to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setOldSourcePort(int value)

public ProxyConnectionInfo.Builder setOldSourcePort(int value)

Source port of an original connection. Only valid when protocol is TCP or UDP.

int32 old_source_port = 6;

Parameter
Name Description
value int

The oldSourcePort to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setProtocol(String value)

public ProxyConnectionInfo.Builder setProtocol(String value)

IP protocol in string format, for example: "TCP", "UDP", "ICMP".

string protocol = 1;

Parameter
Name Description
value String

The protocol to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setProtocolBytes(ByteString value)

public ProxyConnectionInfo.Builder setProtocolBytes(ByteString value)

IP protocol in string format, for example: "TCP", "UDP", "ICMP".

string protocol = 1;

Parameter
Name Description
value ByteString

The bytes for protocol to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

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

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

setSubnetUri(String value)

public ProxyConnectionInfo.Builder setSubnetUri(String value)

Uri of proxy subnet.

string subnet_uri = 10;

Parameter
Name Description
value String

The subnetUri to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setSubnetUriBytes(ByteString value)

public ProxyConnectionInfo.Builder setSubnetUriBytes(ByteString value)

Uri of proxy subnet.

string subnet_uri = 10;

Parameter
Name Description
value ByteString

The bytes for subnetUri to set.

Returns
Type Description
ProxyConnectionInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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