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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
EndpointInfo
build()
EndpointInfo
buildPartial()
EndpointInfo.Builder
clear()
EndpointInfo.Builder
clearDestinationIp()
Destination IP address.EndpointInfo.Builder
clearDestinationNetworkUri()
URI of the network where this packet is sent to.EndpointInfo.Builder
clearDestinationPort()
Destination port.EndpointInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
EndpointInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
EndpointInfo.Builder
clearProtocol()
IP protocol in string format, for example: "TCP", "UDP", "ICMP".EndpointInfo.Builder
clearSourceAgentUri()
URI of the source telemetry agent this packet originates from.EndpointInfo.Builder
clearSourceIp()
Source IP address.EndpointInfo.Builder
clearSourceNetworkUri()
URI of the network where this packet originates from.EndpointInfo.Builder
clearSourcePort()
Source port.EndpointInfo.Builder
clone()
EndpointInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDestinationIp()
Destination IP address.com.google.protobuf.ByteString
getDestinationIpBytes()
Destination IP address.String
getDestinationNetworkUri()
URI of the network where this packet is sent to.com.google.protobuf.ByteString
getDestinationNetworkUriBytes()
URI of the network where this packet is sent to.int
getDestinationPort()
Destination port.String
getProtocol()
IP protocol in string format, for example: "TCP", "UDP", "ICMP".com.google.protobuf.ByteString
getProtocolBytes()
IP protocol in string format, for example: "TCP", "UDP", "ICMP".String
getSourceAgentUri()
URI of the source telemetry agent this packet originates from.com.google.protobuf.ByteString
getSourceAgentUriBytes()
URI of the source telemetry agent this packet originates from.String
getSourceIp()
Source IP address.com.google.protobuf.ByteString
getSourceIpBytes()
Source IP address.String
getSourceNetworkUri()
URI of the network where this packet originates from.com.google.protobuf.ByteString
getSourceNetworkUriBytes()
URI of the network where this packet originates from.int
getSourcePort()
Source port.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
EndpointInfo.Builder
mergeFrom(EndpointInfo other)
EndpointInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
EndpointInfo.Builder
mergeFrom(com.google.protobuf.Message other)
EndpointInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
EndpointInfo.Builder
setDestinationIp(String value)
Destination IP address.EndpointInfo.Builder
setDestinationIpBytes(com.google.protobuf.ByteString value)
Destination IP address.EndpointInfo.Builder
setDestinationNetworkUri(String value)
URI of the network where this packet is sent to.EndpointInfo.Builder
setDestinationNetworkUriBytes(com.google.protobuf.ByteString value)
URI of the network where this packet is sent to.EndpointInfo.Builder
setDestinationPort(int value)
Destination port.EndpointInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
EndpointInfo.Builder
setProtocol(String value)
IP protocol in string format, for example: "TCP", "UDP", "ICMP".EndpointInfo.Builder
setProtocolBytes(com.google.protobuf.ByteString value)
IP protocol in string format, for example: "TCP", "UDP", "ICMP".EndpointInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
EndpointInfo.Builder
setSourceAgentUri(String value)
URI of the source telemetry agent this packet originates from.EndpointInfo.Builder
setSourceAgentUriBytes(com.google.protobuf.ByteString value)
URI of the source telemetry agent this packet originates from.EndpointInfo.Builder
setSourceIp(String value)
Source IP address.EndpointInfo.Builder
setSourceIpBytes(com.google.protobuf.ByteString value)
Source IP address.EndpointInfo.Builder
setSourceNetworkUri(String value)
URI of the network where this packet originates from.EndpointInfo.Builder
setSourceNetworkUriBytes(com.google.protobuf.ByteString value)
URI of the network where this packet originates from.EndpointInfo.Builder
setSourcePort(int value)
Source port.EndpointInfo.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
clear
public EndpointInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
getDefaultInstanceForType
public EndpointInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public EndpointInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EndpointInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EndpointInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
setField
public EndpointInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
clearField
public EndpointInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
clearOneof
public EndpointInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
setRepeatedField
public EndpointInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
addRepeatedField
public EndpointInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
mergeFrom
public EndpointInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EndpointInfo.Builder>
-
mergeFrom
public EndpointInfo.Builder mergeFrom(EndpointInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EndpointInfo.Builder>
- Throws:
IOException
-
getSourceIp
public String getSourceIp()
Source IP address.
string source_ip = 1;
- Specified by:
getSourceIp
in interfaceEndpointInfoOrBuilder
- Returns:
- The sourceIp.
-
getSourceIpBytes
public com.google.protobuf.ByteString getSourceIpBytes()
Source IP address.
string source_ip = 1;
- Specified by:
getSourceIpBytes
in 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:
getDestinationIp
in interfaceEndpointInfoOrBuilder
- Returns:
- The destinationIp.
-
getDestinationIpBytes
public com.google.protobuf.ByteString getDestinationIpBytes()
Destination IP address.
string destination_ip = 2;
- Specified by:
getDestinationIpBytes
in 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:
getProtocol
in 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:
getProtocolBytes
in 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:
getSourcePort
in 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:
getDestinationPort
in 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:
getSourceNetworkUri
in 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:
getSourceNetworkUriBytes
in 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:
getDestinationNetworkUri
in 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:
getDestinationNetworkUriBytes
in 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:
getSourceAgentUri
in 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:
getSourceAgentUriBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
mergeUnknownFields
public final EndpointInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
-
-