[40/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg

2017-07-05 Thread stack
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java
--
diff --git 
a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java
 
b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java
deleted file mode 100644
index bf8e852..000
--- 
a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java
+++ /dev/null
@@ -1,899 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/protobuf/any.proto
-
-package org.apache.hadoop.hbase.shaded.com.google.protobuf;
-
-/**
- * 
- * `Any` contains an arbitrary serialized protocol buffer message along with a
- * URL that describes the type of the serialized message.
- * Protobuf library provides support to pack/unpack Any values in the form
- * of utility functions or additional generated methods of the Any type.
- * Example 1: Pack and unpack a message in C++.
- * Foo foo = ...;
- * Any any;
- * any.PackFrom(foo);
- * ...
- * if (any.UnpackTo(foo)) {
- *   ...
- * }
- * Example 2: Pack and unpack a message in Java.
- * Foo foo = ...;
- * Any any = Any.pack(foo);
- * ...
- * if (any.is(Foo.class)) {
- *   foo = any.unpack(Foo.class);
- * }
- *  Example 3: Pack and unpack a message in Python.
- * foo = Foo(...)
- * any = Any()
- * any.Pack(foo)
- * ...
- * if any.Is(Foo.DESCRIPTOR):
- *   any.Unpack(foo)
- *   ...
- * The pack methods provided by protobuf library will by default use
- * 'type.googleapis.com/full.type.name' as the type URL and the unpack
- * methods only use the fully qualified type name after the last '/'
- * in the type URL, for example "foo.bar.com/x/y.z" will yield type
- * name "y.z".
- * JSON
- * 
- * The JSON representation of an `Any` value uses the regular
- * representation of the deserialized, embedded message, with an
- * additional field `type` which contains the type URL. Example:
- * package google.profile;
- * message Person {
- *   string first_name = 1;
- *   string last_name = 2;
- * }
- * {
- *   "type": "type.googleapis.com/google.profile.Person",
- *   "firstName": string,
- *   "lastName": string
- * }
- * If the embedded message type is well-known and has a custom JSON
- * representation, that representation will be embedded adding a field
- * `value` which holds the custom JSON in addition to the `type`
- * field. Example (for message [google.protobuf.Duration][]):
- * {
- *   "type": 
"type.googleapis.org.apache.hadoop.hbase.shaded.com.google.protobuf.Duration",
- *   "value": "1.212s"
- * }
- * 
- *
- * Protobuf type {@code google.protobuf.Any}
- */
-public  final class Any extends
-org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 
implements
-// @@protoc_insertion_point(message_implements:google.protobuf.Any)
-AnyOrBuilder {
-  // Use Any.newBuilder() to construct.
-  private 
Any(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder
 builder) {
-super(builder);
-  }
-  private Any() {
-typeUrl_ = "";
-value_ = 
org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString.EMPTY;
-  }
-
-  @java.lang.Override
-  public final 
org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
-return 
org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance();
-  }
-  private Any(
-  org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream 
input,
-  org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite 
extensionRegistry)
-  throws 
org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException
 {
-this();
-int mutable_bitField0_ = 0;
-try {
-  boolean done = false;
-  while (!done) {
-int tag = input.readTag();
-switch (tag) {
-  case 0:
-done = true;
-break;
-  default: {
-if (!input.skipField(tag)) {
-  done = true;
-}
-break;
-  }
-  case 10: {
-java.lang.String s = input.readStringRequireUtf8();
-
-typeUrl_ = s;
-break;
-  }
-  case 18: {
-
-value_ = input.readBytes();
-break;
-  }
-}
-  }
-} catch 
(org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException
 e) {
-  throw e.setUnfinishedMessage(this);
-} catch (java.io.IOException e) {
-  throw new 
org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException(
-  e).setUnfinishedMessage(this);
-} finally {
-  

[40/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg

2017-07-05 Thread stack
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java
--
diff --git 
a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java
 
b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java
deleted file mode 100644
index bf8e852..000
--- 
a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java
+++ /dev/null
@@ -1,899 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/protobuf/any.proto
-
-package org.apache.hadoop.hbase.shaded.com.google.protobuf;
-
-/**
- * 
- * `Any` contains an arbitrary serialized protocol buffer message along with a
- * URL that describes the type of the serialized message.
- * Protobuf library provides support to pack/unpack Any values in the form
- * of utility functions or additional generated methods of the Any type.
- * Example 1: Pack and unpack a message in C++.
- * Foo foo = ...;
- * Any any;
- * any.PackFrom(foo);
- * ...
- * if (any.UnpackTo(foo)) {
- *   ...
- * }
- * Example 2: Pack and unpack a message in Java.
- * Foo foo = ...;
- * Any any = Any.pack(foo);
- * ...
- * if (any.is(Foo.class)) {
- *   foo = any.unpack(Foo.class);
- * }
- *  Example 3: Pack and unpack a message in Python.
- * foo = Foo(...)
- * any = Any()
- * any.Pack(foo)
- * ...
- * if any.Is(Foo.DESCRIPTOR):
- *   any.Unpack(foo)
- *   ...
- * The pack methods provided by protobuf library will by default use
- * 'type.googleapis.com/full.type.name' as the type URL and the unpack
- * methods only use the fully qualified type name after the last '/'
- * in the type URL, for example "foo.bar.com/x/y.z" will yield type
- * name "y.z".
- * JSON
- * 
- * The JSON representation of an `Any` value uses the regular
- * representation of the deserialized, embedded message, with an
- * additional field `type` which contains the type URL. Example:
- * package google.profile;
- * message Person {
- *   string first_name = 1;
- *   string last_name = 2;
- * }
- * {
- *   "type": "type.googleapis.com/google.profile.Person",
- *   "firstName": string,
- *   "lastName": string
- * }
- * If the embedded message type is well-known and has a custom JSON
- * representation, that representation will be embedded adding a field
- * `value` which holds the custom JSON in addition to the `type`
- * field. Example (for message [google.protobuf.Duration][]):
- * {
- *   "type": 
"type.googleapis.org.apache.hadoop.hbase.shaded.com.google.protobuf.Duration",
- *   "value": "1.212s"
- * }
- * 
- *
- * Protobuf type {@code google.protobuf.Any}
- */
-public  final class Any extends
-org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 
implements
-// @@protoc_insertion_point(message_implements:google.protobuf.Any)
-AnyOrBuilder {
-  // Use Any.newBuilder() to construct.
-  private 
Any(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder
 builder) {
-super(builder);
-  }
-  private Any() {
-typeUrl_ = "";
-value_ = 
org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString.EMPTY;
-  }
-
-  @java.lang.Override
-  public final 
org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
-return 
org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance();
-  }
-  private Any(
-  org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream 
input,
-  org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite 
extensionRegistry)
-  throws 
org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException
 {
-this();
-int mutable_bitField0_ = 0;
-try {
-  boolean done = false;
-  while (!done) {
-int tag = input.readTag();
-switch (tag) {
-  case 0:
-done = true;
-break;
-  default: {
-if (!input.skipField(tag)) {
-  done = true;
-}
-break;
-  }
-  case 10: {
-java.lang.String s = input.readStringRequireUtf8();
-
-typeUrl_ = s;
-break;
-  }
-  case 18: {
-
-value_ = input.readBytes();
-break;
-  }
-}
-  }
-} catch 
(org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException
 e) {
-  throw e.setUnfinishedMessage(this);
-} catch (java.io.IOException e) {
-  throw new 
org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException(
-  e).setUnfinishedMessage(this);
-} finally {
-