Starlark rules for building protocol buffers.

proto_descriptor_set


proto_descriptor_set(<a href="#proto_descriptor_set-name">name</a>, <a href="#proto_descriptor_set-deps">deps</a>)

Collects all FileDescriptorSets from deps and combines them into a single FileDescriptorSet containing all the FileDescriptorProto.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
depsSequence of ProtoInfos to collect FileDescriptorSets from.List of labelsoptional[]

proto_lang_toolchain


proto_lang_toolchain(<a href="#proto_lang_toolchain-name">name</a>, <a href="#proto_lang_toolchain-toolchain_type">toolchain_type</a>, <a href="#proto_lang_toolchain-exec_compatible_with">exec_compatible_with</a>, <a href="#proto_lang_toolchain-target_compatible_with">target_compatible_with</a>, <a href="#proto_lang_toolchain-attrs">attrs</a>)

Creates a proto_lang_toolchain and corresponding toolchain target.

Toolchain target is only created when toolchain_type is set.

https://docs.bazel.build/versions/master/be/protocol-buffer.html#proto_lang_toolchain

PARAMETERS

NameDescriptionDefault Value
namename of the toolchainnone
toolchain_typeThe toolchain typeNone
exec_compatible_with([constraints]) List of constraints the prebuild binaries is compatible with.[]
target_compatible_with([constraints]) List of constraints the target libraries are compatible with.[]
attrsRule attributesnone

proto_library


proto_library(<a href="#proto_library-attrs">attrs</a>)

Bazel proto_library rule.

https://docs.bazel.build/versions/master/be/protocol-buffer.html#proto_library

PARAMETERS

NameDescriptionDefault Value
attrsRule attributesnone

proto_toolchain


proto_toolchain(<a href="#proto_toolchain-name">name</a>, <a href="#proto_toolchain-proto_compiler">proto_compiler</a>, <a href="#proto_toolchain-exec_compatible_with">exec_compatible_with</a>)

Creates a proto_toolchain and toolchain target for proto_library.

Toolchain target is suffixed with “_toolchain”.

PARAMETERS

NameDescriptionDefault Value
namename of the toolchainnone
proto_compiler(Label) of either proto compiler sources or prebuild binariesnone
exec_compatible_with([constraints]) List of constraints the prebuild binary is compatible with.[]