Class StardocOutputProtos.MacroInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.MacroInfo.Builder>
com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.MacroInfo.Builder
- All Implemented Interfaces:
StardocOutputProtos.MacroInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StardocOutputProtos.MacroInfo
public static final class StardocOutputProtos.MacroInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.MacroInfo.Builder>
implements StardocOutputProtos.MacroInfoOrBuilder
Representation of a Starlark symbolic macro definition. Note: symbolic macros (and thus, their documentation format) are an experimental feature gated by the --experimental_enable_first_class_macros flag.Protobuf type
stardoc_output.MacroInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttribute(Iterable<? extends StardocOutputProtos.AttributeInfo> values) The attributes of the macro.addAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the macro.addAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the macro.The attributes of the macro.addAttribute(StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the macro.The attributes of the macro.addAttributeBuilder(int index) The attributes of the macro.build()clear()The attributes of the macro.The documentation string of the macro.The name under which the macro is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".The module where and the name under which the macro was originally declared.getAttribute(int index) The attributes of the macro.getAttributeBuilder(int index) The attributes of the macro.The attributes of the macro.intThe attributes of the macro.The attributes of the macro.getAttributeOrBuilder(int index) The attributes of the macro.List<? extends StardocOutputProtos.AttributeInfoOrBuilder>The attributes of the macro.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe documentation string of the macro.com.google.protobuf.ByteStringThe documentation string of the macro.The name under which the macro is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".com.google.protobuf.ByteStringThe name under which the macro is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".The module where and the name under which the macro was originally declared.The module where and the name under which the macro was originally declared.The module where and the name under which the macro was originally declared.booleanThe module where and the name under which the macro 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 module where and the name under which the macro was originally declared.removeAttribute(int index) The attributes of the macro.setAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the macro.setAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the macro.setDocString(String value) The documentation string of the macro.setDocStringBytes(com.google.protobuf.ByteString value) The documentation string of the macro.setMacroName(String value) The name under which the macro is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".setMacroNameBytes(com.google.protobuf.ByteString value) The name under which the macro is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".The module where and the name under which the macro was originally declared.setOriginKey(StardocOutputProtos.OriginKey.Builder builderForValue) The module where and the name under which the macro was originally declared.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.MacroInfo.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.MacroInfo.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.MacroInfo.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.MacroInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.MacroInfo.Builder>
-
mergeFrom
public StardocOutputProtos.MacroInfo.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.MacroInfo.Builder>- Throws:
IOException
-
getMacroName
The name under which the macro is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".
string macro_name = 1;- Specified by:
getMacroNamein interfaceStardocOutputProtos.MacroInfoOrBuilder- Returns:
- The macroName.
-
getMacroNameBytes
public com.google.protobuf.ByteString getMacroNameBytes()The name under which the macro is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".
string macro_name = 1;- Specified by:
getMacroNameBytesin interfaceStardocOutputProtos.MacroInfoOrBuilder- Returns:
- The bytes for macroName.
-
setMacroName
The name under which the macro is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".
string macro_name = 1;- Parameters:
value- The macroName to set.- Returns:
- This builder for chaining.
-
clearMacroName
The name under which the macro is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".
string macro_name = 1;- Returns:
- This builder for chaining.
-
setMacroNameBytes
public StardocOutputProtos.MacroInfo.Builder setMacroNameBytes(com.google.protobuf.ByteString value) The name under which the macro is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_library".
string macro_name = 1;- Parameters:
value- The bytes for macroName to set.- Returns:
- This builder for chaining.
-
getDocString
The documentation string of the macro.
string doc_string = 2;- Specified by:
getDocStringin interfaceStardocOutputProtos.MacroInfoOrBuilder- Returns:
- The docString.
-
getDocStringBytes
public com.google.protobuf.ByteString getDocStringBytes()The documentation string of the macro.
string doc_string = 2;- Specified by:
getDocStringBytesin interfaceStardocOutputProtos.MacroInfoOrBuilder- Returns:
- The bytes for docString.
-
setDocString
The documentation string of the macro.
string doc_string = 2;- Parameters:
value- The docString to set.- Returns:
- This builder for chaining.
-
clearDocString
The documentation string of the macro.
string doc_string = 2;- Returns:
- This builder for chaining.
-
setDocStringBytes
public StardocOutputProtos.MacroInfo.Builder setDocStringBytes(com.google.protobuf.ByteString value) The documentation string of the macro.
string doc_string = 2;- Parameters:
value- The bytes for docString to set.- Returns:
- This builder for chaining.
-
getAttributeList
The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeListin interfaceStardocOutputProtos.MacroInfoOrBuilder
-
getAttributeCount
public int getAttributeCount()The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeCountin interfaceStardocOutputProtos.MacroInfoOrBuilder
-
getAttribute
The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributein interfaceStardocOutputProtos.MacroInfoOrBuilder
-
setAttribute
public StardocOutputProtos.MacroInfo.Builder setAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3; -
setAttribute
public StardocOutputProtos.MacroInfo.Builder setAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAttribute
The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAttribute
public StardocOutputProtos.MacroInfo.Builder addAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAttribute
public StardocOutputProtos.MacroInfo.Builder addAttribute(StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAttribute
public StardocOutputProtos.MacroInfo.Builder addAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAllAttribute
public StardocOutputProtos.MacroInfo.Builder addAllAttribute(Iterable<? extends StardocOutputProtos.AttributeInfo> values) The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3; -
clearAttribute
The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3; -
removeAttribute
The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3; -
getAttributeBuilder
The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3; -
getAttributeOrBuilder
The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeOrBuilderin interfaceStardocOutputProtos.MacroInfoOrBuilder
-
getAttributeOrBuilderList
The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3;- Specified by:
getAttributeOrBuilderListin interfaceStardocOutputProtos.MacroInfoOrBuilder
-
addAttributeBuilder
The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3; -
addAttributeBuilder
The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3; -
getAttributeBuilderList
The attributes of the macro.
repeated .stardoc_output.AttributeInfo attribute = 3; -
hasOriginKey
public boolean hasOriginKey()The module where and the name under which the macro was originally declared.
.stardoc_output.OriginKey origin_key = 4;- Specified by:
hasOriginKeyin interfaceStardocOutputProtos.MacroInfoOrBuilder- Returns:
- Whether the originKey field is set.
-
getOriginKey
The module where and the name under which the macro was originally declared.
.stardoc_output.OriginKey origin_key = 4;- Specified by:
getOriginKeyin interfaceStardocOutputProtos.MacroInfoOrBuilder- Returns:
- The originKey.
-
setOriginKey
The module where and the name under which the macro was originally declared.
.stardoc_output.OriginKey origin_key = 4; -
setOriginKey
public StardocOutputProtos.MacroInfo.Builder setOriginKey(StardocOutputProtos.OriginKey.Builder builderForValue) The module where and the name under which the macro was originally declared.
.stardoc_output.OriginKey origin_key = 4; -
mergeOriginKey
The module where and the name under which the macro was originally declared.
.stardoc_output.OriginKey origin_key = 4; -
clearOriginKey
The module where and the name under which the macro was originally declared.
.stardoc_output.OriginKey origin_key = 4; -
getOriginKeyBuilder
The module where and the name under which the macro was originally declared.
.stardoc_output.OriginKey origin_key = 4; -
getOriginKeyOrBuilder
The module where and the name under which the macro was originally declared.
.stardoc_output.OriginKey origin_key = 4;- Specified by:
getOriginKeyOrBuilderin interfaceStardocOutputProtos.MacroInfoOrBuilder
-