Class Box2D.PbJoint.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, Box2D.PbJointOrBuilder
    Enclosing class:
    Box2D.PbJoint

    public static final class Box2D.PbJoint.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Box2D.PbJoint.Builder>
    implements Box2D.PbJointOrBuilder
    Protobuf type box2d.PbJoint
    • Field Detail

      • bitField0_

        private int bitField0_
      • tag_

        private long tag_
      • type_

        private int type_
      • bodyA_

        private int bodyA_
      • bodyB_

        private int bodyB_
      • collideConnected_

        private boolean collideConnected_
      • refAngle_

        private float refAngle_
      • enableLimit_

        private boolean enableLimit_
      • lowerLimit_

        private float lowerLimit_
      • upperLimit_

        private float upperLimit_
      • enableMotor_

        private boolean enableMotor_
      • motorSpeed_

        private float motorSpeed_
      • maxMotorTorque_

        private float maxMotorTorque_
      • maxMotorForce_

        private float maxMotorForce_
      • length_

        private float length_
      • frequency_

        private float frequency_
      • dampingRatio_

        private float dampingRatio_
      • lengthA_

        private float lengthA_
      • lengthB_

        private float lengthB_
      • ratio_

        private float ratio_
      • maxForce_

        private float maxForce_
      • joint1_

        private int joint1_
      • joint2_

        private int joint2_
      • maxTorque_

        private float maxTorque_
      • maxLength_

        private float maxLength_
      • bodies_

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

        private com.google.protobuf.Internal.IntList joints_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • 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.Builder<Box2D.PbJoint.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public Box2D.PbJoint.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<Box2D.PbJoint.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Box2D.PbJoint.Builder>
      • getDefaultInstanceForType

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

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

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

        private void buildPartial0​(Box2D.PbJoint result)
      • mergeFrom

        public Box2D.PbJoint.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Box2D.PbJoint.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Box2D.PbJoint.Builder>
      • mergeFrom

        public Box2D.PbJoint.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Box2D.PbJoint.Builder>
        Throws:
        java.io.IOException
      • hasTag

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

        public Box2D.PbJoint.Builder setTag​(long value)
        optional int64 tag = 1;
        Parameters:
        value - The tag to set.
        Returns:
        This builder for chaining.
      • clearTag

        public Box2D.PbJoint.Builder clearTag()
        optional int64 tag = 1;
        Returns:
        This builder for chaining.
      • hasType

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

        public Box2D.PbJoint.Builder clearType()
        required .box2d.PbJointType type = 2;
        Returns:
        This builder for chaining.
      • hasBodyA

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

        public Box2D.PbJoint.Builder setBodyA​(int value)
        optional int32 body_a = 3;
        Parameters:
        value - The bodyA to set.
        Returns:
        This builder for chaining.
      • clearBodyA

        public Box2D.PbJoint.Builder clearBodyA()
        optional int32 body_a = 3;
        Returns:
        This builder for chaining.
      • hasBodyB

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

        public Box2D.PbJoint.Builder setBodyB​(int value)
        optional int32 body_b = 4;
        Parameters:
        value - The bodyB to set.
        Returns:
        This builder for chaining.
      • clearBodyB

        public Box2D.PbJoint.Builder clearBodyB()
        optional int32 body_b = 4;
        Returns:
        This builder for chaining.
      • hasCollideConnected

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

        public Box2D.PbJoint.Builder setCollideConnected​(boolean value)
        optional bool collideConnected = 5;
        Parameters:
        value - The collideConnected to set.
        Returns:
        This builder for chaining.
      • clearCollideConnected

        public Box2D.PbJoint.Builder clearCollideConnected()
        optional bool collideConnected = 5;
        Returns:
        This builder for chaining.
      • 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.
      • clearLocalAnchorA

        public Box2D.PbJoint.Builder clearLocalAnchorA()
        optional .box2d.PbVec2 local_anchor_a = 6;
      • getLocalAnchorABuilder

        public Box2D.PbVec2.Builder getLocalAnchorABuilder()
        optional .box2d.PbVec2 local_anchor_a = 6;
      • 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.
      • clearLocalAnchorB

        public Box2D.PbJoint.Builder clearLocalAnchorB()
        optional .box2d.PbVec2 local_anchor_b = 7;
      • getLocalAnchorBBuilder

        public Box2D.PbVec2.Builder getLocalAnchorBBuilder()
        optional .box2d.PbVec2 local_anchor_b = 7;
      • 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.
      • setRefAngle

        public Box2D.PbJoint.Builder setRefAngle​(float value)
         revolute, prismatic, joint
         
        optional float ref_angle = 10;
        Parameters:
        value - The refAngle to set.
        Returns:
        This builder for chaining.
      • clearRefAngle

        public Box2D.PbJoint.Builder clearRefAngle()
         revolute, prismatic, joint
         
        optional float ref_angle = 10;
        Returns:
        This builder for chaining.
      • 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.
      • setEnableLimit

        public Box2D.PbJoint.Builder setEnableLimit​(boolean value)
         revolute, prismatic
         
        optional bool enable_limit = 12;
        Parameters:
        value - The enableLimit to set.
        Returns:
        This builder for chaining.
      • clearEnableLimit

        public Box2D.PbJoint.Builder clearEnableLimit()
         revolute, prismatic
         
        optional bool enable_limit = 12;
        Returns:
        This builder for chaining.
      • 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.
      • setLowerLimit

        public Box2D.PbJoint.Builder setLowerLimit​(float value)
         revolute, prismatic
         
        optional float lower_limit = 13;
        Parameters:
        value - The lowerLimit to set.
        Returns:
        This builder for chaining.
      • clearLowerLimit

        public Box2D.PbJoint.Builder clearLowerLimit()
         revolute, prismatic
         
        optional float lower_limit = 13;
        Returns:
        This builder for chaining.
      • 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.
      • setUpperLimit

        public Box2D.PbJoint.Builder setUpperLimit​(float value)
         revolute, prismatic
         
        optional float upper_limit = 14;
        Parameters:
        value - The upperLimit to set.
        Returns:
        This builder for chaining.
      • clearUpperLimit

        public Box2D.PbJoint.Builder clearUpperLimit()
         revolute, prismatic
         
        optional float upper_limit = 14;
        Returns:
        This builder for chaining.
      • 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.
      • setEnableMotor

        public Box2D.PbJoint.Builder setEnableMotor​(boolean value)
         revolute, prismatic, wheel
         
        optional bool enable_motor = 15;
        Parameters:
        value - The enableMotor to set.
        Returns:
        This builder for chaining.
      • clearEnableMotor

        public Box2D.PbJoint.Builder clearEnableMotor()
         revolute, prismatic, wheel
         
        optional bool enable_motor = 15;
        Returns:
        This builder for chaining.
      • 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.
      • setMotorSpeed

        public Box2D.PbJoint.Builder setMotorSpeed​(float value)
         revolute, prismatic, wheel
         
        optional float motor_speed = 16;
        Parameters:
        value - The motorSpeed to set.
        Returns:
        This builder for chaining.
      • clearMotorSpeed

        public Box2D.PbJoint.Builder clearMotorSpeed()
         revolute, prismatic, wheel
         
        optional float motor_speed = 16;
        Returns:
        This builder for chaining.
      • 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.
      • setMaxMotorTorque

        public Box2D.PbJoint.Builder setMaxMotorTorque​(float value)
         revolute, wheel
         
        optional float max_motor_torque = 17;
        Parameters:
        value - The maxMotorTorque to set.
        Returns:
        This builder for chaining.
      • clearMaxMotorTorque

        public Box2D.PbJoint.Builder clearMaxMotorTorque()
         revolute, wheel
         
        optional float max_motor_torque = 17;
        Returns:
        This builder for chaining.
      • 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.
      • clearLocalAxisA

        public Box2D.PbJoint.Builder clearLocalAxisA()
         prismatic, wheel
         
        optional .box2d.PbVec2 local_axis_a = 20;
      • getLocalAxisABuilder

        public Box2D.PbVec2.Builder getLocalAxisABuilder()
         prismatic, wheel
         
        optional .box2d.PbVec2 local_axis_a = 20;
      • 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.
      • setMaxMotorForce

        public Box2D.PbJoint.Builder setMaxMotorForce​(float value)
         prismatic
         
        optional float max_motor_force = 21;
        Parameters:
        value - The maxMotorForce to set.
        Returns:
        This builder for chaining.
      • clearMaxMotorForce

        public Box2D.PbJoint.Builder clearMaxMotorForce()
         prismatic
         
        optional float max_motor_force = 21;
        Returns:
        This builder for chaining.
      • 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.
      • setLength

        public Box2D.PbJoint.Builder setLength​(float value)
         distance
         
        optional float length = 30;
        Parameters:
        value - The length to set.
        Returns:
        This builder for chaining.
      • clearLength

        public Box2D.PbJoint.Builder clearLength()
         distance
         
        optional float length = 30;
        Returns:
        This builder for chaining.
      • 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.
      • setFrequency

        public Box2D.PbJoint.Builder setFrequency​(float value)
         distance, mouse, wheel, weld, con vol
         
        optional float frequency = 31;
        Parameters:
        value - The frequency to set.
        Returns:
        This builder for chaining.
      • clearFrequency

        public Box2D.PbJoint.Builder clearFrequency()
         distance, mouse, wheel, weld, con vol
         
        optional float frequency = 31;
        Returns:
        This builder for chaining.
      • 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.
      • setDampingRatio

        public Box2D.PbJoint.Builder setDampingRatio​(float value)
         distance, mouse, wheel, weld, col vol
         
        optional float damping_ratio = 32;
        Parameters:
        value - The dampingRatio to set.
        Returns:
        This builder for chaining.
      • clearDampingRatio

        public Box2D.PbJoint.Builder clearDampingRatio()
         distance, mouse, wheel, weld, col vol
         
        optional float damping_ratio = 32;
        Returns:
        This builder for chaining.
      • 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.
      • clearGroundAnchorA

        public Box2D.PbJoint.Builder clearGroundAnchorA()
         pulley
         
        optional .box2d.PbVec2 ground_anchor_a = 40;
      • getGroundAnchorABuilder

        public Box2D.PbVec2.Builder getGroundAnchorABuilder()
         pulley
         
        optional .box2d.PbVec2 ground_anchor_a = 40;
      • 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.
      • clearGroundAnchorB

        public Box2D.PbJoint.Builder clearGroundAnchorB()
         pulley
         
        optional .box2d.PbVec2 ground_anchor_b = 41;
      • getGroundAnchorBBuilder

        public Box2D.PbVec2.Builder getGroundAnchorBBuilder()
         pulley
         
        optional .box2d.PbVec2 ground_anchor_b = 41;
      • 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.
      • setLengthA

        public Box2D.PbJoint.Builder setLengthA​(float value)
         pulley
         
        optional float length_a = 42;
        Parameters:
        value - The lengthA to set.
        Returns:
        This builder for chaining.
      • clearLengthA

        public Box2D.PbJoint.Builder clearLengthA()
         pulley
         
        optional float length_a = 42;
        Returns:
        This builder for chaining.
      • 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.
      • setLengthB

        public Box2D.PbJoint.Builder setLengthB​(float value)
         pulley
         
        optional float length_b = 43;
        Parameters:
        value - The lengthB to set.
        Returns:
        This builder for chaining.
      • clearLengthB

        public Box2D.PbJoint.Builder clearLengthB()
         pulley
         
        optional float length_b = 43;
        Returns:
        This builder for chaining.
      • 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.
      • setRatio

        public Box2D.PbJoint.Builder setRatio​(float value)
         pulley, gear
         
        optional float ratio = 44;
        Parameters:
        value - The ratio to set.
        Returns:
        This builder for chaining.
      • clearRatio

        public Box2D.PbJoint.Builder clearRatio()
         pulley, gear
         
        optional float ratio = 44;
        Returns:
        This builder for chaining.
      • hasTarget

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

        public Box2D.PbVec2.Builder getTargetBuilder()
         mouse
         
        optional .box2d.PbVec2 target = 50;
      • 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.
      • setMaxForce

        public Box2D.PbJoint.Builder setMaxForce​(float value)
         mouse, friction, rope
         
        optional float max_force = 51;
        Parameters:
        value - The maxForce to set.
        Returns:
        This builder for chaining.
      • clearMaxForce

        public Box2D.PbJoint.Builder clearMaxForce()
         mouse, friction, rope
         
        optional float max_force = 51;
        Returns:
        This builder for chaining.
      • hasJoint1

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

        public Box2D.PbJoint.Builder setJoint1​(int value)
         gear
         
        optional int32 joint1 = 61;
        Parameters:
        value - The joint1 to set.
        Returns:
        This builder for chaining.
      • clearJoint1

        public Box2D.PbJoint.Builder clearJoint1()
         gear
         
        optional int32 joint1 = 61;
        Returns:
        This builder for chaining.
      • hasJoint2

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

        public Box2D.PbJoint.Builder setJoint2​(int value)
         gear
         
        optional int32 joint2 = 62;
        Parameters:
        value - The joint2 to set.
        Returns:
        This builder for chaining.
      • clearJoint2

        public Box2D.PbJoint.Builder clearJoint2()
         gear
         
        optional int32 joint2 = 62;
        Returns:
        This builder for chaining.
      • 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.
      • setMaxTorque

        public Box2D.PbJoint.Builder setMaxTorque​(float value)
         friction
         
        optional float max_torque = 90;
        Parameters:
        value - The maxTorque to set.
        Returns:
        This builder for chaining.
      • clearMaxTorque

        public Box2D.PbJoint.Builder clearMaxTorque()
         friction
         
        optional float max_torque = 90;
        Returns:
        This builder for chaining.
      • 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.
      • setMaxLength

        public Box2D.PbJoint.Builder setMaxLength​(float value)
         rope
         
        optional float max_length = 100;
        Parameters:
        value - The maxLength to set.
        Returns:
        This builder for chaining.
      • clearMaxLength

        public Box2D.PbJoint.Builder clearMaxLength()
         rope
         
        optional float max_length = 100;
        Returns:
        This builder for chaining.
      • ensureBodiesIsMutable

        private void ensureBodiesIsMutable()
      • 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.
      • setBodies

        public Box2D.PbJoint.Builder setBodies​(int index,
                                               int value)
         con vol
         
        repeated int32 bodies = 110;
        Parameters:
        index - The index to set the value at.
        value - The bodies to set.
        Returns:
        This builder for chaining.
      • addBodies

        public Box2D.PbJoint.Builder addBodies​(int value)
         con vol
         
        repeated int32 bodies = 110;
        Parameters:
        value - The bodies to add.
        Returns:
        This builder for chaining.
      • addAllBodies

        public Box2D.PbJoint.Builder addAllBodies​(java.lang.Iterable<? extends java.lang.Integer> values)
         con vol
         
        repeated int32 bodies = 110;
        Parameters:
        values - The bodies to add.
        Returns:
        This builder for chaining.
      • clearBodies

        public Box2D.PbJoint.Builder clearBodies()
         con vol
         
        repeated int32 bodies = 110;
        Returns:
        This builder for chaining.
      • ensureJointsIsMutable

        private void ensureJointsIsMutable()
      • 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.
      • setJoints

        public Box2D.PbJoint.Builder setJoints​(int index,
                                               int value)
         con vol
         
        repeated int32 joints = 111;
        Parameters:
        index - The index to set the value at.
        value - The joints to set.
        Returns:
        This builder for chaining.
      • addJoints

        public Box2D.PbJoint.Builder addJoints​(int value)
         con vol
         
        repeated int32 joints = 111;
        Parameters:
        value - The joints to add.
        Returns:
        This builder for chaining.
      • addAllJoints

        public Box2D.PbJoint.Builder addAllJoints​(java.lang.Iterable<? extends java.lang.Integer> values)
         con vol
         
        repeated int32 joints = 111;
        Parameters:
        values - The joints to add.
        Returns:
        This builder for chaining.
      • clearJoints

        public Box2D.PbJoint.Builder clearJoints()
         con vol
         
        repeated int32 joints = 111;
        Returns:
        This builder for chaining.