Class Robot.PeerConnectionInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Robot.PeerConnectionInfo,Robot.PeerConnectionInfo.Builder>
com.viam.robot.v1.Robot.PeerConnectionInfo.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Robot.PeerConnectionInfoOrBuilder, Cloneable
Enclosing class:
Robot.PeerConnectionInfo

public static final class Robot.PeerConnectionInfo.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Robot.PeerConnectionInfo,Robot.PeerConnectionInfo.Builder> implements Robot.PeerConnectionInfoOrBuilder
Protobuf type viam.robot.v1.PeerConnectionInfo
  • Method Details

    • getTypeValue

      public int getTypeValue()
      .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"];
      Specified by:
      getTypeValue in interface Robot.PeerConnectionInfoOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Robot.PeerConnectionInfo.Builder setTypeValue(int value)
      .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • getType

      public Robot.PeerConnectionType getType()
      .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"];
      Specified by:
      getType in interface Robot.PeerConnectionInfoOrBuilder
      Returns:
      The type.
    • setType

      .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • clearType

      .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"];
      Returns:
      This builder for chaining.
    • hasRemoteAddress

      public boolean hasRemoteAddress()
      optional string remote_address = 2 [json_name = "remoteAddress"];
      Specified by:
      hasRemoteAddress in interface Robot.PeerConnectionInfoOrBuilder
      Returns:
      Whether the remoteAddress field is set.
    • getRemoteAddress

      public String getRemoteAddress()
      optional string remote_address = 2 [json_name = "remoteAddress"];
      Specified by:
      getRemoteAddress in interface Robot.PeerConnectionInfoOrBuilder
      Returns:
      The remoteAddress.
    • getRemoteAddressBytes

      public com.google.protobuf.ByteString getRemoteAddressBytes()
      optional string remote_address = 2 [json_name = "remoteAddress"];
      Specified by:
      getRemoteAddressBytes in interface Robot.PeerConnectionInfoOrBuilder
      Returns:
      The bytes for remoteAddress.
    • setRemoteAddress

      public Robot.PeerConnectionInfo.Builder setRemoteAddress(String value)
      optional string remote_address = 2 [json_name = "remoteAddress"];
      Parameters:
      value - The remoteAddress to set.
      Returns:
      This builder for chaining.
    • clearRemoteAddress

      public Robot.PeerConnectionInfo.Builder clearRemoteAddress()
      optional string remote_address = 2 [json_name = "remoteAddress"];
      Returns:
      This builder for chaining.
    • setRemoteAddressBytes

      public Robot.PeerConnectionInfo.Builder setRemoteAddressBytes(com.google.protobuf.ByteString value)
      optional string remote_address = 2 [json_name = "remoteAddress"];
      Parameters:
      value - The bytes for remoteAddress to set.
      Returns:
      This builder for chaining.
    • hasLocalAddress

      public boolean hasLocalAddress()
      optional string local_address = 3 [json_name = "localAddress"];
      Specified by:
      hasLocalAddress in interface Robot.PeerConnectionInfoOrBuilder
      Returns:
      Whether the localAddress field is set.
    • getLocalAddress

      public String getLocalAddress()
      optional string local_address = 3 [json_name = "localAddress"];
      Specified by:
      getLocalAddress in interface Robot.PeerConnectionInfoOrBuilder
      Returns:
      The localAddress.
    • getLocalAddressBytes

      public com.google.protobuf.ByteString getLocalAddressBytes()
      optional string local_address = 3 [json_name = "localAddress"];
      Specified by:
      getLocalAddressBytes in interface Robot.PeerConnectionInfoOrBuilder
      Returns:
      The bytes for localAddress.
    • setLocalAddress

      public Robot.PeerConnectionInfo.Builder setLocalAddress(String value)
      optional string local_address = 3 [json_name = "localAddress"];
      Parameters:
      value - The localAddress to set.
      Returns:
      This builder for chaining.
    • clearLocalAddress

      public Robot.PeerConnectionInfo.Builder clearLocalAddress()
      optional string local_address = 3 [json_name = "localAddress"];
      Returns:
      This builder for chaining.
    • setLocalAddressBytes

      public Robot.PeerConnectionInfo.Builder setLocalAddressBytes(com.google.protobuf.ByteString value)
      optional string local_address = 3 [json_name = "localAddress"];
      Parameters:
      value - The bytes for localAddress to set.
      Returns:
      This builder for chaining.