proto_docs/google/api/field_behavior.rb in google-cloud-tpu-v1-0.4.1 vs proto_docs/google/api/field_behavior.rb in google-cloud-tpu-v1-0.5.0
- old
+ new
@@ -64,8 +64,22 @@
# Denotes that this field returns a non-empty default value if not set.
# This indicates that if the user provides the empty value in a request,
# a non-empty value will be returned. The user will not be aware of what
# non-empty value to expect.
NON_EMPTY_DEFAULT = 7
+
+ # Denotes that the field in a resource (a message annotated with
+ # google.api.resource) is used in the resource name to uniquely identify the
+ # resource. For AIP-compliant APIs, this should only be applied to the
+ # `name` field on the resource.
+ #
+ # This behavior should not be applied to references to other resources within
+ # the message.
+ #
+ # The identifier field of resources often have different field behavior
+ # depending on the request it is embedded in (e.g. for Create methods name
+ # is optional and unused, while for Update methods it is required). Instead
+ # of method-specific annotations, only `IDENTIFIER` is required.
+ IDENTIFIER = 8
end
end
end