blob: 485031b0b2c5b3e2e3ac34c2b92e194bec12c108 [file] [log] [blame]
// Copyright 2020 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";
package feedwire;
option optimize_for=LITE_RUNTIME;
import "google/protobuf/duration.proto";
/* Information about whether and when a feature should expire and be removed
* from Discover. */
message ExpirationInfo {
// Whether the feature can expire.
optional bool should_expire = 1;
// Indicates how long after this response was received the client should wait
// before expiring (and hiding) this content. This expiration time is a best
// effort, and should not be done while the content is visible on screen.
// There are no penalties with showing the content after the expiry, though
// some uses of this API (ads in particular) do have SLA's about how often
// items can be shown after expiration.
optional google.protobuf.Duration expiration_duration = 2;
}