public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { skadistats.clarity.wire.common.proto.Demo.CDemoUserCmd parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (skadistats.clarity.wire.common.proto.Demo.CDemoUserCmd) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
private Builder() { maybeForceBuilderInitialization(); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
private static Builder create() { return new Builder(); }
public static Builder newBuilder(skadistats.clarity.wire.common.proto.Demo.CDemoUserCmd prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof skadistats.clarity.wire.common.proto.Demo.CDemoUserCmd) { return mergeFrom((skadistats.clarity.wire.common.proto.Demo.CDemoUserCmd)other); } else { super.mergeFrom(other); return this; } }
public Builder mergeFrom(skadistats.clarity.wire.common.proto.Demo.CDemoUserCmd other) { if (other == skadistats.clarity.wire.common.proto.Demo.CDemoUserCmd.getDefaultInstance()) return this; if (other.hasCmdNumber()) { setCmdNumber(other.getCmdNumber()); } if (other.hasData()) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
public skadistats.clarity.wire.common.proto.Demo.CDemoUserCmd build() { skadistats.clarity.wire.common.proto.Demo.CDemoUserCmd result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
@Override public Demo.CDemoUserCmd parse(Source source) throws IOException { return Demo.CDemoUserCmd.newBuilder() .setCmdNumber(source.readFixedInt32()) .setData(ZeroCopy.wrap(readPacket(source))) .build(); } @Override
@Override public Demo.CDemoUserCmd parse(Source source) throws IOException { return Demo.CDemoUserCmd.newBuilder() .setCmdNumber(source.readFixedInt32()) .setData(ZeroCopy.wrap(readPacket(source))) .build(); } @Override