HBASE-26542 Apply a `package` to test protobuf files

This is needed in a couple places in order to test that traces over the IPC layer carry correct
span names, and it's good hygiene anyway.

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
Nick Dimiduk 2021-12-06 12:14:02 -08:00 committed by Nick Dimiduk
parent 0866975238
commit d7c3720e52
9 changed files with 9 additions and 0 deletions

View File

@ -16,6 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2"; syntax = "proto2";
package hbase.test.pb;
// Coprocessor test // Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";

View File

@ -16,6 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2"; syntax = "proto2";
package hbase.test.pb;
// Coprocessor test // Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";

View File

@ -16,6 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2"; syntax = "proto2";
package hbase.test.pb;
// Coprocessor test // Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";

View File

@ -16,6 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2"; syntax = "proto2";
package hbase.test.pb;
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "IncrementCounterProcessorTestProtos"; option java_outer_classname = "IncrementCounterProcessorTestProtos";

View File

@ -21,6 +21,7 @@
*/ */
syntax = "proto2"; syntax = "proto2";
package hbase.test.pb;
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "ShellExecEndpoint"; option java_outer_classname = "ShellExecEndpoint";
option java_generic_services = true; option java_generic_services = true;

View File

@ -16,6 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2"; syntax = "proto2";
package hbase.test.pb;
option java_package = "org.apache.hadoop.hbase.shaded.ipc.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.shaded.ipc.protobuf.generated";
option java_outer_classname = "TestProcedureProtos"; option java_outer_classname = "TestProcedureProtos";
option java_generic_services = true; option java_generic_services = true;

View File

@ -16,6 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2"; syntax = "proto2";
package hbase.test.pb;
option java_package = "org.apache.hadoop.hbase.shaded.ipc.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.shaded.ipc.protobuf.generated";
option java_outer_classname = "TestProtos"; option java_outer_classname = "TestProtos";

View File

@ -16,6 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2"; syntax = "proto2";
package hbase.test.pb;
option java_package = "org.apache.hadoop.hbase.shaded.ipc.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.shaded.ipc.protobuf.generated";
option java_outer_classname = "TestRpcServiceProtos"; option java_outer_classname = "TestRpcServiceProtos";
option java_generic_services = true; option java_generic_services = true;

View File

@ -17,6 +17,7 @@
*/ */
syntax = "proto2"; syntax = "proto2";
package hbase.test.pb;
// Coprocessor test // Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "PingProtos"; option java_outer_classname = "PingProtos";