Class EndpointInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EndpointInfo.Builder>
com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder
- All Implemented Interfaces:
EndpointInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EndpointInfo
public static final class EndpointInfo.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Destination IP address.URI of the network where this packet is sent to.Destination port.IP protocol in string format, for example: "TCP", "UDP", "ICMP".URI of the source telemetry agent this packet originates from.Source IP address.URI of the network where this packet originates from.Source port.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDestination IP address.com.google.protobuf.ByteStringDestination IP address.URI of the network where this packet is sent to.com.google.protobuf.ByteStringURI of the network where this packet is sent to.intDestination port.IP protocol in string format, for example: "TCP", "UDP", "ICMP".com.google.protobuf.ByteStringIP protocol in string format, for example: "TCP", "UDP", "ICMP".URI of the source telemetry agent this packet originates from.com.google.protobuf.ByteStringURI of the source telemetry agent this packet originates from.Source IP address.com.google.protobuf.ByteStringSource IP address.URI of the network where this packet originates from.com.google.protobuf.ByteStringURI of the network where this packet originates from.intSource port.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(EndpointInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDestinationIp(String value) Destination IP address.setDestinationIpBytes(com.google.protobuf.ByteString value) Destination IP address.setDestinationNetworkUri(String value) URI of the network where this packet is sent to.setDestinationNetworkUriBytes(com.google.protobuf.ByteString value) URI of the network where this packet is sent to.setDestinationPort(int value) Destination port.setProtocol(String value) IP protocol in string format, for example: "TCP", "UDP", "ICMP".setProtocolBytes(com.google.protobuf.ByteString value) IP protocol in string format, for example: "TCP", "UDP", "ICMP".setSourceAgentUri(String value) URI of the source telemetry agent this packet originates from.setSourceAgentUriBytes(com.google.protobuf.ByteString value) URI of the source telemetry agent this packet originates from.setSourceIp(String value) Source IP address.setSourceIpBytes(com.google.protobuf.ByteString value) Source IP address.setSourceNetworkUri(String value) URI of the network where this packet originates from.setSourceNetworkUriBytes(com.google.protobuf.ByteString value) URI of the network where this packet originates from.setSourcePort(int value) Source port.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<EndpointInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<EndpointInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<EndpointInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EndpointInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<EndpointInfo.Builder>
-
mergeFrom
public EndpointInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EndpointInfo.Builder>- Throws:
IOException
-
getSourceIp
Source IP address.
string source_ip = 1;- Specified by:
getSourceIpin interfaceEndpointInfoOrBuilder- Returns:
- The sourceIp.
-
getSourceIpBytes
public com.google.protobuf.ByteString getSourceIpBytes()Source IP address.
string source_ip = 1;- Specified by:
getSourceIpBytesin interfaceEndpointInfoOrBuilder- Returns:
- The bytes for sourceIp.
-
setSourceIp
Source IP address.
string source_ip = 1;- Parameters:
value- The sourceIp to set.- Returns:
- This builder for chaining.
-
clearSourceIp
Source IP address.
string source_ip = 1;- Returns:
- This builder for chaining.
-
setSourceIpBytes
Source IP address.
string source_ip = 1;- Parameters:
value- The bytes for sourceIp to set.- Returns:
- This builder for chaining.
-
getDestinationIp
Destination IP address.
string destination_ip = 2;- Specified by:
getDestinationIpin interfaceEndpointInfoOrBuilder- Returns:
- The destinationIp.
-
getDestinationIpBytes
public com.google.protobuf.ByteString getDestinationIpBytes()Destination IP address.
string destination_ip = 2;- Specified by:
getDestinationIpBytesin interfaceEndpointInfoOrBuilder- Returns:
- The bytes for destinationIp.
-
setDestinationIp
Destination IP address.
string destination_ip = 2;- Parameters:
value- The destinationIp to set.- Returns:
- This builder for chaining.
-
clearDestinationIp
Destination IP address.
string destination_ip = 2;- Returns:
- This builder for chaining.
-
setDestinationIpBytes
Destination IP address.
string destination_ip = 2;- Parameters:
value- The bytes for destinationIp to set.- Returns:
- This builder for chaining.
-
getProtocol
IP protocol in string format, for example: "TCP", "UDP", "ICMP".
string protocol = 3;- Specified by:
getProtocolin interfaceEndpointInfoOrBuilder- Returns:
- The protocol.
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()IP protocol in string format, for example: "TCP", "UDP", "ICMP".
string protocol = 3;- Specified by:
getProtocolBytesin interfaceEndpointInfoOrBuilder- Returns:
- The bytes for protocol.
-
setProtocol
IP protocol in string format, for example: "TCP", "UDP", "ICMP".
string protocol = 3;- Parameters:
value- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
IP protocol in string format, for example: "TCP", "UDP", "ICMP".
string protocol = 3;- Returns:
- This builder for chaining.
-
setProtocolBytes
IP protocol in string format, for example: "TCP", "UDP", "ICMP".
string protocol = 3;- Parameters:
value- The bytes for protocol to set.- Returns:
- This builder for chaining.
-
getSourcePort
public int getSourcePort()Source port. Only valid when protocol is TCP or UDP.
int32 source_port = 4;- Specified by:
getSourcePortin interfaceEndpointInfoOrBuilder- Returns:
- The sourcePort.
-
setSourcePort
Source port. Only valid when protocol is TCP or UDP.
int32 source_port = 4;- Parameters:
value- The sourcePort to set.- Returns:
- This builder for chaining.
-
clearSourcePort
Source port. Only valid when protocol is TCP or UDP.
int32 source_port = 4;- Returns:
- This builder for chaining.
-
getDestinationPort
public int getDestinationPort()Destination port. Only valid when protocol is TCP or UDP.
int32 destination_port = 5;- Specified by:
getDestinationPortin interfaceEndpointInfoOrBuilder- Returns:
- The destinationPort.
-
setDestinationPort
Destination port. Only valid when protocol is TCP or UDP.
int32 destination_port = 5;- Parameters:
value- The destinationPort to set.- Returns:
- This builder for chaining.
-
clearDestinationPort
Destination port. Only valid when protocol is TCP or UDP.
int32 destination_port = 5;- Returns:
- This builder for chaining.
-
getSourceNetworkUri
URI of the network where this packet originates from.
string source_network_uri = 6;- Specified by:
getSourceNetworkUriin interfaceEndpointInfoOrBuilder- Returns:
- The sourceNetworkUri.
-
getSourceNetworkUriBytes
public com.google.protobuf.ByteString getSourceNetworkUriBytes()URI of the network where this packet originates from.
string source_network_uri = 6;- Specified by:
getSourceNetworkUriBytesin interfaceEndpointInfoOrBuilder- Returns:
- The bytes for sourceNetworkUri.
-
setSourceNetworkUri
URI of the network where this packet originates from.
string source_network_uri = 6;- Parameters:
value- The sourceNetworkUri to set.- Returns:
- This builder for chaining.
-
clearSourceNetworkUri
URI of the network where this packet originates from.
string source_network_uri = 6;- Returns:
- This builder for chaining.
-
setSourceNetworkUriBytes
URI of the network where this packet originates from.
string source_network_uri = 6;- Parameters:
value- The bytes for sourceNetworkUri to set.- Returns:
- This builder for chaining.
-
getDestinationNetworkUri
URI of the network where this packet is sent to.
string destination_network_uri = 7;- Specified by:
getDestinationNetworkUriin interfaceEndpointInfoOrBuilder- Returns:
- The destinationNetworkUri.
-
getDestinationNetworkUriBytes
public com.google.protobuf.ByteString getDestinationNetworkUriBytes()URI of the network where this packet is sent to.
string destination_network_uri = 7;- Specified by:
getDestinationNetworkUriBytesin interfaceEndpointInfoOrBuilder- Returns:
- The bytes for destinationNetworkUri.
-
setDestinationNetworkUri
URI of the network where this packet is sent to.
string destination_network_uri = 7;- Parameters:
value- The destinationNetworkUri to set.- Returns:
- This builder for chaining.
-
clearDestinationNetworkUri
URI of the network where this packet is sent to.
string destination_network_uri = 7;- Returns:
- This builder for chaining.
-
setDestinationNetworkUriBytes
URI of the network where this packet is sent to.
string destination_network_uri = 7;- Parameters:
value- The bytes for destinationNetworkUri to set.- Returns:
- This builder for chaining.
-
getSourceAgentUri
URI of the source telemetry agent this packet originates from.
string source_agent_uri = 8;- Specified by:
getSourceAgentUriin interfaceEndpointInfoOrBuilder- Returns:
- The sourceAgentUri.
-
getSourceAgentUriBytes
public com.google.protobuf.ByteString getSourceAgentUriBytes()URI of the source telemetry agent this packet originates from.
string source_agent_uri = 8;- Specified by:
getSourceAgentUriBytesin interfaceEndpointInfoOrBuilder- Returns:
- The bytes for sourceAgentUri.
-
setSourceAgentUri
URI of the source telemetry agent this packet originates from.
string source_agent_uri = 8;- Parameters:
value- The sourceAgentUri to set.- Returns:
- This builder for chaining.
-
clearSourceAgentUri
URI of the source telemetry agent this packet originates from.
string source_agent_uri = 8;- Returns:
- This builder for chaining.
-
setSourceAgentUriBytes
URI of the source telemetry agent this packet originates from.
string source_agent_uri = 8;- Parameters:
value- The bytes for sourceAgentUri to set.- Returns:
- This builder for chaining.
-