Class ProtobufQuaternion

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

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

    • newInstance

      public static ProtobufQuaternion newInstance()
      Returns:
      a new empty instance of ProtobufQuaternion
    • hasW

      public boolean hasW()
      optional double w = 1;
      Returns:
      whether the w field is set
    • clearW

      public ProtobufQuaternion clearW()
      optional double w = 1;
      Returns:
      this
    • getW

      public double getW()
      optional double w = 1;
      Returns:
      the w
    • setW

      public ProtobufQuaternion setW(double value)
      optional double w = 1;
      Parameters:
      value - the w to set
      Returns:
      this
    • hasX

      public boolean hasX()
      optional double x = 2;
      Returns:
      whether the x field is set
    • clearX

      public ProtobufQuaternion clearX()
      optional double x = 2;
      Returns:
      this
    • getX

      public double getX()
      optional double x = 2;
      Returns:
      the x
    • setX

      public ProtobufQuaternion setX(double value)
      optional double x = 2;
      Parameters:
      value - the x to set
      Returns:
      this
    • hasY

      public boolean hasY()
      optional double y = 3;
      Returns:
      whether the y field is set
    • clearY

      public ProtobufQuaternion clearY()
      optional double y = 3;
      Returns:
      this
    • getY

      public double getY()
      optional double y = 3;
      Returns:
      the y
    • setY

      public ProtobufQuaternion setY(double value)
      optional double y = 3;
      Parameters:
      value - the y to set
      Returns:
      this
    • hasZ

      public boolean hasZ()
      optional double z = 4;
      Returns:
      whether the z field is set
    • clearZ

      public ProtobufQuaternion clearZ()
      optional double z = 4;
      Returns:
      this
    • getZ

      public double getZ()
      optional double z = 4;
      Returns:
      the z
    • setZ

      public ProtobufQuaternion setZ(double value)
      optional double z = 4;
      Parameters:
      value - the z to set
      Returns:
      this
    • copyFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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