xref: /aosp_15_r20/external/googleapis/google/rpc/context/attribute_context.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1*d5c09012SAndroid Build Coastguard Worker// Copyright 2022 Google LLC
2*d5c09012SAndroid Build Coastguard Worker//
3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*d5c09012SAndroid Build Coastguard Worker//
7*d5c09012SAndroid Build Coastguard Worker//     http://www.apache.org/licenses/LICENSE-2.0
8*d5c09012SAndroid Build Coastguard Worker//
9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*d5c09012SAndroid Build Coastguard Worker// limitations under the License.
14*d5c09012SAndroid Build Coastguard Worker
15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3";
16*d5c09012SAndroid Build Coastguard Worker
17*d5c09012SAndroid Build Coastguard Workerpackage google.rpc.context;
18*d5c09012SAndroid Build Coastguard Worker
19*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/any.proto";
20*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/duration.proto";
21*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/struct.proto";
22*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/timestamp.proto";
23*d5c09012SAndroid Build Coastguard Worker
24*d5c09012SAndroid Build Coastguard Workeroption cc_enable_arenas = true;
25*d5c09012SAndroid Build Coastguard Workeroption go_package = "google.golang.org/genproto/googleapis/rpc/context/attribute_context;attribute_context";
26*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true;
27*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "AttributeContextProto";
28*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.rpc.context";
29*d5c09012SAndroid Build Coastguard Worker
30*d5c09012SAndroid Build Coastguard Worker// This message defines the standard attribute vocabulary for Google APIs.
31*d5c09012SAndroid Build Coastguard Worker//
32*d5c09012SAndroid Build Coastguard Worker// An attribute is a piece of metadata that describes an activity on a network
33*d5c09012SAndroid Build Coastguard Worker// service. For example, the size of an HTTP request, or the status code of
34*d5c09012SAndroid Build Coastguard Worker// an HTTP response.
35*d5c09012SAndroid Build Coastguard Worker//
36*d5c09012SAndroid Build Coastguard Worker// Each attribute has a type and a name, which is logically defined as
37*d5c09012SAndroid Build Coastguard Worker// a proto message field in `AttributeContext`. The field type becomes the
38*d5c09012SAndroid Build Coastguard Worker// attribute type, and the field path becomes the attribute name. For example,
39*d5c09012SAndroid Build Coastguard Worker// the attribute `source.ip` maps to field `AttributeContext.source.ip`.
40*d5c09012SAndroid Build Coastguard Worker//
41*d5c09012SAndroid Build Coastguard Worker// This message definition is guaranteed not to have any wire breaking change.
42*d5c09012SAndroid Build Coastguard Worker// So you can use it directly for passing attributes across different systems.
43*d5c09012SAndroid Build Coastguard Worker//
44*d5c09012SAndroid Build Coastguard Worker// NOTE: Different system may generate different subset of attributes. Please
45*d5c09012SAndroid Build Coastguard Worker// verify the system specification before relying on an attribute generated
46*d5c09012SAndroid Build Coastguard Worker// a system.
47*d5c09012SAndroid Build Coastguard Workermessage AttributeContext {
48*d5c09012SAndroid Build Coastguard Worker  // This message defines attributes for a node that handles a network request.
49*d5c09012SAndroid Build Coastguard Worker  // The node can be either a service or an application that sends, forwards,
50*d5c09012SAndroid Build Coastguard Worker  // or receives the request. Service peers should fill in
51*d5c09012SAndroid Build Coastguard Worker  // `principal` and `labels` as appropriate.
52*d5c09012SAndroid Build Coastguard Worker  message Peer {
53*d5c09012SAndroid Build Coastguard Worker    // The IP address of the peer.
54*d5c09012SAndroid Build Coastguard Worker    string ip = 1;
55*d5c09012SAndroid Build Coastguard Worker
56*d5c09012SAndroid Build Coastguard Worker    // The network port of the peer.
57*d5c09012SAndroid Build Coastguard Worker    int64 port = 2;
58*d5c09012SAndroid Build Coastguard Worker
59*d5c09012SAndroid Build Coastguard Worker    // The labels associated with the peer.
60*d5c09012SAndroid Build Coastguard Worker    map<string, string> labels = 6;
61*d5c09012SAndroid Build Coastguard Worker
62*d5c09012SAndroid Build Coastguard Worker    // The identity of this peer. Similar to `Request.auth.principal`, but
63*d5c09012SAndroid Build Coastguard Worker    // relative to the peer instead of the request. For example, the
64*d5c09012SAndroid Build Coastguard Worker    // identity associated with a load balancer that forwarded the request.
65*d5c09012SAndroid Build Coastguard Worker    string principal = 7;
66*d5c09012SAndroid Build Coastguard Worker
67*d5c09012SAndroid Build Coastguard Worker    // The CLDR country/region code associated with the above IP address.
68*d5c09012SAndroid Build Coastguard Worker    // If the IP address is private, the `region_code` should reflect the
69*d5c09012SAndroid Build Coastguard Worker    // physical location where this peer is running.
70*d5c09012SAndroid Build Coastguard Worker    string region_code = 8;
71*d5c09012SAndroid Build Coastguard Worker  }
72*d5c09012SAndroid Build Coastguard Worker
73*d5c09012SAndroid Build Coastguard Worker  // This message defines attributes associated with API operations, such as
74*d5c09012SAndroid Build Coastguard Worker  // a network API request. The terminology is based on the conventions used
75*d5c09012SAndroid Build Coastguard Worker  // by Google APIs, Istio, and OpenAPI.
76*d5c09012SAndroid Build Coastguard Worker  message Api {
77*d5c09012SAndroid Build Coastguard Worker    // The API service name. It is a logical identifier for a networked API,
78*d5c09012SAndroid Build Coastguard Worker    // such as "pubsub.googleapis.com". The naming syntax depends on the
79*d5c09012SAndroid Build Coastguard Worker    // API management system being used for handling the request.
80*d5c09012SAndroid Build Coastguard Worker    string service = 1;
81*d5c09012SAndroid Build Coastguard Worker
82*d5c09012SAndroid Build Coastguard Worker    // The API operation name. For gRPC requests, it is the fully qualified API
83*d5c09012SAndroid Build Coastguard Worker    // method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
84*d5c09012SAndroid Build Coastguard Worker    // requests, it is the `operationId`, such as "getPet".
85*d5c09012SAndroid Build Coastguard Worker    string operation = 2;
86*d5c09012SAndroid Build Coastguard Worker
87*d5c09012SAndroid Build Coastguard Worker    // The API protocol used for sending the request, such as "http", "https",
88*d5c09012SAndroid Build Coastguard Worker    // "grpc", or "internal".
89*d5c09012SAndroid Build Coastguard Worker    string protocol = 3;
90*d5c09012SAndroid Build Coastguard Worker
91*d5c09012SAndroid Build Coastguard Worker    // The API version associated with the API operation above, such as "v1" or
92*d5c09012SAndroid Build Coastguard Worker    // "v1alpha1".
93*d5c09012SAndroid Build Coastguard Worker    string version = 4;
94*d5c09012SAndroid Build Coastguard Worker  }
95*d5c09012SAndroid Build Coastguard Worker
96*d5c09012SAndroid Build Coastguard Worker  // This message defines request authentication attributes. Terminology is
97*d5c09012SAndroid Build Coastguard Worker  // based on the JSON Web Token (JWT) standard, but the terms also
98*d5c09012SAndroid Build Coastguard Worker  // correlate to concepts in other standards.
99*d5c09012SAndroid Build Coastguard Worker  message Auth {
100*d5c09012SAndroid Build Coastguard Worker    // The authenticated principal. Reflects the issuer (`iss`) and subject
101*d5c09012SAndroid Build Coastguard Worker    // (`sub`) claims within a JWT. The issuer and subject should be `/`
102*d5c09012SAndroid Build Coastguard Worker    // delimited, with `/` percent-encoded within the subject fragment. For
103*d5c09012SAndroid Build Coastguard Worker    // Google accounts, the principal format is:
104*d5c09012SAndroid Build Coastguard Worker    // "https://accounts.google.com/{id}"
105*d5c09012SAndroid Build Coastguard Worker    string principal = 1;
106*d5c09012SAndroid Build Coastguard Worker
107*d5c09012SAndroid Build Coastguard Worker    // The intended audience(s) for this authentication information. Reflects
108*d5c09012SAndroid Build Coastguard Worker    // the audience (`aud`) claim within a JWT. The audience
109*d5c09012SAndroid Build Coastguard Worker    // value(s) depends on the `issuer`, but typically include one or more of
110*d5c09012SAndroid Build Coastguard Worker    // the following pieces of information:
111*d5c09012SAndroid Build Coastguard Worker    //
112*d5c09012SAndroid Build Coastguard Worker    // *  The services intended to receive the credential. For example,
113*d5c09012SAndroid Build Coastguard Worker    //    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
114*d5c09012SAndroid Build Coastguard Worker    // *  A set of service-based scopes. For example,
115*d5c09012SAndroid Build Coastguard Worker    //    ["https://www.googleapis.com/auth/cloud-platform"].
116*d5c09012SAndroid Build Coastguard Worker    // *  The client id of an app, such as the Firebase project id for JWTs
117*d5c09012SAndroid Build Coastguard Worker    //    from Firebase Auth.
118*d5c09012SAndroid Build Coastguard Worker    //
119*d5c09012SAndroid Build Coastguard Worker    // Consult the documentation for the credential issuer to determine the
120*d5c09012SAndroid Build Coastguard Worker    // information provided.
121*d5c09012SAndroid Build Coastguard Worker    repeated string audiences = 2;
122*d5c09012SAndroid Build Coastguard Worker
123*d5c09012SAndroid Build Coastguard Worker    // The authorized presenter of the credential. Reflects the optional
124*d5c09012SAndroid Build Coastguard Worker    // Authorized Presenter (`azp`) claim within a JWT or the
125*d5c09012SAndroid Build Coastguard Worker    // OAuth client id. For example, a Google Cloud Platform client id looks
126*d5c09012SAndroid Build Coastguard Worker    // as follows: "123456789012.apps.googleusercontent.com".
127*d5c09012SAndroid Build Coastguard Worker    string presenter = 3;
128*d5c09012SAndroid Build Coastguard Worker
129*d5c09012SAndroid Build Coastguard Worker    // Structured claims presented with the credential. JWTs include
130*d5c09012SAndroid Build Coastguard Worker    // `{key: value}` pairs for standard and private claims. The following
131*d5c09012SAndroid Build Coastguard Worker    // is a subset of the standard required and optional claims that would
132*d5c09012SAndroid Build Coastguard Worker    // typically be presented for a Google-based JWT:
133*d5c09012SAndroid Build Coastguard Worker    //
134*d5c09012SAndroid Build Coastguard Worker    //    {'iss': 'accounts.google.com',
135*d5c09012SAndroid Build Coastguard Worker    //     'sub': '113289723416554971153',
136*d5c09012SAndroid Build Coastguard Worker    //     'aud': ['123456789012', 'pubsub.googleapis.com'],
137*d5c09012SAndroid Build Coastguard Worker    //     'azp': '123456789012.apps.googleusercontent.com',
138*d5c09012SAndroid Build Coastguard Worker    //     'email': '[email protected]',
139*d5c09012SAndroid Build Coastguard Worker    //     'iat': 1353601026,
140*d5c09012SAndroid Build Coastguard Worker    //     'exp': 1353604926}
141*d5c09012SAndroid Build Coastguard Worker    //
142*d5c09012SAndroid Build Coastguard Worker    // SAML assertions are similarly specified, but with an identity provider
143*d5c09012SAndroid Build Coastguard Worker    // dependent structure.
144*d5c09012SAndroid Build Coastguard Worker    google.protobuf.Struct claims = 4;
145*d5c09012SAndroid Build Coastguard Worker
146*d5c09012SAndroid Build Coastguard Worker    // A list of access level resource names that allow resources to be
147*d5c09012SAndroid Build Coastguard Worker    // accessed by authenticated requester. It is part of Secure GCP processing
148*d5c09012SAndroid Build Coastguard Worker    // for the incoming request. An access level string has the format:
149*d5c09012SAndroid Build Coastguard Worker    // "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
150*d5c09012SAndroid Build Coastguard Worker    //
151*d5c09012SAndroid Build Coastguard Worker    // Example:
152*d5c09012SAndroid Build Coastguard Worker    // "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
153*d5c09012SAndroid Build Coastguard Worker    repeated string access_levels = 5;
154*d5c09012SAndroid Build Coastguard Worker  }
155*d5c09012SAndroid Build Coastguard Worker
156*d5c09012SAndroid Build Coastguard Worker  // This message defines attributes for an HTTP request. If the actual
157*d5c09012SAndroid Build Coastguard Worker  // request is not an HTTP request, the runtime system should try to map
158*d5c09012SAndroid Build Coastguard Worker  // the actual request to an equivalent HTTP request.
159*d5c09012SAndroid Build Coastguard Worker  message Request {
160*d5c09012SAndroid Build Coastguard Worker    // The unique ID for a request, which can be propagated to downstream
161*d5c09012SAndroid Build Coastguard Worker    // systems. The ID should have low probability of collision
162*d5c09012SAndroid Build Coastguard Worker    // within a single day for a specific service.
163*d5c09012SAndroid Build Coastguard Worker    string id = 1;
164*d5c09012SAndroid Build Coastguard Worker
165*d5c09012SAndroid Build Coastguard Worker    // The HTTP request method, such as `GET`, `POST`.
166*d5c09012SAndroid Build Coastguard Worker    string method = 2;
167*d5c09012SAndroid Build Coastguard Worker
168*d5c09012SAndroid Build Coastguard Worker    // The HTTP request headers. If multiple headers share the same key, they
169*d5c09012SAndroid Build Coastguard Worker    // must be merged according to the HTTP spec. All header keys must be
170*d5c09012SAndroid Build Coastguard Worker    // lowercased, because HTTP header keys are case-insensitive.
171*d5c09012SAndroid Build Coastguard Worker    map<string, string> headers = 3;
172*d5c09012SAndroid Build Coastguard Worker
173*d5c09012SAndroid Build Coastguard Worker    // The HTTP URL path, excluding the query parameters.
174*d5c09012SAndroid Build Coastguard Worker    string path = 4;
175*d5c09012SAndroid Build Coastguard Worker
176*d5c09012SAndroid Build Coastguard Worker    // The HTTP request `Host` header value.
177*d5c09012SAndroid Build Coastguard Worker    string host = 5;
178*d5c09012SAndroid Build Coastguard Worker
179*d5c09012SAndroid Build Coastguard Worker    // The HTTP URL scheme, such as `http` and `https`.
180*d5c09012SAndroid Build Coastguard Worker    string scheme = 6;
181*d5c09012SAndroid Build Coastguard Worker
182*d5c09012SAndroid Build Coastguard Worker    // The HTTP URL query in the format of `name1=value1&name2=value2`, as it
183*d5c09012SAndroid Build Coastguard Worker    // appears in the first line of the HTTP request. No decoding is performed.
184*d5c09012SAndroid Build Coastguard Worker    string query = 7;
185*d5c09012SAndroid Build Coastguard Worker
186*d5c09012SAndroid Build Coastguard Worker    // The timestamp when the `destination` service receives the last byte of
187*d5c09012SAndroid Build Coastguard Worker    // the request.
188*d5c09012SAndroid Build Coastguard Worker    google.protobuf.Timestamp time = 9;
189*d5c09012SAndroid Build Coastguard Worker
190*d5c09012SAndroid Build Coastguard Worker    // The HTTP request size in bytes. If unknown, it must be -1.
191*d5c09012SAndroid Build Coastguard Worker    int64 size = 10;
192*d5c09012SAndroid Build Coastguard Worker
193*d5c09012SAndroid Build Coastguard Worker    // The network protocol used with the request, such as "http/1.1",
194*d5c09012SAndroid Build Coastguard Worker    // "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
195*d5c09012SAndroid Build Coastguard Worker    // https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
196*d5c09012SAndroid Build Coastguard Worker    // for details.
197*d5c09012SAndroid Build Coastguard Worker    string protocol = 11;
198*d5c09012SAndroid Build Coastguard Worker
199*d5c09012SAndroid Build Coastguard Worker    // A special parameter for request reason. It is used by security systems
200*d5c09012SAndroid Build Coastguard Worker    // to associate auditing information with a request.
201*d5c09012SAndroid Build Coastguard Worker    string reason = 12;
202*d5c09012SAndroid Build Coastguard Worker
203*d5c09012SAndroid Build Coastguard Worker    // The request authentication. May be absent for unauthenticated requests.
204*d5c09012SAndroid Build Coastguard Worker    // Derived from the HTTP request `Authorization` header or equivalent.
205*d5c09012SAndroid Build Coastguard Worker    Auth auth = 13;
206*d5c09012SAndroid Build Coastguard Worker  }
207*d5c09012SAndroid Build Coastguard Worker
208*d5c09012SAndroid Build Coastguard Worker  // This message defines attributes for a typical network response. It
209*d5c09012SAndroid Build Coastguard Worker  // generally models semantics of an HTTP response.
210*d5c09012SAndroid Build Coastguard Worker  message Response {
211*d5c09012SAndroid Build Coastguard Worker    // The HTTP response status code, such as `200` and `404`.
212*d5c09012SAndroid Build Coastguard Worker    int64 code = 1;
213*d5c09012SAndroid Build Coastguard Worker
214*d5c09012SAndroid Build Coastguard Worker    // The HTTP response size in bytes. If unknown, it must be -1.
215*d5c09012SAndroid Build Coastguard Worker    int64 size = 2;
216*d5c09012SAndroid Build Coastguard Worker
217*d5c09012SAndroid Build Coastguard Worker    // The HTTP response headers. If multiple headers share the same key, they
218*d5c09012SAndroid Build Coastguard Worker    // must be merged according to HTTP spec. All header keys must be
219*d5c09012SAndroid Build Coastguard Worker    // lowercased, because HTTP header keys are case-insensitive.
220*d5c09012SAndroid Build Coastguard Worker    map<string, string> headers = 3;
221*d5c09012SAndroid Build Coastguard Worker
222*d5c09012SAndroid Build Coastguard Worker    // The timestamp when the `destination` service sends the last byte of
223*d5c09012SAndroid Build Coastguard Worker    // the response.
224*d5c09012SAndroid Build Coastguard Worker    google.protobuf.Timestamp time = 4;
225*d5c09012SAndroid Build Coastguard Worker
226*d5c09012SAndroid Build Coastguard Worker    // The amount of time it takes the backend service to fully respond to a
227*d5c09012SAndroid Build Coastguard Worker    // request. Measured from when the destination service starts to send the
228*d5c09012SAndroid Build Coastguard Worker    // request to the backend until when the destination service receives the
229*d5c09012SAndroid Build Coastguard Worker    // complete response from the backend.
230*d5c09012SAndroid Build Coastguard Worker    google.protobuf.Duration backend_latency = 5;
231*d5c09012SAndroid Build Coastguard Worker  }
232*d5c09012SAndroid Build Coastguard Worker
233*d5c09012SAndroid Build Coastguard Worker  // This message defines core attributes for a resource. A resource is an
234*d5c09012SAndroid Build Coastguard Worker  // addressable (named) entity provided by the destination service. For
235*d5c09012SAndroid Build Coastguard Worker  // example, a file stored on a network storage service.
236*d5c09012SAndroid Build Coastguard Worker  message Resource {
237*d5c09012SAndroid Build Coastguard Worker    // The name of the service that this resource belongs to, such as
238*d5c09012SAndroid Build Coastguard Worker    // `pubsub.googleapis.com`. The service may be different from the DNS
239*d5c09012SAndroid Build Coastguard Worker    // hostname that actually serves the request.
240*d5c09012SAndroid Build Coastguard Worker    string service = 1;
241*d5c09012SAndroid Build Coastguard Worker
242*d5c09012SAndroid Build Coastguard Worker    // The stable identifier (name) of a resource on the `service`. A resource
243*d5c09012SAndroid Build Coastguard Worker    // can be logically identified as "//{resource.service}/{resource.name}".
244*d5c09012SAndroid Build Coastguard Worker    // The differences between a resource name and a URI are:
245*d5c09012SAndroid Build Coastguard Worker    //
246*d5c09012SAndroid Build Coastguard Worker    // *   Resource name is a logical identifier, independent of network
247*d5c09012SAndroid Build Coastguard Worker    //     protocol and API version. For example,
248*d5c09012SAndroid Build Coastguard Worker    //     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
249*d5c09012SAndroid Build Coastguard Worker    // *   URI often includes protocol and version information, so it can
250*d5c09012SAndroid Build Coastguard Worker    //     be used directly by applications. For example,
251*d5c09012SAndroid Build Coastguard Worker    //     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
252*d5c09012SAndroid Build Coastguard Worker    //
253*d5c09012SAndroid Build Coastguard Worker    // See https://cloud.google.com/apis/design/resource_names for details.
254*d5c09012SAndroid Build Coastguard Worker    string name = 2;
255*d5c09012SAndroid Build Coastguard Worker
256*d5c09012SAndroid Build Coastguard Worker    // The type of the resource. The syntax is platform-specific because
257*d5c09012SAndroid Build Coastguard Worker    // different platforms define their resources differently.
258*d5c09012SAndroid Build Coastguard Worker    //
259*d5c09012SAndroid Build Coastguard Worker    // For Google APIs, the type format must be "{service}/{kind}", such as
260*d5c09012SAndroid Build Coastguard Worker    // "pubsub.googleapis.com/Topic".
261*d5c09012SAndroid Build Coastguard Worker    string type = 3;
262*d5c09012SAndroid Build Coastguard Worker
263*d5c09012SAndroid Build Coastguard Worker    // The labels or tags on the resource, such as AWS resource tags and
264*d5c09012SAndroid Build Coastguard Worker    // Kubernetes resource labels.
265*d5c09012SAndroid Build Coastguard Worker    map<string, string> labels = 4;
266*d5c09012SAndroid Build Coastguard Worker
267*d5c09012SAndroid Build Coastguard Worker    // The unique identifier of the resource. UID is unique in the time
268*d5c09012SAndroid Build Coastguard Worker    // and space for this resource within the scope of the service. It is
269*d5c09012SAndroid Build Coastguard Worker    // typically generated by the server on successful creation of a resource
270*d5c09012SAndroid Build Coastguard Worker    // and must not be changed. UID is used to uniquely identify resources
271*d5c09012SAndroid Build Coastguard Worker    // with resource name reuses. This should be a UUID4.
272*d5c09012SAndroid Build Coastguard Worker    string uid = 5;
273*d5c09012SAndroid Build Coastguard Worker
274*d5c09012SAndroid Build Coastguard Worker    // Annotations is an unstructured key-value map stored with a resource that
275*d5c09012SAndroid Build Coastguard Worker    // may be set by external tools to store and retrieve arbitrary metadata.
276*d5c09012SAndroid Build Coastguard Worker    // They are not queryable and should be preserved when modifying objects.
277*d5c09012SAndroid Build Coastguard Worker    //
278*d5c09012SAndroid Build Coastguard Worker    // More info: https://kubernetes.io/docs/user-guide/annotations
279*d5c09012SAndroid Build Coastguard Worker    map<string, string> annotations = 6;
280*d5c09012SAndroid Build Coastguard Worker
281*d5c09012SAndroid Build Coastguard Worker    // Mutable. The display name set by clients. Must be <= 63 characters.
282*d5c09012SAndroid Build Coastguard Worker    string display_name = 7;
283*d5c09012SAndroid Build Coastguard Worker
284*d5c09012SAndroid Build Coastguard Worker    // Output only. The timestamp when the resource was created. This may
285*d5c09012SAndroid Build Coastguard Worker    // be either the time creation was initiated or when it was completed.
286*d5c09012SAndroid Build Coastguard Worker    google.protobuf.Timestamp create_time = 8;
287*d5c09012SAndroid Build Coastguard Worker
288*d5c09012SAndroid Build Coastguard Worker    // Output only. The timestamp when the resource was last updated. Any
289*d5c09012SAndroid Build Coastguard Worker    // change to the resource made by users must refresh this value.
290*d5c09012SAndroid Build Coastguard Worker    // Changes to a resource made by the service should refresh this value.
291*d5c09012SAndroid Build Coastguard Worker    google.protobuf.Timestamp update_time = 9;
292*d5c09012SAndroid Build Coastguard Worker
293*d5c09012SAndroid Build Coastguard Worker    // Output only. The timestamp when the resource was deleted.
294*d5c09012SAndroid Build Coastguard Worker    // If the resource is not deleted, this must be empty.
295*d5c09012SAndroid Build Coastguard Worker    google.protobuf.Timestamp delete_time = 10;
296*d5c09012SAndroid Build Coastguard Worker
297*d5c09012SAndroid Build Coastguard Worker    // Output only. An opaque value that uniquely identifies a version or
298*d5c09012SAndroid Build Coastguard Worker    // generation of a resource. It can be used to confirm that the client
299*d5c09012SAndroid Build Coastguard Worker    // and server agree on the ordering of a resource being written.
300*d5c09012SAndroid Build Coastguard Worker    string etag = 11;
301*d5c09012SAndroid Build Coastguard Worker
302*d5c09012SAndroid Build Coastguard Worker    // Immutable. The location of the resource. The location encoding is
303*d5c09012SAndroid Build Coastguard Worker    // specific to the service provider, and new encoding may be introduced
304*d5c09012SAndroid Build Coastguard Worker    // as the service evolves.
305*d5c09012SAndroid Build Coastguard Worker    //
306*d5c09012SAndroid Build Coastguard Worker    // For Google Cloud products, the encoding is what is used by Google Cloud
307*d5c09012SAndroid Build Coastguard Worker    // APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
308*d5c09012SAndroid Build Coastguard Worker    // semantics of `location` is identical to the
309*d5c09012SAndroid Build Coastguard Worker    // `cloud.googleapis.com/location` label used by some Google Cloud APIs.
310*d5c09012SAndroid Build Coastguard Worker    string location = 12;
311*d5c09012SAndroid Build Coastguard Worker  }
312*d5c09012SAndroid Build Coastguard Worker
313*d5c09012SAndroid Build Coastguard Worker  // The origin of a network activity. In a multi hop network activity,
314*d5c09012SAndroid Build Coastguard Worker  // the origin represents the sender of the first hop. For the first hop,
315*d5c09012SAndroid Build Coastguard Worker  // the `source` and the `origin` must have the same content.
316*d5c09012SAndroid Build Coastguard Worker  Peer origin = 7;
317*d5c09012SAndroid Build Coastguard Worker
318*d5c09012SAndroid Build Coastguard Worker  // The source of a network activity, such as starting a TCP connection.
319*d5c09012SAndroid Build Coastguard Worker  // In a multi hop network activity, the source represents the sender of the
320*d5c09012SAndroid Build Coastguard Worker  // last hop.
321*d5c09012SAndroid Build Coastguard Worker  Peer source = 1;
322*d5c09012SAndroid Build Coastguard Worker
323*d5c09012SAndroid Build Coastguard Worker  // The destination of a network activity, such as accepting a TCP connection.
324*d5c09012SAndroid Build Coastguard Worker  // In a multi hop network activity, the destination represents the receiver of
325*d5c09012SAndroid Build Coastguard Worker  // the last hop.
326*d5c09012SAndroid Build Coastguard Worker  Peer destination = 2;
327*d5c09012SAndroid Build Coastguard Worker
328*d5c09012SAndroid Build Coastguard Worker  // Represents a network request, such as an HTTP request.
329*d5c09012SAndroid Build Coastguard Worker  Request request = 3;
330*d5c09012SAndroid Build Coastguard Worker
331*d5c09012SAndroid Build Coastguard Worker  // Represents a network response, such as an HTTP response.
332*d5c09012SAndroid Build Coastguard Worker  Response response = 4;
333*d5c09012SAndroid Build Coastguard Worker
334*d5c09012SAndroid Build Coastguard Worker  // Represents a target resource that is involved with a network activity.
335*d5c09012SAndroid Build Coastguard Worker  // If multiple resources are involved with an activity, this must be the
336*d5c09012SAndroid Build Coastguard Worker  // primary one.
337*d5c09012SAndroid Build Coastguard Worker  Resource resource = 5;
338*d5c09012SAndroid Build Coastguard Worker
339*d5c09012SAndroid Build Coastguard Worker  // Represents an API operation that is involved to a network activity.
340*d5c09012SAndroid Build Coastguard Worker  Api api = 6;
341*d5c09012SAndroid Build Coastguard Worker
342*d5c09012SAndroid Build Coastguard Worker  // Supports extensions for advanced use cases, such as logs and metrics.
343*d5c09012SAndroid Build Coastguard Worker  repeated google.protobuf.Any extensions = 8;
344*d5c09012SAndroid Build Coastguard Worker}
345