image

package
v0.20.0-alpha6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2016 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package image is a generated protocol buffer package.

It is generated from these files:

google.golang.org/appengine/internal/image/images_service.proto

It has these top-level messages:

ImagesServiceError
ImagesServiceTransform
Transform
ImageData
InputSettings
OutputSettings
ImagesTransformRequest
ImagesTransformResponse
CompositeImageOptions
ImagesCanvas
ImagesCompositeRequest
ImagesCompositeResponse
ImagesHistogramRequest
ImagesHistogram
ImagesHistogramResponse
ImagesGetUrlBaseRequest
ImagesGetUrlBaseResponse
ImagesDeleteUrlBaseRequest
ImagesDeleteUrlBaseResponse

Index

Constants

View Source
const Default_ImagesCanvas_Color int32 = -1
View Source
const Default_ImagesGetUrlBaseRequest_CreateSecureUrl bool = false
View Source
const Default_InputSettings_ParseMetadata bool = false
View Source
const Default_Transform_AllowStretch bool = false
View Source
const Default_Transform_Autolevels bool = false
View Source
const Default_Transform_CropBottomY float32 = 1
View Source
const Default_Transform_CropLeftX float32 = 0
View Source
const Default_Transform_CropOffsetX float32 = 0.5
View Source
const Default_Transform_CropOffsetY float32 = 0.5
View Source
const Default_Transform_CropRightX float32 = 1
View Source
const Default_Transform_CropToFit bool = false
View Source
const Default_Transform_CropTopY float32 = 0
View Source
const Default_Transform_HorizontalFlip bool = false
View Source
const Default_Transform_Rotate int32 = 0
View Source
const Default_Transform_VerticalFlip bool = false

Variables

View Source
var CompositeImageOptions_ANCHOR_name = map[int32]string{
	0: "TOP_LEFT",
	1: "TOP",
	2: "TOP_RIGHT",
	3: "LEFT",
	4: "CENTER",
	5: "RIGHT",
	6: "BOTTOM_LEFT",
	7: "BOTTOM",
	8: "BOTTOM_RIGHT",
}
View Source
var CompositeImageOptions_ANCHOR_value = map[string]int32{
	"TOP_LEFT":     0,
	"TOP":          1,
	"TOP_RIGHT":    2,
	"LEFT":         3,
	"CENTER":       4,
	"RIGHT":        5,
	"BOTTOM_LEFT":  6,
	"BOTTOM":       7,
	"BOTTOM_RIGHT": 8,
}
View Source
var ImagesServiceError_ErrorCode_name = map[int32]string{
	1: "UNSPECIFIED_ERROR",
	2: "BAD_TRANSFORM_DATA",
	3: "NOT_IMAGE",
	4: "BAD_IMAGE_DATA",
	5: "IMAGE_TOO_LARGE",
	6: "INVALID_BLOB_KEY",
	7: "ACCESS_DENIED",
	8: "OBJECT_NOT_FOUND",
}
View Source
var ImagesServiceError_ErrorCode_value = map[string]int32{
	"UNSPECIFIED_ERROR":  1,
	"BAD_TRANSFORM_DATA": 2,
	"NOT_IMAGE":          3,
	"BAD_IMAGE_DATA":     4,
	"IMAGE_TOO_LARGE":    5,
	"INVALID_BLOB_KEY":   6,
	"ACCESS_DENIED":      7,
	"OBJECT_NOT_FOUND":   8,
}
View Source
var ImagesServiceTransform_Type_name = map[int32]string{
	1: "RESIZE",
	2: "ROTATE",
	3: "HORIZONTAL_FLIP",
	4: "VERTICAL_FLIP",
	5: "CROP",
	6: "IM_FEELING_LUCKY",
}
View Source
var ImagesServiceTransform_Type_value = map[string]int32{
	"RESIZE":           1,
	"ROTATE":           2,
	"HORIZONTAL_FLIP":  3,
	"VERTICAL_FLIP":    4,
	"CROP":             5,
	"IM_FEELING_LUCKY": 6,
}
View Source
var InputSettings_ORIENTATION_CORRECTION_TYPE_name = map[int32]string{
	0: "UNCHANGED_ORIENTATION",
	1: "CORRECT_ORIENTATION",
}
View Source
var InputSettings_ORIENTATION_CORRECTION_TYPE_value = map[string]int32{
	"UNCHANGED_ORIENTATION": 0,
	"CORRECT_ORIENTATION":   1,
}
View Source
var OutputSettings_MIME_TYPE_name = map[int32]string{
	0: "PNG",
	1: "JPEG",
	2: "WEBP",
}
View Source
var OutputSettings_MIME_TYPE_value = map[string]int32{
	"PNG":  0,
	"JPEG": 1,
	"WEBP": 2,
}

