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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public EndpointInfo.Builder mergeFrom(EndpointInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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
    • getSourceIp

      public String getSourceIp()
       Source IP address.
       
      string source_ip = 1;
      Specified by:
      getSourceIp in interface EndpointInfoOrBuilder
      Returns:
      The sourceIp.
    • 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.
    • getDestinationIp

      public String getDestinationIp()
       Destination IP address.
       
      string destination_ip = 2;
      Specified by:
      getDestinationIp in interface EndpointInfoOrBuilder
      Returns:
      The destinationIp.
    • 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.