1# Protocol Buffers - Google's data interchange format 2# Copyright 2023 Google Inc. All rights reserved. 3# 4# Use of this source code is governed by a BSD-style 5# license that can be found in the LICENSE file or at 6# https://developers.google.com/open-source/licenses/bsd 7 8if RUBY_PLATFORM == "java" 9 require 'json' 10 require 'google/protobuf_java' 11else 12 begin 13 require "google/#{RUBY_VERSION.sub(/\.\d+$/, '')}/protobuf_c" 14 rescue LoadError 15 require 'google/protobuf_c' 16 end 17end 18 19require 'google/protobuf/repeated_field' 20