class Google::Apis::ServiceusageV1::Field
A single field of a message type.
Attributes
The field cardinality. Corresponds to the JSON property `cardinality` @return [String]
The string value of the default value of this field. Proto2 syntax only. Corresponds to the JSON property `defaultValue` @return [String]
The field JSON name. Corresponds to the JSON property `jsonName` @return [String]
The field type. Corresponds to the JSON property `kind` @return [String]
The field name. Corresponds to the JSON property `name` @return [String]
The field number. Corresponds to the JSON property `number` @return [Fixnum]
The index of the field type in `Type.oneofs`, for message or enumeration types. The first type has index 1; zero means the type is not in the list. Corresponds to the JSON property `oneofIndex` @return [Fixnum]
The protocol buffer options. Corresponds to the JSON property `options` @return [Array<Google::Apis::ServiceusageV1::Option>]
Whether to use alternative packed wire representation. Corresponds to the JSON property `packed` @return [Boolean]
Whether to use alternative packed wire representation. Corresponds to the JSON property `packed` @return [Boolean]
The field type URL, without the scheme, for message or enumeration types. Example: `“type.googleapis.com/google.protobuf.Timestamp”`. Corresponds to the JSON property `typeUrl` @return [String]
Public Class Methods
# File lib/google/apis/serviceusage_v1/classes.rb, line 1297 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/serviceusage_v1/classes.rb, line 1302 def update!(**args) @cardinality = args[:cardinality] if args.key?(:cardinality) @default_value = args[:default_value] if args.key?(:default_value) @json_name = args[:json_name] if args.key?(:json_name) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @number = args[:number] if args.key?(:number) @oneof_index = args[:oneof_index] if args.key?(:oneof_index) @options = args[:options] if args.key?(:options) @packed = args[:packed] if args.key?(:packed) @type_url = args[:type_url] if args.key?(:type_url) end