Class 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 type google.cloud.networkmanagement.v1.EndpointInfo
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
      • clear

        public EndpointInfo.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
      • getDefaultInstanceForType

        public EndpointInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public EndpointInfo build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public EndpointInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public EndpointInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
      • setField

        public EndpointInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
      • clearField

        public EndpointInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
      • clearOneof

        public EndpointInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
      • addRepeatedField

        public EndpointInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
      • mergeFrom

        public EndpointInfo.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EndpointInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EndpointInfo.Builder>
        Throws:
        IOException
      • getSourceIpBytes

        public com.google.protobuf.ByteString getSourceIpBytes()
         Source IP address.
         
        string source_ip = 1;
        Specified by:
        getSourceIpBytes in interface EndpointInfoOrBuilder
        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.
      • getDestinationIpBytes

        public com.google.protobuf.ByteString getDestinationIpBytes()
         Destination IP address.
         
        string destination_ip = 2;
        Specified by:
        getDestinationIpBytes in interface EndpointInfoOrBuilder
        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 interface EndpointInfoOrBuilder
        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 interface EndpointInfoOrBuilder
        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 interface EndpointInfoOrBuilder
        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 interface EndpointInfoOrBuilder
        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 interface EndpointInfoOrBuilder
        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 interface EndpointInfoOrBuilder
        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 interface EndpointInfoOrBuilder
        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 interface EndpointInfoOrBuilder
        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 interface EndpointInfoOrBuilder
        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 interface EndpointInfoOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>
      • mergeUnknownFields

        public final EndpointInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EndpointInfo.Builder>