gapic-generator/lib/gapic/schema/loader.rb
# Updates the fields of a message and it's nested messages.
#
# @param message [Message] the message whose fields and nested messages
#    to update.
Updates the fields of a message and it's nested messages.
Updates the fields of a message and it ' s nested messages .
def update_fields! message
        message.nested_messages.each(&method(:update_fields!))
        non_primitives = message.fields.reject { |f| f.type_name.empty? }
        non_primitives.each do |f|
          f.message ||= cached_message f.type_name
          f.enum ||= cached_enum f.type_name
        end
      end
def update_fields! message message . nested_messages . each ( & method ( :update_fields! ) ) non_primitives = message . fields . reject { | f | f . type_name . empty? } non_primitives . each do | f | f . message ||= cached_message f . type_name f . enum ||= cached_enum f . type_name end end
Updates the fields of a message and it's nested messages.
Updates the fields of a message and it ' s nested messages .
message
the message whose fields and nested messages to update.
the message whose fields and nested messages to update .