image

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default_Transform_CropToFit      = bool(false)
	Default_Transform_CropOffsetX    = float32(0.5)
	Default_Transform_CropOffsetY    = float32(0.5)
	Default_Transform_Rotate         = int32(0)
	Default_Transform_HorizontalFlip = bool(false)
	Default_Transform_VerticalFlip   = bool(false)
	Default_Transform_CropLeftX      = float32(0)
	Default_Transform_CropTopY       = float32(0)
	Default_Transform_CropRightX     = float32(1)
	Default_Transform_CropBottomY    = float32(1)
	Default_Transform_Autolevels     = bool(false)
	Default_Transform_AllowStretch   = bool(false)
)

Default values for Transform fields.

View Source
const (
	Default_InputSettings_CorrectExifOrientation = InputSettings_UNCHANGED_ORIENTATION
	Default_InputSettings_ParseMetadata          = bool(false)
)

Default values for InputSettings fields.

View Source
const (
	Default_ImagesCanvas_Color = int32(-1)
)

Default values for ImagesCanvas fields.

View Source
const (
	Default_ImagesGetUrlBaseRequest_CreateSecureUrl = bool(false)
)

Default values for ImagesGetUrlBaseRequest fields.

View Source
const (
	Default_OutputSettings_MimeType = OutputSettings_PNG
)

Default values for OutputSettings fields.

Variables

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",
	}
	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,
	}
)

Enum value maps for ImagesServiceError_ErrorCode.

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",
	}
	ImagesServiceTransform_Type_value = map[string]int32{
		"RESIZE":           1,
		"ROTATE":           2,
		"HORIZONTAL_FLIP":  3,
		"VERTICAL_FLIP":    4,
		"CROP":             5,
		"IM_FEELING_LUCKY": 6,
	}
)

Enum value maps for ImagesServiceTransform_Type.

View Source
var (
	InputSettings_ORIENTATION_CORRECTION_TYPE_name = map[int32]string{
		0: "UNCHANGED_ORIENTATION",
		1: "CORRECT_ORIENTATION",
	}
	InputSettings_ORIENTATION_CORRECTION_TYPE_value = map[string]int32{
		"UNCHANGED_ORIENTATION": 0,
		"CORRECT_ORIENTATION":   1,
	}
)

Enum value maps for InputSettings_ORIENTATION_CORRECTION_TYPE.

View Source
var (
	OutputSettings_MIME_TYPE_name = map[int32]string{
		0: "PNG",
		1: "JPEG",
		2: "WEBP",
	}
	OutputSettings_MIME_TYPE_value = map[string]int32{
		"PNG":  0,
		"JPEG": 1,
		"WEBP": 2,
	}
)

Enum value maps for OutputSettings_MIME_TYPE.

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",
	}
	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,
	}
)

Enum value maps for CompositeImageOptions_ANCHOR.

View Source
var File_images_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CompositeImageOptions

type CompositeImageOptions struct {
	SourceIndex *int32                        `protobuf:"varint,1,req,name=source_index,json=sourceIndex" json:"source_index,omitempty"`
	XOffset     *int32                        `protobuf:"varint,2,req,name=x_offset,json=xOffset" json:"x_offset,omitempty"`
	YOffset     *int32                        `protobuf:"varint,3,req,name=y_offset,json=yOffset" 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.v2.CompositeImageOptions_ANCHOR" json:"anchor,omitempty"`
	// contains filtered or unexported fields
}

func (*CompositeImageOptions) Descriptor deprecated

func (*CompositeImageOptions) Descriptor() ([]byte, []int)

Deprecated: Use CompositeImageOptions.ProtoReflect.Descriptor instead.

func (*CompositeImageOptions) GetAnchor

func (*CompositeImageOptions) GetOpacity

func (x *CompositeImageOptions) GetOpacity() float32

func (*CompositeImageOptions) GetSourceIndex

func (x *CompositeImageOptions) GetSourceIndex() int32

func (*CompositeImageOptions) GetXOffset

func (x *CompositeImageOptions) GetXOffset() int32

func (*CompositeImageOptions) GetYOffset

