mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpiutil] Remove Protobuf.getNested() (#6812)
It was superseded by using FileDescriptor.getDependencies().
This commit is contained in:
@@ -21,11 +21,6 @@ public class Ellipse2dProto implements Protobuf<Ellipse2d, ProtobufEllipse2d> {
|
||||
return ProtobufEllipse2d.getDescriptor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Protobuf<?, ?>[] getNested() {
|
||||
return new Protobuf<?, ?>[] {Pose2d.proto};
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProtobufEllipse2d createMessage() {
|
||||
return ProtobufEllipse2d.newInstance();
|
||||
|
||||
@@ -22,11 +22,6 @@ public class Pose2dProto implements Protobuf<Pose2d, ProtobufPose2d> {
|
||||
return ProtobufPose2d.getDescriptor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Protobuf<?, ?>[] getNested() {
|
||||
return new Protobuf<?, ?>[] {Translation2d.proto, Rotation2d.proto};
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProtobufPose2d createMessage() {
|
||||
return ProtobufPose2d.newInstance();
|
||||
|
||||
@@ -22,11 +22,6 @@ public class Pose3dProto implements Protobuf<Pose3d, ProtobufPose3d> {
|
||||
return ProtobufPose3d.getDescriptor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Protobuf<?, ?>[] getNested() {
|
||||
return new Protobuf<?, ?>[] {Translation3d.proto, Rotation3d.proto};
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProtobufPose3d createMessage() {
|
||||
return ProtobufPose3d.newInstance();
|
||||
|
||||
@@ -21,11 +21,6 @@ public class Rectangle2dProto implements Protobuf<Rectangle2d, ProtobufRectangle
|
||||
return ProtobufRectangle2d.getDescriptor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Protobuf<?, ?>[] getNested() {
|
||||
return new Protobuf<?, ?>[] {Pose2d.proto};
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProtobufRectangle2d createMessage() {
|
||||
return ProtobufRectangle2d.newInstance();
|
||||
|
||||
@@ -21,11 +21,6 @@ public class Rotation3dProto implements Protobuf<Rotation3d, ProtobufRotation3d>
|
||||
return ProtobufRotation3d.getDescriptor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Protobuf<?, ?>[] getNested() {
|
||||
return new Protobuf<?, ?>[] {Quaternion.proto};
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProtobufRotation3d createMessage() {
|
||||
return ProtobufRotation3d.newInstance();
|
||||
|
||||
@@ -22,11 +22,6 @@ public class Transform2dProto implements Protobuf<Transform2d, ProtobufTransform
|
||||
return ProtobufTransform2d.getDescriptor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Protobuf<?, ?>[] getNested() {
|
||||
return new Protobuf<?, ?>[] {Translation2d.proto, Rotation2d.proto};
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProtobufTransform2d createMessage() {
|
||||
return ProtobufTransform2d.newInstance();
|
||||
|
||||
@@ -22,11 +22,6 @@ public class Transform3dProto implements Protobuf<Transform3d, ProtobufTransform
|
||||
return ProtobufTransform3d.getDescriptor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Protobuf<?, ?>[] getNested() {
|
||||
return new Protobuf<?, ?>[] {Translation3d.proto, Rotation3d.proto};
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProtobufTransform3d createMessage() {
|
||||
return ProtobufTransform3d.newInstance();
|
||||
|
||||
@@ -22,11 +22,6 @@ public class MecanumDriveKinematicsProto
|
||||
return ProtobufMecanumDriveKinematics.getDescriptor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Protobuf<?, ?>[] getNested() {
|
||||
return new Protobuf<?, ?>[] {Translation2d.proto};
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProtobufMecanumDriveKinematics createMessage() {
|
||||
return ProtobufMecanumDriveKinematics.newInstance();
|
||||
|
||||
@@ -22,11 +22,6 @@ public class SwerveModulePositionProto
|
||||
return ProtobufSwerveModulePosition.getDescriptor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Protobuf<?, ?>[] getNested() {
|
||||
return new Protobuf<?, ?>[] {Rotation2d.proto};
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProtobufSwerveModulePosition createMessage() {
|
||||
return ProtobufSwerveModulePosition.newInstance();
|
||||
|
||||
@@ -22,11 +22,6 @@ public class SwerveModuleStateProto
|
||||
return ProtobufSwerveModuleState.getDescriptor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Protobuf<?, ?>[] getNested() {
|
||||
return new Protobuf<?, ?>[] {Rotation2d.proto};
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProtobufSwerveModuleState createMessage() {
|
||||
return ProtobufSwerveModuleState.newInstance();
|
||||
|
||||
@@ -22,11 +22,6 @@ public class TrajectoryProto implements Protobuf<Trajectory, ProtobufTrajectory>
|
||||
return ProtobufTrajectory.getDescriptor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Protobuf<?, ?>[] getNested() {
|
||||
return new Protobuf<?, ?>[] {Trajectory.State.proto};
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProtobufTrajectory createMessage() {
|
||||
return ProtobufTrajectory.newInstance();
|
||||
|
||||
@@ -21,11 +21,6 @@ public class TrajectoryStateProto implements Protobuf<Trajectory.State, Protobuf
|
||||
return ProtobufTrajectoryState.getDescriptor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Protobuf<?, ?>[] getNested() {
|
||||
return new Protobuf<?, ?>[] {Pose2d.proto};
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProtobufTrajectoryState createMessage() {
|
||||
return ProtobufTrajectoryState.newInstance();
|
||||
|
||||
@@ -48,15 +48,6 @@ public interface Protobuf<T, MessageType extends ProtoMessage<?>> {
|
||||
*/
|
||||
Descriptor getDescriptor();
|
||||
|
||||
/**
|
||||
* Gets the list of protobuf types referenced by this protobuf.
|
||||
*
|
||||
* @return list of protobuf types
|
||||
*/
|
||||
default Protobuf<?, ?>[] getNested() {
|
||||
return new Protobuf<?, ?>[] {};
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates protobuf message.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user