Format proto files using clang-format according to google style (#264)

* Format proto files using clang-format according to google style
* Regenerate pb.go files
This commit is contained in:
Loyalsoldier
2020-10-05 08:36:40 +08:00
committed by GitHub
parent a308620073
commit bb44d01096
47 changed files with 178 additions and 139 deletions
+2 -1
View File
@@ -25,7 +25,8 @@ const (
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// Address of a network host. It may be either an IP address or a domain address.
// Address of a network host. It may be either an IP address or a domain
// address.
type IPOrDomain struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
+2 -1
View File
@@ -6,7 +6,8 @@ option go_package = "v2ray.com/core/common/net";
option java_package = "com.v2ray.core.common.net";
option java_multiple_files = true;
// Address of a network host. It may be either an IP address or a domain address.
// Address of a network host. It may be either an IP address or a domain
// address.
message IPOrDomain {
oneof address {
// IP address. Must by either 4 or 16 bytes.
+1 -1
View File
@@ -9,7 +9,7 @@ option java_multiple_files = true;
enum Network {
Unknown = 0;
RawTCP = 1 [deprecated=true];
RawTCP = 1 [deprecated = true];
TCP = 2;
UDP = 3;
}
+2 -1
View File
@@ -34,7 +34,8 @@ type User struct {
Level uint32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
// Protocol specific account information. Must be the account proto in one of the proxies.
// Protocol specific account information. Must be the account proto in one of
// the proxies.
Account *serial.TypedMessage `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
}
+2 -1
View File
@@ -13,6 +13,7 @@ message User {
uint32 level = 1;
string email = 2;
// Protocol specific account information. Must be the account proto in one of the proxies.
// Protocol specific account information. Must be the account proto in one of
// the proxies.
v2ray.core.common.serial.TypedMessage account = 3;
}
+1 -1
View File
@@ -10,6 +10,6 @@ option java_multiple_files = true;
message TypedMessage {
// The name of the message type, retrieved from protobuf API.
string type = 1;
// Serialized proto message.
// Serialized proto message.
bytes value = 2;
}