func (x *CompositeImageOptions) GetYOffset() int32

func (*CompositeImageOptions) ProtoMessage

func (*CompositeImageOptions) ProtoMessage()

func (*CompositeImageOptions) ProtoReflect added in v2.0.4

func (x *CompositeImageOptions) ProtoReflect() protoreflect.Message

func (*CompositeImageOptions) Reset

func (x *CompositeImageOptions) Reset()

func (*CompositeImageOptions) String

func (x *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) Descriptor added in v2.0.4

func (CompositeImageOptions_ANCHOR) Enum

func (CompositeImageOptions_ANCHOR) EnumDescriptor deprecated

func (CompositeImageOptions_ANCHOR) EnumDescriptor() ([]byte, []int)

Deprecated: Use CompositeImageOptions_ANCHOR.Descriptor instead.

func (CompositeImageOptions_ANCHOR) Number added in v2.0.4

func (CompositeImageOptions_ANCHOR) String

func (CompositeImageOptions_ANCHOR) Type added in v2.0.4

func (*CompositeImageOptions_ANCHOR) UnmarshalJSON deprecated

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

Deprecated: Do not use.

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=blobKey" 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"`
	// contains filtered or unexported fields
}

func (*ImageData) Descriptor deprecated

func (*ImageData) Descriptor() ([]byte, []int)

Deprecated: Use ImageData.ProtoReflect.Descriptor instead.

func (*ImageData) GetBlobKey

func (x *ImageData) GetBlobKey() string

func (*ImageData) GetContent

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

func (*ImageData) GetHeight

func (x *ImageData) GetHeight() int32

func (*ImageData) GetWidth

func (x *ImageData) GetWidth() int32

func (*ImageData) ProtoMessage

func (*ImageData) ProtoMessage()

func (*ImageData) ProtoReflect added in v2.0.4

func (x *ImageData) ProtoReflect() protoreflect.Message

func (*ImageData) Reset

func (x *ImageData) Reset()

func (*ImageData) String

func (x *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"`
	// contains filtered or unexported fields
}

func (*ImagesCanvas) Descriptor deprecated

func (*ImagesCanvas) Descriptor() ([]byte, []int)

Deprecated: Use ImagesCanvas.ProtoReflect.Descriptor instead.

func (*ImagesCanvas) GetColor

func (x *ImagesCanvas) GetColor() int32

func (*ImagesCanvas) GetHeight

func (x *ImagesCanvas) GetHeight() int32

func (*ImagesCanvas) GetOutput

func (x *ImagesCanvas) GetOutput() *OutputSettings

func (*ImagesCanvas) GetWidth

func (x *ImagesCanvas) GetWidth() int32

func (*ImagesCanvas) ProtoMessage

func (*ImagesCanvas) ProtoMessage()

func (*ImagesCanvas) ProtoReflect added in v2.0.4

func (x *ImagesCanvas) ProtoReflect() protoreflect.Message

func (*ImagesCanvas) Reset

func (x *ImagesCanvas) Reset()

func (*ImagesCanvas) String

func (x *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"`
	// contains filtered or unexported fields
}

func (*ImagesCompositeRequest) Descriptor deprecated

func (*ImagesCompositeRequest) Descriptor() ([]byte, []int)

Deprecated: Use ImagesCompositeRequest.ProtoReflect.Descriptor instead.

func (*ImagesCompositeRequest) GetCanvas

func (x *ImagesCompositeRequest) GetCanvas() *ImagesCanvas

func (*ImagesCompositeRequest) GetImage

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

func (*ImagesCompositeRequest) GetOptions

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

func (*ImagesCompositeRequest) ProtoMessage

func (*ImagesCompositeRequest) ProtoMessage()

func (*ImagesCompositeRequest) ProtoReflect added in v2.0.4

func (x *ImagesCompositeRequest) ProtoReflect() protoreflect.Message

func (*ImagesCompositeRequest) Reset

func (x *ImagesCompositeRequest) Reset()

func (*ImagesCompositeRequest) String

func (x *ImagesCompositeRequest) String() string

type ImagesCompositeResponse

