@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != org.apache.calcite.avatica.proto.Common.StateType.SQL.getNumber()) { output.writeEnum(1, type_); } if (!getSqlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sql_); } if (op_ != org.apache.calcite.avatica.proto.Common.MetaDataOperation.GET_ATTRIBUTES.getNumber()) { output.writeEnum(3, op_); } for (int i = 0; i < args_.size(); i++) { output.writeMessage(4, args_.get(i)); } if (hasArgs_ != false) { output.writeBool(5, hasArgs_); } if (hasSql_ != false) { output.writeBool(6, hasSql_); } if (hasOp_ != false) { output.writeBool(7, hasOp_); } unknownFields.writeTo(output); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != org.apache.calcite.avatica.proto.Common.StateType.SQL.getNumber()) { output.writeEnum(1, type_); } if (!getSqlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sql_); } if (op_ != org.apache.calcite.avatica.proto.Common.MetaDataOperation.GET_ATTRIBUTES.getNumber()) { output.writeEnum(3, op_); } for (int i = 0; i < args_.size(); i++) { output.writeMessage(4, args_.get(i)); } if (hasArgs_ != false) { output.writeBool(5, hasArgs_); } if (hasSql_ != false) { output.writeBool(6, hasSql_); } if (hasOp_ != false) { output.writeBool(7, hasOp_); } unknownFields.writeTo(output); }
.computeEnumSize(1, type_); if (!getSqlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sql_);
.computeEnumSize(1, type_); if (!getSqlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, sql_);
.computeEnumSize(1, type_); if (!getSqlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sql_);
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != org.apache.calcite.avatica.proto.Common.StateType.SQL.getNumber()) { output.writeEnum(1, type_); } if (!getSqlBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 2, sql_); } if (op_ != org.apache.calcite.avatica.proto.Common.MetaDataOperation.GET_ATTRIBUTES.getNumber()) { output.writeEnum(3, op_); } for (int i = 0; i < args_.size(); i++) { output.writeMessage(4, args_.get(i)); } if (hasArgs_ != false) { output.writeBool(5, hasArgs_); } if (hasSql_ != false) { output.writeBool(6, hasSql_); } if (hasOp_ != false) { output.writeBool(7, hasOp_); } }