Class ProtobufPose3d

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

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

    • newInstance

      public static ProtobufPose3d newInstance()
      Returns:
      a new empty instance of ProtobufPose3d
    • hasTranslation

      public boolean hasTranslation()
      optional .wpi.proto.ProtobufTranslation3d translation = 1;
      Returns:
      whether the translation field is set
    • clearTranslation

      public ProtobufPose3d clearTranslation()
      optional .wpi.proto.ProtobufTranslation3d translation = 1;
      Returns:
      this
    • getTranslation

      public ProtobufTranslation3d getTranslation()
      optional .wpi.proto.ProtobufTranslation3d translation = 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 getMutableTranslation() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableTranslation

      public ProtobufTranslation3d getMutableTranslation()
      optional .wpi.proto.ProtobufTranslation3d translation = 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
    • setTranslation

      public ProtobufPose3d setTranslation(ProtobufTranslation3d value)
      optional .wpi.proto.ProtobufTranslation3d translation = 1;
      Parameters:
      value - the translation to set
      Returns:
      this
    • hasRotation

      public boolean hasRotation()
      optional .wpi.proto.ProtobufRotation3d rotation = 2;
      Returns:
      whether the rotation field is set
    • clearRotation

      public ProtobufPose3d clearRotation()
      optional .wpi.proto.ProtobufRotation3d rotation = 2;
      Returns:
      this
    • getRotation

      public ProtobufRotation3d getRotation()
      optional .wpi.proto.ProtobufRotation3d rotation = 2; 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 getMutableRotation() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableRotation

      public ProtobufRotation3d getMutableRotation()
      optional .wpi.proto.ProtobufRotation3d rotation = 2; 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
    • setRotation

      public ProtobufPose3d setRotation(ProtobufRotation3d value)
      optional .wpi.proto.ProtobufRotation3d rotation = 2;
      Parameters:
      value - the rotation to set
      Returns:
      this
    • copyFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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