Functions

This section is empty.

Types

type CompositeImageOptions

type CompositeImageOptions struct {
	SourceIndex      *int32                        `protobuf:"varint,1,req,name=source_index" json:"source_index,omitempty"`
	XOffset          *int32                        `protobuf:"varint,2,req,name=x_offset" json:"x_offset,omitempty"`
	YOffset          *int32                        `protobuf:"varint,3,req,name=y_offset" json:"y_offset,omitempty"`
	Opacity          *float32                      `protobuf:"fixed32,4,req,name=opacity" json:"opacity,omitempty"`
	Anchor           *CompositeImageOptions_ANCHOR `protobuf:"varint,5,req,name=anchor,enum=appengine.CompositeImageOptions_ANCHOR" json:"anchor,omitempty"`
	XXX_unrecognized []byte                        `json:"-"`
}

func (*CompositeImageOptions) GetAnchor

func (*CompositeImageOptions) GetOpacity

func (m *CompositeImageOptions) GetOpacity() float32

func (*CompositeImageOptions) GetSourceIndex

func (m *CompositeImageOptions) GetSourceIndex() int32

func (*CompositeImageOptions) GetXOffset

func (m *CompositeImageOptions) GetXOffset() int32

func (*CompositeImageOptions) GetYOffset

func (m *CompositeImageOptions) GetYOffset() int32

func (*CompositeImageOptions) ProtoMessage

func (*CompositeImageOptions) ProtoMessage()

func (*CompositeImageOptions) Reset

func (m *CompositeImageOptions) Reset()

func (*CompositeImageOptions) String

func (m *CompositeImageOptions) String() string

type CompositeImageOptions_ANCHOR

type CompositeImageOptions_ANCHOR int32
const (
	CompositeImageOptions_TOP_LEFT     CompositeImageOptions_ANCHOR = 0
	CompositeImageOptions_TOP          CompositeImageOptions_ANCHOR = 1
	CompositeImageOptions_TOP_RIGHT    CompositeImageOptions_ANCHOR = 2
	CompositeImageOptions_LEFT         CompositeImageOptions_ANCHOR = 3
	CompositeImageOptions_CENTER       CompositeImageOptions_ANCHOR = 4
	CompositeImageOptions_RIGHT        CompositeImageOptions_ANCHOR = 5
	CompositeImageOptions_BOTTOM_LEFT  CompositeImageOptions_ANCHOR = 6
	CompositeImageOptions_BOTTOM       CompositeImageOptions_ANCHOR = 7
	CompositeImageOptions_BOTTOM_RIGHT CompositeImageOptions_ANCHOR = 8
)

func (CompositeImageOptions_ANCHOR) Enum

func (CompositeImageOptions_ANCHOR) String

func (*CompositeImageOptions_ANCHOR) UnmarshalJSON

func (x *CompositeImageOptions_ANCHOR) UnmarshalJSON(data []byte) error

type ImageData

