Skip to content

Commit

Permalink
HBASE-23971 protoc warns: "no protobuf syntax specified"
Browse files Browse the repository at this point in the history
  • Loading branch information
wen_yi authored and saintstack committed Mar 17, 2020
1 parent b942527 commit 292cadf
Show file tree
Hide file tree
Showing 54 changed files with 249 additions and 193 deletions.
1 change: 1 addition & 0 deletions hbase-endpoint/src/main/protobuf/Aggregate.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";
package hbase.pb;

option java_package = "org.apache.hadoop.hbase.protobuf.generated";
Expand Down
2 changes: 1 addition & 1 deletion hbase-endpoint/src/main/protobuf/BulkDelete.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

syntax = "proto2";
package hbase.pb;

option java_package = "org.apache.hadoop.hbase.coprocessor.example.generated";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "ColumnAggregationWithNullResponseProtos";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "ColumnAggregationProtos";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "ColumnAggregationWithErrorsProtos";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

syntax = "proto2";
package hbase.test.pb;

// Coprocessor test
Expand Down
2 changes: 1 addition & 1 deletion hbase-endpoint/src/main/protobuf/Export.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

syntax = "proto2";
package hbase.pb;

option java_package = "org.apache.hadoop.hbase.protobuf.generated";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "IncrementCounterProcessorTestProtos";
Expand Down
2 changes: 2 additions & 0 deletions hbase-endpoint/src/main/protobuf/SecureBulkLoad.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

package hbase.pb;

option java_package = "org.apache.hadoop.hbase.protobuf.generated";
Expand Down
1 change: 1 addition & 0 deletions hbase-examples/src/main/protobuf/Examples.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";
package hbase.pb;

option java_package = "org.apache.hadoop.hbase.coprocessor.example.generated";
Expand Down
2 changes: 1 addition & 1 deletion hbase-examples/src/main/protobuf/RefreshHFiles.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

syntax = "proto2";
package hbase.pb;

option java_package = "org.apache.hadoop.hbase.protobuf.generated";
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/AccessControl.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";
package hbase.pb;

option java_package = "org.apache.hadoop.hbase.protobuf.generated";
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/Admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// This file contains protocol buffers that are used for Admin service.
package hbase.pb;
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/Authentication.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";
package hbase.pb;

option java_package = "org.apache.hadoop.hbase.protobuf.generated";
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/Cell.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// Cell and KeyValue protos
package hbase.pb;
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/Client.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// This file contains protocol buffers that are used for Client service.
package hbase.pb;
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/ClusterId.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// This file contains protocol buffers that are shared throughout HBase
package hbase.pb;
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/ClusterStatus.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// This file contains protocol buffers that are used for ClustStatus
package hbase.pb;
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/Comparator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// This file contains protocol buffers that are used for filters
package hbase.pb;
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/Encryption.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// This file contains protocol buffers used for encryption
package hbase.pb;
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/ErrorHandling.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// This file contains protocol buffers that are used for error handling
package hbase.pb;
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/FS.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// This file contains protocol buffers that are written into the filesystem
package hbase.pb;
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/Filter.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// This file contains protocol buffers that are used for filters
package hbase.pb;
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/HBase.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// This file contains protocol buffers that are shared throughout HBase
package hbase.pb;
Expand Down
2 changes: 1 addition & 1 deletion hbase-protocol/src/main/protobuf/HFile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

syntax = "proto2";
package hbase.pb;

option java_package = "org.apache.hadoop.hbase.protobuf.generated";
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/LoadBalancer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// This file contains protocol buffers to represent the state of the load balancer.
package hbase.pb;
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/MapReduce.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

//This file includes protocol buffers used in MapReduce only.
package hbase.pb;
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/MultiRowMutation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";
package hbase.pb;

import "Client.proto";
Expand Down
2 changes: 2 additions & 0 deletions hbase-protocol/src/main/protobuf/PingProtocol.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "PingProtos";
Expand Down
2 changes: 1 addition & 1 deletion hbase-protocol/src/main/protobuf/Quota.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

syntax = "proto2";
package hbase.pb;

option java_package = "org.apache.hadoop.hbase.protobuf.generated";
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/RPC.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";
package hbase.pb;

import "Tracing.proto";
Expand Down
2 changes: 1 addition & 1 deletion hbase-protocol/src/main/protobuf/RSGroup.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

syntax = "proto2";
package hbase.pb;

option java_package = "org.apache.hadoop.hbase.protobuf.generated";
Expand Down
2 changes: 2 additions & 0 deletions hbase-protocol/src/main/protobuf/RowProcessor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

/**
* Defines a protocol to perform multi row transactions.
* See BaseRowProcessorEndpoint for the implementation.
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/Snapshot.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";
package hbase.pb;

option java_package = "org.apache.hadoop.hbase.protobuf.generated";
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/Table.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// This file contains protocol buffers that are shared throughout HBase
package hbase.pb;
Expand Down
2 changes: 2 additions & 0 deletions hbase-protocol/src/main/protobuf/TestProcedure.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

option java_package = "org.apache.hadoop.hbase.ipc.protobuf.generated";
option java_outer_classname = "TestProcedureProtos";
option java_generic_services = true;
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/Tracing.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";
package hbase.pb;

option java_package = "org.apache.hadoop.hbase.protobuf.generated";
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/VisibilityLabels.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";
package hbase.pb;

option java_package = "org.apache.hadoop.hbase.protobuf.generated";
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/WAL.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";
package hbase.pb;

option java_package = "org.apache.hadoop.hbase.protobuf.generated";
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/ZooKeeper.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

// ZNode data in hbase are serialized protobufs with a four byte
// 'magic' 'PBUF' prefix.
Expand Down
1 change: 1 addition & 0 deletions hbase-protocol/src/main/protobuf/test.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

option java_package = "org.apache.hadoop.hbase.ipc.protobuf.generated";
option java_outer_classname = "TestProtos";
Expand Down
2 changes: 2 additions & 0 deletions hbase-protocol/src/main/protobuf/test_rpc_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";

option java_package = "org.apache.hadoop.hbase.ipc.protobuf.generated";
option java_outer_classname = "TestRpcServiceProtos";
option java_generic_services = true;
Expand Down
35 changes: 18 additions & 17 deletions hbase-rest/src/main/protobuf/CellMessage.proto
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto2";
package org.apache.hadoop.hbase.rest.protobuf.generated;

message Cell {
Expand Down
Loading

0 comments on commit 292cadf

Please sign in to comment.