Class Box2D.PbJoint

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable, Box2D.PbJointOrBuilder
    Enclosing class:
    Box2D

    public static final class Box2D.PbJoint
    extends com.google.protobuf.GeneratedMessage
    implements Box2D.PbJointOrBuilder
    Protobuf type box2d.PbJoint
    See Also:
    Serialized Form
    • Field Detail

      • bitField0_

        private int bitField0_
      • tag_

        private long tag_
      • type_

        private int type_
      • bodyA_

        private int bodyA_
      • bodyB_

        private int bodyB_
      • COLLIDECONNECTED_FIELD_NUMBER

        public static final int COLLIDECONNECTED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • collideConnected_

        private boolean collideConnected_
      • LOCAL_ANCHOR_A_FIELD_NUMBER

        public static final int LOCAL_ANCHOR_A_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LOCAL_ANCHOR_B_FIELD_NUMBER

        public static final int LOCAL_ANCHOR_B_FIELD_NUMBER
        See Also:
        Constant Field Values
      • refAngle_

        private float refAngle_
      • ENABLE_LIMIT_FIELD_NUMBER

        public static final int ENABLE_LIMIT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • enableLimit_

        private boolean enableLimit_
      • LOWER_LIMIT_FIELD_NUMBER

        public static final int LOWER_LIMIT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • lowerLimit_

        private float lowerLimit_
      • UPPER_LIMIT_FIELD_NUMBER

        public static final int UPPER_LIMIT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • upperLimit_

        private float upperLimit_
      • ENABLE_MOTOR_FIELD_NUMBER

        public static final int ENABLE_MOTOR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • enableMotor_

        private boolean enableMotor_
      • MOTOR_SPEED_FIELD_NUMBER

        public static final int MOTOR_SPEED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • motorSpeed_

        private float motorSpeed_
      • MAX_MOTOR_TORQUE_FIELD_NUMBER

        public static final int MAX_MOTOR_TORQUE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • maxMotorTorque_

        private float maxMotorTorque_
      • LOCAL_AXIS_A_FIELD_NUMBER

        public static final int LOCAL_AXIS_A_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_MOTOR_FORCE_FIELD_NUMBER

        public static final int MAX_MOTOR_FORCE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • maxMotorForce_

        private float maxMotorForce_
      • length_

        private float length_
      • frequency_

        private float frequency_
      • DAMPING_RATIO_FIELD_NUMBER

        public static final int DAMPING_RATIO_FIELD_NUMBER
        See Also:
        Constant Field Values
      • dampingRatio_

        private float dampingRatio_
      • GROUND_ANCHOR_A_FIELD_NUMBER

        public static final int GROUND_ANCHOR_A_FIELD_NUMBER
        See Also:
        Constant Field Values
      • GROUND_ANCHOR_B_FIELD_NUMBER

        public static final int GROUND_ANCHOR_B_FIELD_NUMBER
        See Also:
        Constant Field Values
      • lengthA_

        private float lengthA_
      • lengthB_

        private float lengthB_
      • ratio_

        private float ratio_
      • maxForce_

        private float maxForce_
      • joint1_

        private int joint1_
      • joint2_

        private int joint2_
      • MAX_TORQUE_FIELD_NUMBER

        public static final int MAX_TORQUE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • maxTorque_

        private float maxTorque_
      • MAX_LENGTH_FIELD_NUMBER

        public static final int MAX_LENGTH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • maxLength_

        private float maxLength_
      • bodies_

        private com.google.protobuf.Internal.IntList bodies_
      • joints_

        private com.google.protobuf.Internal.IntList joints_
      • memoizedIsInitialized

        private byte memoizedIsInitialized
      • DEFAULT_INSTANCE

        private static final Box2D.PbJoint DEFAULT_INSTANCE
      • PARSER

        private static final com.google.protobuf.Parser<Box2D.PbJoint> PARSER
    • Constructor Detail

      • PbJoint

        private PbJoint​(com.google.protobuf.GeneratedMessage.Builder<?> builder)
      • PbJoint

        private PbJoint()
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
      • hasTag

        public boolean hasTag()
        optional int64 tag = 1;
        Specified by:
        hasTag in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the tag field is set.
      • hasType

        public boolean hasType()
        required .box2d.PbJointType type = 2;
        Specified by:
        hasType in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the type field is set.
      • hasBodyA

        public boolean hasBodyA()
        optional int32 body_a = 3;
        Specified by:
        hasBodyA in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the bodyA field is set.
      • hasBodyB

        public boolean hasBodyB()
        optional int32 body_b = 4;
        Specified by:
        hasBodyB in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the bodyB field is set.
      • hasCollideConnected

        public boolean hasCollideConnected()
        optional bool collideConnected = 5;
        Specified by:
        hasCollideConnected in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the collideConnected field is set.
      • hasLocalAnchorA

        public boolean hasLocalAnchorA()
        optional .box2d.PbVec2 local_anchor_a = 6;
        Specified by:
        hasLocalAnchorA in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the localAnchorA field is set.
      • hasLocalAnchorB

        public boolean hasLocalAnchorB()
        optional .box2d.PbVec2 local_anchor_b = 7;
        Specified by:
        hasLocalAnchorB in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the localAnchorB field is set.
      • hasRefAngle

        public boolean hasRefAngle()
         revolute, prismatic, joint
         
        optional float ref_angle = 10;
        Specified by:
        hasRefAngle in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the refAngle field is set.
      • getRefAngle

        public float getRefAngle()
         revolute, prismatic, joint
         
        optional float ref_angle = 10;
        Specified by:
        getRefAngle in interface Box2D.PbJointOrBuilder
        Returns:
        The refAngle.
      • hasEnableLimit

        public boolean hasEnableLimit()
         revolute, prismatic
         
        optional bool enable_limit = 12;
        Specified by:
        hasEnableLimit in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the enableLimit field is set.
      • getEnableLimit

        public boolean getEnableLimit()
         revolute, prismatic
         
        optional bool enable_limit = 12;
        Specified by:
        getEnableLimit in interface Box2D.PbJointOrBuilder
        Returns:
        The enableLimit.
      • hasLowerLimit

        public boolean hasLowerLimit()
         revolute, prismatic
         
        optional float lower_limit = 13;
        Specified by:
        hasLowerLimit in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the lowerLimit field is set.
      • getLowerLimit

        public float getLowerLimit()
         revolute, prismatic
         
        optional float lower_limit = 13;
        Specified by:
        getLowerLimit in interface Box2D.PbJointOrBuilder
        Returns:
        The lowerLimit.
      • hasUpperLimit

        public boolean hasUpperLimit()
         revolute, prismatic
         
        optional float upper_limit = 14;
        Specified by:
        hasUpperLimit in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the upperLimit field is set.
      • getUpperLimit

        public float getUpperLimit()
         revolute, prismatic
         
        optional float upper_limit = 14;
        Specified by:
        getUpperLimit in interface Box2D.PbJointOrBuilder
        Returns:
        The upperLimit.
      • hasEnableMotor

        public boolean hasEnableMotor()
         revolute, prismatic, wheel
         
        optional bool enable_motor = 15;
        Specified by:
        hasEnableMotor in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the enableMotor field is set.
      • getEnableMotor

        public boolean getEnableMotor()
         revolute, prismatic, wheel
         
        optional bool enable_motor = 15;
        Specified by:
        getEnableMotor in interface Box2D.PbJointOrBuilder
        Returns:
        The enableMotor.
      • hasMotorSpeed

        public boolean hasMotorSpeed()
         revolute, prismatic, wheel
         
        optional float motor_speed = 16;
        Specified by:
        hasMotorSpeed in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the motorSpeed field is set.
      • getMotorSpeed

        public float getMotorSpeed()
         revolute, prismatic, wheel
         
        optional float motor_speed = 16;
        Specified by:
        getMotorSpeed in interface Box2D.PbJointOrBuilder
        Returns:
        The motorSpeed.
      • hasMaxMotorTorque

        public boolean hasMaxMotorTorque()
         revolute, wheel
         
        optional float max_motor_torque = 17;
        Specified by:
        hasMaxMotorTorque in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the maxMotorTorque field is set.
      • getMaxMotorTorque

        public float getMaxMotorTorque()
         revolute, wheel
         
        optional float max_motor_torque = 17;
        Specified by:
        getMaxMotorTorque in interface Box2D.PbJointOrBuilder
        Returns:
        The maxMotorTorque.
      • hasLocalAxisA

        public boolean hasLocalAxisA()
         prismatic, wheel
         
        optional .box2d.PbVec2 local_axis_a = 20;
        Specified by:
        hasLocalAxisA in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the localAxisA field is set.
      • hasMaxMotorForce

        public boolean hasMaxMotorForce()
         prismatic
         
        optional float max_motor_force = 21;
        Specified by:
        hasMaxMotorForce in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the maxMotorForce field is set.
      • getMaxMotorForce

        public float getMaxMotorForce()
         prismatic
         
        optional float max_motor_force = 21;
        Specified by:
        getMaxMotorForce in interface Box2D.PbJointOrBuilder
        Returns:
        The maxMotorForce.
      • hasLength

        public boolean hasLength()
         distance
         
        optional float length = 30;
        Specified by:
        hasLength in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the length field is set.
      • getLength

        public float getLength()
         distance
         
        optional float length = 30;
        Specified by:
        getLength in interface Box2D.PbJointOrBuilder
        Returns:
        The length.
      • hasFrequency

        public boolean hasFrequency()
         distance, mouse, wheel, weld, con vol
         
        optional float frequency = 31;
        Specified by:
        hasFrequency in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the frequency field is set.
      • getFrequency

        public float getFrequency()
         distance, mouse, wheel, weld, con vol
         
        optional float frequency = 31;
        Specified by:
        getFrequency in interface Box2D.PbJointOrBuilder
        Returns:
        The frequency.
      • hasDampingRatio

        public boolean hasDampingRatio()
         distance, mouse, wheel, weld, col vol
         
        optional float damping_ratio = 32;
        Specified by:
        hasDampingRatio in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the dampingRatio field is set.
      • getDampingRatio

        public float getDampingRatio()
         distance, mouse, wheel, weld, col vol
         
        optional float damping_ratio = 32;
        Specified by:
        getDampingRatio in interface Box2D.PbJointOrBuilder
        Returns:
        The dampingRatio.
      • hasGroundAnchorA

        public boolean hasGroundAnchorA()
         pulley
         
        optional .box2d.PbVec2 ground_anchor_a = 40;
        Specified by:
        hasGroundAnchorA in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the groundAnchorA field is set.
      • hasGroundAnchorB

        public boolean hasGroundAnchorB()
         pulley
         
        optional .box2d.PbVec2 ground_anchor_b = 41;
        Specified by:
        hasGroundAnchorB in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the groundAnchorB field is set.
      • hasLengthA

        public boolean hasLengthA()
         pulley
         
        optional float length_a = 42;
        Specified by:
        hasLengthA in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the lengthA field is set.
      • getLengthA

        public float getLengthA()
         pulley
         
        optional float length_a = 42;
        Specified by:
        getLengthA in interface Box2D.PbJointOrBuilder
        Returns:
        The lengthA.
      • hasLengthB

        public boolean hasLengthB()
         pulley
         
        optional float length_b = 43;
        Specified by:
        hasLengthB in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the lengthB field is set.
      • getLengthB

        public float getLengthB()
         pulley
         
        optional float length_b = 43;
        Specified by:
        getLengthB in interface Box2D.PbJointOrBuilder
        Returns:
        The lengthB.
      • hasRatio

        public boolean hasRatio()
         pulley, gear
         
        optional float ratio = 44;
        Specified by:
        hasRatio in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the ratio field is set.
      • getRatio

        public float getRatio()
         pulley, gear
         
        optional float ratio = 44;
        Specified by:
        getRatio in interface Box2D.PbJointOrBuilder
        Returns:
        The ratio.
      • hasTarget

        public boolean hasTarget()
         mouse
         
        optional .box2d.PbVec2 target = 50;
        Specified by:
        hasTarget in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the target field is set.
      • hasMaxForce

        public boolean hasMaxForce()
         mouse, friction, rope
         
        optional float max_force = 51;
        Specified by:
        hasMaxForce in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the maxForce field is set.
      • getMaxForce

        public float getMaxForce()
         mouse, friction, rope
         
        optional float max_force = 51;
        Specified by:
        getMaxForce in interface Box2D.PbJointOrBuilder
        Returns:
        The maxForce.
      • hasJoint1

        public boolean hasJoint1()
         gear
         
        optional int32 joint1 = 61;
        Specified by:
        hasJoint1 in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the joint1 field is set.
      • hasJoint2

        public boolean hasJoint2()
         gear
         
        optional int32 joint2 = 62;
        Specified by:
        hasJoint2 in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the joint2 field is set.
      • hasMaxTorque

        public boolean hasMaxTorque()
         friction
         
        optional float max_torque = 90;
        Specified by:
        hasMaxTorque in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the maxTorque field is set.
      • getMaxTorque

        public float getMaxTorque()
         friction
         
        optional float max_torque = 90;
        Specified by:
        getMaxTorque in interface Box2D.PbJointOrBuilder
        Returns:
        The maxTorque.
      • hasMaxLength

        public boolean hasMaxLength()
         rope
         
        optional float max_length = 100;
        Specified by:
        hasMaxLength in interface Box2D.PbJointOrBuilder
        Returns:
        Whether the maxLength field is set.
      • getMaxLength

        public float getMaxLength()
         rope
         
        optional float max_length = 100;
        Specified by:
        getMaxLength in interface Box2D.PbJointOrBuilder
        Returns:
        The maxLength.
      • getBodiesList

        public java.util.List<java.lang.Integer> getBodiesList()
         con vol
         
        repeated int32 bodies = 110;
        Specified by:
        getBodiesList in interface Box2D.PbJointOrBuilder
        Returns:
        A list containing the bodies.
      • getBodiesCount

        public int getBodiesCount()
         con vol
         
        repeated int32 bodies = 110;
        Specified by:
        getBodiesCount in interface Box2D.PbJointOrBuilder
        Returns:
        The count of bodies.
      • getBodies

        public int getBodies​(int index)
         con vol
         
        repeated int32 bodies = 110;
        Specified by:
        getBodies in interface Box2D.PbJointOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The bodies at the given index.
      • getJointsList

        public java.util.List<java.lang.Integer> getJointsList()
         con vol
         
        repeated int32 joints = 111;
        Specified by:
        getJointsList in interface Box2D.PbJointOrBuilder
        Returns:
        A list containing the joints.
      • getJointsCount

        public int getJointsCount()
         con vol
         
        repeated int32 joints = 111;
        Specified by:
        getJointsCount in interface Box2D.PbJointOrBuilder
        Returns:
        The count of joints.
      • getJoints

        public int getJoints​(int index)
         con vol
         
        repeated int32 joints = 111;
        Specified by:
        getJoints in interface Box2D.PbJointOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The joints at the given index.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Box2D.PbJoint parseFrom​(java.nio.ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Box2D.PbJoint parseFrom​(java.nio.ByteBuffer data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Box2D.PbJoint parseFrom​(com.google.protobuf.ByteString data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Box2D.PbJoint parseFrom​(com.google.protobuf.ByteString data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Box2D.PbJoint parseFrom​(byte[] data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Box2D.PbJoint parseFrom​(byte[] data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Box2D.PbJoint parseFrom​(java.io.InputStream input)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Box2D.PbJoint parseFrom​(java.io.InputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Box2D.PbJoint parseDelimitedFrom​(java.io.InputStream input)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Box2D.PbJoint parseDelimitedFrom​(java.io.InputStream input,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Box2D.PbJoint parseFrom​(com.google.protobuf.CodedInputStream input)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Box2D.PbJoint parseFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public Box2D.PbJoint.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Box2D.PbJoint.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Box2D.PbJoint.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • getDefaultInstance

        public static Box2D.PbJoint getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Box2D.PbJoint> parser()
      • getParserForType

        public com.google.protobuf.Parser<Box2D.PbJoint> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessage
      • getDefaultInstanceForType

        public Box2D.PbJoint getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder