public void mergeFrom(Input input, BitToUserHandshake message) throws IOException { for (int number = input.readFieldNumber(this); ; number = input.readFieldNumber(this)) { switch (number) { case 0: return; case 2: message.rpcVersion = input.readInt32(); break; case 3: message.status = HandshakeStatus.valueOf(input.readEnum()); break; case 4: message.errorId = input.readString(); break; case 5: message.errorMessage = input.readString(); break; default: input.handleUnknownField(number, this); } } }
public void mergeFrom(Input input, UserToBitHandshake message) throws IOException { for (int number = input.readFieldNumber(this); ; number = input.readFieldNumber(this)) { switch (number) { case 0: return; case 1: message.channel = RpcChannel.valueOf(input.readEnum()); break; case 2: message.supportListening = input.readBool(); break; case 3: message.rpcVersion = input.readInt32(); break; case 4: message.credentials = input.mergeObject(message.credentials, UserCredentials.getSchema()); break; case 5: message.properties = input.mergeObject(message.properties, UserProperties.getSchema()); break; case 6: message.supportComplexTypes = input.readBool(); break; case 7: message.supportTimeout = input.readBool(); break; case 8: message.clientInfos = input.mergeObject(message.clientInfos, RpcEndpointInfos.getSchema()); break; default: input.handleUnknownField(number, this); } } }