|
|
@@ -34,10 +34,25 @@ var E_value = map[string]int32{
|
|
|
"ZERO": 0,
|
|
|
}
|
|
|
|
|
|
+func (x E) Enum() *E {
|
|
|
+ p := new(E)
|
|
|
+ *p = x
|
|
|
+ return p
|
|
|
+}
|
|
|
+
|
|
|
func (x E) String() string {
|
|
|
return proto.EnumName(E_name, int32(x))
|
|
|
}
|
|
|
|
|
|
+func (x *E) UnmarshalJSON(data []byte) error {
|
|
|
+ value, err := proto.UnmarshalJSONEnum(E_value, data, "E")
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ *x = E(value)
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
func (E) EnumDescriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_382f7805394b5c4e, []int{0}
|
|
|
}
|
|
|
@@ -56,10 +71,25 @@ var M_Subenum_value = map[string]int32{
|
|
|
"M_ZERO": 0,
|
|
|
}
|
|
|
|
|
|
+func (x M_Subenum) Enum() *M_Subenum {
|
|
|
+ p := new(M_Subenum)
|
|
|
+ *p = x
|
|
|
+ return p
|
|
|
+}
|
|
|
+
|
|
|
func (x M_Subenum) String() string {
|
|
|
return proto.EnumName(M_Subenum_name, int32(x))
|
|
|
}
|
|
|
|
|
|
+func (x *M_Subenum) UnmarshalJSON(data []byte) error {
|
|
|
+ value, err := proto.UnmarshalJSONEnum(M_Subenum_value, data, "M_Subenum")
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ *x = M_Subenum(value)
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
func (M_Subenum) EnumDescriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_382f7805394b5c4e, []int{0, 0}
|
|
|
}
|
|
|
@@ -78,17 +108,33 @@ var M_Submessage_Submessage_Subenum_value = map[string]int32{
|
|
|
"M_SUBMESSAGE_ZERO": 0,
|
|
|
}
|
|
|
|
|
|
+func (x M_Submessage_Submessage_Subenum) Enum() *M_Submessage_Submessage_Subenum {
|
|
|
+ p := new(M_Submessage_Submessage_Subenum)
|
|
|
+ *p = x
|
|
|
+ return p
|
|
|
+}
|
|
|
+
|
|
|
func (x M_Submessage_Submessage_Subenum) String() string {
|
|
|
return proto.EnumName(M_Submessage_Submessage_Subenum_name, int32(x))
|
|
|
}
|
|
|
|
|
|
+func (x *M_Submessage_Submessage_Subenum) UnmarshalJSON(data []byte) error {
|
|
|
+ value, err := proto.UnmarshalJSONEnum(M_Submessage_Submessage_Subenum_value, data, "M_Submessage_Submessage_Subenum")
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ *x = M_Submessage_Submessage_Subenum(value)
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
func (M_Submessage_Submessage_Subenum) EnumDescriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_382f7805394b5c4e, []int{0, 0, 0}
|
|
|
}
|
|
|
|
|
|
type M struct {
|
|
|
// Field using a type in the same Go package, but a different source file.
|
|
|
- M2 *M2 `protobuf:"bytes,1,opt,name=m2,proto3" json:"m2,omitempty"`
|
|
|
+ M2 *M2 `protobuf:"bytes,1,opt,name=m2" json:"m2,omitempty"`
|
|
|
+ S *string `protobuf:"bytes,4,opt,name=s,def=default" json:"s,omitempty"`
|
|
|
// Types that are valid to be assigned to OneofField:
|
|
|
// *M_OneofInt32
|
|
|
// *M_OneofInt64
|
|
|
@@ -123,6 +169,8 @@ func (m *M) XXX_DiscardUnknown() {
|
|
|
|
|
|
var xxx_messageInfo_M proto.InternalMessageInfo
|
|
|
|
|
|
+const Default_M_S string = "default"
|
|
|
+
|
|
|
func (m *M) GetM2() *M2 {
|
|
|
if m != nil {
|
|
|
return m.M2
|
|
|
@@ -130,16 +178,23 @@ func (m *M) GetM2() *M2 {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+func (m *M) GetS() string {
|
|
|
+ if m != nil && m.S != nil {
|
|
|
+ return *m.S
|
|
|
+ }
|
|
|
+ return Default_M_S
|
|
|
+}
|
|
|
+
|
|
|
type isM_OneofField interface {
|
|
|
isM_OneofField()
|
|
|
}
|
|
|
|
|
|
type M_OneofInt32 struct {
|
|
|
- OneofInt32 int32 `protobuf:"varint,2,opt,name=oneof_int32,json=oneofInt32,proto3,oneof"`
|
|
|
+ OneofInt32 int32 `protobuf:"varint,2,opt,name=oneof_int32,json=oneofInt32,oneof"`
|
|
|
}
|
|
|
|
|
|
type M_OneofInt64 struct {
|
|
|
- OneofInt64 int64 `protobuf:"varint,3,opt,name=oneof_int64,json=oneofInt64,proto3,oneof"`
|
|
|
+ OneofInt64 int64 `protobuf:"varint,3,opt,name=oneof_int64,json=oneofInt64,oneof"`
|
|
|
}
|
|
|
|
|
|
func (*M_OneofInt32) isM_OneofField() {}
|
|
|
@@ -271,11 +326,11 @@ type isM_Submessage_SubmessageOneofField interface {
|
|
|
}
|
|
|
|
|
|
type M_Submessage_SubmessageOneofInt32 struct {
|
|
|
- SubmessageOneofInt32 int32 `protobuf:"varint,1,opt,name=submessage_oneof_int32,json=submessageOneofInt32,proto3,oneof"`
|
|
|
+ SubmessageOneofInt32 int32 `protobuf:"varint,1,opt,name=submessage_oneof_int32,json=submessageOneofInt32,oneof"`
|
|
|
}
|
|
|
|
|
|
type M_Submessage_SubmessageOneofInt64 struct {
|
|
|
- SubmessageOneofInt64 int64 `protobuf:"varint,2,opt,name=submessage_oneof_int64,json=submessageOneofInt64,proto3,oneof"`
|
|
|
+ SubmessageOneofInt64 int64 `protobuf:"varint,2,opt,name=submessage_oneof_int64,json=submessageOneofInt64,oneof"`
|
|
|
}
|
|
|
|
|
|
func (*M_Submessage_SubmessageOneofInt32) isM_Submessage_SubmessageOneofField() {}
|
|
|
@@ -378,25 +433,26 @@ func init() {
|
|
|
func init() { proto.RegisterFile("import_public/sub/a.proto", fileDescriptor_382f7805394b5c4e) }
|
|
|
|
|
|
var fileDescriptor_382f7805394b5c4e = []byte{
|
|
|
- // 319 bytes of a gzipped FileDescriptorProto
|
|
|
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