mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-10-09 12:11:45 -07:00
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:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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"`
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user