Documentation
¶
Index ¶
- Variables
- type Dimensions
- func (d *Dimensions) AsDimensions() image.Dimensions
- func (*Dimensions) Descriptor() ([]byte, []int)deprecated
- func (x *Dimensions) GetHeight() int64
- func (x *Dimensions) GetWidth() int64
- func (*Dimensions) ProtoMessage()
- func (x *Dimensions) ProtoReflect() protoreflect.Message
- func (x *Dimensions) Reset()
- func (x *Dimensions) String() string
- type Image
- func (img *Image) AsImage() image.Image
- func (*Image) Descriptor() ([]byte, []int)deprecated
- func (x *Image) GetDescriptions() map[string]string
- func (x *Image) GetDimensions() *Dimensions
- func (x *Image) GetFilename() string
- func (x *Image) GetFilesize() int64
- func (x *Image) GetNames() map[string]string
- func (x *Image) GetStorage() *v0.Storage
- func (x *Image) GetTags() []string
- func (*Image) ProtoMessage()
- func (x *Image) ProtoReflect() protoreflect.Message
- func (x *Image) Reset()
- func (x *Image) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_mediaentity_image_v0_image_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Dimensions ¶
type Dimensions struct {
Width int64 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
Dimensions are the width and height of an image.
func NewDimensions ¶
func NewDimensions(d image.Dimensions) *Dimensions
func (*Dimensions) AsDimensions ¶
func (d *Dimensions) AsDimensions() image.Dimensions
func (*Dimensions) Descriptor
deprecated
func (*Dimensions) Descriptor() ([]byte, []int)
Deprecated: Use Dimensions.ProtoReflect.Descriptor instead.
func (*Dimensions) GetHeight ¶
func (x *Dimensions) GetHeight() int64
func (*Dimensions) GetWidth ¶
func (x *Dimensions) GetWidth() int64
func (*Dimensions) ProtoMessage ¶
func (*Dimensions) ProtoMessage()
func (*Dimensions) ProtoReflect ¶
func (x *Dimensions) ProtoReflect() protoreflect.Message
func (*Dimensions) Reset ¶
func (x *Dimensions) Reset()
func (*Dimensions) String ¶
func (x *Dimensions) String() string
type Image ¶
type Image struct {
Storage *v0.Storage `protobuf:"bytes,1,opt,name=storage,proto3" json:"storage,omitempty"`
Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
Filesize int64 `protobuf:"varint,3,opt,name=filesize,proto3" json:"filesize,omitempty"`
Dimensions *Dimensions `protobuf:"bytes,4,opt,name=dimensions,proto3" json:"dimensions,omitempty"`
Names map[string]string `` /* 151-byte string literal not displayed */
Descriptions map[string]string `` /* 165-byte string literal not displayed */
Tags []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
// contains filtered or unexported fields
}
Image represents an image.
func (*Image) Descriptor
deprecated
func (*Image) GetDescriptions ¶
func (*Image) GetDimensions ¶
func (x *Image) GetDimensions() *Dimensions
func (*Image) GetFilename ¶
func (*Image) GetFilesize ¶
func (*Image) GetStorage ¶
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.