type ImagesCompositeResponse struct {
	Image *ImageData `protobuf:"bytes,1,req,name=image" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*ImagesCompositeResponse) Descriptor deprecated

func (*ImagesCompositeResponse) Descriptor() ([]byte, []int)

Deprecated: Use ImagesCompositeResponse.ProtoReflect.Descriptor instead.

func (*ImagesCompositeResponse) GetImage

func (x *ImagesCompositeResponse) GetImage() *ImageData

func (*ImagesCompositeResponse) ProtoMessage

func (*ImagesCompositeResponse) ProtoMessage()

func (*ImagesCompositeResponse) ProtoReflect added in v2.0.4

func (x *ImagesCompositeResponse) ProtoReflect() protoreflect.Message

func (*ImagesCompositeResponse) Reset

func (x *ImagesCompositeResponse) Reset()

func (*ImagesCompositeResponse) String

func (x *ImagesCompositeResponse) String() string

type ImagesDeleteUrlBaseRequest

type ImagesDeleteUrlBaseRequest struct {
	BlobKey *string `protobuf:"bytes,1,req,name=blob_key,json=blobKey" json:"blob_key,omitempty"`
	// contains filtered or unexported fields
}

func (*ImagesDeleteUrlBaseRequest) Descriptor deprecated

func (*ImagesDeleteUrlBaseRequest) Descriptor() ([]byte, []int)

Deprecated: Use ImagesDeleteUrlBaseRequest.ProtoReflect.Descriptor instead.

func (*ImagesDeleteUrlBaseRequest) GetBlobKey

func (x *ImagesDeleteUrlBaseRequest) GetBlobKey() string

func (*ImagesDeleteUrlBaseRequest) ProtoMessage

func (*ImagesDeleteUrlBaseRequest) ProtoMessage()

func (*ImagesDeleteUrlBaseRequest) ProtoReflect added in v2.0.4

func (*ImagesDeleteUrlBaseRequest) Reset

func (x *ImagesDeleteUrlBaseRequest) Reset()

func (*ImagesDeleteUrlBaseRequest) String

func (x *ImagesDeleteUrlBaseRequest) String() string

type ImagesDeleteUrlBaseResponse

type ImagesDeleteUrlBaseResponse struct {
	// contains filtered or unexported fields
}

func (*ImagesDeleteUrlBaseResponse) Descriptor deprecated

func (*ImagesDeleteUrlBaseResponse) Descriptor() ([]byte, []int)

Deprecated: Use ImagesDeleteUrlBaseResponse.ProtoReflect.Descriptor instead.

func (*ImagesDeleteUrlBaseResponse) ProtoMessage

func (*ImagesDeleteUrlBaseResponse) ProtoMessage()

func (*ImagesDeleteUrlBaseResponse) ProtoReflect added in v2.0.4

func (*ImagesDeleteUrlBaseResponse) Reset

func (x *ImagesDeleteUrlBaseResponse) Reset()

func (*ImagesDeleteUrlBaseResponse) String

func (x *ImagesDeleteUrlBaseResponse) String() string

type ImagesGetUrlBaseRequest

type ImagesGetUrlBaseRequest struct {
	BlobKey         *string `protobuf:"bytes,1,req,name=blob_key,json=blobKey" json:"blob_key,omitempty"`
	CreateSecureUrl *bool   `protobuf:"varint,2,opt,name=create_secure_url,json=createSecureUrl,def=0" json:"create_secure_url,omitempty"`
	// contains filtered or unexported fields
}

func (*ImagesGetUrlBaseRequest) Descriptor deprecated

func (*ImagesGetUrlBaseRequest) Descriptor() ([]byte, []int)

Deprecated: Use ImagesGetUrlBaseRequest.ProtoReflect.Descriptor instead.

func (*ImagesGetUrlBaseRequest) GetBlobKey

func (x *ImagesGetUrlBaseRequest) GetBlobKey() string

func (*ImagesGetUrlBaseRequest) GetCreateSecureUrl

func (x *ImagesGetUrlBaseRequest) GetCreateSecureUrl() bool

func (*ImagesGetUrlBaseRequest) ProtoMessage

func (*ImagesGetUrlBaseRequest) ProtoMessage()

func (*ImagesGetUrlBaseRequest) ProtoReflect added in v2.0.4

func (x *ImagesGetUrlBaseRequest) ProtoReflect() protoreflect.Message

func (*ImagesGetUrlBaseRequest) Reset

func (x *ImagesGetUrlBaseRequest) Reset()

func (*ImagesGetUrlBaseRequest) String

func (x *ImagesGetUrlBaseRequest) String() string

type ImagesGetUrlBaseResponse

type ImagesGetUrlBaseResponse struct {
	Url *string `protobuf:"bytes,1,req,name=url" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*ImagesGetUrlBaseResponse) Descriptor deprecated

