Class StardocOutputProtos.RuleInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.RuleInfo.Builder>
com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.RuleInfo.Builder
- All Implemented Interfaces:
StardocOutputProtos.RuleInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StardocOutputProtos.RuleInfo
public static final class StardocOutputProtos.RuleInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.RuleInfo.Builder>
implements StardocOutputProtos.RuleInfoOrBuilder
Representation of a Starlark rule definition.Protobuf type
stardoc_output.RuleInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttribute(Iterable<? extends StardocOutputProtos.AttributeInfo> values) The attributes of the rule.addAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the rule.addAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the rule.The attributes of the rule.addAttribute(StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the rule.The attributes of the rule.addAttributeBuilder(int index) The attributes of the rule.build()clear()The list of providers that the rule's implementation must return.The attributes of the rule.The documentation string of the rule.True if this is an executable rule.The module where and the name under which the rule was originally declared.In Stardoc and starlark_doc_extract output, this is the name under which the rule is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".True if this is a test rule.The list of providers that the rule's implementation must return.The list of providers that the rule's implementation must return.The list of providers that the rule's implementation must return.getAttribute(int index) The attributes of the rule.getAttributeBuilder(int index) The attributes of the rule.The attributes of the rule.intThe attributes of the rule.The attributes of the rule.getAttributeOrBuilder(int index) The attributes of the rule.List<? extends StardocOutputProtos.AttributeInfoOrBuilder>The attributes of the rule.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe documentation string of the rule.com.google.protobuf.ByteStringThe documentation string of the rule.booleanTrue if this is an executable rule.The module where and the name under which the rule was originally declared.The module where and the name under which the rule was originally declared.The module where and the name under which the rule was originally declared.In Stardoc and starlark_doc_extract output, this is the name under which the rule is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".com.google.protobuf.ByteStringIn Stardoc and starlark_doc_extract output, this is the name under which the rule is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".booleangetTest()True if this is a test rule.booleanThe list of providers that the rule's implementation must return.booleanThe module where and the name under which the rule was originally declared.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe list of providers that the rule's implementation must return.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The module where and the name under which the rule was originally declared.removeAttribute(int index) The attributes of the rule.The list of providers that the rule's implementation must return.setAdvertisedProviders(StardocOutputProtos.ProviderNameGroup.Builder builderForValue) The list of providers that the rule's implementation must return.setAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the rule.setAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the rule.setDocString(String value) The documentation string of the rule.setDocStringBytes(com.google.protobuf.ByteString value) The documentation string of the rule.setExecutable(boolean value) True if this is an executable rule.The module where and the name under which the rule was originally declared.setOriginKey(StardocOutputProtos.OriginKey.Builder builderForValue) The module where and the name under which the rule was originally declared.setRuleName(String value) In Stardoc and starlark_doc_extract output, this is the name under which the rule is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".setRuleNameBytes(com.google.protobuf.ByteString value) In Stardoc and starlark_doc_extract output, this is the name under which the rule is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".setTest(boolean value) True if this is a test rule.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.RuleInfo.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.RuleInfo.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.RuleInfo.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.RuleInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.RuleInfo.Builder>
-
mergeFrom
public StardocOutputProtos.RuleInfo.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.RuleInfo.Builder>- Throws:
IOException
-
getRuleName
In Stardoc and starlark_doc_extract output, this is the name under which the rule is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library". In query output, this is the name under which the rule was defined (which might be a private symbol prefixed with "_").
string rule_name = 1;- Specified by:
getRuleNamein interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The ruleName.
-
getRuleNameBytes
public com.google.protobuf.ByteString getRuleNameBytes()In Stardoc and starlark_doc_extract output, this is the name under which the rule is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library". In query output, this is the name under which the rule was defined (which might be a private symbol prefixed with "_").
string rule_name = 1;- Specified by:
getRuleNameBytesin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The bytes for ruleName.
-
setRuleName
In Stardoc and starlark_doc_extract output, this is the name under which the rule is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library". In query output, this is the name under which the rule was defined (which might be a private symbol prefixed with "_").
string rule_name = 1;- Parameters:
value- The ruleName to set.- Returns:
- This builder for chaining.
-
clearRuleName
In Stardoc and starlark_doc_extract output, this is the name under which the rule is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library". In query output, this is the name under which the rule was defined (which might be a private symbol prefixed with "_").
string rule_name = 1;- Returns:
- This builder for chaining.
-
setRuleNameBytes
In Stardoc and starlark_doc_extract output, this is the name under which the rule is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library". In query output, this is the name under which the rule was defined (which might be a private symbol prefixed with "_").
string rule_name = 1;- Parameters:
value- The bytes for ruleName to set.- Returns:
- This builder for chaining.
-
getDocString
The documentation string of the rule.
string doc_string = 2;- Specified by:
getDocStringin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The docString.
-
getDocStringBytes
public com.google.protobuf.ByteString getDocStringBytes()The documentation string of the rule.
string doc_string = 2;- Specified by:
getDocStringBytesin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The bytes for docString.
-
setDocString
The documentation string of the rule.
string doc_string = 2;- Parameters:
value- The docString to set.- Returns:
- This builder for chaining.
-
clearDocString
The documentation string of the rule.
string doc_string = 2;- Returns:
- This builder for chaining.
-
setDocStringBytes
The documentation string of the rule.
string doc_string = 2;- Parameters:
value- The bytes for docString to set.- Returns:
- This builder for chaining.
-
getAttributeList
The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeListin interfaceStardocOutputProtos.RuleInfoOrBuilder
-
getAttributeCount
public int getAttributeCount()The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeCountin interfaceStardocOutputProtos.RuleInfoOrBuilder
-
getAttribute
The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributein interfaceStardocOutputProtos.RuleInfoOrBuilder
-
setAttribute
public StardocOutputProtos.RuleInfo.Builder setAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
setAttribute
public StardocOutputProtos.RuleInfo.Builder setAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAttribute
The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAttribute
public StardocOutputProtos.RuleInfo.Builder addAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAttribute
public StardocOutputProtos.RuleInfo.Builder addAttribute(StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAttribute
public StardocOutputProtos.RuleInfo.Builder addAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAllAttribute
public StardocOutputProtos.RuleInfo.Builder addAllAttribute(Iterable<? extends StardocOutputProtos.AttributeInfo> values) The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
clearAttribute
The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
removeAttribute
The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
getAttributeBuilder
The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
getAttributeOrBuilder
The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeOrBuilderin interfaceStardocOutputProtos.RuleInfoOrBuilder
-
getAttributeOrBuilderList
The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeOrBuilderListin interfaceStardocOutputProtos.RuleInfoOrBuilder
-
addAttributeBuilder
The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAttributeBuilder
The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
getAttributeBuilderList
The attributes of the rule.
repeated .stardoc_output.AttributeInfo attribute = 3; -
hasOriginKey
public boolean hasOriginKey()The module where and the name under which the rule was originally declared.
.stardoc_output.OriginKey origin_key = 4;- Specified by:
hasOriginKeyin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- Whether the originKey field is set.
-
getOriginKey
The module where and the name under which the rule was originally declared.
.stardoc_output.OriginKey origin_key = 4;- Specified by:
getOriginKeyin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The originKey.
-
setOriginKey
The module where and the name under which the rule was originally declared.
.stardoc_output.OriginKey origin_key = 4; -
setOriginKey
public StardocOutputProtos.RuleInfo.Builder setOriginKey(StardocOutputProtos.OriginKey.Builder builderForValue) The module where and the name under which the rule was originally declared.
.stardoc_output.OriginKey origin_key = 4; -
mergeOriginKey
The module where and the name under which the rule was originally declared.
.stardoc_output.OriginKey origin_key = 4; -
clearOriginKey
The module where and the name under which the rule was originally declared.
.stardoc_output.OriginKey origin_key = 4; -
getOriginKeyBuilder
The module where and the name under which the rule was originally declared.
.stardoc_output.OriginKey origin_key = 4; -
getOriginKeyOrBuilder
The module where and the name under which the rule was originally declared.
.stardoc_output.OriginKey origin_key = 4;- Specified by:
getOriginKeyOrBuilderin interfaceStardocOutputProtos.RuleInfoOrBuilder
-
hasAdvertisedProviders
public boolean hasAdvertisedProviders()The list of providers that the rule's implementation must return. Unset if the rule lists no advertised providers.
.stardoc_output.ProviderNameGroup advertised_providers = 5;- Specified by:
hasAdvertisedProvidersin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- Whether the advertisedProviders field is set.
-
getAdvertisedProviders
The list of providers that the rule's implementation must return. Unset if the rule lists no advertised providers.
.stardoc_output.ProviderNameGroup advertised_providers = 5;- Specified by:
getAdvertisedProvidersin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The advertisedProviders.
-
setAdvertisedProviders
public StardocOutputProtos.RuleInfo.Builder setAdvertisedProviders(StardocOutputProtos.ProviderNameGroup value) The list of providers that the rule's implementation must return. Unset if the rule lists no advertised providers.
.stardoc_output.ProviderNameGroup advertised_providers = 5; -
setAdvertisedProviders
public StardocOutputProtos.RuleInfo.Builder setAdvertisedProviders(StardocOutputProtos.ProviderNameGroup.Builder builderForValue) The list of providers that the rule's implementation must return. Unset if the rule lists no advertised providers.
.stardoc_output.ProviderNameGroup advertised_providers = 5; -
mergeAdvertisedProviders
public StardocOutputProtos.RuleInfo.Builder mergeAdvertisedProviders(StardocOutputProtos.ProviderNameGroup value) The list of providers that the rule's implementation must return. Unset if the rule lists no advertised providers.
.stardoc_output.ProviderNameGroup advertised_providers = 5; -
clearAdvertisedProviders
The list of providers that the rule's implementation must return. Unset if the rule lists no advertised providers.
.stardoc_output.ProviderNameGroup advertised_providers = 5; -
getAdvertisedProvidersBuilder
The list of providers that the rule's implementation must return. Unset if the rule lists no advertised providers.
.stardoc_output.ProviderNameGroup advertised_providers = 5; -
getAdvertisedProvidersOrBuilder
The list of providers that the rule's implementation must return. Unset if the rule lists no advertised providers.
.stardoc_output.ProviderNameGroup advertised_providers = 5;- Specified by:
getAdvertisedProvidersOrBuilderin interfaceStardocOutputProtos.RuleInfoOrBuilder
-
getTest
public boolean getTest()True if this is a test rule.
bool test = 6;- Specified by:
getTestin interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The test.
-
setTest
True if this is a test rule.
bool test = 6;- Parameters:
value- The test to set.- Returns:
- This builder for chaining.
-
clearTest
True if this is a test rule.
bool test = 6;- Returns:
- This builder for chaining.
-
getExecutable
public boolean getExecutable()True if this is an executable rule. Note: if test is true, executable is also true (test rules are implicitly executable).
bool executable = 7;- Specified by:
getExecutablein interfaceStardocOutputProtos.RuleInfoOrBuilder- Returns:
- The executable.
-
setExecutable
True if this is an executable rule. Note: if test is true, executable is also true (test rules are implicitly executable).
bool executable = 7;- Parameters:
value- The executable to set.- Returns:
- This builder for chaining.
-
clearExecutable
True if this is an executable rule. Note: if test is true, executable is also true (test rules are implicitly executable).
bool executable = 7;- Returns:
- This builder for chaining.
-