xref: /aosp_15_r20/external/grpc-grpc/src/proto/grpc/testing/xds/v3/cookie.proto (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1// Copyright 2022 gRPC authors.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Local copy of Envoy xDS proto file, used for testing only.
16
17syntax = "proto3";
18
19package envoy.type.http.v3;
20
21import "google/protobuf/duration.proto";
22
23// [#protodoc-title: Http cookie API]
24
25// Cookie defines an API for obtaining or generating HTTP cookie.
26message Cookie {
27  // The name that will be used to obtain cookie value from downstream HTTP request or generate
28  // new cookie for downstream.
29  string name = 1;
30
31  // Duration of cookie. This will be used to set the expiry time of a new cookie when it is
32  // generated. Set this to 0 to use a session cookie.
33  google.protobuf.Duration ttl = 2;
34
35  // Path of cookie. This will be used to set the path of a new cookie when it is generated.
36  // If no path is specified here, no path will be set for the cookie.
37  string path = 3;
38}
39