Removing superfluous image types

Additionally updating the protobufs that use ImageType
This commit is contained in:
Samuel Hawksby-Robinson 2020-10-22 14:19:25 +01:00 committed by Andrea Maria Piana
parent c6accd8ce3
commit 7f8d3674d4
4 changed files with 87 additions and 95 deletions

View File

@ -13,10 +13,6 @@ const (
PNG PNG
GIF GIF
WEBP WEBP
// Vector image types
SVG
AI
) )
type Details struct { type Details struct {

View File

@ -20,40 +20,6 @@ var _ = math.Inf
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type ImageMessage_ImageType int32
const (
ImageMessage_UNKNOWN_IMAGE_TYPE ImageMessage_ImageType = 0
ImageMessage_PNG ImageMessage_ImageType = 1
ImageMessage_JPEG ImageMessage_ImageType = 2
ImageMessage_WEBP ImageMessage_ImageType = 3
ImageMessage_GIF ImageMessage_ImageType = 4
)
var ImageMessage_ImageType_name = map[int32]string{
0: "UNKNOWN_IMAGE_TYPE",
1: "PNG",
2: "JPEG",
3: "WEBP",
4: "GIF",
}
var ImageMessage_ImageType_value = map[string]int32{
"UNKNOWN_IMAGE_TYPE": 0,
"PNG": 1,
"JPEG": 2,
"WEBP": 3,
"GIF": 4,
}
func (x ImageMessage_ImageType) String() string {
return proto.EnumName(ImageMessage_ImageType_name, int32(x))
}
func (ImageMessage_ImageType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_263952f55fd35689, []int{1, 0}
}
type AudioMessage_AudioType int32 type AudioMessage_AudioType int32
const ( const (
@ -177,11 +143,11 @@ func (m *StickerMessage) GetPack() int32 {
} }
type ImageMessage struct { type ImageMessage struct {
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
Type ImageMessage_ImageType `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.ImageMessage_ImageType" json:"type,omitempty"` Type ImageType `protobuf:"varint,2,opt,name=type,proto3,enum=protobuf.ImageType" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
} }
func (m *ImageMessage) Reset() { *m = ImageMessage{} } func (m *ImageMessage) Reset() { *m = ImageMessage{} }
@ -216,11 +182,11 @@ func (m *ImageMessage) GetPayload() []byte {
return nil return nil
} }
func (m *ImageMessage) GetType() ImageMessage_ImageType { func (m *ImageMessage) GetType() ImageType {
if m != nil { if m != nil {
return m.Type return m.Type
} }
return ImageMessage_UNKNOWN_IMAGE_TYPE return ImageType_UNKNOWN_IMAGE_TYPE
} }
type AudioMessage struct { type AudioMessage struct {
@ -450,7 +416,6 @@ func (*ChatMessage) XXX_OneofWrappers() []interface{} {
} }
func init() { func init() {
proto.RegisterEnum("protobuf.ImageMessage_ImageType", ImageMessage_ImageType_name, ImageMessage_ImageType_value)
proto.RegisterEnum("protobuf.AudioMessage_AudioType", AudioMessage_AudioType_name, AudioMessage_AudioType_value) proto.RegisterEnum("protobuf.AudioMessage_AudioType", AudioMessage_AudioType_name, AudioMessage_AudioType_value)
proto.RegisterEnum("protobuf.ChatMessage_ContentType", ChatMessage_ContentType_name, ChatMessage_ContentType_value) proto.RegisterEnum("protobuf.ChatMessage_ContentType", ChatMessage_ContentType_name, ChatMessage_ContentType_value)
proto.RegisterType((*StickerMessage)(nil), "protobuf.StickerMessage") proto.RegisterType((*StickerMessage)(nil), "protobuf.StickerMessage")
@ -464,44 +429,42 @@ func init() {
} }
var fileDescriptor_263952f55fd35689 = []byte{ var fileDescriptor_263952f55fd35689 = []byte{
// 618 bytes of a gzipped FileDescriptorProto // 583 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0x4f, 0x6f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0xff,
0xba, 0x89, 0xa8, 0xeb, 0xc7, 0xbe, 0x1b, 0x45, 0xe2, 0xc5, 0x34, 0x7f, 0x0b, 0x89, 0xf7, 0xc9, 0x60, 0x3d, 0xfe, 0x43, 0xae, 0x7b, 0x78, 0xc3, 0x77, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xda,
0xa1, 0x6e, 0x3c, 0x27, 0x8b, 0x65, 0x88, 0x06, 0xe2, 0x36, 0xf9, 0xa4, 0x90, 0x2e, 0x42, 0x69, 0xca, 0x09, 0x0a, 0xfe, 0x03, 0x00, 0x00,
0x48, 0x34, 0x3c, 0x33, 0x9e, 0x5f, 0xc8, 0xed, 0x40, 0x76, 0xf8, 0xee, 0x57, 0x00, 0x00, 0x00,
0xff, 0xff, 0xef, 0xa1, 0x83, 0xb2, 0x57, 0x04, 0x00, 0x00,
} }

View File

@ -55,8 +55,44 @@ func (MessageType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_888b6bd9597961ff, []int{0} return fileDescriptor_888b6bd9597961ff, []int{0}
} }
type ImageType int32
const (
ImageType_UNKNOWN_IMAGE_TYPE ImageType = 0
// Raster image files is payload data that can be read as a raster image
ImageType_PNG ImageType = 1
ImageType_JPEG ImageType = 2
ImageType_WEBP ImageType = 3
ImageType_GIF ImageType = 4
)
var ImageType_name = map[int32]string{
0: "UNKNOWN_IMAGE_TYPE",
1: "PNG",
2: "JPEG",
3: "WEBP",
4: "GIF",
}
var ImageType_value = map[string]int32{
"UNKNOWN_IMAGE_TYPE": 0,
"PNG": 1,
"JPEG": 2,
"WEBP": 3,
"GIF": 4,
}
func (x ImageType) String() string {
return proto.EnumName(ImageType_name, int32(x))
}
func (ImageType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_888b6bd9597961ff, []int{1}
}
func init() { func init() {
proto.RegisterEnum("protobuf.MessageType", MessageType_name, MessageType_value) proto.RegisterEnum("protobuf.MessageType", MessageType_name, MessageType_value)
proto.RegisterEnum("protobuf.ImageType", ImageType_name, ImageType_value)
} }
func init() { func init() {
@ -64,7 +100,7 @@ func init() {
} }
var fileDescriptor_888b6bd9597961ff = []byte{ var fileDescriptor_888b6bd9597961ff = []byte{
// 153 bytes of a gzipped FileDescriptorProto // 203 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4e, 0xcd, 0x2b, 0xcd, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4e, 0xcd, 0x2b, 0xcd,
0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x00, 0x53, 0x49, 0xa5, 0x69, 0x5a, 0x75, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x00, 0x53, 0x49, 0xa5, 0x69, 0x5a, 0x75,
0x5c, 0xdc, 0xbe, 0xa9, 0xc5, 0xc5, 0x89, 0xe9, 0xa9, 0x21, 0x95, 0x05, 0xa9, 0x42, 0x12, 0x5c, 0x5c, 0xdc, 0xbe, 0xa9, 0xc5, 0xc5, 0x89, 0xe9, 0xa9, 0x21, 0x95, 0x05, 0xa9, 0x42, 0x12, 0x5c,
@ -73,6 +109,9 @@ var fileDescriptor_888b6bd9597961ff = []byte{
0xfe, 0xf1, 0xfe, 0x7e, 0xae, 0x02, 0x8c, 0x42, 0x02, 0x5c, 0x3c, 0x01, 0xa1, 0x4e, 0x3e, 0x9e, 0xfe, 0xf1, 0xfe, 0x7e, 0xae, 0x02, 0x8c, 0x42, 0x02, 0x5c, 0x3c, 0x01, 0xa1, 0x4e, 0x3e, 0x9e,
0xce, 0xf1, 0xee, 0x41, 0xfe, 0xa1, 0x01, 0x02, 0x4c, 0x42, 0x82, 0x5c, 0xbc, 0x01, 0x41, 0x9e, 0xce, 0xf1, 0xee, 0x41, 0xfe, 0xa1, 0x01, 0x02, 0x4c, 0x42, 0x82, 0x5c, 0xbc, 0x01, 0x41, 0x9e,
0x61, 0x8e, 0x21, 0xae, 0x50, 0x21, 0x66, 0x21, 0x05, 0x2e, 0x99, 0xe0, 0xc8, 0xe0, 0x10, 0x57, 0x61, 0x8e, 0x21, 0xae, 0x50, 0x21, 0x66, 0x21, 0x05, 0x2e, 0x99, 0xe0, 0xc8, 0xe0, 0x10, 0x57,
0x5f, 0xb8, 0x69, 0xa8, 0x2a, 0x58, 0x92, 0xd8, 0xc0, 0x2e, 0x31, 0x06, 0x04, 0x00, 0x00, 0xff, 0x5f, 0xb8, 0x69, 0xa8, 0x2a, 0x58, 0xb4, 0x3c, 0xb9, 0x38, 0x3d, 0x73, 0x61, 0xb6, 0x8b, 0x71,
0xff, 0xa7, 0x40, 0x6b, 0x1d, 0x9f, 0x00, 0x00, 0x00, 0x09, 0xc1, 0x6c, 0xf7, 0xf4, 0x45, 0xb2, 0x9b, 0x9d, 0x8b, 0x39, 0xc0, 0xcf, 0x5d, 0x80, 0x51,
0x88, 0x83, 0x8b, 0xc5, 0x2b, 0xc0, 0xd5, 0x5d, 0x80, 0x09, 0xc4, 0x0a, 0x77, 0x75, 0x02, 0xd9,
0xc1, 0xce, 0xc5, 0xec, 0xee, 0xe9, 0x26, 0xc0, 0x92, 0xc4, 0x06, 0xf6, 0x94, 0x31, 0x20, 0x00,
0x00, 0xff, 0xff, 0xe0, 0xb8, 0x97, 0x7f, 0xea, 0x00, 0x00, 0x00,
} }

View File

@ -19,10 +19,4 @@ enum ImageType {
JPEG = 2; JPEG = 2;
WEBP = 3; WEBP = 3;
GIF = 4; GIF = 4;
// Vector image files is payload data that can be interpreted as a vector image
SVG = 101;
// AVATAR is payload data that can be parsed as avatar compilation instructions
AVATAR = 201;
} }