defmodule Google.Protobuf do @moduledoc false # To avoid the compilation of well-known types each time a file includes those, # we force their compilation here (__compile_well_known_types default to false, # thus other usages of the Protox macro won't generate modules of well-known types # that would have to be compiled). use Protox, schema: """ import "google/protobuf/any.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; """, __compile_well_known_types: true def well_known_types() do [ Google.Protobuf.Any, Google.Protobuf.BoolValue, Google.Protobuf.BytesValue, Google.Protobuf.DoubleValue, Google.Protobuf.Duration, Google.Protobuf.FieldMask, Google.Protobuf.FloatValue, Google.Protobuf.Int32Value, Google.Protobuf.Int64Value, Google.Protobuf.ListValue, Google.Protobuf.NullValue, Google.Protobuf.StringValue, Google.Protobuf.Struct, Google.Protobuf.Timestamp, Google.Protobuf.UInt32Value, Google.Protobuf.UInt64Value, Google.Protobuf.Value ] end end