// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Motion.proto package messages; /** * Protobuf type {@code messages.WalkProvider} */ public final class WalkProvider extends com.google.protobuf.GeneratedMessage implements WalkProviderOrBuilder { // Use WalkProvider.newBuilder() to construct. private WalkProvider(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private WalkProvider(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final WalkProvider defaultInstance; public static WalkProvider getDefaultInstance() { return defaultInstance; } public WalkProvider getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WalkProvider( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; active_ = input.readBool(); break; } case 16: { bitField0_ |= 0x00000002; isWalking_ = input.readBool(); break; } case 24: { bitField0_ |= 0x00000004; stopping_ = input.readBool(); break; } case 32: { bitField0_ |= 0x00000008; requestedToStop_ = input.readBool(); break; } case 40: { bitField0_ |= 0x00000010; isStanding_ = input.readBool(); break; } case 48: { bitField0_ |= 0x00000020; calibrated_ = input.readBool(); break; } case 58: { messages.WalkProvider.BHDebug.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = bhdebug_.toBuilder(); } bhdebug_ = input.readMessage(messages.WalkProvider.BHDebug.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bhdebug_); bhdebug_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 64: { bitField0_ |= 0x00000040; commandType_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return messages._File_Motion.internal_static_messages_WalkProvider_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return messages._File_Motion.internal_static_messages_WalkProvider_fieldAccessorTable .ensureFieldAccessorsInitialized( messages.WalkProvider.class, messages.WalkProvider.Builder.class); } public static com.google.protobuf.Parser<WalkProvider> PARSER = new com.google.protobuf.AbstractParser<WalkProvider>() { public WalkProvider parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WalkProvider(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<WalkProvider> getParserForType() { return PARSER; } public interface BHDebugOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional uint32 motion_type = 1; /** * <code>optional uint32 motion_type = 1;</code> */ boolean hasMotionType(); /** * <code>optional uint32 motion_type = 1;</code> */ int getMotionType(); // optional string motion_name = 2; /** * <code>optional string motion_name = 2;</code> */ boolean hasMotionName(); /** * <code>optional string motion_name = 2;</code> */ java.lang.String getMotionName(); /** * <code>optional string motion_name = 2;</code> */ com.google.protobuf.ByteString getMotionNameBytes(); // optional uint32 selected_motion_type = 3; /** * <code>optional uint32 selected_motion_type = 3;</code> */ boolean hasSelectedMotionType(); /** * <code>optional uint32 selected_motion_type = 3;</code> */ int getSelectedMotionType(); // optional string selected_motion_name = 4; /** * <code>optional string selected_motion_name = 4;</code> */ boolean hasSelectedMotionName(); /** * <code>optional string selected_motion_name = 4;</code> */ java.lang.String getSelectedMotionName(); /** * <code>optional string selected_motion_name = 4;</code> */ com.google.protobuf.ByteString getSelectedMotionNameBytes(); // optional .messages.RobotLocation target = 5; /** * <code>optional .messages.RobotLocation target = 5;</code> */ boolean hasTarget(); /** * <code>optional .messages.RobotLocation target = 5;</code> */ messages.RobotLocation getTarget(); /** * <code>optional .messages.RobotLocation target = 5;</code> */ messages.RobotLocationOrBuilder getTargetOrBuilder(); // optional .messages.RobotLocation speeds = 6; /** * <code>optional .messages.RobotLocation speeds = 6;</code> */ boolean hasSpeeds(); /** * <code>optional .messages.RobotLocation speeds = 6;</code> */ messages.RobotLocation getSpeeds(); /** * <code>optional .messages.RobotLocation speeds = 6;</code> */ messages.RobotLocationOrBuilder getSpeedsOrBuilder(); // repeated float select_ratios = 7; /** * <code>repeated float select_ratios = 7;</code> */ java.util.List<java.lang.Float> getSelectRatiosList(); /** * <code>repeated float select_ratios = 7;</code> */ int getSelectRatiosCount(); /** * <code>repeated float select_ratios = 7;</code> */ float getSelectRatios(int index); // optional bool ground_contact_safe = 8; /** * <code>optional bool ground_contact_safe = 8;</code> */ boolean hasGroundContactSafe(); /** * <code>optional bool ground_contact_safe = 8;</code> */ boolean getGroundContactSafe(); // optional bool instable = 9; /** * <code>optional bool instable = 9;</code> */ boolean hasInstable(); /** * <code>optional bool instable = 9;</code> */ boolean getInstable(); } /** * Protobuf type {@code messages.WalkProvider.BHDebug} */ public static final class BHDebug extends com.google.protobuf.GeneratedMessage implements BHDebugOrBuilder { // Use BHDebug.newBuilder() to construct. private BHDebug(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private BHDebug(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final BHDebug defaultInstance; public static BHDebug getDefaultInstance() { return defaultInstance; } public BHDebug getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BHDebug( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; motionType_ = input.readUInt32(); break; } case 18: { bitField0_ |= 0x00000002; motionName_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; selectedMotionType_ = input.readUInt32(); break; } case 34: { bitField0_ |= 0x00000008; selectedMotionName_ = input.readBytes(); break; } case 42: { messages.RobotLocation.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = target_.toBuilder(); } target_ = input.readMessage(messages.RobotLocation.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(target_); target_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { messages.RobotLocation.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = speeds_.toBuilder(); } speeds_ = input.readMessage(messages.RobotLocation.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(speeds_); speeds_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 61: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { selectRatios_ = new java.util.ArrayList<java.lang.Float>(); mutable_bitField0_ |= 0x00000040; } selectRatios_.add(input.readFloat()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { selectRatios_ = new java.util.ArrayList<java.lang.Float>(); mutable_bitField0_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { selectRatios_.add(input.readFloat()); } input.popLimit(limit); break; } case 64: { bitField0_ |= 0x00000040; groundContactSafe_ = input.readBool(); break; } case 72: { bitField0_ |= 0x00000080; instable_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { selectRatios_ = java.util.Collections.unmodifiableList(selectRatios_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return messages._File_Motion.internal_static_messages_WalkProvider_BHDebug_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return messages._File_Motion.internal_static_messages_WalkProvider_BHDebug_fieldAccessorTable .ensureFieldAccessorsInitialized( messages.WalkProvider.BHDebug.class, messages.WalkProvider.BHDebug.Builder.class); } public static com.google.protobuf.Parser<BHDebug> PARSER = new com.google.protobuf.AbstractParser<BHDebug>() { public BHDebug parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BHDebug(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<BHDebug> getParserForType() { return PARSER; } private int bitField0_; // optional uint32 motion_type = 1; public static final int MOTION_TYPE_FIELD_NUMBER = 1; private int motionType_; /** * <code>optional uint32 motion_type = 1;</code> */ public boolean hasMotionType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 motion_type = 1;</code> */ public int getMotionType() { return motionType_; } // optional string motion_name = 2; public static final int MOTION_NAME_FIELD_NUMBER = 2; private java.lang.Object motionName_; /** * <code>optional string motion_name = 2;</code> */ public boolean hasMotionName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string motion_name = 2;</code> */ public java.lang.String getMotionName() { java.lang.Object ref = motionName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { motionName_ = s; } return s; } } /** * <code>optional string motion_name = 2;</code> */ public com.google.protobuf.ByteString getMotionNameBytes() { java.lang.Object ref = motionName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); motionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional uint32 selected_motion_type = 3; public static final int SELECTED_MOTION_TYPE_FIELD_NUMBER = 3; private int selectedMotionType_; /** * <code>optional uint32 selected_motion_type = 3;</code> */ public boolean hasSelectedMotionType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 selected_motion_type = 3;</code> */ public int getSelectedMotionType() { return selectedMotionType_; } // optional string selected_motion_name = 4; public static final int SELECTED_MOTION_NAME_FIELD_NUMBER = 4; private java.lang.Object selectedMotionName_; /** * <code>optional string selected_motion_name = 4;</code> */ public boolean hasSelectedMotionName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string selected_motion_name = 4;</code> */ public java.lang.String getSelectedMotionName() { java.lang.Object ref = selectedMotionName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { selectedMotionName_ = s; } return s; } } /** * <code>optional string selected_motion_name = 4;</code> */ public com.google.protobuf.ByteString getSelectedMotionNameBytes() { java.lang.Object ref = selectedMotionName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); selectedMotionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional .messages.RobotLocation target = 5; public static final int TARGET_FIELD_NUMBER = 5; private messages.RobotLocation target_; /** * <code>optional .messages.RobotLocation target = 5;</code> */ public boolean hasTarget() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .messages.RobotLocation target = 5;</code> */ public messages.RobotLocation getTarget() { return target_; } /** * <code>optional .messages.RobotLocation target = 5;</code> */ public messages.RobotLocationOrBuilder getTargetOrBuilder() { return target_; } // optional .messages.RobotLocation speeds = 6; public static final int SPEEDS_FIELD_NUMBER = 6; private messages.RobotLocation speeds_; /** * <code>optional .messages.RobotLocation speeds = 6;</code> */ public boolean hasSpeeds() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .messages.RobotLocation speeds = 6;</code> */ public messages.RobotLocation getSpeeds() { return speeds_; } /** * <code>optional .messages.RobotLocation speeds = 6;</code> */ public messages.RobotLocationOrBuilder getSpeedsOrBuilder() { return speeds_; } // repeated float select_ratios = 7; public static final int SELECT_RATIOS_FIELD_NUMBER = 7; private java.util.List<java.lang.Float> selectRatios_; /** * <code>repeated float select_ratios = 7;</code> */ public java.util.List<java.lang.Float> getSelectRatiosList() { return selectRatios_; } /** * <code>repeated float select_ratios = 7;</code> */ public int getSelectRatiosCount() { return selectRatios_.size(); } /** * <code>repeated float select_ratios = 7;</code> */ public float getSelectRatios(int index) { return selectRatios_.get(index); } // optional bool ground_contact_safe = 8; public static final int GROUND_CONTACT_SAFE_FIELD_NUMBER = 8; private boolean groundContactSafe_; /** * <code>optional bool ground_contact_safe = 8;</code> */ public boolean hasGroundContactSafe() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional bool ground_contact_safe = 8;</code> */ public boolean getGroundContactSafe() { return groundContactSafe_; } // optional bool instable = 9; public static final int INSTABLE_FIELD_NUMBER = 9; private boolean instable_; /** * <code>optional bool instable = 9;</code> */ public boolean hasInstable() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional bool instable = 9;</code> */ public boolean getInstable() { return instable_; } private void initFields() { motionType_ = 0; motionName_ = ""; selectedMotionType_ = 0; selectedMotionName_ = ""; target_ = messages.RobotLocation.getDefaultInstance(); speeds_ = messages.RobotLocation.getDefaultInstance(); selectRatios_ = java.util.Collections.emptyList(); groundContactSafe_ = false; instable_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, motionType_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getMotionNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, selectedMotionType_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getSelectedMotionNameBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, target_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, speeds_); } for (int i = 0; i < selectRatios_.size(); i++) { output.writeFloat(7, selectRatios_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(8, groundContactSafe_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(9, instable_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, motionType_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getMotionNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, selectedMotionType_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getSelectedMotionNameBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, target_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, speeds_); } { int dataSize = 0; dataSize = 4 * getSelectRatiosList().size(); size += dataSize; size += 1 * getSelectRatiosList().size(); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, groundContactSafe_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, instable_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static messages.WalkProvider.BHDebug parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static messages.WalkProvider.BHDebug parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static messages.WalkProvider.BHDebug parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static messages.WalkProvider.BHDebug parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static messages.WalkProvider.BHDebug parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static messages.WalkProvider.BHDebug parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static messages.WalkProvider.BHDebug parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static messages.WalkProvider.BHDebug parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static messages.WalkProvider.BHDebug parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static messages.WalkProvider.BHDebug parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(messages.WalkProvider.BHDebug prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code messages.WalkProvider.BHDebug} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements messages.WalkProvider.BHDebugOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return messages._File_Motion.internal_static_messages_WalkProvider_BHDebug_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return messages._File_Motion.internal_static_messages_WalkProvider_BHDebug_fieldAccessorTable .ensureFieldAccessorsInitialized( messages.WalkProvider.BHDebug.class, messages.WalkProvider.BHDebug.Builder.class); } // Construct using messages.WalkProvider.BHDebug.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTargetFieldBuilder(); getSpeedsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); motionType_ = 0; bitField0_ = (bitField0_ & ~0x00000001); motionName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); selectedMotionType_ = 0; bitField0_ = (bitField0_ & ~0x00000004); selectedMotionName_ = ""; bitField0_ = (bitField0_ & ~0x00000008); if (targetBuilder_ == null) { target_ = messages.RobotLocation.getDefaultInstance(); } else { targetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (speedsBuilder_ == null) { speeds_ = messages.RobotLocation.getDefaultInstance(); } else { speedsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); selectRatios_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); groundContactSafe_ = false; bitField0_ = (bitField0_ & ~0x00000080); instable_ = false; bitField0_ = (bitField0_ & ~0x00000100); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return messages._File_Motion.internal_static_messages_WalkProvider_BHDebug_descriptor; } public messages.WalkProvider.BHDebug getDefaultInstanceForType() { return messages.WalkProvider.BHDebug.getDefaultInstance(); } public messages.WalkProvider.BHDebug build() { messages.WalkProvider.BHDebug result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public messages.WalkProvider.BHDebug buildPartial() { messages.WalkProvider.BHDebug result = new messages.WalkProvider.BHDebug(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.motionType_ = motionType_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.motionName_ = motionName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.selectedMotionType_ = selectedMotionType_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.selectedMotionName_ = selectedMotionName_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (speedsBuilder_ == null) { result.speeds_ = speeds_; } else { result.speeds_ = speedsBuilder_.build(); } if (((bitField0_ & 0x00000040) == 0x00000040)) { selectRatios_ = java.util.Collections.unmodifiableList(selectRatios_); bitField0_ = (bitField0_ & ~0x00000040); } result.selectRatios_ = selectRatios_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } result.groundContactSafe_ = groundContactSafe_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000080; } result.instable_ = instable_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof messages.WalkProvider.BHDebug) { return mergeFrom((messages.WalkProvider.BHDebug)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(messages.WalkProvider.BHDebug other) { if (other == messages.WalkProvider.BHDebug.getDefaultInstance()) return this; if (other.hasMotionType()) { setMotionType(other.getMotionType()); } if (other.hasMotionName()) { bitField0_ |= 0x00000002; motionName_ = other.motionName_; onChanged(); } if (other.hasSelectedMotionType()) { setSelectedMotionType(other.getSelectedMotionType()); } if (other.hasSelectedMotionName()) { bitField0_ |= 0x00000008; selectedMotionName_ = other.selectedMotionName_; onChanged(); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (other.hasSpeeds()) { mergeSpeeds(other.getSpeeds()); } if (!other.selectRatios_.isEmpty()) { if (selectRatios_.isEmpty()) { selectRatios_ = other.selectRatios_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureSelectRatiosIsMutable(); selectRatios_.addAll(other.selectRatios_); } onChanged(); } if (other.hasGroundContactSafe()) { setGroundContactSafe(other.getGroundContactSafe()); } if (other.hasInstable()) { setInstable(other.getInstable()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { messages.WalkProvider.BHDebug parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (messages.WalkProvider.BHDebug) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional uint32 motion_type = 1; private int motionType_ ; /** * <code>optional uint32 motion_type = 1;</code> */ public boolean hasMotionType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 motion_type = 1;</code> */ public int getMotionType() { return motionType_; } /** * <code>optional uint32 motion_type = 1;</code> */ public Builder setMotionType(int value) { bitField0_ |= 0x00000001; motionType_ = value; onChanged(); return this; } /** * <code>optional uint32 motion_type = 1;</code> */ public Builder clearMotionType() { bitField0_ = (bitField0_ & ~0x00000001); motionType_ = 0; onChanged(); return this; } // optional string motion_name = 2; private java.lang.Object motionName_ = ""; /** * <code>optional string motion_name = 2;</code> */ public boolean hasMotionName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string motion_name = 2;</code> */ public java.lang.String getMotionName() { java.lang.Object ref = motionName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); motionName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string motion_name = 2;</code> */ public com.google.protobuf.ByteString getMotionNameBytes() { java.lang.Object ref = motionName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); motionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string motion_name = 2;</code> */ public Builder setMotionName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; motionName_ = value; onChanged(); return this; } /** * <code>optional string motion_name = 2;</code> */ public Builder clearMotionName() { bitField0_ = (bitField0_ & ~0x00000002); motionName_ = getDefaultInstance().getMotionName(); onChanged(); return this; } /** * <code>optional string motion_name = 2;</code> */ public Builder setMotionNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; motionName_ = value; onChanged(); return this; } // optional uint32 selected_motion_type = 3; private int selectedMotionType_ ; /** * <code>optional uint32 selected_motion_type = 3;</code> */ public boolean hasSelectedMotionType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 selected_motion_type = 3;</code> */ public int getSelectedMotionType() { return selectedMotionType_; } /** * <code>optional uint32 selected_motion_type = 3;</code> */ public Builder setSelectedMotionType(int value) { bitField0_ |= 0x00000004; selectedMotionType_ = value; onChanged(); return this; } /** * <code>optional uint32 selected_motion_type = 3;</code> */ public Builder clearSelectedMotionType() { bitField0_ = (bitField0_ & ~0x00000004); selectedMotionType_ = 0; onChanged(); return this; } // optional string selected_motion_name = 4; private java.lang.Object selectedMotionName_ = ""; /** * <code>optional string selected_motion_name = 4;</code> */ public boolean hasSelectedMotionName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string selected_motion_name = 4;</code> */ public java.lang.String getSelectedMotionName() { java.lang.Object ref = selectedMotionName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); selectedMotionName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string selected_motion_name = 4;</code> */ public com.google.protobuf.ByteString getSelectedMotionNameBytes() { java.lang.Object ref = selectedMotionName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); selectedMotionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string selected_motion_name = 4;</code> */ public Builder setSelectedMotionName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; selectedMotionName_ = value; onChanged(); return this; } /** * <code>optional string selected_motion_name = 4;</code> */ public Builder clearSelectedMotionName() { bitField0_ = (bitField0_ & ~0x00000008); selectedMotionName_ = getDefaultInstance().getSelectedMotionName(); onChanged(); return this; } /** * <code>optional string selected_motion_name = 4;</code> */ public Builder setSelectedMotionNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; selectedMotionName_ = value; onChanged(); return this; } // optional .messages.RobotLocation target = 5; private messages.RobotLocation target_ = messages.RobotLocation.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< messages.RobotLocation, messages.RobotLocation.Builder, messages.RobotLocationOrBuilder> targetBuilder_; /** * <code>optional .messages.RobotLocation target = 5;</code> */ public boolean hasTarget() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .messages.RobotLocation target = 5;</code> */ public messages.RobotLocation getTarget() { if (targetBuilder_ == null) { return target_; } else { return targetBuilder_.getMessage(); } } /** * <code>optional .messages.RobotLocation target = 5;</code> */ public Builder setTarget(messages.RobotLocation value) { if (targetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } target_ = value; onChanged(); } else { targetBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .messages.RobotLocation target = 5;</code> */ public Builder setTarget( messages.RobotLocation.Builder builderForValue) { if (targetBuilder_ == null) { target_ = builderForValue.build(); onChanged(); } else { targetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .messages.RobotLocation target = 5;</code> */ public Builder mergeTarget(messages.RobotLocation value) { if (targetBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && target_ != messages.RobotLocation.getDefaultInstance()) { target_ = messages.RobotLocation.newBuilder(target_).mergeFrom(value).buildPartial(); } else { target_ = value; } onChanged(); } else { targetBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .messages.RobotLocation target = 5;</code> */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = messages.RobotLocation.getDefaultInstance(); onChanged(); } else { targetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * <code>optional .messages.RobotLocation target = 5;</code> */ public messages.RobotLocation.Builder getTargetBuilder() { bitField0_ |= 0x00000010; onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * <code>optional .messages.RobotLocation target = 5;</code> */ public messages.RobotLocationOrBuilder getTargetOrBuilder() { if (targetBuilder_ != null) { return targetBuilder_.getMessageOrBuilder(); } else { return target_; } } /** * <code>optional .messages.RobotLocation target = 5;</code> */ private com.google.protobuf.SingleFieldBuilder< messages.RobotLocation, messages.RobotLocation.Builder, messages.RobotLocationOrBuilder> getTargetFieldBuilder() { if (targetBuilder_ == null) { targetBuilder_ = new com.google.protobuf.SingleFieldBuilder< messages.RobotLocation, messages.RobotLocation.Builder, messages.RobotLocationOrBuilder>( target_, getParentForChildren(), isClean()); target_ = null; } return targetBuilder_; } // optional .messages.RobotLocation speeds = 6; private messages.RobotLocation speeds_ = messages.RobotLocation.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< messages.RobotLocation, messages.RobotLocation.Builder, messages.RobotLocationOrBuilder> speedsBuilder_; /** * <code>optional .messages.RobotLocation speeds = 6;</code> */ public boolean hasSpeeds() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .messages.RobotLocation speeds = 6;</code> */ public messages.RobotLocation getSpeeds() { if (speedsBuilder_ == null) { return speeds_; } else { return speedsBuilder_.getMessage(); } } /** * <code>optional .messages.RobotLocation speeds = 6;</code> */ public Builder setSpeeds(messages.RobotLocation value) { if (speedsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } speeds_ = value; onChanged(); } else { speedsBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .messages.RobotLocation speeds = 6;</code> */ public Builder setSpeeds( messages.RobotLocation.Builder builderForValue) { if (speedsBuilder_ == null) { speeds_ = builderForValue.build(); onChanged(); } else { speedsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .messages.RobotLocation speeds = 6;</code> */ public Builder mergeSpeeds(messages.RobotLocation value) { if (speedsBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && speeds_ != messages.RobotLocation.getDefaultInstance()) { speeds_ = messages.RobotLocation.newBuilder(speeds_).mergeFrom(value).buildPartial(); } else { speeds_ = value; } onChanged(); } else { speedsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .messages.RobotLocation speeds = 6;</code> */ public Builder clearSpeeds() { if (speedsBuilder_ == null) { speeds_ = messages.RobotLocation.getDefaultInstance(); onChanged(); } else { speedsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * <code>optional .messages.RobotLocation speeds = 6;</code> */ public messages.RobotLocation.Builder getSpeedsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getSpeedsFieldBuilder().getBuilder(); } /** * <code>optional .messages.RobotLocation speeds = 6;</code> */ public messages.RobotLocationOrBuilder getSpeedsOrBuilder() { if (speedsBuilder_ != null) { return speedsBuilder_.getMessageOrBuilder(); } else { return speeds_; } } /** * <code>optional .messages.RobotLocation speeds = 6;</code> */ private com.google.protobuf.SingleFieldBuilder< messages.RobotLocation, messages.RobotLocation.Builder, messages.RobotLocationOrBuilder> getSpeedsFieldBuilder() { if (speedsBuilder_ == null) { speedsBuilder_ = new com.google.protobuf.SingleFieldBuilder< messages.RobotLocation, messages.RobotLocation.Builder, messages.RobotLocationOrBuilder>( speeds_, getParentForChildren(), isClean()); speeds_ = null; } return speedsBuilder_; } // repeated float select_ratios = 7; private java.util.List<java.lang.Float> selectRatios_ = java.util.Collections.emptyList(); private void ensureSelectRatiosIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { selectRatios_ = new java.util.ArrayList<java.lang.Float>(selectRatios_); bitField0_ |= 0x00000040; } } /** * <code>repeated float select_ratios = 7;</code> */ public java.util.List<java.lang.Float> getSelectRatiosList() { return java.util.Collections.unmodifiableList(selectRatios_); } /** * <code>repeated float select_ratios = 7;</code> */ public int getSelectRatiosCount() { return selectRatios_.size(); } /** * <code>repeated float select_ratios = 7;</code> */ public float getSelectRatios(int index) { return selectRatios_.get(index); } /** * <code>repeated float select_ratios = 7;</code> */ public Builder setSelectRatios( int index, float value) { ensureSelectRatiosIsMutable(); selectRatios_.set(index, value); onChanged(); return this; } /** * <code>repeated float select_ratios = 7;</code> */ public Builder addSelectRatios(float value) { ensureSelectRatiosIsMutable(); selectRatios_.add(value); onChanged(); return this; } /** * <code>repeated float select_ratios = 7;</code> */ public Builder addAllSelectRatios( java.lang.Iterable<? extends java.lang.Float> values) { ensureSelectRatiosIsMutable(); super.addAll(values, selectRatios_); onChanged(); return this; } /** * <code>repeated float select_ratios = 7;</code> */ public Builder clearSelectRatios() { selectRatios_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } // optional bool ground_contact_safe = 8; private boolean groundContactSafe_ ; /** * <code>optional bool ground_contact_safe = 8;</code> */ public boolean hasGroundContactSafe() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional bool ground_contact_safe = 8;</code> */ public boolean getGroundContactSafe() { return groundContactSafe_; } /** * <code>optional bool ground_contact_safe = 8;</code> */ public Builder setGroundContactSafe(boolean value) { bitField0_ |= 0x00000080; groundContactSafe_ = value; onChanged(); return this; } /** * <code>optional bool ground_contact_safe = 8;</code> */ public Builder clearGroundContactSafe() { bitField0_ = (bitField0_ & ~0x00000080); groundContactSafe_ = false; onChanged(); return this; } // optional bool instable = 9; private boolean instable_ ; /** * <code>optional bool instable = 9;</code> */ public boolean hasInstable() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional bool instable = 9;</code> */ public boolean getInstable() { return instable_; } /** * <code>optional bool instable = 9;</code> */ public Builder setInstable(boolean value) { bitField0_ |= 0x00000100; instable_ = value; onChanged(); return this; } /** * <code>optional bool instable = 9;</code> */ public Builder clearInstable() { bitField0_ = (bitField0_ & ~0x00000100); instable_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:messages.WalkProvider.BHDebug) } static { defaultInstance = new BHDebug(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:messages.WalkProvider.BHDebug) } private int bitField0_; // optional bool active = 1; public static final int ACTIVE_FIELD_NUMBER = 1; private boolean active_; /** * <code>optional bool active = 1;</code> */ public boolean hasActive() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional bool active = 1;</code> */ public boolean getActive() { return active_; } // optional bool is_walking = 2; public static final int IS_WALKING_FIELD_NUMBER = 2; private boolean isWalking_; /** * <code>optional bool is_walking = 2;</code> */ public boolean hasIsWalking() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool is_walking = 2;</code> */ public boolean getIsWalking() { return isWalking_; } // optional bool stopping = 3; public static final int STOPPING_FIELD_NUMBER = 3; private boolean stopping_; /** * <code>optional bool stopping = 3;</code> */ public boolean hasStopping() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool stopping = 3;</code> */ public boolean getStopping() { return stopping_; } // optional bool requested_to_stop = 4; public static final int REQUESTED_TO_STOP_FIELD_NUMBER = 4; private boolean requestedToStop_; /** * <code>optional bool requested_to_stop = 4;</code> */ public boolean hasRequestedToStop() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bool requested_to_stop = 4;</code> */ public boolean getRequestedToStop() { return requestedToStop_; } // optional bool is_standing = 5; public static final int IS_STANDING_FIELD_NUMBER = 5; private boolean isStanding_; /** * <code>optional bool is_standing = 5;</code> */ public boolean hasIsStanding() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool is_standing = 5;</code> */ public boolean getIsStanding() { return isStanding_; } // optional bool calibrated = 6; public static final int CALIBRATED_FIELD_NUMBER = 6; private boolean calibrated_; /** * <code>optional bool calibrated = 6;</code> */ public boolean hasCalibrated() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional bool calibrated = 6;</code> */ public boolean getCalibrated() { return calibrated_; } // optional int32 command_type = 8; public static final int COMMAND_TYPE_FIELD_NUMBER = 8; private int commandType_; /** * <code>optional int32 command_type = 8;</code> */ public boolean hasCommandType() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional int32 command_type = 8;</code> */ public int getCommandType() { return commandType_; } // optional .messages.WalkProvider.BHDebug bhdebug = 7; public static final int BHDEBUG_FIELD_NUMBER = 7; private messages.WalkProvider.BHDebug bhdebug_; /** * <code>optional .messages.WalkProvider.BHDebug bhdebug = 7;</code> */ public boolean hasBhdebug() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional .messages.WalkProvider.BHDebug bhdebug = 7;</code> */ public messages.WalkProvider.BHDebug getBhdebug() { return bhdebug_; } /** * <code>optional .messages.WalkProvider.BHDebug bhdebug = 7;</code> */ public messages.WalkProvider.BHDebugOrBuilder getBhdebugOrBuilder() { return bhdebug_; } private void initFields() { active_ = false; isWalking_ = false; stopping_ = false; requestedToStop_ = false; isStanding_ = false; calibrated_ = false; commandType_ = 0; bhdebug_ = messages.WalkProvider.BHDebug.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(1, active_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, isWalking_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, stopping_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, requestedToStop_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, isStanding_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(6, calibrated_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(7, bhdebug_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt32(8, commandType_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, active_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isWalking_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, stopping_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, requestedToStop_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isStanding_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, calibrated_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, bhdebug_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, commandType_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static messages.WalkProvider parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static messages.WalkProvider parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static messages.WalkProvider parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static messages.WalkProvider parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static messages.WalkProvider parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static messages.WalkProvider parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static messages.WalkProvider parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static messages.WalkProvider parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static messages.WalkProvider parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static messages.WalkProvider parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(messages.WalkProvider prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code messages.WalkProvider} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements messages.WalkProviderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return messages._File_Motion.internal_static_messages_WalkProvider_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return messages._File_Motion.internal_static_messages_WalkProvider_fieldAccessorTable .ensureFieldAccessorsInitialized( messages.WalkProvider.class, messages.WalkProvider.Builder.class); } // Construct using messages.WalkProvider.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getBhdebugFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); active_ = false; bitField0_ = (bitField0_ & ~0x00000001); isWalking_ = false; bitField0_ = (bitField0_ & ~0x00000002); stopping_ = false; bitField0_ = (bitField0_ & ~0x00000004); requestedToStop_ = false; bitField0_ = (bitField0_ & ~0x00000008); isStanding_ = false; bitField0_ = (bitField0_ & ~0x00000010); calibrated_ = false; bitField0_ = (bitField0_ & ~0x00000020); commandType_ = 0; bitField0_ = (bitField0_ & ~0x00000040); if (bhdebugBuilder_ == null) { bhdebug_ = messages.WalkProvider.BHDebug.getDefaultInstance(); } else { bhdebugBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return messages._File_Motion.internal_static_messages_WalkProvider_descriptor; } public messages.WalkProvider getDefaultInstanceForType() { return messages.WalkProvider.getDefaultInstance(); } public messages.WalkProvider build() { messages.WalkProvider result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public messages.WalkProvider buildPartial() { messages.WalkProvider result = new messages.WalkProvider(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.active_ = active_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.isWalking_ = isWalking_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.stopping_ = stopping_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.requestedToStop_ = requestedToStop_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.isStanding_ = isStanding_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.calibrated_ = calibrated_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.commandType_ = commandType_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (bhdebugBuilder_ == null) { result.bhdebug_ = bhdebug_; } else { result.bhdebug_ = bhdebugBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof messages.WalkProvider) { return mergeFrom((messages.WalkProvider)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(messages.WalkProvider other) { if (other == messages.WalkProvider.getDefaultInstance()) return this; if (other.hasActive()) { setActive(other.getActive()); } if (other.hasIsWalking()) { setIsWalking(other.getIsWalking()); } if (other.hasStopping()) { setStopping(other.getStopping()); } if (other.hasRequestedToStop()) { setRequestedToStop(other.getRequestedToStop()); } if (other.hasIsStanding()) { setIsStanding(other.getIsStanding()); } if (other.hasCalibrated()) { setCalibrated(other.getCalibrated()); } if (other.hasCommandType()) { setCommandType(other.getCommandType()); } if (other.hasBhdebug()) { mergeBhdebug(other.getBhdebug()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { messages.WalkProvider parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (messages.WalkProvider) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional bool active = 1; private boolean active_ ; /** * <code>optional bool active = 1;</code> */ public boolean hasActive() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional bool active = 1;</code> */ public boolean getActive() { return active_; } /** * <code>optional bool active = 1;</code> */ public Builder setActive(boolean value) { bitField0_ |= 0x00000001; active_ = value; onChanged(); return this; } /** * <code>optional bool active = 1;</code> */ public Builder clearActive() { bitField0_ = (bitField0_ & ~0x00000001); active_ = false; onChanged(); return this; } // optional bool is_walking = 2; private boolean isWalking_ ; /** * <code>optional bool is_walking = 2;</code> */ public boolean hasIsWalking() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool is_walking = 2;</code> */ public boolean getIsWalking() { return isWalking_; } /** * <code>optional bool is_walking = 2;</code> */ public Builder setIsWalking(boolean value) { bitField0_ |= 0x00000002; isWalking_ = value; onChanged(); return this; } /** * <code>optional bool is_walking = 2;</code> */ public Builder clearIsWalking() { bitField0_ = (bitField0_ & ~0x00000002); isWalking_ = false; onChanged(); return this; } // optional bool stopping = 3; private boolean stopping_ ; /** * <code>optional bool stopping = 3;</code> */ public boolean hasStopping() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool stopping = 3;</code> */ public boolean getStopping() { return stopping_; } /** * <code>optional bool stopping = 3;</code> */ public Builder setStopping(boolean value) { bitField0_ |= 0x00000004; stopping_ = value; onChanged(); return this; } /** * <code>optional bool stopping = 3;</code> */ public Builder clearStopping() { bitField0_ = (bitField0_ & ~0x00000004); stopping_ = false; onChanged(); return this; } // optional bool requested_to_stop = 4; private boolean requestedToStop_ ; /** * <code>optional bool requested_to_stop = 4;</code> */ public boolean hasRequestedToStop() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bool requested_to_stop = 4;</code> */ public boolean getRequestedToStop() { return requestedToStop_; } /** * <code>optional bool requested_to_stop = 4;</code> */ public Builder setRequestedToStop(boolean value) { bitField0_ |= 0x00000008; requestedToStop_ = value; onChanged(); return this; } /** * <code>optional bool requested_to_stop = 4;</code> */ public Builder clearRequestedToStop() { bitField0_ = (bitField0_ & ~0x00000008); requestedToStop_ = false; onChanged(); return this; } // optional bool is_standing = 5; private boolean isStanding_ ; /** * <code>optional bool is_standing = 5;</code> */ public boolean hasIsStanding() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool is_standing = 5;</code> */ public boolean getIsStanding() { return isStanding_; } /** * <code>optional bool is_standing = 5;</code> */ public Builder setIsStanding(boolean value) { bitField0_ |= 0x00000010; isStanding_ = value; onChanged(); return this; } /** * <code>optional bool is_standing = 5;</code> */ public Builder clearIsStanding() { bitField0_ = (bitField0_ & ~0x00000010); isStanding_ = false; onChanged(); return this; } // optional bool calibrated = 6; private boolean calibrated_ ; /** * <code>optional bool calibrated = 6;</code> */ public boolean hasCalibrated() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional bool calibrated = 6;</code> */ public boolean getCalibrated() { return calibrated_; } /** * <code>optional bool calibrated = 6;</code> */ public Builder setCalibrated(boolean value) { bitField0_ |= 0x00000020; calibrated_ = value; onChanged(); return this; } /** * <code>optional bool calibrated = 6;</code> */ public Builder clearCalibrated() { bitField0_ = (bitField0_ & ~0x00000020); calibrated_ = false; onChanged(); return this; } // optional int32 command_type = 8; private int commandType_ ; /** * <code>optional int32 command_type = 8;</code> */ public boolean hasCommandType() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional int32 command_type = 8;</code> */ public int getCommandType() { return commandType_; } /** * <code>optional int32 command_type = 8;</code> */ public Builder setCommandType(int value) { bitField0_ |= 0x00000040; commandType_ = value; onChanged(); return this; } /** * <code>optional int32 command_type = 8;</code> */ public Builder clearCommandType() { bitField0_ = (bitField0_ & ~0x00000040); commandType_ = 0; onChanged(); return this; } // optional .messages.WalkProvider.BHDebug bhdebug = 7; private messages.WalkProvider.BHDebug bhdebug_ = messages.WalkProvider.BHDebug.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< messages.WalkProvider.BHDebug, messages.WalkProvider.BHDebug.Builder, messages.WalkProvider.BHDebugOrBuilder> bhdebugBuilder_; /** * <code>optional .messages.WalkProvider.BHDebug bhdebug = 7;</code> */ public boolean hasBhdebug() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional .messages.WalkProvider.BHDebug bhdebug = 7;</code> */ public messages.WalkProvider.BHDebug getBhdebug() { if (bhdebugBuilder_ == null) { return bhdebug_; } else { return bhdebugBuilder_.getMessage(); } } /** * <code>optional .messages.WalkProvider.BHDebug bhdebug = 7;</code> */ public Builder setBhdebug(messages.WalkProvider.BHDebug value) { if (bhdebugBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bhdebug_ = value; onChanged(); } else { bhdebugBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .messages.WalkProvider.BHDebug bhdebug = 7;</code> */ public Builder setBhdebug( messages.WalkProvider.BHDebug.Builder builderForValue) { if (bhdebugBuilder_ == null) { bhdebug_ = builderForValue.build(); onChanged(); } else { bhdebugBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .messages.WalkProvider.BHDebug bhdebug = 7;</code> */ public Builder mergeBhdebug(messages.WalkProvider.BHDebug value) { if (bhdebugBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && bhdebug_ != messages.WalkProvider.BHDebug.getDefaultInstance()) { bhdebug_ = messages.WalkProvider.BHDebug.newBuilder(bhdebug_).mergeFrom(value).buildPartial(); } else { bhdebug_ = value; } onChanged(); } else { bhdebugBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .messages.WalkProvider.BHDebug bhdebug = 7;</code> */ public Builder clearBhdebug() { if (bhdebugBuilder_ == null) { bhdebug_ = messages.WalkProvider.BHDebug.getDefaultInstance(); onChanged(); } else { bhdebugBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * <code>optional .messages.WalkProvider.BHDebug bhdebug = 7;</code> */ public messages.WalkProvider.BHDebug.Builder getBhdebugBuilder() { bitField0_ |= 0x00000080; onChanged(); return getBhdebugFieldBuilder().getBuilder(); } /** * <code>optional .messages.WalkProvider.BHDebug bhdebug = 7;</code> */ public messages.WalkProvider.BHDebugOrBuilder getBhdebugOrBuilder() { if (bhdebugBuilder_ != null) { return bhdebugBuilder_.getMessageOrBuilder(); } else { return bhdebug_; } } /** * <code>optional .messages.WalkProvider.BHDebug bhdebug = 7;</code> */ private com.google.protobuf.SingleFieldBuilder< messages.WalkProvider.BHDebug, messages.WalkProvider.BHDebug.Builder, messages.WalkProvider.BHDebugOrBuilder> getBhdebugFieldBuilder() { if (bhdebugBuilder_ == null) { bhdebugBuilder_ = new com.google.protobuf.SingleFieldBuilder< messages.WalkProvider.BHDebug, messages.WalkProvider.BHDebug.Builder, messages.WalkProvider.BHDebugOrBuilder>( bhdebug_, getParentForChildren(), isClean()); bhdebug_ = null; } return bhdebugBuilder_; } // @@protoc_insertion_point(builder_scope:messages.WalkProvider) } static { defaultInstance = new WalkProvider(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:messages.WalkProvider) }