File: google3_protos.proto

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (83 lines) | stat: -rw-r--r-- 1,914 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

syntax = "proto3";

package google3_protos;

option optimize_for = LITE_RUNTIME;

// This is a copy of google.protobuf.Timestamp.
message Timestamp {
  // Represents seconds of UTC time since Unix epoch
  // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
  // 9999-12-31T23:59:59Z inclusive.
  int64 seconds = 1;

  // Non-negative fractions of a second at nanosecond resolution. Negative
  // second values with fractions must still have non-negative nanos values
  // that count forward in time. Must be from 0 to 999,999,999
  // inclusive.
  int32 nanos = 2;
}

// This is a copy of google.protobuf.Any.
message Any {
  string type_url = 1 [ctype = STRING_PIECE];
  bytes value = 2 [ctype = CORD];
}

// This is a copy of google.rpc.Code.
enum Code {
  // HTTP Mapping: 200 OK
  OK = 0;

  // HTTP Mapping: 499 Client Closed Request
  CANCELLED = 1;

  // HTTP Mapping: 500 Internal Server Error
  UNKNOWN = 2;

  // HTTP Mapping: 400 Bad Request
  INVALID_ARGUMENT = 3;

  // HTTP Mapping: 504 Gateway Timeout
  DEADLINE_EXCEEDED = 4;

  // HTTP Mapping: 404 Not Found
  NOT_FOUND = 5;

  // HTTP Mapping: 409 Conflict
  ALREADY_EXISTS = 6;

  // HTTP Mapping: 403 Forbidden
  PERMISSION_DENIED = 7;

  // HTTP Mapping: 401 Unauthorized
  UNAUTHENTICATED = 16;

  // HTTP Mapping: 429 Too Many Requests
  RESOURCE_EXHAUSTED = 8;

  // HTTP Mapping: 400 Bad Request
  FAILED_PRECONDITION = 9;

  // HTTP Mapping: 409 Conflict
  ABORTED = 10;

  // HTTP Mapping: 400 Bad Request
  OUT_OF_RANGE = 11;

  // HTTP Mapping: 501 Not Implemented
  UNIMPLEMENTED = 12;

  // HTTP Mapping: 500 Internal Server Error
  INTERNAL = 13;

  // HTTP Mapping: 503 Service Unavailable
  UNAVAILABLE = 14;

  // HTTP Mapping: 500 Internal Server Error
  DATA_LOSS = 15;
}