func (*ImagesGetUrlBaseResponse) Descriptor() ([]byte, []int)

Deprecated: Use ImagesGetUrlBaseResponse.ProtoReflect.Descriptor instead.

func (*ImagesGetUrlBaseResponse) GetUrl

func (x *ImagesGetUrlBaseResponse) GetUrl() string

func (*ImagesGetUrlBaseResponse) ProtoMessage

func (*ImagesGetUrlBaseResponse) ProtoMessage()

func (*ImagesGetUrlBaseResponse) ProtoReflect added in v2.0.4

func (x *ImagesGetUrlBaseResponse) ProtoReflect() protoreflect.Message

func (*ImagesGetUrlBaseResponse) Reset

func (x *ImagesGetUrlBaseResponse) Reset()

func (*ImagesGetUrlBaseResponse) String

func (x *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"`
	// contains filtered or unexported fields
}

func (*ImagesHistogram) Descriptor deprecated

func (*ImagesHistogram) Descriptor() ([]byte, []int)

Deprecated: Use ImagesHistogram.ProtoReflect.Descriptor instead.

func (*ImagesHistogram) GetBlue

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

func (*ImagesHistogram) GetGreen

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

func (*ImagesHistogram) GetRed

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

func (*ImagesHistogram) ProtoMessage

func (*ImagesHistogram) ProtoMessage()

func (*ImagesHistogram) ProtoReflect added in v2.0.4

func (x *ImagesHistogram) ProtoReflect() protoreflect.Message

func (*ImagesHistogram) Reset

func (x *ImagesHistogram) Reset()

func (*ImagesHistogram) String

func (x *ImagesHistogram) String() string

type ImagesHistogramRequest

