Class EndpointInfo.Builder

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.v1.EndpointInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EndpointInfo build()
Returns
TypeDescription
EndpointInfo

buildPartial()

public EndpointInfo buildPartial()
Returns
TypeDescription
EndpointInfo

clear()

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

clearDestinationIp()

public EndpointInfo.Builder clearDestinationIp()

Destination IP address.

string destination_ip = 2;

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProtocol()

public EndpointInfo.Builder clearProtocol()

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

string protocol = 3;

Returns
TypeDescription
EndpointInfo.Builder

This builder for chaining.

clearSourceIp()

public EndpointInfo.Builder clearSourceIp()

Source IP address.

string source_ip = 1;

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public EndpointInfo getDefaultInstanceForType()
Returns
TypeDescription
EndpointInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestinationIp()

public String getDestinationIp()

Destination IP address.

string destination_ip = 2;

Returns
TypeDescription
String

The destinationIp.

getDestinationIpBytes()

public ByteString getDestinationIpBytes()

Destination IP address.

string destination_ip = 2;

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

The destinationNetworkUri.

getDestinationNetworkUriBytes()

public ByteString getDestinationNetworkUriBytes()

URI of the network where this packet is sent to.

string destination_network_uri = 7;

Returns
TypeDescription
ByteString

The bytes for destinationNetworkUri.

getDestinationPort()

public int getDestinationPort()

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

int32 destination_port = 5;

Returns
TypeDescription
int

The destinationPort.

getProtocol()

public String getProtocol()

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

string protocol = 3;

Returns
TypeDescription
String

The protocol.

getProtocolBytes()

public ByteString getProtocolBytes()

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

string protocol = 3;

Returns
TypeDescription
ByteString

The bytes for protocol.

getSourceIp()

public String getSourceIp()

Source IP address.

string source_ip = 1;

Returns
TypeDescription
String

The sourceIp.

getSourceIpBytes()

public ByteString getSourceIpBytes()

Source IP address.

string source_ip = 1;

Returns
TypeDescription
ByteString

The bytes for sourceIp.

getSourceNetworkUri()

public String getSourceNetworkUri()

URI of the network where this packet originates from.

string source_network_uri = 6;

Returns
TypeDescription
String

The sourceNetworkUri.

getSourceNetworkUriBytes()

public ByteString getSourceNetworkUriBytes()

URI of the network where this packet originates from.

string source_network_uri = 6;

Returns
TypeDescription
ByteString

The bytes for sourceNetworkUri.

getSourcePort()

public int getSourcePort()

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

int32 source_port = 4;

Returns
TypeDescription
int

The sourcePort.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EndpointInfo other)

public EndpointInfo.Builder mergeFrom(EndpointInfo other)
Parameter
NameDescription
otherEndpointInfo
Returns
TypeDescription
EndpointInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDestinationIp(String value)

public EndpointInfo.Builder setDestinationIp(String value)

Destination IP address.

string destination_ip = 2;

Parameter
NameDescription
valueString

The destinationIp to set.

Returns
TypeDescription
EndpointInfo.Builder

This builder for chaining.

setDestinationIpBytes(ByteString value)

public EndpointInfo.Builder setDestinationIpBytes(ByteString value)

Destination IP address.

string destination_ip = 2;

Parameter
NameDescription
valueByteString

The bytes for destinationIp to set.

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

The destinationNetworkUri to set.

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

The bytes for destinationNetworkUri to set.

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

The destinationPort to set.

Returns
TypeDescription
EndpointInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The protocol to set.

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

The bytes for protocol to set.

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

setSourceIp(String value)

public EndpointInfo.Builder setSourceIp(String value)

Source IP address.

string source_ip = 1;

Parameter
NameDescription
valueString

The sourceIp to set.

Returns
TypeDescription
EndpointInfo.Builder

This builder for chaining.

setSourceIpBytes(ByteString value)

public EndpointInfo.Builder setSourceIpBytes(ByteString value)

Source IP address.

string source_ip = 1;

Parameter
NameDescription
valueByteString

The bytes for sourceIp to set.

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

The sourceNetworkUri to set.

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

The bytes for sourceNetworkUri to set.

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

The sourcePort to set.

Returns
TypeDescription
EndpointInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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