Class EndpointInfo.Builder (1.44.0)

public static final class EndpointInfo.Builder extends GeneratedMessageV3.Builder<EndpointInfo.Builder> implements EndpointInfoOrBuilder

For display only. The specification of the endpoints for the test. EndpointInfo is derived from source and destination Endpoint and validated by the backend data plane model.

Protobuf type google.cloud.networkmanagement.v1beta1.EndpointInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EndpointInfo build()
Returns
Type Description
EndpointInfo

buildPartial()

public EndpointInfo buildPartial()
Returns
Type Description
EndpointInfo

clear()

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

clearDestinationIp()

public EndpointInfo.Builder clearDestinationIp()

Destination IP address.

string destination_ip = 2;

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

clearDestinationNetworkUri()

public EndpointInfo.Builder clearDestinationNetworkUri()

URI of the network where this packet is sent to.

string destination_network_uri = 7;

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

clearDestinationPort()

public EndpointInfo.Builder clearDestinationPort()

Destination port. Only valid when protocol is TCP or UDP.

int32 destination_port = 5;

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProtocol()

public EndpointInfo.Builder clearProtocol()

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

string protocol = 3;

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

clearSourceAgentUri()

public EndpointInfo.Builder clearSourceAgentUri()

URI of the source telemetry agent this packet originates from.

string source_agent_uri = 8;

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

clearSourceIp()

public EndpointInfo.Builder clearSourceIp()

Source IP address.

string source_ip = 1;

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

clearSourceNetworkUri()

public EndpointInfo.Builder clearSourceNetworkUri()

URI of the network where this packet originates from.

string source_network_uri = 6;

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

clearSourcePort()

public EndpointInfo.Builder clearSourcePort()

Source port. Only valid when protocol is TCP or UDP.

int32 source_port = 4;

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public EndpointInfo getDefaultInstanceForType()
Returns
Type Description
EndpointInfo

getDescriptorForType()

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

getDestinationIp()

public String getDestinationIp()

Destination IP address.

string destination_ip = 2;

Returns
Type Description
String

The destinationIp.

getDestinationIpBytes()

public ByteString getDestinationIpBytes()

Destination IP address.

string destination_ip = 2;

Returns
Type Description
ByteString

The bytes for destinationIp.

getDestinationNetworkUri()

public String getDestinationNetworkUri()

URI of the network where this packet is sent to.

string destination_network_uri = 7;

Returns
Type Description
String

The destinationNetworkUri.

getDestinationNetworkUriBytes()

public ByteString getDestinationNetworkUriBytes()

URI of the network where this packet is sent to.

string destination_network_uri = 7;

Returns
Type Description
ByteString

The bytes for destinationNetworkUri.

getDestinationPort()

public int getDestinationPort()

Destination port. Only valid when protocol is TCP or UDP.

int32 destination_port = 5;

Returns
Type Description
int

The destinationPort.

getProtocol()

public String getProtocol()

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

string protocol = 3;

Returns
Type Description
String

The protocol.

getProtocolBytes()

public ByteString getProtocolBytes()

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

string protocol = 3;

Returns
Type Description
ByteString

The bytes for protocol.

getSourceAgentUri()

public String getSourceAgentUri()

URI of the source telemetry agent this packet originates from.

string source_agent_uri = 8;

Returns
Type Description
String

The sourceAgentUri.

getSourceAgentUriBytes()

public ByteString getSourceAgentUriBytes()

URI of the source telemetry agent this packet originates from.

string source_agent_uri = 8;

Returns
Type Description
ByteString

The bytes for sourceAgentUri.

getSourceIp()

public String getSourceIp()

Source IP address.

string source_ip = 1;

Returns
Type Description
String

The sourceIp.

getSourceIpBytes()

public ByteString getSourceIpBytes()

Source IP address.

string source_ip = 1;

Returns
Type Description
ByteString

The bytes for sourceIp.

getSourceNetworkUri()

public String getSourceNetworkUri()

