Skip to content

Commit

Permalink
Make protocOpts() public. (bazelbuild#14952)
Browse files Browse the repository at this point in the history
* Make protocOpts() public.

RELNOTES:
Make protocOpts() publicly accessible.
PiperOrigin-RevId: 430726712

* Cleanup

* Add import.

* Add the right import.

Co-authored-by: Googler <noreply@google.com>
  • Loading branch information
comius and Googler committed Mar 4, 2022
1 parent 698da7e commit b480480
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -51,6 +51,7 @@ java_library(
"//src/main/java/com/google/devtools/build/lib/vfs",
"//src/main/java/com/google/devtools/build/lib/vfs:pathfragment",
"//src/main/java/com/google/devtools/common/options",
"//src/main/java/net/starlark/java/annot",
"//src/main/java/net/starlark/java/eval",
"//third_party:auto_value",
"//third_party:guava",
Expand Down
Expand Up @@ -30,6 +30,7 @@
import com.google.devtools.common.options.OptionEffectTag;
import com.google.devtools.common.options.OptionMetadataTag;
import java.util.List;
import net.starlark.java.annot.StarlarkMethod;

/** Configuration for Protocol Buffer Libraries. */
@Immutable
Expand Down Expand Up @@ -201,6 +202,7 @@ public ProtoConfiguration(BuildOptions buildOptions) {
this.options = options;
}

@StarlarkMethod(name = "experimental_protoc_opts", structField = true, documented = false)
public ImmutableList<String> protocOpts() {
return protocOpts;
}
Expand Down

0 comments on commit b480480

Please sign in to comment.