Class ProxyConnectionInfo.Builder (1.40.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.v1.ProxyConnectionInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProxyConnectionInfo build()
Returns
TypeDescription
ProxyConnectionInfo

buildPartial()

public ProxyConnectionInfo buildPartial()
Returns
TypeDescription
ProxyConnectionInfo

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNetworkUri()

public ProxyConnectionInfo.Builder clearNetworkUri()

URI of the network where connection is proxied.

string network_uri = 11;

Returns
TypeDescription
ProxyConnectionInfo.Builder

This builder for chaining.

clearNewDestinationIp()

public ProxyConnectionInfo.Builder clearNewDestinationIp()

Destination IP address of a new connection.

string new_destination_ip = 5;

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

This builder for chaining.

clearNewSourceIp()

public ProxyConnectionInfo.Builder clearNewSourceIp()

Source IP address of a new connection.

string new_source_ip = 3;

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

This builder for chaining.

clearOldDestinationIp()

public ProxyConnectionInfo.Builder clearOldDestinationIp()

Destination IP address of an original connection

string old_destination_ip = 4;

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

This builder for chaining.

clearOldSourceIp()

public ProxyConnectionInfo.Builder clearOldSourceIp()

Source IP address of an original connection.

string old_source_ip = 2;

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProtocol()

public ProxyConnectionInfo.Builder clearProtocol()

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

string protocol = 1;

Returns
TypeDescription
ProxyConnectionInfo.Builder

This builder for chaining.

clearSubnetUri()

public ProxyConnectionInfo.Builder clearSubnetUri()

Uri of proxy subnet.

string subnet_uri = 10;

Returns
TypeDescription
ProxyConnectionInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ProxyConnectionInfo getDefaultInstanceForType()
Returns
TypeDescription
ProxyConnectionInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNetworkUri()

public String getNetworkUri()

URI of the network where connection is proxied.

string network_uri = 11;

Returns
TypeDescription
String

The networkUri.

getNetworkUriBytes()

public ByteString getNetworkUriBytes()

URI of the network where connection is proxied.

string network_uri = 11;

Returns
TypeDescription
ByteString

The bytes for networkUri.

getNewDestinationIp()

public String getNewDestinationIp()

Destination IP address of a new connection.

string new_destination_ip = 5;

Returns
TypeDescription
String

The newDestinationIp.

getNewDestinationIpBytes()

public ByteString getNewDestinationIpBytes()

Destination IP address of a new connection.

string new_destination_ip = 5;

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

The newDestinationPort.

getNewSourceIp()

public String getNewSourceIp()

Source IP address of a new connection.

string new_source_ip = 3;

Returns
TypeDescription
String

The newSourceIp.

getNewSourceIpBytes()

public ByteString getNewSourceIpBytes()

Source IP address of a new connection.

string new_source_ip = 3;

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

The newSourcePort.

getOldDestinationIp()

public String getOldDestinationIp()

Destination IP address of an original connection

string old_destination_ip = 4;

Returns
TypeDescription
String

The oldDestinationIp.

getOldDestinationIpBytes()

public ByteString getOldDestinationIpBytes()

Destination IP address of an original connection

string old_destination_ip = 4;

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

The oldDestinationPort.

getOldSourceIp()

public String getOldSourceIp()

Source IP address of an original connection.

string old_source_ip = 2;

Returns
TypeDescription
String

The oldSourceIp.

getOldSourceIpBytes()

public ByteString getOldSourceIpBytes()

Source IP address of an original connection.

string old_source_ip = 2;

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

The oldSourcePort.

getProtocol()

public String getProtocol()

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

string protocol = 1;

Returns
TypeDescription
String

The protocol.

getProtocolBytes()

public ByteString getProtocolBytes()

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

string protocol = 1;

Returns
TypeDescription
ByteString

The bytes for protocol.

getSubnetUri()

public String getSubnetUri()

Uri of proxy subnet.

string subnet_uri = 10;

Returns
TypeDescription
String

The subnetUri.

getSubnetUriBytes()

public ByteString getSubnetUriBytes()

Uri of proxy subnet.

string subnet_uri = 10;

Returns
TypeDescription
ByteString

The bytes for subnetUri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ProxyConnectionInfo other)

public ProxyConnectionInfo.Builder mergeFrom(ProxyConnectionInfo other)
Parameter
NameDescription
otherProxyConnectionInfo
Returns
TypeDescription
ProxyConnectionInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ProxyConnectionInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The networkUri to set.

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

The bytes for networkUri to set.

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

The newDestinationIp to set.

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

The bytes for newDestinationIp to set.

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

The newDestinationPort to set.

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

The newSourceIp to set.

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

The bytes for newSourceIp to set.

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

The newSourcePort to set.

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

The oldDestinationIp to set.

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

The bytes for oldDestinationIp to set.

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

The oldDestinationPort to set.

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

The oldSourceIp to set.

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

The bytes for oldSourceIp to set.

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

The oldSourcePort to set.

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

The protocol to set.

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

The bytes for protocol to set.

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

setSubnetUri(String value)

public ProxyConnectionInfo.Builder setSubnetUri(String value)

Uri of proxy subnet.

string subnet_uri = 10;

Parameter
NameDescription
valueString

The subnetUri to set.

Returns
TypeDescription
ProxyConnectionInfo.Builder

This builder for chaining.

setSubnetUriBytes(ByteString value)

public ProxyConnectionInfo.Builder setSubnetUriBytes(ByteString value)

Uri of proxy subnet.

string subnet_uri = 10;

Parameter
NameDescription
valueByteString

The bytes for subnetUri to set.

Returns
TypeDescription
ProxyConnectionInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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