// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

syntax = "proto2";

import "components/feed/core/proto/ui/piet/piet.proto";
import "components/feed/core/proto/wire/content_id.proto";

package feedwire1;

option optimize_for = LITE_RUNTIME;

option java_package = "org.chromium.components.feed.core.proto.wire";
option java_outer_classname = "PietSharedStateItemProto";

// NOTE: This actually shouldn't be part of the wire protocol.  It should be
// pulled out into a separate package because it's created outside of the
// wire protocol and is used on clients outside of the processing of the
// wire protocol.

// This is a metadata payload containing a Piet Shared State.
message PietSharedStateItem {
  // ContentId identifying the shared state.
  optional ContentId content_id = 1;

  // A Piet Shared State which is used by a set of Piet cards.
  optional components.feed.core.proto.ui.piet.PietSharedState
      piet_shared_state = 2;
}
