blob: c700ab23c935ab6cf10b4b00bd3816ad0ef9a55c [file] [log] [blame]
// Copyright 2018 The Feed Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto2";
import "src/main/proto/search/now/ui/action/feed_action_payload.proto";
import "src/main/proto/search/now/ui/stream/stream_structure.proto";
package search.now.ui.stream;
option optimize_for=LITE_RUNTIME;
option java_package = "com.google.search.now.ui.stream";
option java_outer_classname = "StreamSwipeExtensionProto";
option cc_enable_arenas = true;
// Extension for cards that are swipeable. Allows action to be set for execution
// when the card is swiped.
message SwipeActionExtension {
extend search.now.ui.stream.Card {
optional SwipeActionExtension swipe_action_extension = 196559392;
}
optional search.now.ui.action.FeedActionPayload swipe_action = 1;
}