Current section

Files

Jump to
protobuf lib google compiler plugin.pb.ex
Raw

lib/google/compiler/plugin.pb.ex

defmodule Google.Protobuf.Compiler.CodeGeneratorResponse.Feature do
@moduledoc false
use Protobuf, enum: true, syntax: :proto2
@type t :: integer | :FEATURE_NONE | :FEATURE_PROTO3_OPTIONAL
field :FEATURE_NONE, 0
field :FEATURE_PROTO3_OPTIONAL, 1
end
defmodule Google.Protobuf.Compiler.Version do
@moduledoc false
use Protobuf, syntax: :proto2
@type t :: %__MODULE__{
major: integer,
minor: integer,
patch: integer,
suffix: String.t()
}
defstruct major: nil,
minor: nil,
patch: nil,
suffix: nil
field :major, 1, optional: true, type: :int32
field :minor, 2, optional: true, type: :int32
field :patch, 3, optional: true, type: :int32
field :suffix, 4, optional: true, type: :string
end
defmodule Google.Protobuf.Compiler.CodeGeneratorRequest do
@moduledoc false
use Protobuf, syntax: :proto2
@type t :: %__MODULE__{
file_to_generate: [String.t()],
parameter: String.t(),
proto_file: [Google.Protobuf.FileDescriptorProto.t()],
compiler_version: Google.Protobuf.Compiler.Version.t() | nil
}
defstruct file_to_generate: [],
parameter: nil,
proto_file: [],
compiler_version: nil
field :file_to_generate, 1, repeated: true, type: :string
field :parameter, 2, optional: true, type: :string
field :proto_file, 15, repeated: true, type: Google.Protobuf.FileDescriptorProto
field :compiler_version, 3, optional: true, type: Google.Protobuf.Compiler.Version
end
defmodule Google.Protobuf.Compiler.CodeGeneratorResponse.File do
@moduledoc false
use Protobuf, syntax: :proto2
@type t :: %__MODULE__{
name: String.t(),
insertion_point: String.t(),
content: String.t(),
generated_code_info: Google.Protobuf.GeneratedCodeInfo.t() | nil
}
defstruct name: nil,
insertion_point: nil,
content: nil,
generated_code_info: nil
field :name, 1, optional: true, type: :string
field :insertion_point, 2, optional: true, type: :string
field :content, 15, optional: true, type: :string
field :generated_code_info, 16, optional: true, type: Google.Protobuf.GeneratedCodeInfo
end
defmodule Google.Protobuf.Compiler.CodeGeneratorResponse do
@moduledoc false
use Protobuf, syntax: :proto2
@type t :: %__MODULE__{
error: String.t(),
supported_features: non_neg_integer,
file: [Google.Protobuf.Compiler.CodeGeneratorResponse.File.t()]
}
defstruct error: nil,
supported_features: nil,
file: []
field :error, 1, optional: true, type: :string
field :supported_features, 2, optional: true, type: :uint64
field :file, 15, repeated: true, type: Google.Protobuf.Compiler.CodeGeneratorResponse.File
end