Class ProtobufTransform3d

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

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

    • newInstance

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

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

      public ProtobufTransform3d 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 ProtobufTransform3d 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 ProtobufTransform3d 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 ProtobufTransform3d setRotation(ProtobufRotation3d value)
      optional .wpi.proto.ProtobufRotation3d rotation = 2;
      Parameters:
      value - the rotation to set
      Returns:
      this
    • copyFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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