// Physical model of a printer cover.

import 'localized_string.proto';

message Cover {

// Enumeration of cover types.
enum Type {
  CUSTOM = 0;
  DOOR = 1;
  COVER = 2;
}

// Vendor-provided ID of the cover (required).
optional string vendor_id = 1;

// Type of the cover (required).
optional Type type = 2;

// Index of the cover.
optional int64 index = 3;

// Non-localized custom display name of the cover.
// New CDDs should use custom_display_name_localized instead. It is required
// that either custom_display_name or custom_display_name_localized is set
// if the cover's type is CUSTOM.
optional string custom_display_name = 4;

// Translations of custom display name of the cover.
// If not empty, must contain an entry with locale == EN.
repeated LocalizedString custom_display_name_localized = 5;

}