Skip to content

Commit

Permalink
chore: update go_package and Go importpath
Browse files Browse the repository at this point in the history
docs: annotate QuotaPreference.dimensions field as immutable, annotate QuotaPreference.QuotaConfig.annotations field as optional

PiperOrigin-RevId: 617759942
  • Loading branch information
Google APIs authored and Copybara-Service committed Mar 21, 2024
1 parent 232e562 commit b53452f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion google/api/cloudquotas/v1/cloudquotas_v1.yaml
Expand Up @@ -21,7 +21,7 @@ authentication:
publishing:
new_issue_uri: https://issuetracker.google.com/issues/new?component=445904
documentation_uri: https://cloud.google.com/docs/quota/api-overview
documentation_uri: https://cloud.google.com/docs/quotas/api-overview
api_short_name: cloudquotas
github_label: 'api: cloudquotas'
doc_tag_prefix: cloudquotas
Expand Down
16 changes: 8 additions & 8 deletions google/api/cloudquotas/v1/resources.proto
Expand Up @@ -180,9 +180,9 @@ message QuotaPreference {
// `projects/123/locations/global/quotaPreferences/my-config-for-us-east1`
string name = 1;

// The dimensions that this quota preference applies to. The key of the map
// entry is the name of a dimension, such as "region", "zone", "network_id",
// and the value of the map entry is the dimension value.
// Immutable. The dimensions that this quota preference applies to. The key of
// the map entry is the name of a dimension, such as "region", "zone",
// "network_id", and the value of the map entry is the dimension value.
//
// If a dimension is missing from the map of dimensions, the quota preference
// applies to all the dimension values except for those that have other quota
Expand All @@ -194,7 +194,7 @@ message QuotaPreference {
//
// Example: {"provider", "Foo Inc"} where "provider" is a service specific
// dimension.
map<string, string> dimensions = 2;
map<string, string> dimensions = 2 [(google.api.field_behavior) = IMMUTABLE];

// Required. Preferred quota configuration.
QuotaConfig quota_config = 3 [(google.api.field_behavior) = REQUIRED];
Expand Down Expand Up @@ -272,10 +272,10 @@ message QuotaConfig {
// quota decrease requests do not have a trace id.
string trace_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY];

// The annotations map for clients to store small amounts of arbitrary data.
// Do not put PII or other sensitive information here.
// See https://google.aip.dev/128#annotations
map<string, string> annotations = 5;
// Optional. The annotations map for clients to store small amounts of
// arbitrary data. Do not put PII or other sensitive information here. See
// https://google.aip.dev/128#annotations
map<string, string> annotations = 5 [(google.api.field_behavior) = OPTIONAL];

// Output only. The origin of the quota preference request.
Origin request_origin = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
Expand Down

0 comments on commit b53452f

Please sign in to comment.