Skip to content

Commit 28e0d72

Browse files
Google APIscopybara-github
authored andcommitted
docs: Update inclusive language in the documentation. Also other latest doc updates.
PiperOrigin-RevId: 338547917
1 parent 2131e2f commit 28e0d72

File tree

8 files changed

+46
-100
lines changed

8 files changed

+46
-100
lines changed

google/api/auth.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ message AuthenticationRule {
6565
OAuthRequirements oauth = 2;
6666

6767
// If true, the service accepts API keys without any other credential.
68+
// This flag only applies to HTTP and gRPC requests.
6869
bool allow_without_credential = 5;
6970

7071
// Requirements for additional authentication providers.

google/api/context.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ option objc_class_prefix = "GAPI";
4040
// Available context types are defined in package
4141
// `google.rpc.context`.
4242
//
43-
// This also provides mechanism to whitelist any protobuf message extension that
43+
// This also provides mechanism to allowlist any protobuf message extension that
4444
// can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
4545
// “x-goog-ext-<extension_id>-jspb” format. For example, list any service
4646
// specific protobuf types that can appear in grpc metadata as follows in your

google/api/distribution.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ message Distribution {
175175
//
176176
// Sum[i=1..n]((x_i - mean)^2)
177177
//
178-
// Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
178+
// Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
179179
// describes Welford's method for accumulating this sum in one pass.
180180
//
181181
// If `count` is zero then this field must be zero.

google/api/launch_stage.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ enum LaunchStage {
4545
// for widespread use. By Alpha, all significant design issues are resolved
4646
// and we are in the process of verifying functionality. Alpha customers
4747
// need to apply for access, agree to applicable terms, and have their
48-
// projects whitelisted. Alpha releases don’t have to be feature complete,
48+
// projects allowlisted. Alpha releases don’t have to be feature complete,
4949
// no SLAs are provided, and there are no technical support obligations, but
5050
// they will be far enough along that customers can actually use them in
5151
// test environments or for limited-use tests -- just like they would in

google/api/metric.proto

Lines changed: 6 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,6 @@ option objc_class_prefix = "GAPI";
3030
// deleting or altering it stops data collection and makes the metric type's
3131
// existing data unusable.
3232
//
33-
// The following are specific rules for service defined Monitoring metric
34-
// descriptors:
35-
//
36-
// * `type`, `metric_kind`, `value_type`, `description`, `display_name`,
37-
// `launch_stage` fields are all required. The `unit` field must be specified
38-
// if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION.
39-
// * Maximum of default 500 metric descriptors per service is allowed.
40-
// * Maximum of default 10 labels per metric descriptor is allowed.
41-
//
42-
// The default maximum limit can be overridden. Please follow
43-
// https://cloud.google.com/monitoring/quotas
4433
message MetricDescriptor {
4534
// Additional annotations that can be used to guide the usage of a metric.
4635
message MetricDescriptorMetadata {
@@ -60,6 +49,8 @@ message MetricDescriptor {
6049
}
6150

6251
// The kind of measurement. It describes how the data is reported.
52+
// For information on setting the start time and end time based on
53+
// the MetricKind, see [TimeInterval][google.monitoring.v3.TimeInterval].
6354
enum MetricKind {
6455
// Do not use this default value.
6556
METRIC_KIND_UNSPECIFIED = 0;
@@ -108,40 +99,17 @@ message MetricDescriptor {
10899
string name = 1;
109100

110101
// The metric type, including its DNS name prefix. The type is not
111-
// URL-encoded.
112-
//
113-
// All service defined metrics must be prefixed with the service name, in the
114-
// format of `{service name}/{relative metric name}`, such as
115-
// `cloudsql.googleapis.com/database/cpu/utilization`. The relative metric
116-
// name must follow:
117-
//
118-
// * Only upper and lower-case letters, digits, '/' and underscores '_' are
119-
// allowed.
120-
// * The maximum number of characters allowed for the relative_metric_name is
121-
// 100.
122-
//
123-
// All user-defined metric types have the DNS name
124-
// `custom.googleapis.com`, `external.googleapis.com`, or
125-
// `logging.googleapis.com/user/`.
126-
//
127-
// Metric types should use a natural hierarchical grouping. For example:
102+
// URL-encoded. All user-defined metric types have the DNS name
103+
// `custom.googleapis.com` or `external.googleapis.com`. Metric types should
104+
// use a natural hierarchical grouping. For example:
128105
//
129106
// "custom.googleapis.com/invoice/paid/amount"
130107
// "external.googleapis.com/prometheus/up"
131108
// "appengine.googleapis.com/http/server/response_latencies"
132109
string type = 8;
133110

134111
// The set of labels that can be used to describe a specific
135-
// instance of this metric type.
136-
//
137-
// The label key name must follow:
138-
//
139-
// * Only upper and lower-case letters, digits and underscores (_) are
140-
// allowed.
141-
// * Label name must start with a letter or digit.
142-
// * The maximum length of a label name is 100 characters.
143-
//
144-
// For example, the
112+
// instance of this metric type. For example, the
145113
// `appengine.googleapis.com/http/server/response_latencies` metric
146114
// type has a label for the HTTP response code, `response_code`, so
147115
// you can look at latencies for successful responses or just

google/api/monitored_resource.proto

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,9 @@ option objc_class_prefix = "GAPI";
3333
// `"gce_instance"` and specifies the use of the labels `"instance_id"` and
3434
// `"zone"` to identify particular VM instances.
3535
//
36-
// Different services can support different monitored resource types.
37-
//
38-
// The following are specific rules to service defined monitored resources for
39-
// Monitoring and Logging:
40-
//
41-
// * The `type`, `display_name`, `description`, `labels` and `launch_stage`
42-
// fields are all required.
43-
// * The first label of the monitored resource descriptor must be
44-
// `resource_container`. There are legacy monitored resource descritptors
45-
// start with `project_id`.
46-
// * It must include a `location` label.
47-
// * Maximum of default 5 service defined monitored resource descriptors
48-
// is allowed per service.
49-
// * Maximum of default 10 labels per monitored resource is allowed.
50-
//
51-
// The default maximum limit can be overridden. Please follow
52-
// https://cloud.google.com/monitoring/quotas
36+
// Different APIs can support different monitored resource types. APIs generally
37+
// provide a `list` method that returns the monitored resource descriptors used
38+
// by the API.
5339
//
5440
message MonitoredResourceDescriptor {
5541
// Optional. The resource name of the monitored resource descriptor:
@@ -61,19 +47,7 @@ message MonitoredResourceDescriptor {
6147
string name = 5;
6248

6349
// Required. The monitored resource type. For example, the type
64-
// `cloudsql_database` represents databases in Google Cloud SQL.
65-
//
66-
// All service defined monitored resource types must be prefixed with the
67-
// service name, in the format of `{service name}/{relative resource name}`.
68-
// The relative resource name must follow:
69-
//
70-
// * Only upper and lower-case letters and digits are allowed.
71-
// * It must start with upper case character and is recommended to use Upper
72-
// Camel Case style.
73-
// * The maximum number of characters allowed for the relative_resource_name
74-
// is 100.
75-
//
76-
// Note there are legacy service monitored resources not following this rule.
50+
// `"cloudsql_database"` represents databases in Google Cloud SQL.
7751
string type = 1;
7852

7953
// Optional. A concise name for the monitored resource type that might be
@@ -87,16 +61,8 @@ message MonitoredResourceDescriptor {
8761
string description = 3;
8862

8963
// Required. A set of labels used to describe instances of this monitored
90-
// resource type.
91-
// The label key name must follow:
92-
//
93-
// * Only upper and lower-case letters, digits and underscores (_) are
94-
// allowed.
95-
// * Label name must start with a letter or digit.
96-
// * The maximum length of a label name is 100 characters.
97-
//
98-
// For example, an individual Google Cloud SQL database is
99-
// identified by values for the labels `database_id` and `location`.
64+
// resource type. For example, an individual Google Cloud SQL database is
65+
// identified by values for the labels `"database_id"` and `"zone"`.
10066
repeated LabelDescriptor labels = 4;
10167

10268
// Optional. The launch stage of the monitored resource definition.

google/api/monitoring.proto

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,52 @@ option objc_class_prefix = "GAPI";
2828
// for monitoring. In the example, a monitored resource and two metrics are
2929
// defined. The `library.googleapis.com/book/returned_count` metric is sent
3030
// to both producer and consumer projects, whereas the
31-
// `library.googleapis.com/book/overdue_count` metric is only sent to the
31+
// `library.googleapis.com/book/num_overdue` metric is only sent to the
3232
// consumer project.
3333
//
3434
// monitored_resources:
35-
// - type: library.googleapis.com/branch
35+
// - type: library.googleapis.com/Branch
36+
// display_name: "Library Branch"
37+
// description: "A branch of a library."
38+
// launch_stage: GA
3639
// labels:
37-
// - key: /city
38-
// description: The city where the library branch is located in.
39-
// - key: /name
40-
// description: The name of the branch.
40+
// - key: resource_container
41+
// description: "The Cloud container (ie. project id) for the Branch."
42+
// - key: location
43+
// description: "The location of the library branch."
44+
// - key: branch_id
45+
// description: "The id of the branch."
4146
// metrics:
4247
// - name: library.googleapis.com/book/returned_count
48+
// display_name: "Books Returned"
49+
// description: "The count of books that have been returned."
50+
// launch_stage: GA
4351
// metric_kind: DELTA
4452
// value_type: INT64
53+
// unit: "1"
4554
// labels:
46-
// - key: /customer_id
47-
// - name: library.googleapis.com/book/overdue_count
55+
// - key: customer_id
56+
// description: "The id of the customer."
57+
// - name: library.googleapis.com/book/num_overdue
58+
// display_name: "Books Overdue"
59+
// description: "The current number of overdue books."
60+
// launch_stage: GA
4861
// metric_kind: GAUGE
4962
// value_type: INT64
63+
// unit: "1"
5064
// labels:
51-
// - key: /customer_id
65+
// - key: customer_id
66+
// description: "The id of the customer."
5267
// monitoring:
5368
// producer_destinations:
54-
// - monitored_resource: library.googleapis.com/branch
69+
// - monitored_resource: library.googleapis.com/Branch
5570
// metrics:
5671
// - library.googleapis.com/book/returned_count
5772
// consumer_destinations:
58-
// - monitored_resource: library.googleapis.com/branch
73+
// - monitored_resource: library.googleapis.com/Branch
5974
// metrics:
6075
// - library.googleapis.com/book/returned_count
61-
// - library.googleapis.com/book/overdue_count
76+
// - library.googleapis.com/book/num_overdue
6277
message Monitoring {
6378
// Configuration of a specific monitoring destination (the producer project
6479
// or the consumer project).
@@ -73,15 +88,15 @@ message Monitoring {
7388
}
7489

7590
// Monitoring configurations for sending metrics to the producer project.
76-
// There can be multiple producer destinations. A monitored resouce type may
91+
// There can be multiple producer destinations. A monitored resource type may
7792
// appear in multiple monitoring destinations if different aggregations are
7893
// needed for different sets of metrics associated with that monitored
7994
// resource type. A monitored resource and metric pair may only be used once
8095
// in the Monitoring configuration.
8196
repeated MonitoringDestination producer_destinations = 1;
8297

8398
// Monitoring configurations for sending metrics to the consumer project.
84-
// There can be multiple consumer destinations. A monitored resouce type may
99+
// There can be multiple consumer destinations. A monitored resource type may
85100
// appear in multiple monitoring destinations if different aggregations are
86101
// needed for different sets of metrics associated with that monitored
87102
// resource type. A monitored resource and metric pair may only be used once

google/api/service.proto

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ option objc_class_prefix = "GAPI";
7070
// requirements:
7171
// provider_id: google_calendar_auth
7272
message Service {
73-
// The semantic version of the service configuration. The config version
74-
// affects the interpretation of the service configuration. For example,
75-
// certain features are enabled by default for certain config versions.
76-
//
77-
// The latest config version is `3`.
73+
// This field is obsolete. Its value must be set to `3`.
7874
google.protobuf.UInt32Value config_version = 20;
7975

8076
// The service name, which is a DNS-like logical identifier for the

0 commit comments

Comments
 (0)