type ImagesHistogramRequest struct {
	Image *ImageData `protobuf:"bytes,1,req,name=image" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*ImagesHistogramRequest) Descriptor deprecated

func (*ImagesHistogramRequest) Descriptor() ([]byte, []int)

Deprecated: Use ImagesHistogramRequest.ProtoReflect.Descriptor instead.

func (*ImagesHistogramRequest) GetImage

func (x *ImagesHistogramRequest) GetImage() *ImageData

func (*ImagesHistogramRequest) ProtoMessage

func (*ImagesHistogramRequest) ProtoMessage()

func (*ImagesHistogramRequest) ProtoReflect added in v2.0.4

func (x *ImagesHistogramRequest) ProtoReflect() protoreflect.Message

func (*ImagesHistogramRequest) Reset

func (x *ImagesHistogramRequest) Reset()

func (*ImagesHistogramRequest) String

func (x *ImagesHistogramRequest) String() string

type ImagesHistogramResponse

type ImagesHistogramResponse struct {
	Histogram *ImagesHistogram `protobuf:"bytes,1,req,name=histogram" json:"histogram,omitempty"`
	// contains filtered or unexported fields
}

func (*ImagesHistogramResponse) Descriptor deprecated

func (*ImagesHistogramResponse) Descriptor() ([]byte, []int)

Deprecated: Use ImagesHistogramResponse.ProtoReflect.Descriptor instead.

func (*ImagesHistogramResponse) GetHistogram

func (x *ImagesHistogramResponse) GetHistogram() *ImagesHistogram

func (*ImagesHistogramResponse) ProtoMessage

func (*ImagesHistogramResponse) ProtoMessage()

func (*ImagesHistogramResponse) ProtoReflect added in v2.0.4

func (x *ImagesHistogramResponse) ProtoReflect() protoreflect.Message

func (*ImagesHistogramResponse) Reset

func (x *ImagesHistogramResponse) Reset()

func (*ImagesHistogramResponse) String

func (x *ImagesHistogramResponse) String() string

type ImagesServiceError

type ImagesServiceError struct {
	// contains filtered or unexported fields
}

func (*ImagesServiceError) Descriptor deprecated

func (*ImagesServiceError) Descriptor() ([]byte, []int)

Deprecated: Use ImagesServiceError.ProtoReflect.Descriptor instead.

func (*ImagesServiceError) ProtoMessage

func (*ImagesServiceError) ProtoMessage()

func (*ImagesServiceError) ProtoReflect added in v2.0.4

func (x *ImagesServiceError) ProtoReflect() protoreflect.Message

func (*ImagesServiceError) Reset

func (x *ImagesServiceError) Reset()

func (*ImagesServiceError) String

func (x *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) Descriptor added in v2.0.4

func (ImagesServiceError_ErrorCode) Enum

func (ImagesServiceError_ErrorCode) EnumDescriptor deprecated

func (ImagesServiceError_ErrorCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ImagesServiceError_ErrorCode.Descriptor instead.

func (ImagesServiceError_ErrorCode) Number added in v2.0.4

func (ImagesServiceError_ErrorCode) String

func (ImagesServiceError_ErrorCode) Type added in v2.0.4

func (*ImagesServiceError_ErrorCode) UnmarshalJSON deprecated

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

Deprecated: Do not use.

type ImagesServiceTransform

type ImagesServiceTransform struct {
	// contains filtered or unexported fields
}

func (*ImagesServiceTransform) Descriptor deprecated

func (*ImagesServiceTransform) Descriptor() ([]byte, []int)

Deprecated: Use ImagesServiceTransform.ProtoReflect.Descriptor instead.

func (*ImagesServiceTransform) ProtoMessage

func (*ImagesServiceTransform) ProtoMessage()

func (*ImagesServiceTransform) ProtoReflect added in v2.0.4

func (x *ImagesServiceTransform) ProtoReflect() protoreflect.Message

func (*ImagesServiceTransform) Reset

func (x *ImagesServiceTransform) Reset()

func (*ImagesServiceTransform) String

func (x *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) Descriptor added in v2.0.4

func (ImagesServiceTransform_Type) Enum

func (ImagesServiceTransform_Type) EnumDescriptor deprecated

func (ImagesServiceTransform_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use ImagesServiceTransform_Type.Descriptor instead.

func (ImagesServiceTransform_Type) Number added in v2.0.4

func (ImagesServiceTransform_Type) String

func (ImagesServiceTransform_Type) Type added in v2.0.4

func (*ImagesServiceTransform_Type) UnmarshalJSON deprecated

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

Deprecated: Do not use.

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"`
	// contains filtered or unexported fields
}

func (*ImagesTransformRequest) Descriptor deprecated

func (*ImagesTransformRequest) Descriptor() ([]byte, []int)

Deprecated: Use ImagesTransformRequest.ProtoReflect.Descriptor instead.

func (*ImagesTransformRequest) GetImage

func (x *ImagesTransformRequest) GetImage() *ImageData

func (*ImagesTransformRequest) GetInput

func (x *ImagesTransformRequest) GetInput() *InputSettings

func (*ImagesTransformRequest) GetOutput

func (x *ImagesTransformRequest) GetOutput() *OutputSettings

func (*ImagesTransformRequest) GetTransform

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

func (*ImagesTransformRequest) ProtoMessage

func (*ImagesTransformRequest) ProtoMessage()

func (*ImagesTransformRequest) ProtoReflect added in v2.0.4

func (x *ImagesTransformRequest) ProtoReflect() protoreflect.Message

func (*ImagesTransformRequest) Reset

func (x *ImagesTransformRequest) Reset()

func (*ImagesTransformRequest) String

