Skip to content

Commit 91771a8

Browse files
committed
Format proto files
1 parent 3ca9098 commit 91771a8

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

betterproto2_compiler/tests/inputs/conformance/conformance.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ enum WireFormat {
3535
UNSPECIFIED = 0;
3636
PROTOBUF = 1;
3737
JSON = 2;
38-
JSPB = 3; // Only used inside Google. Opensource testees just skip it.
38+
JSPB = 3; // Only used inside Google. Opensource testees just skip it.
3939
TEXT_FORMAT = 4;
4040
}
4141

4242
enum TestCategory {
4343
UNSPECIFIED_TEST = 0;
44-
BINARY_TEST = 1; // Test binary wire format.
45-
JSON_TEST = 2; // Test json wire format.
44+
BINARY_TEST = 1; // Test binary wire format.
45+
JSON_TEST = 2; // Test json wire format.
4646
// Similar to JSON_TEST. However, during parsing json, testee should ignore
4747
// unknown fields. This feature is optional. Each implementation can decide
4848
// whether to support it. See
@@ -169,4 +169,4 @@ message ConformanceResponse {
169169
message JspbEncodingConfig {
170170
// Encode the value field of Any as jspb array if true, otherwise binary.
171171
bool use_jspb_array_any_format = 1;
172-
}
172+
}

betterproto2_compiler/tests/inputs/conformance/test_messages_proto3.proto

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ syntax = "proto3";
1616

1717
package protobuf_test_messages.proto3;
1818

19-
option java_package = "com.google.protobuf_test_messages.proto3";
20-
option objc_class_prefix = "Proto3";
21-
22-
// This is the default, but we specify it here explicitly.
23-
option optimize_for = SPEED;
24-
2519
import "google/protobuf/any.proto";
2620
import "google/protobuf/duration.proto";
2721
import "google/protobuf/field_mask.proto";
@@ -30,6 +24,10 @@ import "google/protobuf/timestamp.proto";
3024
import "google/protobuf/wrappers.proto";
3125

3226
option cc_enable_arenas = true;
27+
option java_package = "com.google.protobuf_test_messages.proto3";
28+
option objc_class_prefix = "Proto3";
29+
// This is the default, but we specify it here explicitly.
30+
option optimize_for = SPEED;
3331

3432
// This proto includes every type of field in both singular and repeated
3533
// forms.
@@ -48,7 +46,7 @@ message TestAllTypesProto3 {
4846
FOO = 0;
4947
BAR = 1;
5048
BAZ = 2;
51-
NEG = -1; // Intentionally negative.
49+
NEG = -1; // Intentionally negative.
5250
}
5351

5452
enum AliasedEnum {
@@ -266,4 +264,4 @@ message EnumOnlyProto3 {
266264
kFalse = 0;
267265
kTrue = 1;
268266
}
269-
}
267+
}

0 commit comments

Comments
 (0)