You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

feature.proto 1.5 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /**
  2. * Copyright 2019 Huawei Technologies Co., Ltd
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. syntax = "proto3";
  17. option cc_enable_arenas = true;
  18. option java_multiple_files = true;
  19. option java_package = "org.dataengine.example";
  20. option java_outer_classname = "FeatureProtos";
  21. package dataengine;
  22. // define Int64
  23. message Int64List {
  24. repeated int64 value = 1 [packed = true];
  25. }
  26. // define Float
  27. message FloatList {
  28. repeated float value = 1 [packed = true];
  29. }
  30. //define Bytes
  31. message BytesList {
  32. repeated bytes value = 1;
  33. }
  34. // define Feature
  35. message Feature {
  36. oneof kind {
  37. BytesList bytes_list = 1;
  38. FloatList float_list = 2;
  39. Int64List int64_list = 3;
  40. }
  41. };
  42. //define Features as Feature map
  43. message Features {
  44. map<string, Feature> feature = 1;
  45. };
  46. // define FeatureList
  47. message FeatureList {
  48. repeated Feature feature = 1;
  49. };
  50. // define FeatureLists as FeatureList map
  51. message FeatureLists {
  52. map<string, FeatureList> feature_list = 1;
  53. };