func (x *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=sourceMetadata" json:"source_metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*ImagesTransformResponse) Descriptor deprecated

func (*ImagesTransformResponse) Descriptor() ([]byte, []int)

Deprecated: Use ImagesTransformResponse.ProtoReflect.Descriptor instead.

func (*ImagesTransformResponse) GetImage

func (x *ImagesTransformResponse) GetImage() *ImageData

func (*ImagesTransformResponse) GetSourceMetadata

func (x *ImagesTransformResponse) GetSourceMetadata() string

func (*ImagesTransformResponse) ProtoMessage

func (*ImagesTransformResponse) ProtoMessage()

func (*ImagesTransformResponse) ProtoReflect added in v2.0.4

func (x *ImagesTransformResponse) ProtoReflect() protoreflect.Message

func (*ImagesTransformResponse) Reset

func (x *ImagesTransformResponse) Reset()

func (*ImagesTransformResponse) String

func (x *ImagesTransformResponse) String() string

type InputSettings

type InputSettings struct {
	CorrectExifOrientation     *InputSettings_ORIENTATION_CORRECTION_TYPE `` /* 189-byte string literal not displayed */
	ParseMetadata              *bool                                      `protobuf:"varint,2,opt,name=parse_metadata,json=parseMetadata,def=0" json:"parse_metadata,omitempty"`
	TransparentSubstitutionRgb *int32                                     `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*InputSettings) Descriptor deprecated

func (*InputSettings) Descriptor() ([]byte, []int)

Deprecated: Use InputSettings.ProtoReflect.Descriptor instead.

func (*InputSettings) GetCorrectExifOrientation

func (x *InputSettings) GetCorrectExifOrientation() InputSettings_ORIENTATION_CORRECTION_TYPE

func (*InputSettings) GetParseMetadata

func (x *InputSettings) GetParseMetadata() bool

func (*InputSettings) GetTransparentSubstitutionRgb

func (x *InputSettings) GetTransparentSubstitutionRgb() int32

func (*InputSettings) ProtoMessage

func (*InputSettings) ProtoMessage()

func (*InputSettings) ProtoReflect added in v2.0.4

func (x *InputSettings) ProtoReflect() protoreflect.Message

func (*InputSettings) Reset

func (x *InputSettings) Reset()

func (*InputSettings) String

func (x *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
)

func (InputSettings_ORIENTATION_CORRECTION_TYPE) Descriptor added in v2.0.4

func (InputSettings_ORIENTATION_CORRECTION_TYPE) Enum

func (InputSettings_ORIENTATION_CORRECTION_TYPE) EnumDescriptor deprecated

func (InputSettings_ORIENTATION_CORRECTION_TYPE) EnumDescriptor() ([]byte, []int)

Deprecated: Use InputSettings_ORIENTATION_CORRECTION_TYPE.Descriptor instead.

func (InputSettings_ORIENTATION_CORRECTION_TYPE) Number added in v2.0.4

func (InputSettings_ORIENTATION_CORRECTION_TYPE) String

func (InputSettings_ORIENTATION_CORRECTION_TYPE) Type added in v2.0.4

func (*InputSettings_ORIENTATION_CORRECTION_TYPE) UnmarshalJSON deprecated

Deprecated: Do not use.

type OutputSettings

type OutputSettings struct {
	MimeType *OutputSettings_MIME_TYPE `` /* 128-byte string literal not displayed */
	Quality  *int32                    `protobuf:"varint,2,opt,name=quality" json:"quality,omitempty"`
	// contains filtered or unexported fields
}

func (*OutputSettings) Descriptor deprecated

func (*OutputSettings) Descriptor() ([]byte, []int)

Deprecated: Use OutputSettings.ProtoReflect.Descriptor instead.

func (*OutputSettings) GetMimeType

func (x *OutputSettings) GetMimeType() OutputSettings_MIME_TYPE

func (*OutputSettings) GetQuality

func (x *OutputSettings) GetQuality() int32

func (*OutputSettings) ProtoMessage

func (*OutputSettings) ProtoMessage()

func (*OutputSettings) ProtoReflect added in v2.0.4

func (x *OutputSettings) ProtoReflect() protoreflect.Message

func (*OutputSettings) Reset

func (x *OutputSettings) Reset()

func (*OutputSettings) String

func (x *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
)

func (OutputSettings_MIME_TYPE) Descriptor added in v2.0.4

func (OutputSettings_MIME_TYPE) Enum

func (OutputSettings_MIME_TYPE) EnumDescriptor deprecated

func (OutputSettings_MIME_TYPE) EnumDescriptor() ([]byte, []int)

Deprecated: Use OutputSettings_MIME_TYPE.Descriptor instead.

func (OutputSettings_MIME_TYPE) Number added in v2.0.4

func (OutputSettings_MIME_TYPE) String

func (x OutputSettings_MIME_TYPE) String() string

func (OutputSettings_MIME_TYPE) Type added in v2.0.4

func (*OutputSettings_MIME_TYPE) UnmarshalJSON deprecated

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

Deprecated: Do not use.

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,json=cropToFit,def=0" json:"crop_to_fit,omitempty"`
	CropOffsetX    *float32 `protobuf:"fixed32,12,opt,name=crop_offset_x,json=cropOffsetX,def=0.5" json:"crop_offset_x,omitempty"`
	CropOffsetY    *float32 `protobuf:"fixed32,13,opt,name=crop_offset_y,json=cropOffsetY,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,json=horizontalFlip,def=0" json:"horizontal_flip,omitempty"`
	VerticalFlip   *bool    `protobuf:"varint,5,opt,name=vertical_flip,json=verticalFlip,def=0" json:"vertical_flip,omitempty"`
	CropLeftX      *float32 `protobuf:"fixed32,6,opt,name=crop_left_x,json=cropLeftX,def=0" json:"crop_left_x,omitempty"`
	CropTopY       *float32 `protobuf:"fixed32,7,opt,name=crop_top_y,json=cropTopY,def=0" json:"crop_top_y,omitempty"`
	CropRightX     *float32 `protobuf:"fixed32,8,opt,name=crop_right_x,json=cropRightX,def=1" json:"crop_right_x,omitempty"`
	CropBottomY    *float32 `protobuf:"fixed32,9,opt,name=crop_bottom_y,json=cropBottomY,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,json=allowStretch,def=0" json:"allow_stretch,omitempty"`
	// contains filtered or unexported fields
}

