Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 37B6010454 for ; Tue, 9 Jul 2013 23:01:45 +0000 (UTC) Received: (qmail 47418 invoked by uid 500); 9 Jul 2013 23:01:44 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 47300 invoked by uid 500); 9 Jul 2013 23:01:44 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Delivered-To: moderator for dev@hbase.apache.org Received: (qmail 9256 invoked by uid 99); 9 Jul 2013 22:45:44 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=FROM_12LTRDOM,HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dburkert@nearinfinity.com designates 64.18.2.163 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nearinfinity.com; s=google; h=date:from:to:message-id:subject:x-mailer:mime-version:content-type; bh=26C2oXRbk1rianDYqu7MXaDC4lGmyz+MZn6Yqg3i6/Y=; b=OD2vdIFaSC9FgkwiKvN3UhUJ5/FZIYuYyDjCARd7s/rDhwYtveGqxwPHuoHcP5VsNW ePAvchR9RsJ83T5EaqHa5thkYAFhCynKQm7437cqLhiWb8Yu1KG4G/okZL+mF1B7rFBn J20V0GgB4vZ2qfoj3csybrQNLkN3oEbQ1zr/8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:message-id:subject:x-mailer:mime-version:content-type :x-gm-message-state; bh=26C2oXRbk1rianDYqu7MXaDC4lGmyz+MZn6Yqg3i6/Y=; b=SzNPiVEB2zpaytEKXl42/I9DY4yC3H2Yt0LQcYfeRWIcNjF0rw1HmujAyTrt0p5wLS emsctDY+jkjTM8lPXwY6/pZLlFUeZvsu7yK6jbSmE2T1CNMgFtjGNPvwRr4gE7ayurLi r+ubotyX+LDJCJmahBAM0PBrgnTfNS54ES0BlwTU7Wpg1TDg8Se3I715AYuk48QMfyBh OWfYz6/YATyC1plWt8ZYFQF2WmwnnkrnH60Jv1M5nz++vWzEjjRZ2fXP0IePtk2UleYS evbhx4TJYJuODQO+ged3n/+3435eJVBL3gcomWwl9F5m/qAVUKhVD1C46AxwIerbtHS1 R80w== X-Received: by 10.229.158.3 with SMTP id d3mr5291958qcx.72.1373409918525; Tue, 09 Jul 2013 15:45:18 -0700 (PDT) X-Received: by 10.229.158.3 with SMTP id d3mr5291956qcx.72.1373409918462; Tue, 09 Jul 2013 15:45:18 -0700 (PDT) Date: Tue, 9 Jul 2013 18:45:15 -0400 From: Dan Burkert To: dev@hbase.apache.org Message-ID: <7BCE69A78D3D483587E44040588BD6C0@nearinfinity.com> Subject: Protobuf message style X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="51dc927b_310c50b3_e9" X-Gm-Message-State: ALoCoQnGPisD0ZcOYnvSKYx2HHTFvQ6JaXzMzQlT8vkwt+ay3s5epBHqbj2QyKVWKWi80gpYCqVv4WlAX5G0Ik7fKEwr/lXmAVymY3Zsk6MUAfKurcFet4CR105G775IhQuCIUhpDAHddmOTq3IArLIteYbrPh6agdjdm9FyVqPGeGElPRWDgA4= X-Virus-Checked: Checked by ClamAV on apache.org --51dc927b_310c50b3_e9 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Google's protobuf style guide (https://developers.google.com/protocol-buffers/docs/style) lays out the convention that message field names should be underscore_seperated and services should be MixedCase. The .proto's in trunk do not follow this style; instead they follow Java naming conventions. The protobuf compiler will automatically change the style of names to match the language it is compiling for, but it is unable to do so if the protobuf style is not used. As a result, using the HBase proto files from languages with different naming conventions than Java is a little bit more painful. Since a core feature of moving to protobufs is opening the door to wire compatible implementations in other languages, I think this may want to be addressed. This commit (https://github.com/danburkert/hbase/commit/6f23cb3a0da99c0cd6dbc6ac7c548dffb833e106) on my fork changes the naming convention in the protos. As you can see, the resulting .java files that the protobuf compiler puts out are functionally the same (with the same correct Java naming style). If requested I will happily create a JIRA and add the commit as a patch. -- Dan Burkert --51dc927b_310c50b3_e9--