blob: 7a996039d81b933182a446301c30b6b0acf4d8aa [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";
import "src/trellis/proto/token.proto";
// InPlaceUpdateHandle is a handle for the client to send to the server in order
// to update content in-place.
message InPlaceUpdateHandle {
// Indicates how long after this response ws received the client should wait
// before sending the token back to the server. It is not an error to send the
// token earlier, but in that case the server may just replace the handle with
// and an updated use_after and the same token.
optional google.protobuf.Duration use_after = 1;
// Opaque token to use in a request for the server to send updated versions of
// its associated content.
optional Token token = 2;
}