// components/data_sharing/public/protocol/group_data.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 { JSTimeSpec as mojoBase_mojom_JSTimeSpec } from '//resources/mojo/mojo/public/mojom/base/time.mojom-webui.js';
import { UrlSpec as url_mojom_UrlSpec } from '//resources/mojo/url/mojom/url.mojom-webui.js';
export const MemberRoleSpec = { $: mojo.internal.Enum() };
export var MemberRole;
(function (MemberRole) {
    MemberRole[MemberRole["MIN_VALUE"] = 0] = "MIN_VALUE";
    MemberRole[MemberRole["MAX_VALUE"] = 4] = "MAX_VALUE";
    MemberRole[MemberRole["kUnspecified"] = 0] = "kUnspecified";
    MemberRole[MemberRole["kOwner"] = 1] = "kOwner";
    MemberRole[MemberRole["kMember"] = 2] = "kMember";
    MemberRole[MemberRole["kInvitee"] = 3] = "kInvitee";
    MemberRole[MemberRole["kFormerMember"] = 4] = "kFormerMember";
})(MemberRole || (MemberRole = {}));
export const GroupMemberSpec = { $: {} };
export const GroupDataSpec = { $: {} };
mojo.internal.Struct(GroupMemberSpec.$, 'GroupMember', [
    mojo.internal.StructField('gaiaId', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('displayName', 8, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('email', 16, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('role', 24, 0, MemberRoleSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('avatarUrl', 32, 0, url_mojom_UrlSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('givenName', 40, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('creationTime', 48, 0, mojoBase_mojom_JSTimeSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('lastUpdatedTime', 56, 0, mojoBase_mojom_JSTimeSpec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 72],]);
mojo.internal.Struct(GroupDataSpec.$, 'GroupData', [
    mojo.internal.StructField('groupId', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('displayName', 8, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('members', 16, 0, mojo.internal.Array(GroupMemberSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('formerMembers', 24, 0, mojo.internal.Array(GroupMemberSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('accessToken', 32, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
], [[0, 48],]);
