Class: Google::Api::FieldInfo

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/api/field_info.rb

Overview

Rich semantic information of an API field beyond basic typing.

Defined Under Namespace

Modules: Format

Instance Attribute Summary collapse

Instance Attribute Details

#format::Google::Api::FieldInfo::Format

Returns The standard format of a field value. This does not explicitly configure any API consumer, just documents the API's format for the field it is applied to.

Returns:

  • (::Google::Api::FieldInfo::Format)

    The standard format of a field value. This does not explicitly configure any API consumer, just documents the API's format for the field it is applied to.



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
# File 'proto_docs/google/api/field_info.rb', line 28

class FieldInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The standard format of a field value. The supported formats are all backed
  # by either an RFC defined by the IETF or a Google-defined AIP.
  module Format
    # Default, unspecified value.
    FORMAT_UNSPECIFIED = 0

    # Universally Unique Identifier, version 4, value as defined by
    # https://datatracker.ietf.org/doc/html/rfc4122. The value may be
    # normalized to entirely lowercase letters. For example, the value
    # `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to
    # `f47ac10b-58cc-0372-8567-0e02b2c3d479`.
    UUID4 = 1

    # Internet Protocol v4 value as defined by [RFC
    # 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be
    # condensed, with leading zeros in each octet stripped. For example,
    # `001.022.233.040` would be condensed to `1.22.233.40`.
    IPV4 = 2

    # Internet Protocol v6 value as defined by [RFC
    # 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be
    # normalized to entirely lowercase letters, and zero-padded partial and
    # empty octets. For example, the value `2001:DB8::` would be normalized to
    # `2001:0db8:0:0`.
    IPV6 = 3

    # An IP address in either v4 or v6 format as described by the individual
    # values defined herein. See the comments on the IPV4 and IPV6 types for
    # allowed normalizations of each.
    IPV4_OR_IPV6 = 4
  end
end