com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this;
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.activequant.messages.AQMessages.CustomCommand) { return mergeFrom((com.activequant.messages.AQMessages.CustomCommand)other); } else { super.mergeFrom(other); return this; } }
private static Builder create() { return new Builder(); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
private Builder() { maybeForceBuilderInitialization(); }
public com.activequant.messages.AQMessages.CustomCommand build() { com.activequant.messages.AQMessages.CustomCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * * @param msg * @return */ public BaseMessage buildCustomCommand(String msg) { AQMessages.CustomCommand l = AQMessages.CustomCommand.newBuilder() .setCommand(msg).build(); return wrap(BaseMessage.CommandType.CUST_CMD, AQMessages.CustomCommand.cmd, l); }
public Builder mergeFrom(com.activequant.messages.AQMessages.CustomCommand other) { if (other == com.activequant.messages.AQMessages.CustomCommand.getDefaultInstance()) return this; if (other.hasCommand()) { setCommand(other.getCommand()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
public static com.activequant.messages.AQMessages.CustomCommand parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.activequant.messages.AQMessages.CustomCommand parseFrom(
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends
public static com.activequant.messages.AQMessages.CustomCommand parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); }
public static com.activequant.messages.AQMessages.CustomCommand parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.activequant.messages.AQMessages.CustomCommand parseDelimitedFrom(java.io.InputStream input)
public static com.activequant.messages.AQMessages.CustomCommand parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.activequant.messages.AQMessages.CustomCommand parseDelimitedFrom(
public static Builder newBuilder(com.activequant.messages.AQMessages.CustomCommand prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public static com.activequant.messages.AQMessages.CustomCommand parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.activequant.messages.AQMessages.CustomCommand parseFrom(java.io.InputStream input)
public static com.activequant.messages.AQMessages.CustomCommand parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.activequant.messages.AQMessages.CustomCommand parseFrom(byte[] data)
private com.activequant.messages.AQMessages.CustomCommand buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.activequant.messages.AQMessages.CustomCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; }
public final boolean isInitialized() { if (!hasCommand()) { return false; } return true; }