// services/device/public/mojom/usb_enumeration_options.mojom-webui.ts is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import { mojo } from '//resources/mojo/mojo/public/js/bindings.js';
import { String16Spec as mojoBase_mojom_String16Spec } from '//resources/mojo/mojo/public/mojom/base/string16.mojom-webui.js';
export const UsbDeviceFilterSpec = { $: {} };
export const UsbEnumerationOptionsSpec = { $: {} };
mojo.internal.Struct(UsbDeviceFilterSpec.$, 'UsbDeviceFilter', [
    mojo.internal.StructField('vendor_id_$flag', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, {
        isPrimary: true,
        linkedValueFieldName: "vendor_id_$value",
        originalFieldName: "vendorId",
    }, undefined),
    mojo.internal.StructField('vendor_id_$value', 2, 0, mojo.internal.Uint16, 0, false /* nullable */, 0, {
        isPrimary: false,
        originalFieldName: "vendorId",
    }, undefined),
    mojo.internal.StructField('product_id_$flag', 0, 1, mojo.internal.Bool, false, false /* nullable */, 0, {
        isPrimary: true,
        linkedValueFieldName: "product_id_$value",
        originalFieldName: "productId",
    }, undefined),
    mojo.internal.StructField('product_id_$value', 4, 0, mojo.internal.Uint16, 0, false /* nullable */, 0, {
        isPrimary: false,
        originalFieldName: "productId",
    }, undefined),
    mojo.internal.StructField('class_code_$flag', 0, 2, mojo.internal.Bool, false, false /* nullable */, 0, {
        isPrimary: true,
        linkedValueFieldName: "class_code_$value",
        originalFieldName: "classCode",
    }, undefined),
    mojo.internal.StructField('class_code_$value', 1, 0, mojo.internal.Uint8, 0, false /* nullable */, 0, {
        isPrimary: false,
        originalFieldName: "classCode",
    }, undefined),
    mojo.internal.StructField('subclass_code_$flag', 0, 3, mojo.internal.Bool, false, false /* nullable */, 0, {
        isPrimary: true,
        linkedValueFieldName: "subclass_code_$value",
        originalFieldName: "subclassCode",
    }, undefined),
    mojo.internal.StructField('subclass_code_$value', 6, 0, mojo.internal.Uint8, 0, false /* nullable */, 0, {
        isPrimary: false,
        originalFieldName: "subclassCode",
    }, undefined),
    mojo.internal.StructField('protocol_code_$flag', 0, 4, mojo.internal.Bool, false, false /* nullable */, 0, {
        isPrimary: true,
        linkedValueFieldName: "protocol_code_$value",
        originalFieldName: "protocolCode",
    }, undefined),
    mojo.internal.StructField('protocol_code_$value', 7, 0, mojo.internal.Uint8, 0, false /* nullable */, 0, {
        isPrimary: false,
        originalFieldName: "protocolCode",
    }, undefined),
    mojo.internal.StructField('serialNumber', 8, 0, mojoBase_mojom_String16Spec.$, null, true /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(UsbEnumerationOptionsSpec.$, 'UsbEnumerationOptions', [
    mojo.internal.StructField('filters', 0, 0, mojo.internal.Array(UsbDeviceFilterSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
