Class EndpointInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.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 typegoogle.cloud.networkmanagement.v1beta1.EndpointInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointInfo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)EndpointInfobuild()EndpointInfobuildPartial()EndpointInfo.Builderclear()EndpointInfo.BuilderclearDestinationIp()Destination IP address.EndpointInfo.BuilderclearDestinationNetworkUri()URI of the network where this packet is sent to.EndpointInfo.BuilderclearDestinationPort()Destination port.EndpointInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)EndpointInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)EndpointInfo.BuilderclearProtocol()IP protocol in string format, for example: "TCP", "UDP", "ICMP".EndpointInfo.BuilderclearSourceAgentUri()URI of the source telemetry agent this packet originates from.EndpointInfo.BuilderclearSourceIp()Source IP address.EndpointInfo.BuilderclearSourceNetworkUri()URI of the network where this packet originates from.EndpointInfo.BuilderclearSourcePort()Source port.EndpointInfo.Builderclone()EndpointInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDestinationIp()Destination IP address.com.google.protobuf.ByteStringgetDestinationIpBytes()Destination IP address.StringgetDestinationNetworkUri()URI of the network where this packet is sent to.com.google.protobuf.ByteStringgetDestinationNetworkUriBytes()URI of the network where this packet is sent to.intgetDestinationPort()Destination port.StringgetProtocol()IP protocol in string format, for example: "TCP", "UDP", "ICMP".com.google.protobuf.ByteStringgetProtocolBytes()IP protocol in string format, for example: "TCP", "UDP", "ICMP".StringgetSourceAgentUri()URI of the source telemetry agent this packet originates from.com.google.protobuf.ByteStringgetSourceAgentUriBytes()URI of the source telemetry agent this packet originates from.StringgetSourceIp()Source IP address.com.google.protobuf.ByteStringgetSourceIpBytes()Source IP address.StringgetSourceNetworkUri()URI of the network where this packet originates from.com.google.protobuf.ByteStringgetSourceNetworkUriBytes()URI of the network where this packet originates from.intgetSourcePort()Source port.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()EndpointInfo.BuildermergeFrom(EndpointInfo other)EndpointInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)EndpointInfo.BuildermergeFrom(com.google.protobuf.Message other)EndpointInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)EndpointInfo.BuildersetDestinationIp(String value)Destination IP address.EndpointInfo.BuildersetDestinationIpBytes(com.google.protobuf.ByteString value)Destination IP address.EndpointInfo.BuildersetDestinationNetworkUri(String value)URI of the network where this packet is sent to.EndpointInfo.BuildersetDestinationNetworkUriBytes(com.google.protobuf.ByteString value)URI of the network where this packet is sent to.EndpointInfo.BuildersetDestinationPort(int value)Destination port.EndpointInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)EndpointInfo.BuildersetProtocol(String value)IP protocol in string format, for example: "TCP", "UDP", "ICMP".EndpointInfo.BuildersetProtocolBytes(com.google.protobuf.ByteString value)IP protocol in string format, for example: "TCP", "UDP", "ICMP".EndpointInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)EndpointInfo.BuildersetSourceAgentUri(String value)URI of the source telemetry agent this packet originates from.EndpointInfo.BuildersetSourceAgentUriBytes(com.google.protobuf.ByteString value)URI of the source telemetry agent this packet originates from.EndpointInfo.BuildersetSourceIp(String value)Source IP address.EndpointInfo.BuildersetSourceIpBytes(com.google.protobuf.ByteString value)Source IP address.EndpointInfo.BuildersetSourceNetworkUri(String value)URI of the network where this packet originates from.EndpointInfo.BuildersetSourceNetworkUriBytes(com.google.protobuf.ByteString value)URI of the network where this packet originates from.EndpointInfo.BuildersetSourcePort(int value)Source port.EndpointInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
clear
public EndpointInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
getDefaultInstanceForType
public EndpointInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public EndpointInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EndpointInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EndpointInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
setField
public EndpointInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
clearField
public EndpointInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
clearOneof
public EndpointInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
setRepeatedField
public EndpointInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
addRepeatedField
public EndpointInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
mergeFrom
public EndpointInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EndpointInfo.Builder>
-
mergeFrom
public EndpointInfo.Builder mergeFrom(EndpointInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public String 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
public EndpointInfo.Builder setSourceIp(String value)
Source IP address.
string source_ip = 1;- Parameters:
value- The sourceIp to set.- Returns:
- This builder for chaining.
-
clearSourceIp
public EndpointInfo.Builder clearSourceIp()
Source IP address.
string source_ip = 1;- Returns:
- This builder for chaining.
-
setSourceIpBytes
public EndpointInfo.Builder setSourceIpBytes(com.google.protobuf.ByteString value)
Source IP address.
string source_ip = 1;- Parameters:
value- The bytes for sourceIp to set.- Returns:
- This builder for chaining.
-
getDestinationIp
public String 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
public EndpointInfo.Builder setDestinationIp(String value)
Destination IP address.
string destination_ip = 2;- Parameters:
value- The destinationIp to set.- Returns:
- This builder for chaining.
-
clearDestinationIp
public EndpointInfo.Builder clearDestinationIp()
Destination IP address.
string destination_ip = 2;- Returns:
- This builder for chaining.
-
setDestinationIpBytes
public EndpointInfo.Builder setDestinationIpBytes(com.google.protobuf.ByteString value)
Destination IP address.
string destination_ip = 2;- Parameters:
value- The bytes for destinationIp to set.- Returns:
- This builder for chaining.
-
getProtocol
public String 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
public EndpointInfo.Builder setProtocol(String value)
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
public EndpointInfo.Builder clearProtocol()
IP protocol in string format, for example: "TCP", "UDP", "ICMP".
string protocol = 3;- Returns:
- This builder for chaining.
-
setProtocolBytes
public EndpointInfo.Builder setProtocolBytes(com.google.protobuf.ByteString value)
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
public EndpointInfo.Builder setSourcePort(int value)
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
public EndpointInfo.Builder 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
public EndpointInfo.Builder setDestinationPort(int value)
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
public EndpointInfo.Builder clearDestinationPort()
Destination port. Only valid when protocol is TCP or UDP.
int32 destination_port = 5;- Returns:
- This builder for chaining.
-
getSourceNetworkUri
public String 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
public EndpointInfo.Builder setSourceNetworkUri(String value)
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
public EndpointInfo.Builder clearSourceNetworkUri()
URI of the network where this packet originates from.
string source_network_uri = 6;- Returns:
- This builder for chaining.
-
setSourceNetworkUriBytes
public EndpointInfo.Builder setSourceNetworkUriBytes(com.google.protobuf.ByteString value)
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
public String 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
public EndpointInfo.Builder setDestinationNetworkUri(String value)
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
public EndpointInfo.Builder clearDestinationNetworkUri()
URI of the network where this packet is sent to.
string destination_network_uri = 7;- Returns:
- This builder for chaining.
-
setDestinationNetworkUriBytes
public EndpointInfo.Builder setDestinationNetworkUriBytes(com.google.protobuf.ByteString value)
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
public String 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
public EndpointInfo.Builder setSourceAgentUri(String value)
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
public EndpointInfo.Builder clearSourceAgentUri()
URI of the source telemetry agent this packet originates from.
string source_agent_uri = 8;- Returns:
- This builder for chaining.
-
setSourceAgentUriBytes
public EndpointInfo.Builder setSourceAgentUriBytes(com.google.protobuf.ByteString value)
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.
-
setUnknownFields
public final EndpointInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
mergeUnknownFields
public final EndpointInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
-