Class StardocOutputProtos.AspectInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.AspectInfo.Builder>
com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.AspectInfo.Builder
- All Implemented Interfaces:
StardocOutputProtos.AspectInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StardocOutputProtos.AspectInfo
public static final class StardocOutputProtos.AspectInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.AspectInfo.Builder>
implements StardocOutputProtos.AspectInfoOrBuilder
Representation of a Starlark aspect definition.Protobuf type
stardoc_output.AspectInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllAspectAttribute(Iterable<String> values) The rule attributes along which the aspect propagates.addAllAttribute(Iterable<? extends StardocOutputProtos.AttributeInfo> values) The attributes of the aspect.addAspectAttribute(String value) The rule attributes along which the aspect propagates.addAspectAttributeBytes(com.google.protobuf.ByteString value) The rule attributes along which the aspect propagates.addAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the aspect.addAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the aspect.The attributes of the aspect.addAttribute(StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the aspect.The attributes of the aspect.addAttributeBuilder(int index) The attributes of the aspect.build()clear()The rule attributes along which the aspect propagates.The name under which the aspect is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_aspect".The attributes of the aspect.The documentation string of the aspect.The module where and the name under which the aspect was originally declared.getAspectAttribute(int index) The rule attributes along which the aspect propagates.com.google.protobuf.ByteStringgetAspectAttributeBytes(int index) The rule attributes along which the aspect propagates.intThe rule attributes along which the aspect propagates.com.google.protobuf.ProtocolStringListThe rule attributes along which the aspect propagates.The name under which the aspect is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_aspect".com.google.protobuf.ByteStringThe name under which the aspect is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_aspect".getAttribute(int index) The attributes of the aspect.getAttributeBuilder(int index) The attributes of the aspect.The attributes of the aspect.intThe attributes of the aspect.The attributes of the aspect.getAttributeOrBuilder(int index) The attributes of the aspect.List<? extends StardocOutputProtos.AttributeInfoOrBuilder>The attributes of the aspect.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe documentation string of the aspect.com.google.protobuf.ByteStringThe documentation string of the aspect.The module where and the name under which the aspect was originally declared.The module where and the name under which the aspect was originally declared.The module where and the name under which the aspect was originally declared.booleanThe module where and the name under which the aspect 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 aspect was originally declared.removeAttribute(int index) The attributes of the aspect.setAspectAttribute(int index, String value) The rule attributes along which the aspect propagates.setAspectName(String value) The name under which the aspect is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_aspect".setAspectNameBytes(com.google.protobuf.ByteString value) The name under which the aspect is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_aspect".setAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the aspect.setAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the aspect.setDocString(String value) The documentation string of the aspect.setDocStringBytes(com.google.protobuf.ByteString value) The documentation string of the aspect.The module where and the name under which the aspect was originally declared.setOriginKey(StardocOutputProtos.OriginKey.Builder builderForValue) The module where and the name under which the aspect 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.AspectInfo.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.AspectInfo.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.AspectInfo.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.AspectInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.AspectInfo.Builder>
-
mergeFrom
public StardocOutputProtos.AspectInfo.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.AspectInfo.Builder>- Throws:
IOException
-
getAspectName
The name under which the aspect is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_aspect".
string aspect_name = 1;- Specified by:
getAspectNamein interfaceStardocOutputProtos.AspectInfoOrBuilder- Returns:
- The aspectName.
-
getAspectNameBytes
public com.google.protobuf.ByteString getAspectNameBytes()The name under which the aspect is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_aspect".
string aspect_name = 1;- Specified by:
getAspectNameBytesin interfaceStardocOutputProtos.AspectInfoOrBuilder- Returns:
- The bytes for aspectName.
-
setAspectName
The name under which the aspect is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_aspect".
string aspect_name = 1;- Parameters:
value- The aspectName to set.- Returns:
- This builder for chaining.
-
clearAspectName
The name under which the aspect is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_aspect".
string aspect_name = 1;- Returns:
- This builder for chaining.
-
setAspectNameBytes
public StardocOutputProtos.AspectInfo.Builder setAspectNameBytes(com.google.protobuf.ByteString value) The name under which the aspect is made accessible to a user of this module, including any structs it is nested in, for example "foo.foo_aspect".
string aspect_name = 1;- Parameters:
value- The bytes for aspectName to set.- Returns:
- This builder for chaining.
-
getDocString
The documentation string of the aspect.
string doc_string = 2;- Specified by:
getDocStringin interfaceStardocOutputProtos.AspectInfoOrBuilder- Returns:
- The docString.
-
getDocStringBytes
public com.google.protobuf.ByteString getDocStringBytes()The documentation string of the aspect.
string doc_string = 2;- Specified by:
getDocStringBytesin interfaceStardocOutputProtos.AspectInfoOrBuilder- Returns:
- The bytes for docString.
-
setDocString
The documentation string of the aspect.
string doc_string = 2;- Parameters:
value- The docString to set.- Returns:
- This builder for chaining.
-
clearDocString
The documentation string of the aspect.
string doc_string = 2;- Returns:
- This builder for chaining.
-
setDocStringBytes
public StardocOutputProtos.AspectInfo.Builder setDocStringBytes(com.google.protobuf.ByteString value) The documentation string of the aspect.
string doc_string = 2;- Parameters:
value- The bytes for docString to set.- Returns:
- This builder for chaining.
-
getAspectAttributeList
public com.google.protobuf.ProtocolStringList getAspectAttributeList()The rule attributes along which the aspect propagates.
repeated string aspect_attribute = 3;- Specified by:
getAspectAttributeListin interfaceStardocOutputProtos.AspectInfoOrBuilder- Returns:
- A list containing the aspectAttribute.
-
getAspectAttributeCount
public int getAspectAttributeCount()The rule attributes along which the aspect propagates.
repeated string aspect_attribute = 3;- Specified by:
getAspectAttributeCountin interfaceStardocOutputProtos.AspectInfoOrBuilder- Returns:
- The count of aspectAttribute.
-
getAspectAttribute
The rule attributes along which the aspect propagates.
repeated string aspect_attribute = 3;- Specified by:
getAspectAttributein interfaceStardocOutputProtos.AspectInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The aspectAttribute at the given index.
-
getAspectAttributeBytes
public com.google.protobuf.ByteString getAspectAttributeBytes(int index) The rule attributes along which the aspect propagates.
repeated string aspect_attribute = 3;- Specified by:
getAspectAttributeBytesin interfaceStardocOutputProtos.AspectInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the aspectAttribute at the given index.
-
setAspectAttribute
The rule attributes along which the aspect propagates.
repeated string aspect_attribute = 3;- Parameters:
index- The index to set the value at.value- The aspectAttribute to set.- Returns:
- This builder for chaining.
-
addAspectAttribute
The rule attributes along which the aspect propagates.
repeated string aspect_attribute = 3;- Parameters:
value- The aspectAttribute to add.- Returns:
- This builder for chaining.
-
addAllAspectAttribute
The rule attributes along which the aspect propagates.
repeated string aspect_attribute = 3;- Parameters:
values- The aspectAttribute to add.- Returns:
- This builder for chaining.
-
clearAspectAttribute
The rule attributes along which the aspect propagates.
repeated string aspect_attribute = 3;- Returns:
- This builder for chaining.
-
addAspectAttributeBytes
public StardocOutputProtos.AspectInfo.Builder addAspectAttributeBytes(com.google.protobuf.ByteString value) The rule attributes along which the aspect propagates.
repeated string aspect_attribute = 3;- Parameters:
value- The bytes of the aspectAttribute to add.- Returns:
- This builder for chaining.
-
getAttributeList
The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4;- Specified by:
getAttributeListin interfaceStardocOutputProtos.AspectInfoOrBuilder
-
getAttributeCount
public int getAttributeCount()The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4;- Specified by:
getAttributeCountin interfaceStardocOutputProtos.AspectInfoOrBuilder
-
getAttribute
The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4;- Specified by:
getAttributein interfaceStardocOutputProtos.AspectInfoOrBuilder
-
setAttribute
public StardocOutputProtos.AspectInfo.Builder setAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4; -
setAttribute
public StardocOutputProtos.AspectInfo.Builder setAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4; -
addAttribute
The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4; -
addAttribute
public StardocOutputProtos.AspectInfo.Builder addAttribute(int index, StardocOutputProtos.AttributeInfo value) The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4; -
addAttribute
public StardocOutputProtos.AspectInfo.Builder addAttribute(StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4; -
addAttribute
public StardocOutputProtos.AspectInfo.Builder addAttribute(int index, StardocOutputProtos.AttributeInfo.Builder builderForValue) The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4; -
addAllAttribute
public StardocOutputProtos.AspectInfo.Builder addAllAttribute(Iterable<? extends StardocOutputProtos.AttributeInfo> values) The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4; -
clearAttribute
The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4; -
removeAttribute
The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4; -
getAttributeBuilder
The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4; -
getAttributeOrBuilder
The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4;- Specified by:
getAttributeOrBuilderin interfaceStardocOutputProtos.AspectInfoOrBuilder
-
getAttributeOrBuilderList
The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4;- Specified by:
getAttributeOrBuilderListin interfaceStardocOutputProtos.AspectInfoOrBuilder
-
addAttributeBuilder
The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4; -
addAttributeBuilder
The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4; -
getAttributeBuilderList
The attributes of the aspect.
repeated .stardoc_output.AttributeInfo attribute = 4; -
hasOriginKey
public boolean hasOriginKey()The module where and the name under which the aspect was originally declared. Note: legacy Stardoc (0.5.x and earlier) does not set this field.
.stardoc_output.OriginKey origin_key = 5;- Specified by:
hasOriginKeyin interfaceStardocOutputProtos.AspectInfoOrBuilder- Returns:
- Whether the originKey field is set.
-
getOriginKey
The module where and the name under which the aspect was originally declared. Note: legacy Stardoc (0.5.x and earlier) does not set this field.
.stardoc_output.OriginKey origin_key = 5;- Specified by:
getOriginKeyin interfaceStardocOutputProtos.AspectInfoOrBuilder- Returns:
- The originKey.
-
setOriginKey
The module where and the name under which the aspect was originally declared. Note: legacy Stardoc (0.5.x and earlier) does not set this field.
.stardoc_output.OriginKey origin_key = 5; -
setOriginKey
public StardocOutputProtos.AspectInfo.Builder setOriginKey(StardocOutputProtos.OriginKey.Builder builderForValue) The module where and the name under which the aspect was originally declared. Note: legacy Stardoc (0.5.x and earlier) does not set this field.
.stardoc_output.OriginKey origin_key = 5; -
mergeOriginKey
The module where and the name under which the aspect was originally declared. Note: legacy Stardoc (0.5.x and earlier) does not set this field.
.stardoc_output.OriginKey origin_key = 5; -
clearOriginKey
The module where and the name under which the aspect was originally declared. Note: legacy Stardoc (0.5.x and earlier) does not set this field.
.stardoc_output.OriginKey origin_key = 5; -
getOriginKeyBuilder
The module where and the name under which the aspect was originally declared. Note: legacy Stardoc (0.5.x and earlier) does not set this field.
.stardoc_output.OriginKey origin_key = 5; -
getOriginKeyOrBuilder
The module where and the name under which the aspect was originally declared. Note: legacy Stardoc (0.5.x and earlier) does not set this field.
.stardoc_output.OriginKey origin_key = 5;- Specified by:
getOriginKeyOrBuilderin interfaceStardocOutputProtos.AspectInfoOrBuilder
-