Documentation ¶
Overview ¶
package cdd represents the Cloud Device Description format described here: https://developers.google.com/cloud-print/docs/cdd
Not-required fields are marked with the omitempty JSON attribute.
Index ¶
- func NewLocalizedString(value string) *[]LocalizedString
- func NewSupportedContentType(contentType string) *[]SupportedContentType
- type CloudConnectionStateType
- type CloudDeviceDescription
- type CloudDeviceState
- type CloudDeviceStateType
- type CloudJobTicket
- type Collate
- type CollateTicketItem
- type Color
- type ColorOption
- type ColorTicketItem
- type ColorType
- type Copies
- type CopiesTicketItem
- type Cover
- type CoverState
- type CoverStateItem
- type CoverStateType
- type CoverType
- type DPI
- type DPIOption
- type DPITicketItem
- type DeviceActionCause
- type DeviceActionCauseCode
- type DeviceStateCause
- type DeviceStateCauseCode
- type Duplex
- type DuplexOption
- type DuplexTicketItem
- type DuplexType
- type FitToPage
- type FitToPageOption
- type FitToPageTicketItem
- type FitToPageType
- type InputTrayState
- type InputTrayStateItem
- type InputTrayStateType
- type InputTrayUnit
- type InputTrayUnitType
- type JobState
- type JobStateType
- type LocalizedString
- type Margins
- type MarginsOption
- type MarginsTicketItem
- type MarginsType
- type Marker
- type MarkerColor
- type MarkerColorType
- type MarkerState
- type MarkerStateItem
- type MarkerStateType
- type MarkerType
- type MediaPath
- type MediaPathState
- type MediaPathStateItem
- type MediaPathStateType
- type MediaSize
- type MediaSizeName
- type MediaSizeOption
- type MediaSizeTicketItem
- type OutputBinState
- type OutputBinStateItem
- type OutputBinStateType
- type OutputBinUnit
- type OutputBinUnitType
- type PWGRasterConfig
- type PWGRasterConfigResolution
- type PageOrientation
- type PageOrientationOption
- type PageOrientationTicketItem
- type PageOrientationType
- type PageRange
- type PageRangeInterval
- type PageRangeTicketItem
- type PrintJobState
- type PrintJobStateDiff
- type PrintTicketSection
- type PrinterDescriptionSection
- type PrinterStateSection
- type PrintingSpeed
- type PrintingSpeedOption
- type RangeCapability
- type RangeCapabilityValueType
- type ReverseOrder
- type ReverseOrderTicketItem
- type SchizophrenicInt64
- type SelectCapability
- type SelectCapabilityOption
- type ServiceActionCause
- type ServiceActionCauseCode
- type SupportedContentType
- type TypedValueCapability
- type TypedValueCapabilityValueType
- type UserActionCause
- type UserActionCauseCode
- type VendorCapability
- type VendorCapabilityType
- type VendorState
- type VendorStateItem
- type VendorStateType
- type VendorTicketItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLocalizedString ¶
func NewLocalizedString(value string) *[]LocalizedString
func NewSupportedContentType ¶
func NewSupportedContentType(contentType string) *[]SupportedContentType
Types ¶
type CloudConnectionStateType ¶
type CloudConnectionStateType string
const ( CloudConnectionStateUnknown CloudConnectionStateType = "UNKNOWN" CloudConnectionStateNotConfigured CloudConnectionStateType = "NOT_CONFIGURED" CloudConnectionStateOnline CloudConnectionStateType = "ONLINE" CloudConnectionStateOffline CloudConnectionStateType = "OFFLINE" )
type CloudDeviceDescription ¶
type CloudDeviceDescription struct { Version string `json:"version"` Printer *PrinterDescriptionSection `json:"printer"` }
type CloudDeviceState ¶
type CloudDeviceState struct { Version string `json:"version"` CloudConnectionState *CloudConnectionStateType `json:"cloud_connection_state,omitempty"` Printer *PrinterStateSection `json:"printer"` }
type CloudDeviceStateType ¶
type CloudDeviceStateType string
const ( CloudDeviceStateIdle CloudDeviceStateType = "IDLE" CloudDeviceStateProcessing CloudDeviceStateType = "PROCESSING" CloudDeviceStateStopped CloudDeviceStateType = "STOPPED" )
type CloudJobTicket ¶
type CloudJobTicket struct { Version string `json:"version"` Print PrintTicketSection `json:"print"` }
type CollateTicketItem ¶
type CollateTicketItem struct {
Collate bool `json:"collate"`
}
type Color ¶
type Color struct {
Option []ColorOption `json:"option"`
}
type ColorOption ¶
type ColorOption struct { VendorID string `json:"vendor_id"` Type ColorType `json:"type"` CustomDisplayName string `json:"custom_display_name,omitempty"` IsDefault bool `json:"is_default"` // default = false CustomDisplayNameLocalized *[]LocalizedString `json:"custom_display_name_localized,omitempty"` }
type ColorTicketItem ¶
type CopiesTicketItem ¶
type CopiesTicketItem struct {
Copies int32 `json:"copies"`
}
type Cover ¶
type Cover struct { VendorID string `json:"vendor_id"` Type CoverType `json:"type"` Index *SchizophrenicInt64 `json:"index,omitempty"` CustomDisplayName string `json:"custom_display_name,omitempty"` CustomDisplayNameLocalized *[]LocalizedString `json:"custom_display_name_localized,omitempty"` }
type CoverState ¶
type CoverState struct {
Item []CoverStateItem `json:"item"`
}
type CoverStateItem ¶
type CoverStateItem struct { VendorID string `json:"vendor_id"` State CoverStateType `json:"state"` VendorMessage string `json:"vendor_message,omitempty"` }
type CoverStateType ¶
type CoverStateType string
const ( CoverStateOK CoverStateType = "OK" CoverStateOpen CoverStateType = "OPEN" CoverStateFailure CoverStateType = "FAILURE" )
type DPIOption ¶
type DPIOption struct { HorizontalDPI int32 `json:"horizontal_dpi"` VerticalDPI int32 `json:"vertical_dpi"` IsDefault bool `json:"is_default"` // default = false CustomDisplayName string `json:"custom_display_name,omitempty"` VendorID string `json:"vendor_id,omitempty"` CustomDisplayNameLocalized *[]LocalizedString `json:"custom_display_name_localized,omitempty"` }
type DPITicketItem ¶
type DeviceActionCause ¶
type DeviceActionCause struct {
ErrorCode DeviceActionCauseCode `json:"error_code"`
}
type DeviceActionCauseCode ¶
type DeviceActionCauseCode string
const ( DeviceActionCauseDownloadFailure DeviceActionCauseCode = "DOWNLOAD_FAILURE" DeviceActionCauseInvalidTicket DeviceActionCauseCode = "INVALID_TICKET" DeviceActionCausePrintFailure DeviceActionCauseCode = "PRINT_FAILURE" DeviceActionCauseOther DeviceActionCauseCode = "OTHER" )
type DeviceStateCause ¶
type DeviceStateCause struct {
ErrorCode DeviceStateCauseCode `json:"error_code"`
}
type DeviceStateCauseCode ¶
type DeviceStateCauseCode string
const ( DeviceStateCauseInputTray DeviceStateCauseCode = "INPUT_TRAY" DeviceStateCauseMarker DeviceStateCauseCode = "MARKER" DeviceStateCauseMediaPath DeviceStateCauseCode = "MEDIA_PATH" DeviceStateCauseMediaSize DeviceStateCauseCode = "MEDIA_SIZE" DeviceStateCauseMediaType DeviceStateCauseCode = "MEDIA_TYPE" DeviceStateCauseOther DeviceStateCauseCode = "OTHER" )
type Duplex ¶
type Duplex struct {
Option []DuplexOption `json:"option"`
}
type DuplexOption ¶
type DuplexOption struct { Type DuplexType `json:"type"` // default = "NO_DUPLEX" IsDefault bool `json:"is_default"` // default = false }
type DuplexTicketItem ¶
type DuplexTicketItem struct {
Type DuplexType `json:"type"`
}
type DuplexType ¶
type DuplexType string
const ( DuplexNoDuplex DuplexType = "NO_DUPLEX" DuplexLongEdge DuplexType = "LONG_EDGE" DuplexShortEdge DuplexType = "SHORT_EDGE" )
type FitToPage ¶
type FitToPage struct {
Option []FitToPageOption `json:"option"`
}
type FitToPageOption ¶
type FitToPageOption struct { Type FitToPageType `json:"type"` IsDefault bool `json:"is_default"` // default = false }
type FitToPageTicketItem ¶
type FitToPageTicketItem struct {
Type FitToPageType `json:"type"`
}
type FitToPageType ¶
type FitToPageType string
const ( FitToPageNoFitting FitToPageType = "NO_FITTING" FitToPageFitToPage FitToPageType = "FIT_TO_PAGE" FitToPageGrowToPage FitToPageType = "GROW_TO_PAGE" FitToPageShrinkToPage FitToPageType = "SHRINK_TO_PAGE" FitToPageFillPage FitToPageType = "FILL_PAGE" )
type InputTrayState ¶
type InputTrayState struct {
Item []InputTrayStateItem `json:"item"`
}
type InputTrayStateItem ¶
type InputTrayStateItem struct { VendorID string `json:"vendor_id"` State InputTrayStateType `json:"state"` LevelPercent *int32 `json:"level_percent,omitempty"` VendorMessage string `json:"vendor_message,omitempty"` }
type InputTrayStateType ¶
type InputTrayStateType string
const ( InputTrayStateOK InputTrayStateType = "OK" InputTrayStateEmpty InputTrayStateType = "EMPTY" InputTrayStateOpen InputTrayStateType = "OPEN" InputTrayStateOff InputTrayStateType = "OFF" InputTrayStateFailure InputTrayStateType = "FAILURE" )
type InputTrayUnit ¶
type InputTrayUnit struct { VendorID string `json:"vendor_id"` Type InputTrayUnitType `json:"type"` Index *SchizophrenicInt64 `json:"index,omitempty"` CustomDisplayName string `json:"custom_display_name,omitempty"` CustomDisplayNameLocalized *[]LocalizedString `json:"custom_display_name_localized,omitempty"` }
type InputTrayUnitType ¶
type InputTrayUnitType string
const ( InputTrayUnitCustom InputTrayUnitType = "CUSTOM" InputTrayUnitInputTray InputTrayUnitType = "INPUT_TRAY" InputTrayUnitBypassTray InputTrayUnitType = "BYPASS_TRAY" InputTrayUnitManualFeedTray InputTrayUnitType = "MANUAL_FEED_TRAY" InputTrayUnitLCT InputTrayUnitType = "LCT" // Large capacity tray. InputTrayUnitEnvelopeTray InputTrayUnitType = "ENVELOPE_TRAY" InputTrayUnitRoll InputTrayUnitType = "ROLL" )
type JobState ¶
type JobState struct { Type JobStateType `json:"type"` UserActionCause *UserActionCause `json:"user_action_cause,omitempty"` DeviceStateCause *DeviceStateCause `json:"device_state_cause,omitempty"` DeviceActionCause *DeviceActionCause `json:"device_action_cause,omitempty"` ServiceActionCause *ServiceActionCause `json:"service_action_cause,omitempty"` }
type JobStateType ¶
type JobStateType string
const ( JobStateDraft JobStateType = "DRAFT" JobStateHeld JobStateType = "HELD" JobStateQueued JobStateType = "QUEUED" JobStateInProgress JobStateType = "IN_PROGRESS" JobStateStopped JobStateType = "STOPPED" JobStateDone JobStateType = "DONE" JobStateAborted JobStateType = "ABORTED" )
type LocalizedString ¶
type Margins ¶
type Margins struct {
Option []MarginsOption `json:"option"`
}
type MarginsOption ¶
type MarginsTicketItem ¶
type MarginsType ¶
type MarginsType string
const ( MarginsBorderless MarginsType = "BORDERLESS" MarginsStandard MarginsType = "STANDARD" MarginsCustom MarginsType = "CUSTOM" )
type Marker ¶
type Marker struct { VendorID string `json:"vendor_id"` Type MarkerType `json:"type"` Color *MarkerColor `json:"color,omitempty"` CustomDisplayName string `json:"custom_display_name,omitempty"` CustomDisplayNameLocalized *[]LocalizedString `json:"custom_display_name_localized,omitempty"` }
type MarkerColor ¶
type MarkerColor struct { Type MarkerColorType `json:"type"` CustomDisplayName string `json:"custom_display_name,omitempty"` CustomDisplayNameLocalized *[]LocalizedString `json:"custom_display_name_localized,omitempty"` }
type MarkerColorType ¶
type MarkerColorType string
const ( MarkerColorCustom MarkerColorType = "CUSTOM" MarkerColorBlack MarkerColorType = "BLACK" MarkerColorColor MarkerColorType = "COLOR" MarkerColorCyan MarkerColorType = "CYAN" MarkerColorMagenta MarkerColorType = "MAGENTA" MarkerColorYellow MarkerColorType = "YELLOW" MarkerColorLightCyan MarkerColorType = "LIGHT_CYAN" MarkerColorLightMagenta MarkerColorType = "LIGHT_MAGENTA" MarkerColorGray MarkerColorType = "GRAY" MarkerColorLightGray MarkerColorType = "LIGHT_GRAY" MarkerColorPigmentBlack MarkerColorType = "PIGMENT_BLACK" MarkerColorMatteBlack MarkerColorType = "MATTE_BLACK" MarkerColorPhotoCyan MarkerColorType = "PHOTO_CYAN" MarkerColorPhotoMagenta MarkerColorType = "PHOTO_MAGENTA" MarkerColorPhotoYellow MarkerColorType = "PHOTO_YELLOW" MarkerColorPhotoGray MarkerColorType = "PHOTO_GRAY" MarkerColorRed MarkerColorType = "RED" MarkerColorGreen MarkerColorType = "GREEN" MarkerColorBlue MarkerColorType = "BLUE" )
type MarkerState ¶
type MarkerState struct {
Item []MarkerStateItem `json:"item"`
}
type MarkerStateItem ¶
type MarkerStateItem struct { VendorID string `json:"vendor_id"` State MarkerStateType `json:"state"` LevelPercent *int32 `json:"level_percent,omitempty"` LevelPages *int32 `json:"level_pages,omitempty"` VendorMessage string `json:"vendor_message,omitempty"` }
type MarkerStateType ¶
type MarkerStateType string
const ( MarkerStateOK MarkerStateType = "OK" MarkerStateExhausted MarkerStateType = "EXHAUSTED" MarkerStateRemoved MarkerStateType = "REMOVED" MarkerStateFailure MarkerStateType = "FAILURE" )
type MarkerType ¶
type MarkerType string
const ( MarkerCustom MarkerType = "CUSTOM" MarkerToner MarkerType = "TONER" MarkerInk MarkerType = "INK" MarkerStaples MarkerType = "STAPLES" )
type MediaPathState ¶
type MediaPathState struct {
Item []MediaPathStateItem `json:"item"`
}
type MediaPathStateItem ¶
type MediaPathStateItem struct { VendorID string `json:"vendor_id"` State MediaPathStateType `json:"state"` VendorMessage string `json:"vendor_message,omitempty"` }
type MediaPathStateType ¶
type MediaPathStateType string
const ( MediaPathStateOK MediaPathStateType = "OK" MediaPathStateMediaJam MediaPathStateType = "MEDIA_JAM" MediaPathStateFailure MediaPathStateType = "FAILURE" )
type MediaSize ¶
type MediaSize struct { Option []MediaSizeOption `json:"option"` MaxWidthMicrons int32 `json:"max_width_microns,omitempty"` MaxHeightMicrons int32 `json:"max_height_microns,omitempty"` MinWidthMicrons int32 `json:"min_width_microns,omitempty"` MinHeightMicrons int32 `json:"min_height_microns,omitempty"` }
type MediaSizeName ¶
type MediaSizeName string
const ( MediaSizeCustom MediaSizeName = "CUSTOM" MediaSizeNAIndex3x5 MediaSizeName = "NA_INDEX_3X5" MediaSizeNAPersonal MediaSizeName = "NA_PERSONAL" MediaSizeNAMonarch MediaSizeName = "NA_MONARCH" MediaSizeNANumber9 MediaSizeName = "NA_NUMBER_9" MediaSizeNAIndex4x6 MediaSizeName = "NA_INDEX_4X6" MediaSizeNANumber10 MediaSizeName = "NA_NUMBER_10" MediaSizeNAA2 MediaSizeName = "NA_A2" MediaSizeNANumber11 MediaSizeName = "NA_NUMBER_11" MediaSizeNANumber12 MediaSizeName = "NA_NUMBER_12" MediaSizeNA5x7 MediaSizeName = "NA_5X7" MediaSizeNAIndex5x8 MediaSizeName = "NA_INDEX_5X8" MediaSizeNANumber14 MediaSizeName = "NA_NUMBER_14" MediaSizeNAInvoice MediaSizeName = "NA_INVOICE" MediaSizeNAIndex4x6Ext MediaSizeName = "NA_INDEX_4X6_EXT" MediaSizeNA6x9 MediaSizeName = "NA_6X9" MediaSizeNAC5 MediaSizeName = "NA_C5" MediaSizeNA7x9 MediaSizeName = "NA_7X9" MediaSizeNAExecutive MediaSizeName = "NA_EXECUTIVE" MediaSizeNAGovtLetter MediaSizeName = "NA_GOVT_LETTER" MediaSizeNAGovtLegal MediaSizeName = "NA_GOVT_LEGAL" MediaSizeNAQuarto MediaSizeName = "NA_QUARTO" MediaSizeNALetter MediaSizeName = "NA_LETTER" MediaSizeNAFanfoldEur MediaSizeName = "NA_FANFOLD_EUR" MediaSizeNALetterPlus MediaSizeName = "NA_LETTER_PLUS" MediaSizeNAFoolscap MediaSizeName = "NA_FOOLSCAP" MediaSizeNALegal MediaSizeName = "NA_LEGAL" MediaSizeNASuperA MediaSizeName = "NA_SUPER_A" MediaSizeNA9x11 MediaSizeName = "NA_9X11" MediaSizeNAArchA MediaSizeName = "NA_ARCH_A" MediaSizeNALetterExtra MediaSizeName = "NA_LETTER_EXTRA" MediaSizeNALegalExtra MediaSizeName = "NA_LEGAL_EXTRA" MediaSizeNA10x11 MediaSizeName = "NA_10X11" MediaSizeNA10x13 MediaSizeName = "NA_10X13" MediaSizeNA10x14 MediaSizeName = "NA_10X14" MediaSizeNA10x15 MediaSizeName = "NA_10X15" MediaSizeNA11x12 MediaSizeName = "NA_11X12" MediaSizeNAEDP MediaSizeName = "NA_EDP" MediaSizeNAFanfoldUS MediaSizeName = "NA_FANFOLD_US" MediaSizeNA11x15 MediaSizeName = "NA_11X15" MediaSizeNALedger MediaSizeName = "NA_LEDGER" MediaSizeNAEurEDP MediaSizeName = "NA_EUR_EDP" MediaSizeNAArchB MediaSizeName = "NA_ARCH_B" MediaSizeNA12x19 MediaSizeName = "NA_12X19" MediaSizeNABPlus MediaSizeName = "NA_B_PLUS" MediaSizeNASuperB MediaSizeName = "NA_SUPER_B" MediaSizeNAC MediaSizeName = "NA_C" MediaSizeNAArchC MediaSizeName = "NA_ARCH_C" MediaSizeNAD MediaSizeName = "NA_D" MediaSizeNAArchD MediaSizeName = "NA_ARCH_D" MediaSizeNAAsmeF MediaSizeName = "NA_ASME_F" MediaSizeNAWideFormat MediaSizeName = "NA_WIDE_FORMAT" MediaSizeNAE MediaSizeName = "NA_E" MediaSizeNAArchE MediaSizeName = "NA_ARCH_E" MediaSizeNAF MediaSizeName = "NA_F" MediaSizeROC16k MediaSizeName = "ROC_16K" MediaSizeROC8k MediaSizeName = "ROC_8K" MediaSizePRC32k MediaSizeName = "PRC_32K" MediaSizePRC1 MediaSizeName = "PRC_1" MediaSizePRC2 MediaSizeName = "PRC_2" MediaSizePRC4 MediaSizeName = "PRC_4" MediaSizePRC5 MediaSizeName = "PRC_5" MediaSizePRC8 MediaSizeName = "PRC_8" MediaSizePRC6 MediaSizeName = "PRC_6" MediaSizePRC3 MediaSizeName = "PRC_3" MediaSizePRC16k MediaSizeName = "PRC_16K" MediaSizePRC7 MediaSizeName = "PRC_7" MediaSizeOMJuuroKuKai MediaSizeName = "OM_JUURO_KU_KAI" MediaSizeOMPaKai MediaSizeName = "OM_PA_KAI" MediaSizeOMDaiPaKai MediaSizeName = "OM_DAI_PA_KAI" MediaSizePRC10 MediaSizeName = "PRC_10" MediaSizeISOA10 MediaSizeName = "ISO_A10" MediaSizeISOA9 MediaSizeName = "ISO_A9" MediaSizeISOA8 MediaSizeName = "ISO_A8" MediaSizeISOA7 MediaSizeName = "ISO_A7" MediaSizeISOA6 MediaSizeName = "ISO_A6" MediaSizeISOA5 MediaSizeName = "ISO_A5" MediaSizeISOA5Extra MediaSizeName = "ISO_A5_EXTRA" MediaSizeISOA4 MediaSizeName = "ISO_A4" MediaSizeISOA4Tab MediaSizeName = "ISO_A4_TAB" MediaSizeISOA4Extra MediaSizeName = "ISO_A4_EXTRA" MediaSizeISOA3 MediaSizeName = "ISO_A3" MediaSizeISOA4x3 MediaSizeName = "ISO_A4X3" MediaSizeISOA4x4 MediaSizeName = "ISO_A4X4" MediaSizeISOA4x5 MediaSizeName = "ISO_A4X5" MediaSizeISOA4x6 MediaSizeName = "ISO_A4X6" MediaSizeISOA4x7 MediaSizeName = "ISO_A4X7" MediaSizeISOA4x8 MediaSizeName = "ISO_A4X8" MediaSizeISOA4x9 MediaSizeName = "ISO_A4X9" MediaSizeISOA3Extra MediaSizeName = "ISO_A3_EXTRA" MediaSizeISOA2 MediaSizeName = "ISO_A2" MediaSizeISOA3x3 MediaSizeName = "ISO_A3X3" MediaSizeISOA3x4 MediaSizeName = "ISO_A3X4" MediaSizeISOA3x5 MediaSizeName = "ISO_A3X5" MediaSizeISOA3x6 MediaSizeName = "ISO_A3X6" MediaSizeISOA3x7 MediaSizeName = "ISO_A3X7" MediaSizeISOA1 MediaSizeName = "ISO_A1" MediaSizeISOA2x3 MediaSizeName = "ISO_A2X3" MediaSizeISOA2x4 MediaSizeName = "ISO_A2X4" MediaSizeISOA2x5 MediaSizeName = "ISO_A2X5" MediaSizeISOA0 MediaSizeName = "ISO_A0" MediaSizeISOA1x3 MediaSizeName = "ISO_A1X3" MediaSizeISOA1x4 MediaSizeName = "ISO_A1X4" MediaSizeISO2A0 MediaSizeName = "ISO_2A0" MediaSizeISOA0x3 MediaSizeName = "ISO_A0X3" MediaSizeISOB10 MediaSizeName = "ISO_B10" MediaSizeISOB9 MediaSizeName = "ISO_B9" MediaSizeISOB8 MediaSizeName = "ISO_B8" MediaSizeISOB7 MediaSizeName = "ISO_B7" MediaSizeISOB6 MediaSizeName = "ISO_B6" MediaSizeISOB6C4 MediaSizeName = "ISO_B6C4" MediaSizeISOB5 MediaSizeName = "ISO_B5" MediaSizeISOB5Extra MediaSizeName = "ISO_B5_EXTRA" MediaSizeISOB4 MediaSizeName = "ISO_B4" MediaSizeISOB3 MediaSizeName = "ISO_B3" MediaSizeISOB2 MediaSizeName = "ISO_B2" MediaSizeISOB1 MediaSizeName = "ISO_B1" MediaSizeISOB0 MediaSizeName = "ISO_B0" MediaSizeISOC10 MediaSizeName = "ISO_C10" MediaSizeISOC9 MediaSizeName = "ISO_C9" MediaSizeISOC8 MediaSizeName = "ISO_C8" MediaSizeISOC7 MediaSizeName = "ISO_C7" MediaSizeISOC7c6 MediaSizeName = "ISO_C7C6" MediaSizeISOC6 MediaSizeName = "ISO_C6" MediaSizeISOC6c5 MediaSizeName = "ISO_C6C5" MediaSizeISOC5 MediaSizeName = "ISO_C5" MediaSizeISOC4 MediaSizeName = "ISO_C4" MediaSizeISOC3 MediaSizeName = "ISO_C3" MediaSizeISOC2 MediaSizeName = "ISO_C2" MediaSizeISOC1 MediaSizeName = "ISO_C1" MediaSizeISOC0 MediaSizeName = "ISO_C0" MediaSizeISODL MediaSizeName = "ISO_DL" MediaSizeISORA2 MediaSizeName = "ISO_RA2" MediaSizeISOSRA2 MediaSizeName = "ISO_SRA2" MediaSizeISORA1 MediaSizeName = "ISO_RA1" MediaSizeISOSRA1 MediaSizeName = "ISO_SRA1" MediaSizeISORA0 MediaSizeName = "ISO_RA0" MediaSizeISOSRA0 MediaSizeName = "ISO_SRA0" MediaSizeJISB10 MediaSizeName = "JIS_B10" MediaSizeJISB9 MediaSizeName = "JIS_B9" MediaSizeJISB8 MediaSizeName = "JIS_B8" MediaSizeJISB7 MediaSizeName = "JIS_B7" MediaSizeJISB6 MediaSizeName = "JIS_B6" MediaSizeJISB5 MediaSizeName = "JIS_B5" MediaSizeJISB4 MediaSizeName = "JIS_B4" MediaSizeJISB3 MediaSizeName = "JIS_B3" MediaSizeJISB2 MediaSizeName = "JIS_B2" MediaSizeJISB1 MediaSizeName = "JIS_B1" MediaSizeJISB0 MediaSizeName = "JIS_B0" MediaSizeJISExec MediaSizeName = "JIS_EXEC" MediaSizeJPNChou4 MediaSizeName = "JPN_CHOU4" MediaSizeJPNHagaki MediaSizeName = "JPN_HAGAKI" MediaSizeJPNYou4 MediaSizeName = "JPN_YOU4" MediaSizeJPNChou2 MediaSizeName = "JPN_CHOU2" MediaSizeJPNChou3 MediaSizeName = "JPN_CHOU3" MediaSizeJPNOufuku MediaSizeName = "JPN_OUFUKU" MediaSizeJPNKahu MediaSizeName = "JPN_KAHU" MediaSizeJPNKaku2 MediaSizeName = "JPN_KAKU2" MediaSizeOMSmallPhoto MediaSizeName = "OM_SMALL_PHOTO" MediaSizeOMItalian MediaSizeName = "OM_ITALIAN" MediaSizeOMPostfix MediaSizeName = "OM_POSTFIX" MediaSizeOMLargePhoto MediaSizeName = "OM_LARGE_PHOTO" MediaSizeOMFolio MediaSizeName = "OM_FOLIO" MediaSizeOMFolioSP MediaSizeName = "OM_FOLIO_SP" MediaSizeOMInvite MediaSizeName = "OM_INVITE" )
type MediaSizeOption ¶
type MediaSizeOption struct { Name MediaSizeName `json:"name"` // default = "CUSTOM" WidthMicrons int32 `json:"width_microns,omitempty"` HeightMicrons int32 `json:"height_microns,omitempty"` IsContinuousFeed bool `json:"is_continuous_feed"` // default = false IsDefault bool `json:"is_default"` // default = false CustomDisplayName string `json:"custom_display_name,omitempty"` VendorID string `json:"vendor_id,omitempty"` CustomDisplayNameLocalized *[]LocalizedString `json:"custom_display_name_localized,omitempty"` }
type MediaSizeTicketItem ¶
type OutputBinState ¶
type OutputBinState struct {
Item []OutputBinStateItem `json:"item"`
}
type OutputBinStateItem ¶
type OutputBinStateItem struct { VendorID string `json:"vendor_id"` State OutputBinStateType `json:"state"` LevelPercent *int32 `json:"level_percent,omitempty"` VendorMessage string `json:"vendor_message,omitempty"` }
type OutputBinStateType ¶
type OutputBinStateType string
const ( OutputBinStateOK OutputBinStateType = "OK" OutputBinStateFull OutputBinStateType = "FULL" OutputBinStateOpen OutputBinStateType = "OPEN" OutputBinStateOff OutputBinStateType = "OFF" OutputBinStateFailure OutputBinStateType = "FAILURE" )
type OutputBinUnit ¶
type OutputBinUnit struct { VendorID string `json:"vendor_id"` Type OutputBinUnitType `json:"type"` Index *SchizophrenicInt64 `json:"index,omitempty"` CustomDisplayName string `json:"custom_display_name,omitempty"` CustomDisplayNameLocalized *[]LocalizedString `json:"custom_display_name_localized,omitempty"` }
type OutputBinUnitType ¶
type OutputBinUnitType string
const ( OutputBinUnitCustom OutputBinUnitType = "CUSTOM" OutputBinUnitOutputBin OutputBinUnitType = "OUTPUT_BIN" OutputBinUnitMailbox OutputBinUnitType = "MAILBOX" OutputBinUnitStacker OutputBinUnitType = "STACKER" )
type PWGRasterConfig ¶
type PWGRasterConfig struct { DocumentResolutionSupported *[]PWGRasterConfigResolution `json:"document_resolution_supported,omitempty"` DocumentTypeSupported *[]string `json:"document_type_supported,omitempty"` // enum DocumentSheetBack string `json:"document_sheet_back,omitempty"` // enum; default = "ROTATED" ReverseOrderStreaming *bool `json:"reverse_order_streaming,omitempty"` RotateAllPages *bool `json:"rotate_all_pages,omitempty"` }
type PageOrientation ¶
type PageOrientation struct {
Option []PageOrientationOption `json:"option"`
}
type PageOrientationOption ¶
type PageOrientationOption struct { Type PageOrientationType `json:"type"` IsDefault bool `json:"is_default"` // default = false }
type PageOrientationTicketItem ¶
type PageOrientationTicketItem struct {
Type PageOrientationType `json:"type"`
}
type PageOrientationType ¶
type PageOrientationType string
const ( PageOrientationPortrait PageOrientationType = "PORTRAIT" PageOrientationLandscape PageOrientationType = "LANDSCAPE" PageOrientationAuto PageOrientationType = "AUTO" )
type PageRange ¶
type PageRange struct {
Interval []PageRangeInterval `json:"interval"`
}
type PageRangeInterval ¶
type PageRangeTicketItem ¶
type PageRangeTicketItem struct {
Interval []PageRangeInterval `json:"interval"`
}
type PrintJobState ¶
type PrintJobStateDiff ¶
type PrintTicketSection ¶
type PrintTicketSection struct { VendorTicketItem []VendorTicketItem `json:"vendor_ticket_item,omitempty"` Color *ColorTicketItem `json:"color,omitempty"` Duplex *DuplexTicketItem `json:"duplex,omitempty"` PageOrientation *PageOrientationTicketItem `json:"page_orientation,omitempty"` Copies *CopiesTicketItem `json:"copies,omitempty"` Margins *MarginsTicketItem `json:"margins,omitempty"` DPI *DPITicketItem `json:"dpi,omitempty"` FitToPage *FitToPageTicketItem `json:"fit_to_page,omitempty"` PageRange *PageRangeTicketItem `json:"page_range,omitempty"` MediaSize *MediaSizeTicketItem `json:"media_size,omitempty"` Collate *CollateTicketItem `json:"collate,omitempty"` ReverseOrder *ReverseOrderTicketItem `json:"reverse_order,omitempty"` }
type PrinterDescriptionSection ¶
type PrinterDescriptionSection struct { SupportedContentType *[]SupportedContentType `json:"supported_content_type,omitempty"` PrintingSpeed *PrintingSpeed `json:"printing_speed,omitempty"` PWGRasterConfig *PWGRasterConfig `json:"pwg_raster_config,omitempty"` InputTrayUnit *[]InputTrayUnit `json:"input_tray_unit,omitempty"` OutputBinUnit *[]OutputBinUnit `json:"output_bin_unit,omitempty"` Marker *[]Marker `json:"marker,omitempty"` Cover *[]Cover `json:"cover,omitempty"` MediaPath *[]MediaPath `json:"media_path,omitempty"` VendorCapability *[]VendorCapability `json:"vendor_capability,omitempty"` Color *Color `json:"color,omitempty"` Duplex *Duplex `json:"duplex,omitempty"` PageOrientation *PageOrientation `json:"page_orientation,omitempty"` Copies *Copies `json:"copies,omitempty"` Margins *Margins `json:"margins,omitempty"` DPI *DPI `json:"dpi,omitempty"` FitToPage *FitToPage `json:"fit_to_page,omitempty"` PageRange *PageRange `json:"page_range,omitempty"` MediaSize *MediaSize `json:"media_size,omitempty"` Collate *Collate `json:"collate,omitempty"` ReverseOrder *ReverseOrder `json:"reverse_order,omitempty"` }
func (*PrinterDescriptionSection) Absorb ¶
func (a *PrinterDescriptionSection) Absorb(b *PrinterDescriptionSection)
Absorb copies all non-nil fields from the passed-in description.
type PrinterStateSection ¶
type PrinterStateSection struct { State CloudDeviceStateType `json:"state"` InputTrayState *InputTrayState `json:"input_tray_state,omitempty"` OutputBinState *OutputBinState `json:"output_bin_state,omitempty"` MarkerState *MarkerState `json:"marker_state,omitempty"` CoverState *CoverState `json:"cover_state,omitempty"` MediaPathState *MediaPathState `json:"media_path_state,omitempty"` VendorState *VendorState `json:"vendor_state,omitempty"` }
type PrintingSpeed ¶
type PrintingSpeed struct {
Option []PrintingSpeedOption `json:"option,omitempty"`
}
type PrintingSpeedOption ¶
type PrintingSpeedOption struct { SpeedPPM float32 `json:"speed_ppm"` ColorType *[]ColorType `json:"color_type,omitempty"` MediaSizeName *[]MediaSizeName `json:"media_size_name,omitempty"` }
type RangeCapability ¶
type RangeCapability struct { ValueType RangeCapabilityValueType `json:"value_type"` Default string `json:"default,omitempty"` Min string `json:"min,omitempty"` Max string `json:"max,omitempty"` }
type RangeCapabilityValueType ¶
type RangeCapabilityValueType string
const ( RangeCapabilityValueFloat RangeCapabilityValueType = "FLOAT" RangeCapabilityValueInteger RangeCapabilityValueType = "INTEGER" )
type ReverseOrder ¶
type ReverseOrder struct {
Default bool `json:"default"` // default = false
}
type ReverseOrderTicketItem ¶
type ReverseOrderTicketItem struct {
ReverseOrder bool `json:"reverse_order"`
}
type SchizophrenicInt64 ¶
type SchizophrenicInt64 int64
SchizophrenicInt64 is an int64 value that encodes to JSON without quotes, but decodes with-or-without quotes. GCP requires this for int64 values.
func NewSchizophrenicInt64 ¶
func NewSchizophrenicInt64(i uint) *SchizophrenicInt64
func (SchizophrenicInt64) MarshalJSON ¶
func (i SchizophrenicInt64) MarshalJSON() ([]byte, error)
MarshalJSON marshals without quotes.
func (*SchizophrenicInt64) String ¶
func (i *SchizophrenicInt64) String() string
func (*SchizophrenicInt64) UnmarshalJSON ¶
func (i *SchizophrenicInt64) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals with or without quotes.
type SelectCapability ¶
type SelectCapability struct {
Option []SelectCapabilityOption `json:"option"`
}
type SelectCapabilityOption ¶
type SelectCapabilityOption struct { Value string `json:"value"` DisplayName string `json:"display_name,omitempty"` IsDefault bool `json:"is_default"` // default = false DisplayNameLocalized *[]LocalizedString `json:"display_name_localized,omitempty"` }
type ServiceActionCause ¶
type ServiceActionCause struct {
ErrorCode ServiceActionCauseCode `json:"error_code"`
}
type ServiceActionCauseCode ¶
type ServiceActionCauseCode string
const ( ServiceActionCauseCommunication ServiceActionCauseCode = "COMMUNICATION_WITH_DEVICE_ERROR" ServiceActionCauseConversionError ServiceActionCauseCode = "CONVERSION_ERROR" ServiceActionCauseConversionFileTooBig ServiceActionCauseCode = "CONVERSION_FILE_TOO_BIG" ServiceActionCauseConversionType ServiceActionCauseCode = "CONVERSION_UNSUPPORTED_CONTENT_TYPE" ServiceActionCauseDeliveryFailure ServiceActionCauseCode = "DELIVERY_FAILURE" ServiceActionCauseExpiration ServiceActionCauseCode = "EXPIRATION" ServiceActionCauseFetchForbidden ServiceActionCauseCode = "FETCH_DOCUMENT_FORBIDDEN" ServiceActionCauseFetchNotFound ServiceActionCauseCode = "FETCH_DOCUMENT_NOT_FOUND" ServiceActionCauseDriveQuota ServiceActionCauseCode = "GOOGLE_DRIVE_QUOTA" ServiceActionCauseInconsistentJob ServiceActionCauseCode = "INCONSISTENT_JOB" ServiceActionCauseInconsistentPrinter ServiceActionCauseCode = "INCONSISTENT_PRINTER" ServiceActionCausePrinterDeleted ServiceActionCauseCode = "PRINTER_DELETED" ServiceActionCauseRemoteJobNoExist ServiceActionCauseCode = "REMOTE_JOB_NO_LONGER_EXISTS" ServiceActionCauseRemoteJobError ServiceActionCauseCode = "REMOTE_JOB_ERROR" ServiceActionCauseRemoteJobTimeout ServiceActionCauseCode = "REMOTE_JOB_TIMEOUT" ServiceActionCauseRemoteJobAborted ServiceActionCauseCode = "REMOTE_JOB_ABORTED" ServiceActionCauseOther ServiceActionCauseCode = "OTHER" )
type SupportedContentType ¶
type TypedValueCapability ¶
type TypedValueCapability struct { ValueType TypedValueCapabilityValueType `json:"value_type"` Default string `json:"default,omitempty"` }
type TypedValueCapabilityValueType ¶
type TypedValueCapabilityValueType string
const ( TypedValueCapabilityTypeBoolean TypedValueCapabilityValueType = "BOOLEAN" TypedValueCapabilityTypeFloat TypedValueCapabilityValueType = "FLOAT" TypedValueCapabilityTypeInteger TypedValueCapabilityValueType = "INTEGER" TypedValueCapabilityTypeString TypedValueCapabilityValueType = "STRING" )
type UserActionCause ¶
type UserActionCause struct {
ActionCode UserActionCauseCode `json:"action_code"`
}
type UserActionCauseCode ¶
type UserActionCauseCode string
const ( UserActionCauseCanceled UserActionCauseCode = "CANCELLED" // Two L's UserActionCausePaused UserActionCauseCode = "PAUSED" UserActionCauseOther UserActionCauseCode = "OTHER" )
type VendorCapability ¶
type VendorCapability struct { ID string `json:"id"` DisplayName string `json:"display_name,omitempty"` Type VendorCapabilityType `json:"type"` RangeCap *RangeCapability `json:"range_cap,omitempty"` SelectCap *SelectCapability `json:"select_cap,omitempty"` TypedValueCap *TypedValueCapability `json:"typed_value_cap,omitempty"` DisplayNameLocalized *[]LocalizedString `json:"display_name_localized,omitempty"` }
type VendorCapabilityType ¶
type VendorCapabilityType string
const ( VendorCapabilityRange VendorCapabilityType = "RANGE" VendorCapabilitySelect VendorCapabilityType = "SELECT" VendorCapabilityTypedValue VendorCapabilityType = "TYPED_VALUE" )
type VendorState ¶
type VendorState struct {
Item []VendorStateItem `json:"item"`
}
type VendorStateItem ¶
type VendorStateItem struct { State VendorStateType `json:"state"` Description string `json:"description,omitempty"` DescriptionLocalized *[]LocalizedString `json:"description_localized,omitempty"` }
type VendorStateType ¶
type VendorStateType string
const ( VendorStateError VendorStateType = "ERROR" VendorStateWarning VendorStateType = "WARNING" VendorStateInfo VendorStateType = "INFO" )
type VendorTicketItem ¶
Click to show internal directories.
Click to hide internal directories.