cmd/protoc-gen-go: update deprecation warning
Change-Id: Ie1a854bf6f47d4ca9e941b6ccc64dc24ff32bd19
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/186657
Reviewed-by: Damien Neil <dneil@google.com>
diff --git a/encoding/testprotos/pb3/test.pb.go b/encoding/testprotos/pb3/test.pb.go
index a6e4c58..e110a79 100644
--- a/encoding/testprotos/pb3/test.pb.go
+++ b/encoding/testprotos/pb3/test.pb.go
@@ -63,7 +63,7 @@
return protoreflect.EnumNumber(x)
}
-// Deprecated: Use Enum.Type instead.
+// Deprecated: Use Enum.Descriptor instead.
func (Enum) EnumDescriptor() ([]byte, []int) {
return file_pb3_test_proto_rawDescGZIP(), []int{0}
}
@@ -113,7 +113,7 @@
return protoreflect.EnumNumber(x)
}
-// Deprecated: Use Enums_NestedEnum.Type instead.
+// Deprecated: Use Enums_NestedEnum.Descriptor instead.
func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
return file_pb3_test_proto_rawDescGZIP(), []int{1, 0}
}
@@ -162,7 +162,7 @@
return mi.MessageOf(x)
}
-// Deprecated: Use Scalars.ProtoReflect.Type instead.
+// Deprecated: Use Scalars.ProtoReflect.Descriptor instead.
func (*Scalars) Descriptor() ([]byte, []int) {
return file_pb3_test_proto_rawDescGZIP(), []int{0}
}
@@ -303,7 +303,7 @@
return mi.MessageOf(x)
}
-// Deprecated: Use Enums.ProtoReflect.Type instead.
+// Deprecated: Use Enums.ProtoReflect.Descriptor instead.
func (*Enums) Descriptor() ([]byte, []int) {
return file_pb3_test_proto_rawDescGZIP(), []int{1}
}
@@ -352,7 +352,7 @@
return mi.MessageOf(x)
}
-// Deprecated: Use Nests.ProtoReflect.Type instead.
+// Deprecated: Use Nests.ProtoReflect.Descriptor instead.
func (*Nests) Descriptor() ([]byte, []int) {
return file_pb3_test_proto_rawDescGZIP(), []int{2}
}
@@ -395,7 +395,7 @@
return mi.MessageOf(x)
}
-// Deprecated: Use Nested.ProtoReflect.Type instead.
+// Deprecated: Use Nested.ProtoReflect.Descriptor instead.
func (*Nested) Descriptor() ([]byte, []int) {
return file_pb3_test_proto_rawDescGZIP(), []int{3}
}
@@ -448,7 +448,7 @@
return mi.MessageOf(x)
}
-// Deprecated: Use Oneofs.ProtoReflect.Type instead.
+// Deprecated: Use Oneofs.ProtoReflect.Descriptor instead.
func (*Oneofs) Descriptor() ([]byte, []int) {
return file_pb3_test_proto_rawDescGZIP(), []int{4}
}
@@ -537,7 +537,7 @@
return mi.MessageOf(x)
}
-// Deprecated: Use Maps.ProtoReflect.Type instead.
+// Deprecated: Use Maps.ProtoReflect.Descriptor instead.
func (*Maps) Descriptor() ([]byte, []int) {
return file_pb3_test_proto_rawDescGZIP(), []int{5}
}
@@ -607,7 +607,7 @@
return mi.MessageOf(x)
}
-// Deprecated: Use JSONNames.ProtoReflect.Type instead.
+// Deprecated: Use JSONNames.ProtoReflect.Descriptor instead.
func (*JSONNames) Descriptor() ([]byte, []int) {
return file_pb3_test_proto_rawDescGZIP(), []int{6}
}