Package org.box2d.proto
Class Box2D.PbJoint.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Box2D.PbJoint.Builder>
com.google.protobuf.GeneratedMessage.Builder<Box2D.PbJoint.Builder>
org.box2d.proto.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 Summary
FieldsModifier and TypeFieldDescriptionprivate int
private com.google.protobuf.Internal.IntList
private int
private int
private boolean
private float
private boolean
private boolean
private float
private Box2D.PbVec2
private com.google.protobuf.SingleFieldBuilder
<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> private Box2D.PbVec2
private com.google.protobuf.SingleFieldBuilder
<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> private int
private int
private com.google.protobuf.Internal.IntList
private float
private float
private float
private Box2D.PbVec2
private com.google.protobuf.SingleFieldBuilder
<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> private Box2D.PbVec2
private com.google.protobuf.SingleFieldBuilder
<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> private Box2D.PbVec2
private com.google.protobuf.SingleFieldBuilder
<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> private float
private float
private float
private float
private float
private float
private float
private float
private float
private long
private Box2D.PbVec2
private com.google.protobuf.SingleFieldBuilder
<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> private int
private float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllBodies
(java.lang.Iterable<? extends java.lang.Integer> values) con voladdAllJoints
(java.lang.Iterable<? extends java.lang.Integer> values) con voladdBodies
(int value) con voladdJoints
(int value) con volbuild()
private void
buildPartial0
(Box2D.PbJoint result) clear()
con voloptional int32 body_a = 3;
optional int32 body_b = 4;
optional bool collideConnected = 5;
distance, mouse, wheel, weld, col volrevolute, prismaticrevolute, prismatic, wheeldistance, mouse, wheel, weld, con volpulleypulleygeargearcon voldistancepulleypulleyoptional .box2d.PbVec2 local_anchor_a = 6;
optional .box2d.PbVec2 local_anchor_b = 7;
prismatic, wheelrevolute, prismaticmouse, friction, roperopeprismaticrevolute, wheelfrictionrevolute, prismatic, wheelpulley, gearrevolute, prismatic, jointclearTag()
optional int64 tag = 1;
mouserequired .box2d.PbJointType type = 2;
revolute, prismaticprivate void
private void
int
getBodies
(int index) con volint
con voljava.util.List
<java.lang.Integer> con volint
getBodyA()
optional int32 body_a = 3;
int
getBodyB()
optional int32 body_b = 4;
boolean
optional bool collideConnected = 5;
float
distance, mouse, wheel, weld, col volstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
revolute, prismaticboolean
revolute, prismatic, wheelfloat
distance, mouse, wheel, weld, con volpulleypulleypulleypulleypulleypulleyint
gearint
gearint
getJoints
(int index) con volint
con voljava.util.List
<java.lang.Integer> con volfloat
distancefloat
pulleyfloat
pulleyoptional .box2d.PbVec2 local_anchor_a = 6;
optional .box2d.PbVec2 local_anchor_a = 6;
optional .box2d.PbVec2 local_anchor_a = 6;
optional .box2d.PbVec2 local_anchor_b = 7;
optional .box2d.PbVec2 local_anchor_b = 7;
optional .box2d.PbVec2 local_anchor_b = 7;
prismatic, wheelprismatic, wheelprismatic, wheelfloat
revolute, prismaticfloat
mouse, friction, ropefloat
ropefloat
prismaticfloat
revolute, wheelfloat
frictionfloat
revolute, prismatic, wheelfloat
getRatio()
pulley, gearfloat
revolute, prismatic, jointlong
getTag()
optional int64 tag = 1;
mousemousemousegetType()
required .box2d.PbJointType type = 2;
float
revolute, prismaticboolean
hasBodyA()
optional int32 body_a = 3;
boolean
hasBodyB()
optional int32 body_b = 4;
boolean
optional bool collideConnected = 5;
boolean
distance, mouse, wheel, weld, col volboolean
revolute, prismaticboolean
revolute, prismatic, wheelboolean
distance, mouse, wheel, weld, con volboolean
pulleyboolean
pulleyboolean
gearboolean
gearboolean
distanceboolean
pulleyboolean
pulleyboolean
optional .box2d.PbVec2 local_anchor_a = 6;
boolean
optional .box2d.PbVec2 local_anchor_b = 7;
boolean
prismatic, wheelboolean
revolute, prismaticboolean
mouse, friction, ropeboolean
ropeboolean
prismaticboolean
revolute, wheelboolean
frictionboolean
revolute, prismatic, wheelboolean
hasRatio()
pulley, gearboolean
revolute, prismatic, jointboolean
hasTag()
optional int64 tag = 1;
boolean
mouseboolean
hasType()
required .box2d.PbJointType type = 2;
boolean
revolute, prismaticprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.SingleFieldBuilder
<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> pulleyprivate com.google.protobuf.SingleFieldBuilder
<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> pulleyprivate com.google.protobuf.SingleFieldBuilder
<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> optional .box2d.PbVec2 local_anchor_a = 6;
private com.google.protobuf.SingleFieldBuilder
<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> optional .box2d.PbVec2 local_anchor_b = 7;
private com.google.protobuf.SingleFieldBuilder
<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> prismatic, wheelprivate com.google.protobuf.SingleFieldBuilder
<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> mousefinal boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(Box2D.PbJoint other) mergeGroundAnchorA
(Box2D.PbVec2 value) pulleymergeGroundAnchorB
(Box2D.PbVec2 value) pulleymergeLocalAnchorA
(Box2D.PbVec2 value) optional .box2d.PbVec2 local_anchor_a = 6;
mergeLocalAnchorB
(Box2D.PbVec2 value) optional .box2d.PbVec2 local_anchor_b = 7;
mergeLocalAxisA
(Box2D.PbVec2 value) prismatic, wheelmergeTarget
(Box2D.PbVec2 value) mousesetBodies
(int index, int value) con volsetBodyA
(int value) optional int32 body_a = 3;
setBodyB
(int value) optional int32 body_b = 4;
setCollideConnected
(boolean value) optional bool collideConnected = 5;
setDampingRatio
(float value) distance, mouse, wheel, weld, col volsetEnableLimit
(boolean value) revolute, prismaticsetEnableMotor
(boolean value) revolute, prismatic, wheelsetFrequency
(float value) distance, mouse, wheel, weld, con volsetGroundAnchorA
(Box2D.PbVec2 value) pulleysetGroundAnchorA
(Box2D.PbVec2.Builder builderForValue) pulleysetGroundAnchorB
(Box2D.PbVec2 value) pulleysetGroundAnchorB
(Box2D.PbVec2.Builder builderForValue) pulleysetJoint1
(int value) gearsetJoint2
(int value) gearsetJoints
(int index, int value) con volsetLength
(float value) distancesetLengthA
(float value) pulleysetLengthB
(float value) pulleysetLocalAnchorA
(Box2D.PbVec2 value) optional .box2d.PbVec2 local_anchor_a = 6;
setLocalAnchorA
(Box2D.PbVec2.Builder builderForValue) optional .box2d.PbVec2 local_anchor_a = 6;
setLocalAnchorB
(Box2D.PbVec2 value) optional .box2d.PbVec2 local_anchor_b = 7;
setLocalAnchorB
(Box2D.PbVec2.Builder builderForValue) optional .box2d.PbVec2 local_anchor_b = 7;
setLocalAxisA
(Box2D.PbVec2 value) prismatic, wheelsetLocalAxisA
(Box2D.PbVec2.Builder builderForValue) prismatic, wheelsetLowerLimit
(float value) revolute, prismaticsetMaxForce
(float value) mouse, friction, ropesetMaxLength
(float value) ropesetMaxMotorForce
(float value) prismaticsetMaxMotorTorque
(float value) revolute, wheelsetMaxTorque
(float value) frictionsetMotorSpeed
(float value) revolute, prismatic, wheelsetRatio
(float value) pulley, gearsetRefAngle
(float value) revolute, prismatic, jointsetTag
(long value) optional int64 tag = 1;
setTarget
(Box2D.PbVec2 value) mousesetTarget
(Box2D.PbVec2.Builder builderForValue) mousesetType
(Box2D.PbJointType value) required .box2d.PbJointType type = 2;
setUpperLimit
(float value) revolute, prismaticMethods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
tag_
private long tag_ -
type_
private int type_ -
bodyA_
private int bodyA_ -
bodyB_
private int bodyB_ -
collideConnected_
private boolean collideConnected_ -
localAnchorA_
-
localAnchorABuilder_
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2,Box2D.PbVec2.Builder, localAnchorABuilder_Box2D.PbVec2OrBuilder> -
localAnchorB_
-
localAnchorBBuilder_
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2,Box2D.PbVec2.Builder, localAnchorBBuilder_Box2D.PbVec2OrBuilder> -
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_ -
localAxisA_
-
localAxisABuilder_
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2,Box2D.PbVec2.Builder, localAxisABuilder_Box2D.PbVec2OrBuilder> -
maxMotorForce_
private float maxMotorForce_ -
length_
private float length_ -
frequency_
private float frequency_ -
dampingRatio_
private float dampingRatio_ -
groundAnchorA_
-
groundAnchorABuilder_
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2,Box2D.PbVec2.Builder, groundAnchorABuilder_Box2D.PbVec2OrBuilder> -
groundAnchorB_
-
groundAnchorBBuilder_
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2,Box2D.PbVec2.Builder, groundAnchorBBuilder_Box2D.PbVec2OrBuilder> -
lengthA_
private float lengthA_ -
lengthB_
private float lengthB_ -
ratio_
private float ratio_ -
target_
-
targetBuilder_
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2,Box2D.PbVec2.Builder, targetBuilder_Box2D.PbVec2OrBuilder> -
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 Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Box2D.PbJoint.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Box2D.PbJoint.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Box2D.PbJoint.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Box2D.PbJoint.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Box2D.PbJoint.Builder>
- Throws:
java.io.IOException
-
hasTag
public boolean hasTag()optional int64 tag = 1;
- Specified by:
hasTag
in interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the tag field is set.
-
getTag
public long getTag()optional int64 tag = 1;
- Specified by:
getTag
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The tag.
-
setTag
optional int64 tag = 1;
- Parameters:
value
- The tag to set.- Returns:
- This builder for chaining.
-
clearTag
optional int64 tag = 1;
- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()required .box2d.PbJointType type = 2;
- Specified by:
hasType
in interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the type field is set.
-
getType
required .box2d.PbJointType type = 2;
- Specified by:
getType
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The type.
-
setType
required .box2d.PbJointType type = 2;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
required .box2d.PbJointType type = 2;
- Returns:
- This builder for chaining.
-
hasBodyA
public boolean hasBodyA()optional int32 body_a = 3;
- Specified by:
hasBodyA
in interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the bodyA field is set.
-
getBodyA
public int getBodyA()optional int32 body_a = 3;
- Specified by:
getBodyA
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The bodyA.
-
setBodyA
optional int32 body_a = 3;
- Parameters:
value
- The bodyA to set.- Returns:
- This builder for chaining.
-
clearBodyA
optional int32 body_a = 3;
- Returns:
- This builder for chaining.
-
hasBodyB
public boolean hasBodyB()optional int32 body_b = 4;
- Specified by:
hasBodyB
in interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the bodyB field is set.
-
getBodyB
public int getBodyB()optional int32 body_b = 4;
- Specified by:
getBodyB
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The bodyB.
-
setBodyB
optional int32 body_b = 4;
- Parameters:
value
- The bodyB to set.- Returns:
- This builder for chaining.
-
clearBodyB
optional int32 body_b = 4;
- Returns:
- This builder for chaining.
-
hasCollideConnected
public boolean hasCollideConnected()optional bool collideConnected = 5;
- Specified by:
hasCollideConnected
in interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the collideConnected field is set.
-
getCollideConnected
public boolean getCollideConnected()optional bool collideConnected = 5;
- Specified by:
getCollideConnected
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The collideConnected.
-
setCollideConnected
optional bool collideConnected = 5;
- Parameters:
value
- The collideConnected to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the localAnchorA field is set.
-
getLocalAnchorA
optional .box2d.PbVec2 local_anchor_a = 6;
- Specified by:
getLocalAnchorA
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The localAnchorA.
-
setLocalAnchorA
optional .box2d.PbVec2 local_anchor_a = 6;
-
setLocalAnchorA
optional .box2d.PbVec2 local_anchor_a = 6;
-
mergeLocalAnchorA
optional .box2d.PbVec2 local_anchor_a = 6;
-
clearLocalAnchorA
optional .box2d.PbVec2 local_anchor_a = 6;
-
getLocalAnchorABuilder
optional .box2d.PbVec2 local_anchor_a = 6;
-
getLocalAnchorAOrBuilder
optional .box2d.PbVec2 local_anchor_a = 6;
- Specified by:
getLocalAnchorAOrBuilder
in interfaceBox2D.PbJointOrBuilder
-
internalGetLocalAnchorAFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2,Box2D.PbVec2.Builder, internalGetLocalAnchorAFieldBuilder()Box2D.PbVec2OrBuilder> optional .box2d.PbVec2 local_anchor_a = 6;
-
hasLocalAnchorB
public boolean hasLocalAnchorB()optional .box2d.PbVec2 local_anchor_b = 7;
- Specified by:
hasLocalAnchorB
in interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the localAnchorB field is set.
-
getLocalAnchorB
optional .box2d.PbVec2 local_anchor_b = 7;
- Specified by:
getLocalAnchorB
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The localAnchorB.
-
setLocalAnchorB
optional .box2d.PbVec2 local_anchor_b = 7;
-
setLocalAnchorB
optional .box2d.PbVec2 local_anchor_b = 7;
-
mergeLocalAnchorB
optional .box2d.PbVec2 local_anchor_b = 7;
-
clearLocalAnchorB
optional .box2d.PbVec2 local_anchor_b = 7;
-
getLocalAnchorBBuilder
optional .box2d.PbVec2 local_anchor_b = 7;
-
getLocalAnchorBOrBuilder
optional .box2d.PbVec2 local_anchor_b = 7;
- Specified by:
getLocalAnchorBOrBuilder
in interfaceBox2D.PbJointOrBuilder
-
internalGetLocalAnchorBFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2,Box2D.PbVec2.Builder, internalGetLocalAnchorBFieldBuilder()Box2D.PbVec2OrBuilder> optional .box2d.PbVec2 local_anchor_b = 7;
-
hasRefAngle
public boolean hasRefAngle()revolute, prismatic, joint
optional float ref_angle = 10;
- Specified by:
hasRefAngle
in interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the refAngle field is set.
-
getRefAngle
public float getRefAngle()revolute, prismatic, joint
optional float ref_angle = 10;
- Specified by:
getRefAngle
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The refAngle.
-
setRefAngle
revolute, prismatic, joint
optional float ref_angle = 10;
- Parameters:
value
- The refAngle to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the enableLimit field is set.
-
getEnableLimit
public boolean getEnableLimit()revolute, prismatic
optional bool enable_limit = 12;
- Specified by:
getEnableLimit
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The enableLimit.
-
setEnableLimit
revolute, prismatic
optional bool enable_limit = 12;
- Parameters:
value
- The enableLimit to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the lowerLimit field is set.
-
getLowerLimit
public float getLowerLimit()revolute, prismatic
optional float lower_limit = 13;
- Specified by:
getLowerLimit
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The lowerLimit.
-
setLowerLimit
revolute, prismatic
optional float lower_limit = 13;
- Parameters:
value
- The lowerLimit to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the upperLimit field is set.
-
getUpperLimit
public float getUpperLimit()revolute, prismatic
optional float upper_limit = 14;
- Specified by:
getUpperLimit
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The upperLimit.
-
setUpperLimit
revolute, prismatic
optional float upper_limit = 14;
- Parameters:
value
- The upperLimit to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the enableMotor field is set.
-
getEnableMotor
public boolean getEnableMotor()revolute, prismatic, wheel
optional bool enable_motor = 15;
- Specified by:
getEnableMotor
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The enableMotor.
-
setEnableMotor
revolute, prismatic, wheel
optional bool enable_motor = 15;
- Parameters:
value
- The enableMotor to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the motorSpeed field is set.
-
getMotorSpeed
public float getMotorSpeed()revolute, prismatic, wheel
optional float motor_speed = 16;
- Specified by:
getMotorSpeed
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The motorSpeed.
-
setMotorSpeed
revolute, prismatic, wheel
optional float motor_speed = 16;
- Parameters:
value
- The motorSpeed to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the maxMotorTorque field is set.
-
getMaxMotorTorque
public float getMaxMotorTorque()revolute, wheel
optional float max_motor_torque = 17;
- Specified by:
getMaxMotorTorque
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The maxMotorTorque.
-
setMaxMotorTorque
revolute, wheel
optional float max_motor_torque = 17;
- Parameters:
value
- The maxMotorTorque to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the localAxisA field is set.
-
getLocalAxisA
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20;
- Specified by:
getLocalAxisA
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The localAxisA.
-
setLocalAxisA
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20;
-
setLocalAxisA
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20;
-
mergeLocalAxisA
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20;
-
clearLocalAxisA
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20;
-
getLocalAxisABuilder
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20;
-
getLocalAxisAOrBuilder
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20;
- Specified by:
getLocalAxisAOrBuilder
in interfaceBox2D.PbJointOrBuilder
-
internalGetLocalAxisAFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2,Box2D.PbVec2.Builder, internalGetLocalAxisAFieldBuilder()Box2D.PbVec2OrBuilder> prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20;
-
hasMaxMotorForce
public boolean hasMaxMotorForce()prismatic
optional float max_motor_force = 21;
- Specified by:
hasMaxMotorForce
in interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the maxMotorForce field is set.
-
getMaxMotorForce
public float getMaxMotorForce()prismatic
optional float max_motor_force = 21;
- Specified by:
getMaxMotorForce
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The maxMotorForce.
-
setMaxMotorForce
prismatic
optional float max_motor_force = 21;
- Parameters:
value
- The maxMotorForce to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the length field is set.
-
getLength
public float getLength()distance
optional float length = 30;
- Specified by:
getLength
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The length.
-
setLength
distance
optional float length = 30;
- Parameters:
value
- The length to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.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 interfaceBox2D.PbJointOrBuilder
- Returns:
- The frequency.
-
setFrequency
distance, mouse, wheel, weld, con vol
optional float frequency = 31;
- Parameters:
value
- The frequency to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.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 interfaceBox2D.PbJointOrBuilder
- Returns:
- The dampingRatio.
-
setDampingRatio
distance, mouse, wheel, weld, col vol
optional float damping_ratio = 32;
- Parameters:
value
- The dampingRatio to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the groundAnchorA field is set.
-
getGroundAnchorA
pulley
optional .box2d.PbVec2 ground_anchor_a = 40;
- Specified by:
getGroundAnchorA
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The groundAnchorA.
-
setGroundAnchorA
pulley
optional .box2d.PbVec2 ground_anchor_a = 40;
-
setGroundAnchorA
pulley
optional .box2d.PbVec2 ground_anchor_a = 40;
-
mergeGroundAnchorA
pulley
optional .box2d.PbVec2 ground_anchor_a = 40;
-
clearGroundAnchorA
pulley
optional .box2d.PbVec2 ground_anchor_a = 40;
-
getGroundAnchorABuilder
pulley
optional .box2d.PbVec2 ground_anchor_a = 40;
-
getGroundAnchorAOrBuilder
pulley
optional .box2d.PbVec2 ground_anchor_a = 40;
- Specified by:
getGroundAnchorAOrBuilder
in interfaceBox2D.PbJointOrBuilder
-
internalGetGroundAnchorAFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2,Box2D.PbVec2.Builder, internalGetGroundAnchorAFieldBuilder()Box2D.PbVec2OrBuilder> pulley
optional .box2d.PbVec2 ground_anchor_a = 40;
-
hasGroundAnchorB
public boolean hasGroundAnchorB()pulley
optional .box2d.PbVec2 ground_anchor_b = 41;
- Specified by:
hasGroundAnchorB
in interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the groundAnchorB field is set.
-
getGroundAnchorB
pulley
optional .box2d.PbVec2 ground_anchor_b = 41;
- Specified by:
getGroundAnchorB
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The groundAnchorB.
-
setGroundAnchorB
pulley
optional .box2d.PbVec2 ground_anchor_b = 41;
-
setGroundAnchorB
pulley
optional .box2d.PbVec2 ground_anchor_b = 41;
-
mergeGroundAnchorB
pulley
optional .box2d.PbVec2 ground_anchor_b = 41;
-
clearGroundAnchorB
pulley
optional .box2d.PbVec2 ground_anchor_b = 41;
-
getGroundAnchorBBuilder
pulley
optional .box2d.PbVec2 ground_anchor_b = 41;
-
getGroundAnchorBOrBuilder
pulley
optional .box2d.PbVec2 ground_anchor_b = 41;
- Specified by:
getGroundAnchorBOrBuilder
in interfaceBox2D.PbJointOrBuilder
-
internalGetGroundAnchorBFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2,Box2D.PbVec2.Builder, internalGetGroundAnchorBFieldBuilder()Box2D.PbVec2OrBuilder> pulley
optional .box2d.PbVec2 ground_anchor_b = 41;
-
hasLengthA
public boolean hasLengthA()pulley
optional float length_a = 42;
- Specified by:
hasLengthA
in interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the lengthA field is set.
-
getLengthA
public float getLengthA()pulley
optional float length_a = 42;
- Specified by:
getLengthA
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The lengthA.
-
setLengthA
pulley
optional float length_a = 42;
- Parameters:
value
- The lengthA to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the lengthB field is set.
-
getLengthB
public float getLengthB()pulley
optional float length_b = 43;
- Specified by:
getLengthB
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The lengthB.
-
setLengthB
pulley
optional float length_b = 43;
- Parameters:
value
- The lengthB to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the ratio field is set.
-
getRatio
public float getRatio()pulley, gear
optional float ratio = 44;
- Specified by:
getRatio
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The ratio.
-
setRatio
pulley, gear
optional float ratio = 44;
- Parameters:
value
- The ratio to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the target field is set.
-
getTarget
mouse
optional .box2d.PbVec2 target = 50;
- Specified by:
getTarget
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The target.
-
setTarget
mouse
optional .box2d.PbVec2 target = 50;
-
setTarget
mouse
optional .box2d.PbVec2 target = 50;
-
mergeTarget
mouse
optional .box2d.PbVec2 target = 50;
-
clearTarget
mouse
optional .box2d.PbVec2 target = 50;
-
getTargetBuilder
mouse
optional .box2d.PbVec2 target = 50;
-
getTargetOrBuilder
mouse
optional .box2d.PbVec2 target = 50;
- Specified by:
getTargetOrBuilder
in interfaceBox2D.PbJointOrBuilder
-
internalGetTargetFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2,Box2D.PbVec2.Builder, internalGetTargetFieldBuilder()Box2D.PbVec2OrBuilder> mouse
optional .box2d.PbVec2 target = 50;
-
hasMaxForce
public boolean hasMaxForce()mouse, friction, rope
optional float max_force = 51;
- Specified by:
hasMaxForce
in interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the maxForce field is set.
-
getMaxForce
public float getMaxForce()mouse, friction, rope
optional float max_force = 51;
- Specified by:
getMaxForce
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The maxForce.
-
setMaxForce
mouse, friction, rope
optional float max_force = 51;
- Parameters:
value
- The maxForce to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the joint1 field is set.
-
getJoint1
public int getJoint1()gear
optional int32 joint1 = 61;
- Specified by:
getJoint1
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The joint1.
-
setJoint1
gear
optional int32 joint1 = 61;
- Parameters:
value
- The joint1 to set.- Returns:
- This builder for chaining.
-
clearJoint1
gear
optional int32 joint1 = 61;
- Returns:
- This builder for chaining.
-
hasJoint2
public boolean hasJoint2()gear
optional int32 joint2 = 62;
- Specified by:
hasJoint2
in interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the joint2 field is set.
-
getJoint2
public int getJoint2()gear
optional int32 joint2 = 62;
- Specified by:
getJoint2
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The joint2.
-
setJoint2
gear
optional int32 joint2 = 62;
- Parameters:
value
- The joint2 to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the maxTorque field is set.
-
getMaxTorque
public float getMaxTorque()friction
optional float max_torque = 90;
- Specified by:
getMaxTorque
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The maxTorque.
-
setMaxTorque
friction
optional float max_torque = 90;
- Parameters:
value
- The maxTorque to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- Whether the maxLength field is set.
-
getMaxLength
public float getMaxLength()rope
optional float max_length = 100;
- Specified by:
getMaxLength
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The maxLength.
-
setMaxLength
rope
optional float max_length = 100;
- Parameters:
value
- The maxLength to set.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- A list containing the bodies.
-
getBodiesCount
public int getBodiesCount()con vol
repeated int32 bodies = 110;
- Specified by:
getBodiesCount
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The count of bodies.
-
getBodies
public int getBodies(int index) con vol
repeated int32 bodies = 110;
- Specified by:
getBodies
in interfaceBox2D.PbJointOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The bodies at the given index.
-
setBodies
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
con vol
repeated int32 bodies = 110;
- Parameters:
value
- The bodies to add.- Returns:
- This builder for chaining.
-
addAllBodies
con vol
repeated int32 bodies = 110;
- Parameters:
values
- The bodies to add.- Returns:
- This builder for chaining.
-
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 interfaceBox2D.PbJointOrBuilder
- Returns:
- A list containing the joints.
-
getJointsCount
public int getJointsCount()con vol
repeated int32 joints = 111;
- Specified by:
getJointsCount
in interfaceBox2D.PbJointOrBuilder
- Returns:
- The count of joints.
-
getJoints
public int getJoints(int index) con vol
repeated int32 joints = 111;
- Specified by:
getJoints
in interfaceBox2D.PbJointOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The joints at the given index.
-
setJoints
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
con vol
repeated int32 joints = 111;
- Parameters:
value
- The joints to add.- Returns:
- This builder for chaining.
-
addAllJoints
con vol
repeated int32 joints = 111;
- Parameters:
values
- The joints to add.- Returns:
- This builder for chaining.
-
clearJoints
con vol
repeated int32 joints = 111;
- Returns:
- This builder for chaining.
-