type ImageData struct {
	Content          []byte  `protobuf:"bytes,1,req,name=content" json:"content,omitempty"`
	BlobKey          *string `protobuf:"bytes,2,opt,name=blob_key" json:"blob_key,omitempty"`
	Width            *int32  `protobuf:"varint,3,opt,name=width" json:"width,omitempty"`
	Height           *int32  `protobuf:"varint,4,opt,name=height" json:"height,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*ImageData) GetBlobKey

func (m *ImageData) GetBlobKey() string

func (*ImageData) GetContent

func (m *ImageData) GetContent() []byte

func (*ImageData) GetHeight

func (m *ImageData) GetHeight() int32

func (*ImageData) GetWidth

func (m *ImageData) GetWidth() int32

func (*ImageData) ProtoMessage

func (*ImageData) ProtoMessage()

func (*ImageData) Reset

func (m *ImageData) Reset()

func (*ImageData) String

func (m *ImageData) String() string

type ImagesCanvas

type ImagesCanvas struct {
	Width            *int32          `protobuf:"varint,1,req,name=width" json:"width,omitempty"`
	Height           *int32          `protobuf:"varint,2,req,name=height" json:"height,omitempty"`
	Output           *OutputSettings `protobuf:"bytes,3,req,name=output" json:"output,omitempty"`
	Color            *int32          `protobuf:"varint,4,opt,name=color,def=-1" json:"color,omitempty"`
	XXX_unrecognized []byte          `json:"-"`
}

func (*ImagesCanvas) GetColor

func (m *ImagesCanvas) GetColor() int32

func (*ImagesCanvas) GetHeight

func (m *ImagesCanvas) GetHeight() int32

func (*ImagesCanvas) GetOutput

func (m *ImagesCanvas) GetOutput() *OutputSettings

func (*ImagesCanvas) GetWidth

func (m *ImagesCanvas) GetWidth() int32

func (*ImagesCanvas) ProtoMessage

func (*ImagesCanvas) ProtoMessage()

func (*ImagesCanvas) Reset

func (m *ImagesCanvas) Reset()

func (*ImagesCanvas) String

func (m *ImagesCanvas) String() string

type ImagesCompositeRequest

type ImagesCompositeRequest struct {
	Image            []*ImageData             `protobuf:"bytes,1,rep,name=image" json:"image,omitempty"`
	Options          []*CompositeImageOptions `protobuf:"bytes,2,rep,name=options" json:"options,omitempty"`
	Canvas           *ImagesCanvas            `protobuf:"bytes,3,req,name=canvas" json:"canvas,omitempty"`
	XXX_unrecognized []byte                   `json:"-"`
}

func (*ImagesCompositeRequest) GetCanvas

func (m *ImagesCompositeRequest) GetCanvas() *ImagesCanvas

func (*ImagesCompositeRequest) GetImage

func (m *ImagesCompositeRequest) GetImage() []*ImageData

func (*ImagesCompositeRequest) GetOptions

func (m *ImagesCompositeRequest) GetOptions() []*CompositeImageOptions

func (*ImagesCompositeRequest) ProtoMessage

func (*ImagesCompositeRequest) ProtoMessage()

func (*ImagesCompositeRequest) Reset

func (m *ImagesCompositeRequest) Reset()

func (*ImagesCompositeRequest) String

func (m *ImagesCompositeRequest) String() string

type ImagesCompositeResponse

type ImagesCompositeResponse struct {
	Image            *ImageData `protobuf:"bytes,1,req,name=image" json:"image,omitempty"`
	XXX_unrecognized []byte     `json:"-"`
}

func (*ImagesCompositeResponse) GetImage

func (m *ImagesCompositeResponse) GetImage() *ImageData

func (*ImagesCompositeResponse) ProtoMessage

func (*ImagesCompositeResponse) ProtoMessage()

func (*ImagesCompositeResponse) Reset

func (m *ImagesCompositeResponse) Reset()

func (*ImagesCompositeResponse) String

func (m *ImagesCompositeResponse) String() string

type ImagesDeleteUrlBaseRequest

type ImagesDeleteUrlBaseRequest struct {
	BlobKey          *string `protobuf:"bytes,1,req,name=blob_key" json:"blob_key,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*ImagesDeleteUrlBaseRequest) GetBlobKey

func (m *ImagesDeleteUrlBaseRequest) GetBlobKey() string

func (*ImagesDeleteUrlBaseRequest) ProtoMessage

func (*ImagesDeleteUrlBaseRequest) ProtoMessage()

func (*ImagesDeleteUrlBaseRequest) Reset

func (m *ImagesDeleteUrlBaseRequest) Reset()

func (*ImagesDeleteUrlBaseRequest) String

func (m *ImagesDeleteUrlBaseRequest) String() string

type ImagesDeleteUrlBaseResponse

type ImagesDeleteUrlBaseResponse struct {
	XXX_unrecognized []byte `json:"-"`
}

func (*ImagesDeleteUrlBaseResponse) ProtoMessage

func (*ImagesDeleteUrlBaseResponse) ProtoMessage()

func (*ImagesDeleteUrlBaseResponse) Reset

func (m *ImagesDeleteUrlBaseResponse) Reset()

func (*ImagesDeleteUrlBaseResponse) String

func (m *ImagesDeleteUrlBaseResponse) String() string

type ImagesGetUrlBaseRequest

type ImagesGetUrlBaseRequest struct {
	BlobKey          *string `protobuf:"bytes,1,req,name=blob_key" json:"blob_key,omitempty"`
	CreateSecureUrl  *bool   `protobuf:"varint,2,opt,name=create_secure_url,def=0" json:"create_secure_url,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*ImagesGetUrlBaseRequest) GetBlobKey

func (m *ImagesGetUrlBaseRequest) GetBlobKey() string

func (*ImagesGetUrlBaseRequest) GetCreateSecureUrl

func (m *ImagesGetUrlBaseRequest) GetCreateSecureUrl() bool

func (*ImagesGetUrlBaseRequest) ProtoMessage

func (*ImagesGetUrlBaseRequest) ProtoMessage()

func (*ImagesGetUrlBaseRequest) Reset

func (m *ImagesGetUrlBaseRequest) Reset()

func (*ImagesGetUrlBaseRequest) String

func (m *ImagesGetUrlBaseRequest) String() string

type ImagesGetUrlBaseResponse

type ImagesGetUrlBaseResponse struct {
	Url              *string `protobuf:"bytes,1,req,name=url" json:"url,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*ImagesGetUrlBaseResponse) GetUrl

func (m *ImagesGetUrlBaseResponse) GetUrl() string

func (*ImagesGetUrlBaseResponse) ProtoMessage

func (*ImagesGetUrlBaseResponse) ProtoMessage()

func (*ImagesGetUrlBaseResponse) Reset

func (m *ImagesGetUrlBaseResponse) Reset()

func (*ImagesGetUrlBaseResponse) String

func (m *ImagesGetUrlBaseResponse) String() string

type ImagesHistogram

type ImagesHistogram struct {
	Red              []int32 `protobuf:"varint,1,rep,name=red" json:"red,omitempty"`
	Green            []int32 `protobuf:"varint,2,rep,name=green" json:"green,omitempty"`
	Blue             []int32 `protobuf:"varint,3,rep,name=blue" json:"blue,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*ImagesHistogram) GetBlue

func (m *ImagesHistogram) GetBlue() []int32

func (*ImagesHistogram) GetGreen

func (m *ImagesHistogram) GetGreen() []int32

func (*ImagesHistogram) GetRed

func (m *ImagesHistogram) GetRed() []int32

func (*ImagesHistogram) ProtoMessage

func (*ImagesHistogram) ProtoMessage()

func (*ImagesHistogram) Reset

func (m *ImagesHistogram) Reset()

func (*ImagesHistogram) String

func (m *ImagesHistogram) String() string

type ImagesHistogramRequest

type ImagesHistogramRequest struct {
	Image            *ImageData `protobuf:"bytes,1,req,name=image" json:"image,omitempty"`
	XXX_unrecognized []byte     `json:"-"`
}

func (*ImagesHistogramRequest) GetImage

func (m *ImagesHistogramRequest) GetImage() *ImageData

func (*ImagesHistogramRequest) ProtoMessage

func (*ImagesHistogramRequest) ProtoMessage()

func (*ImagesHistogramRequest) Reset

func (m *ImagesHistogramRequest) Reset()

func (*ImagesHistogramRequest) String

func (m *ImagesHistogramRequest) String() string

type ImagesHistogramResponse

type ImagesHistogramResponse struct {
	Histogram        *ImagesHistogram `protobuf:"bytes,1,req,name=histogram" json:"histogram,omitempty"`
	XXX_unrecognized []byte           `json:"-"`
}

func (*ImagesHistogramResponse) GetHistogram

func (m *ImagesHistogramResponse) GetHistogram() *ImagesHistogram

func (*ImagesHistogramResponse) ProtoMessage

func (*ImagesHistogramResponse) ProtoMessage()

func (*ImagesHistogramResponse) Reset

func (m *ImagesHistogramResponse) Reset()

func (*ImagesHistogramResponse) String

func (m *ImagesHistogramResponse) String() string

type ImagesServiceError

type ImagesServiceError struct {
	XXX_unrecognized []byte `json:"-"`
}

func (*ImagesServiceError) ProtoMessage

func (*ImagesServiceError) ProtoMessage()

func (*ImagesServiceError) Reset

func (m *ImagesServiceError) Reset()

func (*ImagesServiceError) String

func (m *ImagesServiceError) String() string

type ImagesServiceError_ErrorCode

type ImagesServiceError_ErrorCode int32
const (
	ImagesServiceError_UNSPECIFIED_ERROR  ImagesServiceError_ErrorCode = 1
	ImagesServiceError_BAD_TRANSFORM_DATA ImagesServiceError_ErrorCode = 2
	ImagesServiceError_NOT_IMAGE          ImagesServiceError_ErrorCode = 3
	ImagesServiceError_BAD_IMAGE_DATA     ImagesServiceError_ErrorCode = 4
	ImagesServiceError_IMAGE_TOO_LARGE    ImagesServiceError_ErrorCode = 5
	ImagesServiceError_INVALID_BLOB_KEY   ImagesServiceError_ErrorCode = 6
	ImagesServiceError_ACCESS_DENIED      ImagesServiceError_ErrorCode = 7
	ImagesServiceError_OBJECT_NOT_FOUND   ImagesServiceError_ErrorCode = 8
)

func (ImagesServiceError_ErrorCode) Enum

func (ImagesServiceError_ErrorCode) String

func (*ImagesServiceError_ErrorCode) UnmarshalJSON

func (x *ImagesServiceError_ErrorCode) UnmarshalJSON(data []byte) error

type ImagesServiceTransform

type ImagesServiceTransform struct {
	XXX_unrecognized []byte `json:"-"`
}

func (*ImagesServiceTransform) ProtoMessage

func (*ImagesServiceTransform) ProtoMessage()

func (*ImagesServiceTransform) Reset

func (m *ImagesServiceTransform) Reset()

func (*ImagesServiceTransform) String

func (m *ImagesServiceTransform) String() string

type ImagesServiceTransform_Type

type ImagesServiceTransform_Type int32
const (
	ImagesServiceTransform_RESIZE           ImagesServiceTransform_Type = 1
	ImagesServiceTransform_ROTATE           ImagesServiceTransform_Type = 2
	ImagesServiceTransform_HORIZONTAL_FLIP  ImagesServiceTransform_Type = 3
	ImagesServiceTransform_VERTICAL_FLIP    ImagesServiceTransform_Type = 4
	ImagesServiceTransform_CROP             ImagesServiceTransform_Type = 5
	ImagesServiceTransform_IM_FEELING_LUCKY ImagesServiceTransform_Type = 6
)

func (ImagesServiceTransform_Type) Enum

func (ImagesServiceTransform_Type) String

func (*ImagesServiceTransform_Type) UnmarshalJSON

func (x *ImagesServiceTransform_Type) UnmarshalJSON(data []byte) error

type ImagesTransformRequest

type ImagesTransformRequest struct {
	Image            *ImageData      `protobuf:"bytes,1,req,name=image" json:"image,omitempty"`
	Transform        []*Transform    `protobuf:"bytes,2,rep,name=transform" json:"transform,omitempty"`
	Output           *OutputSettings `protobuf:"bytes,3,req,name=output" json:"output,omitempty"`
	Input            *InputSettings  `protobuf:"bytes,4,opt,name=input" json:"input,omitempty"`
	XXX_unrecognized []byte          `json:"-"`
}

func (*ImagesTransformRequest) GetImage

func (m *ImagesTransformRequest) GetImage() *ImageData

func (*ImagesTransformRequest) GetInput

func (m *ImagesTransformRequest) GetInput() *InputSettings

func (*ImagesTransformRequest) GetOutput

func (m *ImagesTransformRequest) GetOutput() *OutputSettings

func (*ImagesTransformRequest) GetTransform

func (m *ImagesTransformRequest) GetTransform() []*Transform

func (*ImagesTransformRequest) ProtoMessage

func (*ImagesTransformRequest) ProtoMessage()

func (*ImagesTransformRequest) Reset

func (m *ImagesTransformRequest) Reset()

func (*ImagesTransformRequest) String

func (m *ImagesTransformRequest) String() string

type ImagesTransformResponse

type ImagesTransformResponse struct {
	Image            *ImageData `protobuf:"bytes,1,req,name=image" json:"image,omitempty"`
	SourceMetadata   *string    `protobuf:"bytes,2,opt,name=source_metadata" json:"source_metadata,omitempty"`
	XXX_unrecognized []byte     `json:"-"`
}

func (*ImagesTransformResponse) GetImage

func (m *ImagesTransformResponse) GetImage() *ImageData

func (*ImagesTransformResponse) GetSourceMetadata

func (m *ImagesTransformResponse) GetSourceMetadata() string

func (*ImagesTransformResponse) ProtoMessage

func (*ImagesTransformResponse) ProtoMessage()

func (*ImagesTransformResponse) Reset

func (m *ImagesTransformResponse) Reset()

func (*ImagesTransformResponse) String

func (m *ImagesTransformResponse) String() string

type InputSettings

type InputSettings struct {
	CorrectExifOrientation     *InputSettings_ORIENTATION_CORRECTION_TYPE `` /* 158-byte string literal not displayed */
	ParseMetadata              *bool                                      `protobuf:"varint,2,opt,name=parse_metadata,def=0" json:"parse_metadata,omitempty"`
	TransparentSubstitutionRgb *int32                                     `protobuf:"varint,3,opt,name=transparent_substitution_rgb" json:"transparent_substitution_rgb,omitempty"`
	XXX_unrecognized           []byte                                     `json:"-"`
}

func (*InputSettings) GetCorrectExifOrientation

func (m *InputSettings) GetCorrectExifOrientation() InputSettings_ORIENTATION_CORRECTION_TYPE

func (*InputSettings) GetParseMetadata

func (m *InputSettings) GetParseMetadata() bool

func (*InputSettings) GetTransparentSubstitutionRgb

func (m *InputSettings) GetTransparentSubstitutionRgb() int32

func (*InputSettings) ProtoMessage

func (*InputSettings) ProtoMessage()

func (*InputSettings) Reset

func (m *InputSettings) Reset()

func (*InputSettings) String

func (m *InputSettings) String() string

type InputSettings_ORIENTATION_CORRECTION_TYPE

type InputSettings_ORIENTATION_CORRECTION_TYPE int32
const (
	InputSettings_UNCHANGED_ORIENTATION InputSettings_ORIENTATION_CORRECTION_TYPE = 0
	InputSettings_CORRECT_ORIENTATION   InputSettings_ORIENTATION_CORRECTION_TYPE = 1
)
const Default_InputSettings_CorrectExifOrientation InputSettings_ORIENTATION_CORRECTION_TYPE = InputSettings_UNCHANGED_ORIENTATION

func (InputSettings_ORIENTATION_CORRECTION_TYPE) Enum

func (InputSettings_ORIENTATION_CORRECTION_TYPE) String

func (*InputSettings_ORIENTATION_CORRECTION_TYPE) UnmarshalJSON

func (x *InputSettings_ORIENTATION_CORRECTION_TYPE) UnmarshalJSON(data []byte) error

type OutputSettings

type OutputSettings struct {
	MimeType         *OutputSettings_MIME_TYPE `protobuf:"varint,1,opt,name=mime_type,enum=appengine.OutputSettings_MIME_TYPE,def=0" json:"mime_type,omitempty"`
	Quality          *int32                    `protobuf:"varint,2,opt,name=quality" json:"quality,omitempty"`
	XXX_unrecognized []byte                    `json:"-"`
}

func (*OutputSettings) GetMimeType

func (m *OutputSettings) GetMimeType() OutputSettings_MIME_TYPE

func (*OutputSettings) GetQuality

func (m *OutputSettings) GetQuality() int32

func (*OutputSettings) ProtoMessage

func (*OutputSettings) ProtoMessage()

func (*OutputSettings) Reset

func (m *OutputSettings) Reset()

func (*OutputSettings) String

func (m *OutputSettings) String() string

type OutputSettings_MIME_TYPE

type OutputSettings_MIME_TYPE int32
const (
	OutputSettings_PNG  OutputSettings_MIME_TYPE = 0
	OutputSettings_JPEG OutputSettings_MIME_TYPE = 1
	OutputSettings_WEBP OutputSettings_MIME_TYPE = 2
)
const Default_OutputSettings_MimeType OutputSettings_MIME_TYPE = OutputSettings_PNG

func (OutputSettings_MIME_TYPE) Enum

func (OutputSettings_MIME_TYPE) String

func (x OutputSettings_MIME_TYPE) String() string

func (*OutputSettings_MIME_TYPE) UnmarshalJSON

func (x *OutputSettings_MIME_TYPE) UnmarshalJSON(data []byte) error

type Transform

type Transform struct {
	Width            *int32   `protobuf:"varint,1,opt,name=width" json:"width,omitempty"`
	Height           *int32   `protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
	CropToFit        *bool    `protobuf:"varint,11,opt,name=crop_to_fit,def=0" json:"crop_to_fit,omitempty"`
	CropOffsetX      *float32 `protobuf:"fixed32,12,opt,name=crop_offset_x,def=0.5" json:"crop_offset_x,omitempty"`
	CropOffsetY      *float32 `protobuf:"fixed32,13,opt,name=crop_offset_y,def=0.5" json:"crop_offset_y,omitempty"`
	Rotate           *int32   `protobuf:"varint,3,opt,name=rotate,def=0" json:"rotate,omitempty"`
	HorizontalFlip   *bool    `protobuf:"varint,4,opt,name=horizontal_flip,def=0" json:"horizontal_flip,omitempty"`
	VerticalFlip     *bool    `protobuf:"varint,5,opt,name=vertical_flip,def=0" json:"vertical_flip,omitempty"`
	CropLeftX        *float32 `protobuf:"fixed32,6,opt,name=crop_left_x,def=0" json:"crop_left_x,omitempty"`
	CropTopY         *float32 `protobuf:"fixed32,7,opt,name=crop_top_y,def=0" json:"crop_top_y,omitempty"`
	CropRightX       *float32 `protobuf:"fixed32,8,opt,name=crop_right_x,def=1" json:"crop_right_x,omitempty"`
	CropBottomY      *float32 `protobuf:"fixed32,9,opt,name=crop_bottom_y,def=1" json:"crop_bottom_y,omitempty"`
	Autolevels       *bool    `protobuf:"varint,10,opt,name=autolevels,def=0" json:"autolevels,omitempty"`
	AllowStretch     *bool    `protobuf:"varint,14,opt,name=allow_stretch,def=0" json:"allow_stretch,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*Transform) GetAllowStretch

func (m *Transform) GetAllowStretch() bool

func (*Transform) GetAutolevels

func (m *Transform) GetAutolevels() bool

func (*Transform) GetCropBottomY

func (m *Transform) GetCropBottomY() float32

func (*Transform) GetCropLeftX

func (m *Transform) GetCropLeftX() float32

func (*Transform) GetCropOffsetX

func (m *Transform) GetCropOffsetX() float32

func (*Transform) GetCropOffsetY

func (m *Transform) GetCropOffsetY() float32

func (*Transform) GetCropRightX

func (m *Transform) GetCropRightX() float32

func (*Transform) GetCropToFit

func (m *Transform) GetCropToFit() bool

func (*Transform) GetCropTopY

func (m *Transform) GetCropTopY() float32

func (*Transform) GetHeight

func (m *Transform) GetHeight() int32

func (*Transform) GetHorizontalFlip

func (m *Transform) GetHorizontalFlip() bool

func (*Transform) GetRotate

func (m *Transform) GetRotate() int32

func (*Transform) GetVerticalFlip

func (m *Transform) GetVerticalFlip() bool

func (*Transform) GetWidth

func (m *Transform) GetWidth() int32

func (*Transform) ProtoMessage

func (*Transform) ProtoMessage()

func (*Transform) Reset

func (m *Transform) Reset()

func (*Transform) String

func (m *Transform) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL