// Generated by the protocol buffer compiler. DO NOT EDIT! // source: PMotion.proto package messages; /** * Protobuf type {@code messages.WalkCommand} */ public final class WalkCommand extends com.google.protobuf.GeneratedMessage implements WalkCommandOrBuilder { // Use WalkCommand.newBuilder() to construct. private WalkCommand(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private WalkCommand(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final WalkCommand defaultInstance; public static WalkCommand getDefaultInstance() { return defaultInstance; } public WalkCommand getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WalkCommand( 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 13: { bitField0_ |= 0x00000001; xPercent_ = input.readFloat(); break; } case 21: { bitField0_ |= 0x00000002; yPercent_ = input.readFloat(); break; } case 29: { bitField0_ |= 0x00000004; hPercent_ = input.readFloat(); 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_PMotion.internal_static_messages_WalkCommand_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return messages._File_PMotion.internal_static_messages_WalkCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( messages.WalkCommand.class, messages.WalkCommand.Builder.class); } public static com.google.protobuf.Parser<WalkCommand> PARSER = new com.google.protobuf.AbstractParser<WalkCommand>() { public WalkCommand parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WalkCommand(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<WalkCommand> getParserForType() { return PARSER; } private int bitField0_; // optional float x_percent = 1; public static final int X_PERCENT_FIELD_NUMBER = 1; private float xPercent_; /** * <code>optional float x_percent = 1;</code> */ public boolean hasXPercent() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional float x_percent = 1;</code> */ public float getXPercent() { return xPercent_; } // optional float y_percent = 2; public static final int Y_PERCENT_FIELD_NUMBER = 2; private float yPercent_; /** * <code>optional float y_percent = 2;</code> */ public boolean hasYPercent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional float y_percent = 2;</code> */ public float getYPercent() { return yPercent_; } // optional float h_percent = 3; public static final int H_PERCENT_FIELD_NUMBER = 3; private float hPercent_; /** * <code>optional float h_percent = 3;</code> */ public boolean hasHPercent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional float h_percent = 3;</code> */ public float getHPercent() { return hPercent_; } private void initFields() { xPercent_ = 0F; yPercent_ = 0F; hPercent_ = 0F; } 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.writeFloat(1, xPercent_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeFloat(2, yPercent_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeFloat(3, hPercent_); } 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 .computeFloatSize(1, xPercent_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(2, yPercent_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(3, hPercent_); } 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.WalkCommand parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static messages.WalkCommand parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static messages.WalkCommand parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static messages.WalkCommand parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static messages.WalkCommand parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static messages.WalkCommand parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static messages.WalkCommand parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static messages.WalkCommand parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static messages.WalkCommand parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static messages.WalkCommand 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.WalkCommand 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.WalkCommand} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements messages.WalkCommandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return messages._File_PMotion.internal_static_messages_WalkCommand_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return messages._File_PMotion.internal_static_messages_WalkCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( messages.WalkCommand.class, messages.WalkCommand.Builder.class); } // Construct using messages.WalkCommand.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); xPercent_ = 0F; bitField0_ = (bitField0_ & ~0x00000001); yPercent_ = 0F; bitField0_ = (bitField0_ & ~0x00000002); hPercent_ = 0F; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return messages._File_PMotion.internal_static_messages_WalkCommand_descriptor; } public messages.WalkCommand getDefaultInstanceForType() { return messages.WalkCommand.getDefaultInstance(); } public messages.WalkCommand build() { messages.WalkCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public messages.WalkCommand buildPartial() { messages.WalkCommand result = new messages.WalkCommand(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.xPercent_ = xPercent_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.yPercent_ = yPercent_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.hPercent_ = hPercent_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof messages.WalkCommand) { return mergeFrom((messages.WalkCommand)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(messages.WalkCommand other) { if (other == messages.WalkCommand.getDefaultInstance()) return this; if (other.hasXPercent()) { setXPercent(other.getXPercent()); } if (other.hasYPercent()) { setYPercent(other.getYPercent()); } if (other.hasHPercent()) { setHPercent(other.getHPercent()); } 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.WalkCommand parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (messages.WalkCommand) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional float x_percent = 1; private float xPercent_ ; /** * <code>optional float x_percent = 1;</code> */ public boolean hasXPercent() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional float x_percent = 1;</code> */ public float getXPercent() { return xPercent_; } /** * <code>optional float x_percent = 1;</code> */ public Builder setXPercent(float value) { bitField0_ |= 0x00000001; xPercent_ = value; onChanged(); return this; } /** * <code>optional float x_percent = 1;</code> */ public Builder clearXPercent() { bitField0_ = (bitField0_ & ~0x00000001); xPercent_ = 0F; onChanged(); return this; } // optional float y_percent = 2; private float yPercent_ ; /** * <code>optional float y_percent = 2;</code> */ public boolean hasYPercent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional float y_percent = 2;</code> */ public float getYPercent() { return yPercent_; } /** * <code>optional float y_percent = 2;</code> */ public Builder setYPercent(float value) { bitField0_ |= 0x00000002; yPercent_ = value; onChanged(); return this; } /** * <code>optional float y_percent = 2;</code> */ public Builder clearYPercent() { bitField0_ = (bitField0_ & ~0x00000002); yPercent_ = 0F; onChanged(); return this; } // optional float h_percent = 3; private float hPercent_ ; /** * <code>optional float h_percent = 3;</code> */ public boolean hasHPercent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional float h_percent = 3;</code> */ public float getHPercent() { return hPercent_; } /** * <code>optional float h_percent = 3;</code> */ public Builder setHPercent(float value) { bitField0_ |= 0x00000004; hPercent_ = value; onChanged(); return this; } /** * <code>optional float h_percent = 3;</code> */ public Builder clearHPercent() { bitField0_ = (bitField0_ & ~0x00000004); hPercent_ = 0F; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:messages.WalkCommand) } static { defaultInstance = new WalkCommand(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:messages.WalkCommand) }