Class ProtobufCommands.ProtobufMechanism
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufMechanism>
org.wpilib.command3.proto.ProtobufCommands.ProtobufMechanism
- All Implemented Interfaces:
Cloneable
- Enclosing class:
ProtobufCommands
public static final class ProtobufCommands.ProtobufMechanism
extends us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufMechanism>
implements Cloneable
Protobuf type
ProtobufMechanism-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()optional string name = 1;clone()protected intbooleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufCommands.ProtobufMechanism> us.hebi.quickbuf.Utf8Stringoptional string name = 1;getName()optional string name = 1;us.hebi.quickbuf.Utf8Stringoptional string name = 1;booleanhasName()optional string name = 1;booleanisEmpty()mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) parseFrom(byte[] data) parseFrom(us.hebi.quickbuf.JsonSource input) parseFrom(us.hebi.quickbuf.ProtoSource input) setName(CharSequence value) optional string name = 1;setName(us.hebi.quickbuf.Utf8String value) optional string name = 1;voidwriteTo(us.hebi.quickbuf.JsonSink output) voidwriteTo(us.hebi.quickbuf.ProtoSink output) Methods inherited from class us.hebi.quickbuf.ProtoMessage
bytesDefaultValue, checkInitialized, getCachedSize, getMissingFields, getMissingFields, getMissingFields, getMissingFields, getSerializedSize, getUnknownBytes, hashCode, isInitialized, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, rethrowFromParent, toByteArray, toByteArray, toByteArray, toString, writeDelimitedTo
-
Method Details
-
newInstance
- Returns:
- a new empty instance of
ProtobufMechanism
-
hasName
public boolean hasName()optional string name = 1;- Returns:
- whether the name field is set
-
clearName
-
getName
-
getNameBytes
public us.hebi.quickbuf.Utf8String getNameBytes()optional string name = 1;- Returns:
- internal
Utf8Stringrepresentation of name for reading
-
getMutableNameBytes
public us.hebi.quickbuf.Utf8String getMutableNameBytes()optional string name = 1;- Returns:
- internal
Utf8Stringrepresentation of name for modifications
-
setName
optional string name = 1;- Parameters:
value- the name to set- Returns:
- this
-
setName
optional string name = 1;- Parameters:
value- the name to set- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufMechanism>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufMechanism>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufMechanism>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufMechanism>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufMechanism>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufMechanism>- Throws:
IOException
-
computeSerializedSize
protected int computeSerializedSize()- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufMechanism>
-
mergeFrom
public ProtobufCommands.ProtobufMechanism mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufMechanism>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufMechanism>- Throws:
IOException
-
mergeFrom
public ProtobufCommands.ProtobufMechanism mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufMechanism>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufMechanism>
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufMechanism>
-
parseFrom
public static ProtobufCommands.ProtobufMechanism parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static ProtobufCommands.ProtobufMechanism parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static ProtobufCommands.ProtobufMechanism parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufMechanism messages
-
getDescriptor
public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()- Returns:
- this type's descriptor.
-