func (*Transform) Descriptor deprecated

func (*Transform) Descriptor() ([]byte, []int)

Deprecated: Use Transform.ProtoReflect.Descriptor instead.

func (*Transform) GetAllowStretch

func (x *Transform) GetAllowStretch() bool

func (*Transform) GetAutolevels

func (x *Transform) GetAutolevels() bool

func (*Transform) GetCropBottomY

func (x *Transform) GetCropBottomY() float32

func (*Transform) GetCropLeftX

func (x *Transform) GetCropLeftX() float32

func (*Transform) GetCropOffsetX

func (x *Transform) GetCropOffsetX() float32

func (*Transform) GetCropOffsetY

func (x *Transform) GetCropOffsetY() float32

func (*Transform) GetCropRightX

func (x *Transform) GetCropRightX() float32

func (*Transform) GetCropToFit

func (x *Transform) GetCropToFit() bool

func (*Transform) GetCropTopY

func (x *Transform) GetCropTopY() float32

func (*Transform) GetHeight

func (x *Transform) GetHeight() int32

func (*Transform) GetHorizontalFlip

func (x *Transform) GetHorizontalFlip() bool

func (*Transform) GetRotate

func (x *Transform) GetRotate() int32

func (*Transform) GetVerticalFlip

func (x *Transform) GetVerticalFlip() bool

func (*Transform) GetWidth

func (x *Transform) GetWidth() int32

func (*Transform) ProtoMessage

func (*Transform) ProtoMessage()

func (*Transform) ProtoReflect added in v2.0.4

func (x *Transform) ProtoReflect() protoreflect.Message

func (*Transform) Reset

func (x *Transform) Reset()

func (*Transform) String

func (x *Transform) String() string

Jump to

Keyboard shortcuts

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