Package com.viam.robot.v1
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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionoptional string local_address = 3 [json_name = "localAddress"];
optional string remote_address = 2 [json_name = "remoteAddress"];
.viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"];
optional string local_address = 3 [json_name = "localAddress"];
com.google.protobuf.ByteString
optional string local_address = 3 [json_name = "localAddress"];
optional string remote_address = 2 [json_name = "remoteAddress"];
com.google.protobuf.ByteString
optional string remote_address = 2 [json_name = "remoteAddress"];
getType()
.viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"];
int
.viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"];
boolean
optional string local_address = 3 [json_name = "localAddress"];
boolean
optional string remote_address = 2 [json_name = "remoteAddress"];
setLocalAddress
(String value) optional string local_address = 3 [json_name = "localAddress"];
setLocalAddressBytes
(com.google.protobuf.ByteString value) optional string local_address = 3 [json_name = "localAddress"];
setRemoteAddress
(String value) optional string remote_address = 2 [json_name = "remoteAddress"];
setRemoteAddressBytes
(com.google.protobuf.ByteString value) optional string remote_address = 2 [json_name = "remoteAddress"];
setType
(Robot.PeerConnectionType value) .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"];
setTypeValue
(int value) .viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"];
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getTypeValue
public int getTypeValue().viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"];
- Specified by:
getTypeValue
in interfaceRobot.PeerConnectionInfoOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
.viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"];
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
getType
.viam.robot.v1.PeerConnectionType type = 1 [json_name = "type"];
- Specified by:
getType
in interfaceRobot.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 interfaceRobot.PeerConnectionInfoOrBuilder
- Returns:
- Whether the remoteAddress field is set.
-
getRemoteAddress
optional string remote_address = 2 [json_name = "remoteAddress"];
- Specified by:
getRemoteAddress
in interfaceRobot.PeerConnectionInfoOrBuilder
- Returns:
- The remoteAddress.
-
getRemoteAddressBytes
public com.google.protobuf.ByteString getRemoteAddressBytes()optional string remote_address = 2 [json_name = "remoteAddress"];
- Specified by:
getRemoteAddressBytes
in interfaceRobot.PeerConnectionInfoOrBuilder
- Returns:
- The bytes for remoteAddress.
-
setRemoteAddress
optional string remote_address = 2 [json_name = "remoteAddress"];
- Parameters:
value
- The remoteAddress to set.- Returns:
- This builder for chaining.
-
clearRemoteAddress
optional string remote_address = 2 [json_name = "remoteAddress"];
- Returns:
- This builder for chaining.
-
setRemoteAddressBytes
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 interfaceRobot.PeerConnectionInfoOrBuilder
- Returns:
- Whether the localAddress field is set.
-
getLocalAddress
optional string local_address = 3 [json_name = "localAddress"];
- Specified by:
getLocalAddress
in interfaceRobot.PeerConnectionInfoOrBuilder
- Returns:
- The localAddress.
-
getLocalAddressBytes
public com.google.protobuf.ByteString getLocalAddressBytes()optional string local_address = 3 [json_name = "localAddress"];
- Specified by:
getLocalAddressBytes
in interfaceRobot.PeerConnectionInfoOrBuilder
- Returns:
- The bytes for localAddress.
-
setLocalAddress
optional string local_address = 3 [json_name = "localAddress"];
- Parameters:
value
- The localAddress to set.- Returns:
- This builder for chaining.
-
clearLocalAddress
optional string local_address = 3 [json_name = "localAddress"];
- Returns:
- This builder for chaining.
-
setLocalAddressBytes
optional string local_address = 3 [json_name = "localAddress"];
- Parameters:
value
- The bytes for localAddress to set.- Returns:
- This builder for chaining.
-