Class StardocOutputProtos.RepositoryRuleInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.RepositoryRuleInfo.Builder>
com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RepositoryRuleInfo.Builder
- All Implemented Interfaces:
StardocOutputProtos.RepositoryRuleInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StardocOutputProtos.RepositoryRuleInfo
public static final class StardocOutputProtos.RepositoryRuleInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.RepositoryRuleInfo.Builder>
implements StardocOutputProtos.RepositoryRuleInfoOrBuilder
Representation of a Bazel repository rule, i.e. the object returned by calling `repository_rule(...)`. Note: legacy Stardoc (0.5.x and earlier) does not emit this message, instead using RuleInfo.Protobuf type
stardoc_output.RepositoryRuleInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttribute(Iterable<? extends StardocOutputProtos.AttributeInfo> values) The attributes of the repository rule.addAllEnviron(Iterable<String> values) Environment variables that this repository rule depends on.addAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the repository rule.addAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the repository rule.The attributes of the repository rule.addAttribute(StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the repository rule.The attributes of the repository rule.addAttributeBuilder(int index) The attributes of the repository rule.addEnviron(String value) Environment variables that this repository rule depends on.addEnvironBytes(com.google.protobuf.ByteString value) Environment variables that this repository rule depends on.build()clear()The attributes of the repository rule.The documentation string of the repository rule.Environment variables that this repository rule depends on.The Starlark module where and the name under which the repository rule was originally declared.The name under which the repository rule is made accessible to a user of this Starlark module.getAttribute(int index) The attributes of the repository rule.getAttributeBuilder(int index) The attributes of the repository rule.The attributes of the repository rule.intThe attributes of the repository rule.The attributes of the repository rule.getAttributeOrBuilder(int index) The attributes of the repository rule.List<? extends StardocOutputProtos.AttributeInfoOrBuilder>The attributes of the repository rule.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe documentation string of the repository rule.com.google.protobuf.ByteStringThe documentation string of the repository rule.getEnviron(int index) Environment variables that this repository rule depends on.com.google.protobuf.ByteStringgetEnvironBytes(int index) Environment variables that this repository rule depends on.intEnvironment variables that this repository rule depends on.com.google.protobuf.ProtocolStringListEnvironment variables that this repository rule depends on.The Starlark module where and the name under which the repository rule was originally declared.The Starlark module where and the name under which the repository rule was originally declared.The Starlark module where and the name under which the repository rule was originally declared.The name under which the repository rule is made accessible to a user of this Starlark module.com.google.protobuf.ByteStringThe name under which the repository rule is made accessible to a user of this Starlark module.booleanThe Starlark module where and the name under which the repository rule was originally declared.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The Starlark module where and the name under which the repository rule was originally declared.removeAttribute(int index) The attributes of the repository rule.setAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the repository rule.setAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the repository rule.setDocString(String value) The documentation string of the repository rule.setDocStringBytes(com.google.protobuf.ByteString value) The documentation string of the repository rule.setEnviron(int index, String value) Environment variables that this repository rule depends on.The Starlark module where and the name under which the repository rule was originally declared.setOriginKey(StardocOutputProtos.OriginKey.Builder builderForValue) The Starlark module where and the name under which the repository rule was originally declared.setRuleName(String value) The name under which the repository rule is made accessible to a user of this Starlark module.setRuleNameBytes(com.google.protobuf.ByteString value) The name under which the repository rule is made accessible to a user of this Starlark module.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.RepositoryRuleInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.RepositoryRuleInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.RepositoryRuleInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StardocOutputProtos.RepositoryRuleInfo.Builder>
-
mergeFrom
public StardocOutputProtos.RepositoryRuleInfo.Builder mergeFrom(StardocOutputProtos.RepositoryRuleInfo other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.RepositoryRuleInfo.Builder>
-
mergeFrom
public StardocOutputProtos.RepositoryRuleInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StardocOutputProtos.RepositoryRuleInfo.Builder>- Throws:
IOException
-
getRuleName
The name under which the repository rule is made accessible to a user of this Starlark module.
string rule_name = 1;- Specified by:
getRuleNamein interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder- Returns:
- The ruleName.
-
getRuleNameBytes
public com.google.protobuf.ByteString getRuleNameBytes()The name under which the repository rule is made accessible to a user of this Starlark module.
string rule_name = 1;- Specified by:
getRuleNameBytesin interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder- Returns:
- The bytes for ruleName.
-
setRuleName
The name under which the repository rule is made accessible to a user of this Starlark module.
string rule_name = 1;- Parameters:
value- The ruleName to set.- Returns:
- This builder for chaining.
-
clearRuleName
The name under which the repository rule is made accessible to a user of this Starlark module.
string rule_name = 1;- Returns:
- This builder for chaining.
-
setRuleNameBytes
public StardocOutputProtos.RepositoryRuleInfo.Builder setRuleNameBytes(com.google.protobuf.ByteString value) The name under which the repository rule is made accessible to a user of this Starlark module.
string rule_name = 1;- Parameters:
value- The bytes for ruleName to set.- Returns:
- This builder for chaining.
-
getDocString
The documentation string of the repository rule.
string doc_string = 2;- Specified by:
getDocStringin interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder- Returns:
- The docString.
-
getDocStringBytes
public com.google.protobuf.ByteString getDocStringBytes()The documentation string of the repository rule.
string doc_string = 2;- Specified by:
getDocStringBytesin interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder- Returns:
- The bytes for docString.
-
setDocString
The documentation string of the repository rule.
string doc_string = 2;- Parameters:
value- The docString to set.- Returns:
- This builder for chaining.
-
clearDocString
The documentation string of the repository rule.
string doc_string = 2;- Returns:
- This builder for chaining.
-
setDocStringBytes
public StardocOutputProtos.RepositoryRuleInfo.Builder setDocStringBytes(com.google.protobuf.ByteString value) The documentation string of the repository rule.
string doc_string = 2;- Parameters:
value- The bytes for docString to set.- Returns:
- This builder for chaining.
-
getAttributeList
The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeListin interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder
-
getAttributeCount
public int getAttributeCount()The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeCountin interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder
-
getAttribute
The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributein interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder
-
setAttribute
public StardocOutputProtos.RepositoryRuleInfo.Builder setAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
setAttribute
public StardocOutputProtos.RepositoryRuleInfo.Builder setAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAttribute
public StardocOutputProtos.RepositoryRuleInfo.Builder addAttribute(StardocOutputProtos.AttributeInfo value) The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAttribute
public StardocOutputProtos.RepositoryRuleInfo.Builder addAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAttribute
public StardocOutputProtos.RepositoryRuleInfo.Builder addAttribute(StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAttribute
public StardocOutputProtos.RepositoryRuleInfo.Builder addAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAllAttribute
public StardocOutputProtos.RepositoryRuleInfo.Builder addAllAttribute(Iterable<? extends StardocOutputProtos.AttributeInfo> values) The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
clearAttribute
The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
removeAttribute
The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
getAttributeBuilder
The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
getAttributeOrBuilder
The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeOrBuilderin interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder
-
getAttributeOrBuilderList
The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeOrBuilderListin interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder
-
addAttributeBuilder
The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAttributeBuilder
The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
getAttributeBuilderList
The attributes of the repository rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
getEnvironList
public com.google.protobuf.ProtocolStringList getEnvironList()Environment variables that this repository rule depends on.
repeated string environ = 4;- Specified by:
getEnvironListin interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder- Returns:
- A list containing the environ.
-
getEnvironCount
public int getEnvironCount()Environment variables that this repository rule depends on.
repeated string environ = 4;- Specified by:
getEnvironCountin interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder- Returns:
- The count of environ.
-
getEnviron
Environment variables that this repository rule depends on.
repeated string environ = 4;- Specified by:
getEnvironin interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The environ at the given index.
-
getEnvironBytes
public com.google.protobuf.ByteString getEnvironBytes(int index) Environment variables that this repository rule depends on.
repeated string environ = 4;- Specified by:
getEnvironBytesin interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the environ at the given index.
-
setEnviron
Environment variables that this repository rule depends on.
repeated string environ = 4;- Parameters:
index- The index to set the value at.value- The environ to set.- Returns:
- This builder for chaining.
-
addEnviron
Environment variables that this repository rule depends on.
repeated string environ = 4;- Parameters:
value- The environ to add.- Returns:
- This builder for chaining.
-
addAllEnviron
Environment variables that this repository rule depends on.
repeated string environ = 4;- Parameters:
values- The environ to add.- Returns:
- This builder for chaining.
-
clearEnviron
Environment variables that this repository rule depends on.
repeated string environ = 4;- Returns:
- This builder for chaining.
-
addEnvironBytes
public StardocOutputProtos.RepositoryRuleInfo.Builder addEnvironBytes(com.google.protobuf.ByteString value) Environment variables that this repository rule depends on.
repeated string environ = 4;- Parameters:
value- The bytes of the environ to add.- Returns:
- This builder for chaining.
-
hasOriginKey
public boolean hasOriginKey()The Starlark module where and the name under which the repository rule was originally declared.
.stardoc_output.OriginKey origin_key = 5;- Specified by:
hasOriginKeyin interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder- Returns:
- Whether the originKey field is set.
-
getOriginKey
The Starlark module where and the name under which the repository rule was originally declared.
.stardoc_output.OriginKey origin_key = 5;- Specified by:
getOriginKeyin interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder- Returns:
- The originKey.
-
setOriginKey
public StardocOutputProtos.RepositoryRuleInfo.Builder setOriginKey(StardocOutputProtos.OriginKey value) The Starlark module where and the name under which the repository rule was originally declared.
.stardoc_output.OriginKey origin_key = 5; -
setOriginKey
public StardocOutputProtos.RepositoryRuleInfo.Builder setOriginKey(StardocOutputProtos.OriginKey.Builder builderForValue) The Starlark module where and the name under which the repository rule was originally declared.
.stardoc_output.OriginKey origin_key = 5; -
mergeOriginKey
public StardocOutputProtos.RepositoryRuleInfo.Builder mergeOriginKey(StardocOutputProtos.OriginKey value) The Starlark module where and the name under which the repository rule was originally declared.
.stardoc_output.OriginKey origin_key = 5; -
clearOriginKey
The Starlark module where and the name under which the repository rule was originally declared.
.stardoc_output.OriginKey origin_key = 5; -
getOriginKeyBuilder
The Starlark module where and the name under which the repository rule was originally declared.
.stardoc_output.OriginKey origin_key = 5; -
getOriginKeyOrBuilder
The Starlark module where and the name under which the repository rule was originally declared.
.stardoc_output.OriginKey origin_key = 5;- Specified by:
getOriginKeyOrBuilderin interfaceStardocOutputProtos.RepositoryRuleInfoOrBuilder
-