URI of the network where this packet originates from.

string source_network_uri = 6;

Returns
Type Description
String

The sourceNetworkUri.

getSourceNetworkUriBytes()

public ByteString getSourceNetworkUriBytes()

URI of the network where this packet originates from.

string source_network_uri = 6;

Returns
Type Description
ByteString

The bytes for sourceNetworkUri.

getSourcePort()

public int getSourcePort()

Source port. Only valid when protocol is TCP or UDP.

int32 source_port = 4;

Returns
Type Description
int

The sourcePort.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EndpointInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDestinationIp(String value)

public EndpointInfo.Builder setDestinationIp(String value)

Destination IP address.

string destination_ip = 2;

Parameter
Name Description
value String

The destinationIp to set.

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

setDestinationIpBytes(ByteString value)

public EndpointInfo.Builder setDestinationIpBytes(ByteString value)

Destination IP address.

string destination_ip = 2;

Parameter
Name Description
value ByteString

The bytes for destinationIp to set.

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

setDestinationNetworkUri(String value)

public EndpointInfo.Builder setDestinationNetworkUri(String value)

URI of the network where this packet is sent to.

string destination_network_uri = 7;

Parameter
Name Description
value String

The destinationNetworkUri to set.

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

setDestinationNetworkUriBytes(ByteString value)

public EndpointInfo.Builder setDestinationNetworkUriBytes(ByteString value)

URI of the network where this packet is sent to.

string destination_network_uri = 7;

Parameter
Name Description
value ByteString

The bytes for destinationNetworkUri to set.

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

setDestinationPort(int value)

public EndpointInfo.Builder setDestinationPort(int value)

Destination port. Only valid when protocol is TCP or UDP.

int32 destination_port = 5;

Parameter
Name Description
value int

The destinationPort to set.

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setProtocol(String value)

public EndpointInfo.Builder setProtocol(String value)

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

string protocol = 3;

Parameter
Name Description
value String

The protocol to set.

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

setProtocolBytes(ByteString value)

public EndpointInfo.Builder setProtocolBytes(ByteString value)

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

string protocol = 3;

Parameter
Name Description
value ByteString

The bytes for protocol to set.

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

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

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

setSourceAgentUri(String value)

public EndpointInfo.Builder setSourceAgentUri(String value)

URI of the source telemetry agent this packet originates from.

string source_agent_uri = 8;

Parameter
Name Description
value String

The sourceAgentUri to set.

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

setSourceAgentUriBytes(ByteString value)

public EndpointInfo.Builder setSourceAgentUriBytes(ByteString value)

URI of the source telemetry agent this packet originates from.

string source_agent_uri = 8;

Parameter
Name Description
value ByteString

The bytes for sourceAgentUri to set.

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

setSourceIp(String value)

public EndpointInfo.Builder setSourceIp(String value)

Source IP address.

string source_ip = 1;

Parameter
Name Description
value String

The sourceIp to set.

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

setSourceIpBytes(ByteString value)

public EndpointInfo.Builder setSourceIpBytes(ByteString value)

Source IP address.

string source_ip = 1;

Parameter
Name Description
value ByteString

The bytes for sourceIp to set.

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

setSourceNetworkUri(String value)

public EndpointInfo.Builder setSourceNetworkUri(String value)

URI of the network where this packet originates from.

string source_network_uri = 6;

Parameter
Name Description
value String

The sourceNetworkUri to set.

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

setSourceNetworkUriBytes(ByteString value)

public EndpointInfo.Builder setSourceNetworkUriBytes(ByteString value)

URI of the network where this packet originates from.

string source_network_uri = 6;

Parameter
Name Description
value ByteString

The bytes for sourceNetworkUri to set.

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

setSourcePort(int value)

public EndpointInfo.Builder setSourcePort(int value)

Source port. Only valid when protocol is TCP or UDP.

int32 source_port = 4;

Parameter
Name Description
value int

The sourcePort to set.

Returns
Type Description
EndpointInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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