Class ProtobufRotation3d

java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
org.wpilib.math.geometry.proto.detail.ProtobufRotation3d
All Implemented Interfaces:
Cloneable

public final class ProtobufRotation3d extends us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d> implements Cloneable
Protobuf type ProtobufRotation3d
  • Method Details

    • newInstance

      public static ProtobufRotation3d newInstance()
      Returns:
      a new empty instance of ProtobufRotation3d
    • hasQ

      public boolean hasQ()
      optional .wpi.proto.ProtobufQuaternion q = 1;
      Returns:
      whether the q field is set
    • clearQ

      public ProtobufRotation3d clearQ()
      optional .wpi.proto.ProtobufQuaternion q = 1;
      Returns:
      this
    • getQ

      public ProtobufQuaternion getQ()
      optional .wpi.proto.ProtobufQuaternion q = 1; This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. Use getMutableQ() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableQ

      public ProtobufQuaternion getMutableQ()
      optional .wpi.proto.ProtobufQuaternion q = 1; This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.
      Returns:
      internal storage object for modifications
    • setQ

      optional .wpi.proto.ProtobufQuaternion q = 1;
      Parameters:
      value - the q to set
      Returns:
      this
    • copyFrom

      public ProtobufRotation3d copyFrom(ProtobufRotation3d other)
      Specified by:
      copyFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
    • mergeFrom

      public ProtobufRotation3d mergeFrom(ProtobufRotation3d other)
      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
    • clear

      public ProtobufRotation3d clear()
      Specified by:
      clear in class us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
    • clearQuick

      public ProtobufRotation3d clearQuick()
      Overrides:
      clearQuick in class us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
    • writeTo

      public void writeTo(us.hebi.quickbuf.ProtoSink output) throws IOException
      Specified by:
      writeTo in class us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
      Throws:
      IOException
    • computeSerializedSize

      protected int computeSerializedSize()
      Specified by:
      computeSerializedSize in class us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
    • mergeFrom

      public ProtobufRotation3d mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException
      Specified by:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
      Throws:
      IOException
    • writeTo

      public void writeTo(us.hebi.quickbuf.JsonSink output) throws IOException
      Overrides:
      writeTo in class us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
      Throws:
      IOException
    • mergeFrom

      public ProtobufRotation3d mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException
      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
      Throws:
      IOException
    • clone

      public ProtobufRotation3d clone()
      Specified by:
      clone in class us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
    • isEmpty

      public boolean isEmpty()
      Overrides:
      isEmpty in class us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
    • parseFrom

      public static ProtobufRotation3d parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException
      Throws:
      us.hebi.quickbuf.InvalidProtocolBufferException
    • parseFrom

      public static ProtobufRotation3d parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProtobufRotation3d parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException
      Throws:
      IOException
    • getFactory

      public static us.hebi.quickbuf.MessageFactory<ProtobufRotation3d> getFactory()
      Returns:
      factory for creating ProtobufRotation3d messages
    • getDescriptor

      public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()
      Returns:
      this type's descriptor.