@ohos-ports/protoc 36.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/assets.json +50 -0
- package/bin/protoc-linux-aarch_64 +0 -0
- package/bin/protoc-linux-x86_64 +0 -0
- package/bin/protoc-osx-aarch_64 +0 -0
- package/bin/protoc-osx-x86_64 +0 -0
- package/bin/protoc-win64.exe +0 -0
- package/include/google/protobuf/any.proto +106 -0
- package/include/google/protobuf/api.proto +229 -0
- package/include/google/protobuf/c_sharp_features.proto +36 -0
- package/include/google/protobuf/compiler/plugin.proto +180 -0
- package/include/google/protobuf/cpp_features.proto +87 -0
- package/include/google/protobuf/cpp_file_options.proto +24 -0
- package/include/google/protobuf/cpp_options.proto +15 -0
- package/include/google/protobuf/descriptor.proto +1532 -0
- package/include/google/protobuf/duration.proto +115 -0
- package/include/google/protobuf/empty.proto +51 -0
- package/include/google/protobuf/field_mask.proto +243 -0
- package/include/google/protobuf/go_features.proto +112 -0
- package/include/google/protobuf/java_features.proto +132 -0
- package/include/google/protobuf/json_enumvalue_options.proto +31 -0
- package/include/google/protobuf/json_options.proto +16 -0
- package/include/google/protobuf/source_context.proto +48 -0
- package/include/google/protobuf/struct.proto +111 -0
- package/include/google/protobuf/timestamp.proto +145 -0
- package/include/google/protobuf/type.proto +217 -0
- package/include/google/protobuf/wrappers.proto +157 -0
- package/package.json +42 -0
- package/protoc.cjs +51 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// Protocol Buffers - Google's data interchange format
|
|
2
|
+
// Copyright 2023 Google LLC. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Use of this source code is governed by a BSD-style
|
|
5
|
+
// license that can be found in the LICENSE file or at
|
|
6
|
+
// https://developers.google.com/open-source/licenses/bsd
|
|
7
|
+
|
|
8
|
+
syntax = "proto2";
|
|
9
|
+
|
|
10
|
+
package pb;
|
|
11
|
+
|
|
12
|
+
import "google/protobuf/descriptor.proto";
|
|
13
|
+
|
|
14
|
+
extend google.protobuf.FeatureSet {
|
|
15
|
+
optional CppFeatures cpp = 1000;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message CppFeatures {
|
|
19
|
+
// Whether or not to treat an enum field as closed. This option is only
|
|
20
|
+
// applicable to enum fields, and will be removed in the future. It is
|
|
21
|
+
// consistent with the legacy behavior of using proto3 enum types for proto2
|
|
22
|
+
// fields.
|
|
23
|
+
optional bool legacy_closed_enum = 1 [
|
|
24
|
+
retention = RETENTION_RUNTIME,
|
|
25
|
+
targets = TARGET_TYPE_FIELD,
|
|
26
|
+
targets = TARGET_TYPE_FILE,
|
|
27
|
+
feature_support = {
|
|
28
|
+
edition_introduced: EDITION_2023,
|
|
29
|
+
edition_deprecated: EDITION_2023,
|
|
30
|
+
deprecation_warning: "The legacy closed enum behavior in C++ is "
|
|
31
|
+
"deprecated and is scheduled to be removed in "
|
|
32
|
+
"edition 2025. See http://protobuf.dev/programming-guides/enum/#cpp for "
|
|
33
|
+
"more information",
|
|
34
|
+
},
|
|
35
|
+
edition_defaults = { edition: EDITION_LEGACY, value: "true" },
|
|
36
|
+
edition_defaults = { edition: EDITION_PROTO3, value: "false" }
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
enum StringType {
|
|
40
|
+
STRING_TYPE_UNKNOWN = 0;
|
|
41
|
+
VIEW = 1;
|
|
42
|
+
CORD = 2;
|
|
43
|
+
STRING = 3;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
optional StringType string_type = 2 [
|
|
47
|
+
retention = RETENTION_RUNTIME,
|
|
48
|
+
targets = TARGET_TYPE_FIELD,
|
|
49
|
+
targets = TARGET_TYPE_FILE,
|
|
50
|
+
feature_support = {
|
|
51
|
+
edition_introduced: EDITION_2023,
|
|
52
|
+
},
|
|
53
|
+
edition_defaults = { edition: EDITION_LEGACY, value: "STRING" },
|
|
54
|
+
edition_defaults = { edition: EDITION_2024, value: "VIEW" }
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
optional bool enum_name_uses_string_view = 3 [
|
|
58
|
+
retention = RETENTION_RUNTIME,
|
|
59
|
+
targets = TARGET_TYPE_ENUM,
|
|
60
|
+
targets = TARGET_TYPE_FILE,
|
|
61
|
+
feature_support = {
|
|
62
|
+
edition_introduced: EDITION_2024,
|
|
63
|
+
},
|
|
64
|
+
edition_defaults = { edition: EDITION_LEGACY, value: "false" },
|
|
65
|
+
edition_defaults = { edition: EDITION_2024, value: "true" }
|
|
66
|
+
];
|
|
67
|
+
|
|
68
|
+
enum RepeatedType {
|
|
69
|
+
REPEATED_TYPE_UNKNOWN = 0;
|
|
70
|
+
// The repeated field will be backed by proto2::Repeated(Ptr)Field, and
|
|
71
|
+
// accessors will return a reference/pointer to this type.
|
|
72
|
+
LEGACY = 1;
|
|
73
|
+
// The repeated field has an opaque backing type, and accessors will return
|
|
74
|
+
// a RepeatedFieldProxy.
|
|
75
|
+
PROXY = 2;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
optional RepeatedType repeated_type = 4 [
|
|
79
|
+
retention = RETENTION_RUNTIME,
|
|
80
|
+
targets = TARGET_TYPE_FIELD,
|
|
81
|
+
targets = TARGET_TYPE_FILE,
|
|
82
|
+
feature_support = {
|
|
83
|
+
edition_introduced: EDITION_UNSTABLE,
|
|
84
|
+
},
|
|
85
|
+
edition_defaults = { edition: EDITION_LEGACY, value: "LEGACY" }
|
|
86
|
+
];
|
|
87
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Protocol Buffers - Google's data interchange format
|
|
2
|
+
// Copyright 2026 Google LLC. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Use of this source code is governed by a BSD-style
|
|
5
|
+
// license that can be found in the LICENSE file or at
|
|
6
|
+
// https://developers.google.com/open-source/licenses/bsd
|
|
7
|
+
|
|
8
|
+
edition = "2024";
|
|
9
|
+
|
|
10
|
+
package pb.file;
|
|
11
|
+
|
|
12
|
+
import "google/protobuf/descriptor.proto";
|
|
13
|
+
|
|
14
|
+
extend google.protobuf.FileOptions {
|
|
15
|
+
CppFileOptions cpp = 990
|
|
16
|
+
[feature_support = { edition_introduced: EDITION_2026 }];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
local message CppFileOptions {
|
|
20
|
+
// Use this option to change the namespace of cpp generated classes. When this
|
|
21
|
+
// option is not set, the package name will be used for determining the cpp
|
|
22
|
+
// namespace.
|
|
23
|
+
string namespace = 1;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Protocol Buffers - Google's data interchange format
|
|
2
|
+
// Copyright 2026 Google LLC. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Use of this source code is governed by a BSD-style
|
|
5
|
+
// license that can be found in the LICENSE file or at
|
|
6
|
+
// https://developers.google.com/open-source/licenses/bsd
|
|
7
|
+
|
|
8
|
+
edition = "2024";
|
|
9
|
+
|
|
10
|
+
package pb;
|
|
11
|
+
|
|
12
|
+
// This file is the user facing cpp language proto that bundles all descriptor
|
|
13
|
+
// type cpp language options.
|
|
14
|
+
|
|
15
|
+
import public "google/protobuf/cpp_file_options.proto";
|