blob: 1ad17302c7f78cb7587126d1eaf27e3143e5c4f7 [file] [log] [blame]
initial_response {
[search.now.wire.feed.FeedResponse.feed_response] {
data_operation {
operation: CLEAR_ALL
}
data_operation {
operation: UPDATE_OR_APPEND
metadata {
content_id {
content_domain: "piet-shared-state"
id: 1
table: "piet-shared-state"
}
}
piet_shared_state {
stylesheets {
stylesheet_id: "feed-story-card"
styles {
style_id: "card"
padding {
start: 16
end: 16
}
}
styles {
style_id: "mini-card"
padding {
start: 0
end: 0
}
}
}
templates {
template_id: "story-content-template"
element {
grid_row {
cells {
width_binding {
binding_id: "image-width"
}
content {
element {
image_element {
image_binding {
binding_id: "image-binding"
}
}
style_references {
style_ids: "story"
style_ids: "image"
style_ids: "cell-style"
}
overlays {
element {
image_element {
image {
sources {
url: "asset://offline_indicator_badge"
}
}
}
gravity_horizontal: GRAVITY_END
style_references {
style_ids: "story"
style_ids: "style-badge-icon"
}
gravity_vertical: GRAVITY_BOTTOM
visibility_state {
overriding_bound_visibility {
binding_id: "image-overlay-visibility"
}
default_visibility: GONE
}
}
}
}
}
}
cells {
width {
weight: 1
}
content {
element {
element_list {
contents {
element {
text_element {
parameterized_text_binding {
binding_id: "title-binding"
}
}
style_references {
style_ids: "story"
style_ids: "title"
}
}
}
contents {
element {
grid_row {
cells {
width {
dp: 16
}
content {
element {
image_element {
image_binding {
binding_id: "source-icon-binding"
}
}
style_references {
style_ids: "story"
style_ids: "source-icon"
}
}
}
}
cells {
width {
content_width: CONTENT_WIDTH
is_collapsible: true
}
content {
element {
text_element {
parameterized_text_binding {
binding_id: "source-binding"
}
}
style_references {
style_ids: "story"
style_ids: "source"
}
}
}
}
cells {
width {
content_width: CONTENT_WIDTH
}
content {
element {
text_element {
parameterized_text_binding {
binding_id: "date-binding"
}
}
style_references {
style_ids: "story"
style_ids: "date"
}
}
}
}
}
style_references {
style_ids: "story"
style_ids: "source-row"
}
}
}
}
style_references {
style_ids: "story"
}
}
}
}
}
actions_binding {
binding_id: "actions-binding"
}
style_references {
style_ids: "story"
style_ids: "row-style"
}
}
stylesheets {
stylesheets {
styles {
style_id: "story"
}
styles {
style_id: "row-style"
background {
color: 268435456
}
}
styles {
style_id: "image"
width: 96
height: 112
image_loading_settings {
pre_load_fill {
color: 4294901760
}
}
scale_type: CENTER_CROP
}
styles {
style_id: "cell-style"
padding {
start: 0
end: 16
}
}
styles {
style_id: "title"
color: 3724541952
font {
size: 16
}
padding {
top: 16
bottom: 0
start: 0
end: 0
}
min_height: 80
max_lines: 3
}
styles {
style_id: "source-row"
padding {
top: 6
bottom: 6
start: 6
end: 12
}
}
styles {
style_id: "source-icon"
padding {
top: 0
bottom: 0
start: 0
end: 0
}
width: 16
height: 16
}
styles {
style_id: "source"
font {
size: 12
}
padding {
top: 0
bottom: 0
start: 12
end: 0
}
max_lines: 1
}
styles {
style_id: "date"
font {
size: 12
}
max_lines: 1
}
styles {
style_id: "style-badge-icon"
margins {
bottom: 4
end: 20
}
width: 18
height: 18
gravity_horizontal: GRAVITY_END
gravity_vertical: GRAVITY_BOTTOM
}
}
}
}
}
}
data_operation {
operation: UPDATE_OR_APPEND
metadata {
content_id {
content_domain: "root"
id: 0
table: "FEATURE"
}
}
feature {
renderable_unit: STREAM
}
}
data_operation {
operation: UPDATE_OR_APPEND
metadata {
content_id {
content_domain: "cluster.f"
id: 3001
table: "feature"
}
}
feature {
parent_id {
content_domain: "root"
id: 0
table: "FEATURE"
}
renderable_unit: CLUSTER
[search.now.ui.stream.Cluster.cluster_extension] {
}
}
}
data_operation {
operation: UPDATE_OR_APPEND
metadata {
content_id {
content_domain: "card.f"
id: 2001
table: "feature"
}
}
feature {
parent_id {
content_domain: "cluster.f"
id: 3001
table: "feature"
}
renderable_unit: CARD
[search.now.ui.stream.Card.card_extension] {
[search.now.ui.stream.SwipeActionExtension.swipe_action_extension] {
swipe_action {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: DISMISS_LOCAL
dismiss_data {
content_id {
content_domain: "card.f"
id: 2001
table: "feature"
}
data_operations {
operation: REMOVE
metadata {
content_id {
content_domain: "cluster.f"
id: 3001
table: "feature"
}
}
feature {
parent_id {
content_domain: "root"
id: 0
table: "FEATURE"
}
}
}
}
}
}
}
}
}
}
}
data_operation {
operation: UPDATE_OR_APPEND
metadata {
content_id {
content_domain: "content.f"
id: 20010
table: "feature"
}
}
feature {
parent_id {
content_domain: "card.f"
id: 2001
table: "feature"
}
renderable_unit: CONTENT
[search.now.ui.stream.Content.content_extension] {
type: PIET
representation_data {
uri: "http://profootballtalk.nbcsports.com/2017/11/10/jerry-jones-owners-should-approve-of-roger-goodells-decisions/"
}
offline_metadata {
title: "Jerry Jones: Owners should approve of Roger Goodell\'s decisions"
image_url: "https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRydPYA9MW5_G1lKk6fM8OVNf9z7lF5e7ZI2hAAVIAAb-_b3eyQrCQN6j2AcNAaWu-KO11XpQfC-A"
publisher: "People talking about football for a long time"
favicon_url: "https://www.google.com/s2/favicons?domain=www.profootballtalk.com&sz=48"
}
[search.now.ui.stream.PietContent.piet_content_extension] {
piet_shared_states {
content_domain: "piet-shared-state"
id: 1
table: "piet-shared-state"
}
frame {
tag: "Story-Card-Feed"
style_references {
style_ids: "mini-card"
}
contents {
template_invocation {
template_id: "story-content-template"
binding_contexts {
binding_values {
binding_id: "image-binding"
image {
sources {
url: "https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRydPYA9MW5_G1lKk6fM8OVNf9z7lF5e7ZI2hAAVIAAb-_b3eyQrCQN6j2AcNAaWu-KO11XpQfC-A"
}
}
}
binding_values {
binding_id: "image-width"
cell_width {
dp: 112
}
}
binding_values {
binding_id: "image-overlay-visibility"
host_binding_data {
[search.now.ui.stream.OfflineExtension.offline_extension] {
url: "http://profootballtalk.nbcsports.com/2017/11/10/jerry-jones-owners-should-approve-of-roger-goodells-decisions/"
offline_binding {
visibility: VISIBLE
}
not_offline_binding {
visibility: GONE
}
}
}
}
binding_values {
binding_id: "title-binding"
parameterized_text {
text: "Jerry Jones: Owners should approve of Roger Goodell\'s decisions"
}
}
binding_values {
binding_id: "source-icon-binding"
image {
sources {
url: "https://www.google.com/s2/favicons?domain=www.profootballtalk.com&sz=48"
}
}
}
binding_values {
binding_id: "source-binding"
parameterized_text {
text: "People talking about football for a long time"
}
}
binding_values {
binding_id: "date-binding"
parameterized_text {
text: " \302\267 %s"
parameters {
timestamp_seconds: 1510335173
}
}
}
binding_values {
binding_id: "actions-binding"
actions {
on_click_action {
[search.now.ui.action.PietFeedActionPayload.piet_feed_action_payload_extension] {
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: SHOW_TOOLTIP
tooltip_data {
label: "oh look a pretty tooltip"
feature_name: CARD_MENU
}
}
}
}
}
}
on_long_click_action {
[search.now.ui.action.PietFeedActionPayload.piet_feed_action_payload_extension] {
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: OPEN_CONTEXT_MENU
open_context_menu_data {
context_menu_data {
label: "Open"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: OPEN_URL
open_url_data {
url: "http://profootballtalk.nbcsports.com/2017/11/10/jerry-jones-owners-should-approve-of-roger-goodells-decisions/"
}
}
}
}
}
context_menu_data {
label: "Open in other window"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: OPEN_URL_NEW_WINDOW
open_url_data {
url: "http://profootballtalk.nbcsports.com/2017/11/10/jerry-jones-owners-should-approve-of-roger-goodells-decisions/"
}
}
}
}
}
context_menu_data {
label: "Open in incognito"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: OPEN_URL_INCOGNITO
open_url_data {
url: "http://profootballtalk.nbcsports.com/2017/11/10/jerry-jones-owners-should-approve-of-roger-goodells-decisions/"
}
}
}
}
}
context_menu_data {
label: "Open in new tab"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: OPEN_URL_NEW_TAB
open_url_data {
url: "http://profootballtalk.nbcsports.com/2017/11/10/jerry-jones-owners-should-approve-of-roger-goodells-decisions/"
}
}
}
}
}
context_menu_data {
label: "Remove"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: DISMISS_LOCAL
dismiss_data {
content_id {
content_domain: "content.f"
id: 20010
table: "feature"
}
data_operations {
operation: REMOVE
metadata {
content_id {
content_domain: "cluster.f"
id: 3001
table: "feature"
}
}
feature {
parent_id {
content_domain: "root"
id: 0
table: "FEATURE"
}
}
}
}
}
}
}
}
context_menu_data {
label: "Dismiss with snackbar"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: DISMISS
dismiss_data {
content_id {
content_domain: "content.f"
id: 20010
table: "feature"
}
data_operations {
operation: REMOVE
metadata {
content_id {
content_domain: "cluster.f"
id: 3001
table: "feature"
}
}
feature {
parent_id {
content_domain: "root"
id: 0
table: "FEATURE"
}
}
}
undo_action {
confirmation_label: "Server sent string"
undo_label: "Undo string"
}
}
}
}
}
}
context_menu_data {
label: "Not interested in Topic"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: NOT_INTERESTED_IN
not_interested_in_data {
undo_action {
confirmation_label: "You will not see this topic anymore"
undo_label: "Undo"
}
data_operations {
operation: REMOVE
metadata {
content_id {
content_domain: "cluster.f"
id: 3001
table: "feature"
}
}
feature {
parent_id {
content_domain: "root"
id: 0
table: "FEATURE"
}
}
}
interest_type_value: 1
}
}
}
}
}
context_menu_data {
label: "Download link"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: DOWNLOAD
}
}
}
}
context_menu_data {
label: "Learn more"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: LEARN_MORE
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
stylesheets {
stylesheet_ids: "feed-story-card"
}
}
}
}
}
}
data_operation {
operation: UPDATE_OR_APPEND
metadata {
content_id {
content_domain: "cluster.f"
id: 3002
table: "feature"
}
}
feature {
parent_id {
content_domain: "root"
id: 0
table: "FEATURE"
}
renderable_unit: CLUSTER
[search.now.ui.stream.Cluster.cluster_extension] {
}
}
}
data_operation {
operation: UPDATE_OR_APPEND
metadata {
content_id {
content_domain: "card.f"
id: 2002
table: "feature"
}
}
feature {
parent_id {
content_domain: "cluster.f"
id: 3002
table: "feature"
}
renderable_unit: CARD
[search.now.ui.stream.Card.card_extension] {
[search.now.ui.stream.SwipeActionExtension.swipe_action_extension] {
swipe_action {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: DISMISS_LOCAL
dismiss_data {
content_id {
content_domain: "card.f"
id: 2002
table: "feature"
}
data_operations {
operation: REMOVE
metadata {
content_id {
content_domain: "cluster.f"
id: 3002
table: "feature"
}
}
feature {
parent_id {
content_domain: "root"
id: 0
table: "FEATURE"
}
}
}
}
}
}
}
}
}
}
}
data_operation {
operation: UPDATE_OR_APPEND
metadata {
content_id {
content_domain: "content.f"
id: 20020
table: "feature"
}
}
feature {
parent_id {
content_domain: "card.f"
id: 2002
table: "feature"
}
renderable_unit: CONTENT
[search.now.ui.stream.Content.content_extension] {
type: PIET
representation_data {
uri: "https://www.nytimes.com/2017/11/10/world/asia/trump-apec-asia-trade.html"
}
offline_metadata {
title: "Trump Pitches \'American First\' Trade Policy at Asia-Pacific Gathering"
image_url: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRh1tEaJT-br6mBxM89U3vgjDldwb9L_baZszhstAGMQh3_fuG13ax3C9ewR2tq45tbZj74CHl3KNU"
publisher: "Profootballtalk.com"
favicon_url: "https://www.google.com/s2/favicons?domain=www.nytimes.com&sz=48"
}
[search.now.ui.stream.PietContent.piet_content_extension] {
piet_shared_states {
content_domain: "piet-shared-state"
id: 1
table: "piet-shared-state"
}
frame {
tag: "Story-Card-Feed"
style_references {
style_ids: "mini-card"
}
contents {
template_invocation {
template_id: "story-content-template"
binding_contexts {
binding_values {
binding_id: "image-binding"
image {
sources {
url: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRh1tEaJT-br6mBxM89U3vgjDldwb9L_baZszhstAGMQh3_fuG13ax3C9ewR2tq45tbZj74CHl3KNU"
}
}
}
binding_values {
binding_id: "image-width"
cell_width {
dp: 112
}
}
binding_values {
binding_id: "image-overlay-visibility"
host_binding_data {
[search.now.ui.stream.OfflineExtension.offline_extension] {
url: "https://www.nytimes.com/2017/11/10/world/asia/trump-apec-asia-trade.html"
offline_binding {
visibility: VISIBLE
}
not_offline_binding {
visibility: GONE
}
}
}
}
binding_values {
binding_id: "title-binding"
parameterized_text {
text: "Trump Pitches \'American First\' Trade Policy at Asia-Pacific Gathering"
}
}
binding_values {
binding_id: "source-icon-binding"
image {
sources {
url: "https://www.google.com/s2/favicons?domain=www.nytimes.com&sz=48"
}
}
}
binding_values {
binding_id: "source-binding"
parameterized_text {
text: "Profootballtalk.com"
}
}
binding_values {
binding_id: "date-binding"
parameterized_text {
text: " \302\267 %s"
parameters {
timestamp_seconds: 1510335173
}
}
}
binding_values {
binding_id: "actions-binding"
actions {
on_click_action {
[search.now.ui.action.PietFeedActionPayload.piet_feed_action_payload_extension] {
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: SHOW_TOOLTIP
tooltip_data {
label: "oh look a pretty tooltip"
feature_name: CARD_MENU
}
}
}
}
}
}
on_long_click_action {
[search.now.ui.action.PietFeedActionPayload.piet_feed_action_payload_extension] {
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: OPEN_CONTEXT_MENU
open_context_menu_data {
context_menu_data {
label: "Open"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: OPEN_URL
open_url_data {
url: "https://www.nytimes.com/2017/11/10/world/asia/trump-apec-asia-trade.html"
}
}
}
}
}
context_menu_data {
label: "Open in other window"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: OPEN_URL_NEW_WINDOW
open_url_data {
url: "https://www.nytimes.com/2017/11/10/world/asia/trump-apec-asia-trade.html"
}
}
}
}
}
context_menu_data {
label: "Open in incognito"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: OPEN_URL_INCOGNITO
open_url_data {
url: "https://www.nytimes.com/2017/11/10/world/asia/trump-apec-asia-trade.html"
}
}
}
}
}
context_menu_data {
label: "Open in new tab"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: OPEN_URL_NEW_TAB
open_url_data {
url: "https://www.nytimes.com/2017/11/10/world/asia/trump-apec-asia-trade.html"
}
}
}
}
}
context_menu_data {
label: "Remove"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: DISMISS_LOCAL
dismiss_data {
content_id {
content_domain: "content.f"
id: 20020
table: "feature"
}
data_operations {
operation: REMOVE
metadata {
content_id {
content_domain: "cluster.f"
id: 3002
table: "feature"
}
}
feature {
parent_id {
content_domain: "root"
id: 0
table: "FEATURE"
}
}
}
}
}
}
}
}
context_menu_data {
label: "Dismiss with snackbar"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: DISMISS
dismiss_data {
content_id {
content_domain: "content.f"
id: 20020
table: "feature"
}
data_operations {
operation: REMOVE
metadata {
content_id {
content_domain: "cluster.f"
id: 3002
table: "feature"
}
}
feature {
parent_id {
content_domain: "root"
id: 0
table: "FEATURE"
}
}
}
undo_action {
confirmation_label: "Server sent string"
undo_label: "Undo string"
}
}
}
}
}
}
context_menu_data {
label: "Not interested in Topic"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: NOT_INTERESTED_IN
not_interested_in_data {
undo_action {
confirmation_label: "You will not see this topic anymore"
undo_label: "Undo"
}
data_operations {
operation: REMOVE
metadata {
content_id {
content_domain: "cluster.f"
id: 3002
table: "feature"
}
}
feature {
parent_id {
content_domain: "root"
id: 0
table: "FEATURE"
}
}
}
interest_type_value: 1
}
}
}
}
}
context_menu_data {
label: "Download link"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: DOWNLOAD
}
}
}
}
context_menu_data {
label: "Learn more"
feed_action_payload {
[search.now.ui.action.FeedAction.feed_action_extension] {
metadata {
type: LEARN_MORE
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
stylesheets {
stylesheet_ids: "feed-story-card"
}
}
}
}
}
}
}
}