Class StardocOutputProtos.OriginKey.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.OriginKey.Builder>
com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.OriginKey.Builder
- All Implemented Interfaces:
StardocOutputProtos.OriginKeyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StardocOutputProtos.OriginKey
public static final class StardocOutputProtos.OriginKey.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.OriginKey.Builder>
implements StardocOutputProtos.OriginKeyOrBuilder
Representation of the origin of a rule, provider, aspect, or function. Intended to be used for building unambiguous cross-references: for example, between an element of a ProviderNameGroup required by a rule attribute and its corresponding ProviderInfo.Protobuf type
stardoc_output.OriginKey-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The display form of the label of the module file in which the entity was originally declared (as seen from the starlark_doc_extract or Stardoc target's repo), or "<native>" for Bazel's built-in entities implemented in Java.The name under which the entity was originally exported.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFile()The display form of the label of the module file in which the entity was originally declared (as seen from the starlark_doc_extract or Stardoc target's repo), or "<native>" for Bazel's built-in entities implemented in Java.com.google.protobuf.ByteStringThe display form of the label of the module file in which the entity was originally declared (as seen from the starlark_doc_extract or Stardoc target's repo), or "<native>" for Bazel's built-in entities implemented in Java.getName()The name under which the entity was originally exported.com.google.protobuf.ByteStringThe name under which the entity was originally exported.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The display form of the label of the module file in which the entity was originally declared (as seen from the starlark_doc_extract or Stardoc target's repo), or "<native>" for Bazel's built-in entities implemented in Java.setFileBytes(com.google.protobuf.ByteString value) The display form of the label of the module file in which the entity was originally declared (as seen from the starlark_doc_extract or Stardoc target's repo), or "<native>" for Bazel's built-in entities implemented in Java.The name under which the entity was originally exported.setNameBytes(com.google.protobuf.ByteString value) The name under which the entity was originally exported.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.OriginKey.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.OriginKey.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.OriginKey.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.OriginKey.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.OriginKey.Builder>
-
mergeFrom
public StardocOutputProtos.OriginKey.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.OriginKey.Builder>- Throws:
IOException
-
getName
The name under which the entity was originally exported. Unset when the entity was not exported in its module.
string name = 1;- Specified by:
getNamein interfaceStardocOutputProtos.OriginKeyOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name under which the entity was originally exported. Unset when the entity was not exported in its module.
string name = 1;- Specified by:
getNameBytesin interfaceStardocOutputProtos.OriginKeyOrBuilder- Returns:
- The bytes for name.
-
setName
The name under which the entity was originally exported. Unset when the entity was not exported in its module.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name under which the entity was originally exported. Unset when the entity was not exported in its module.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The name under which the entity was originally exported. Unset when the entity was not exported in its module.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getFile
The display form of the label of the module file in which the entity was originally declared (as seen from the starlark_doc_extract or Stardoc target's repo), or "<native>" for Bazel's built-in entities implemented in Java. Unset when there is no module file (such as for legacy struct providers, when the module is a REPL, or in Bazel's internal tests).
string file = 2;- Specified by:
getFilein interfaceStardocOutputProtos.OriginKeyOrBuilder- Returns:
- The file.
-
getFileBytes
public com.google.protobuf.ByteString getFileBytes()The display form of the label of the module file in which the entity was originally declared (as seen from the starlark_doc_extract or Stardoc target's repo), or "<native>" for Bazel's built-in entities implemented in Java. Unset when there is no module file (such as for legacy struct providers, when the module is a REPL, or in Bazel's internal tests).
string file = 2;- Specified by:
getFileBytesin interfaceStardocOutputProtos.OriginKeyOrBuilder- Returns:
- The bytes for file.
-
setFile
The display form of the label of the module file in which the entity was originally declared (as seen from the starlark_doc_extract or Stardoc target's repo), or "<native>" for Bazel's built-in entities implemented in Java. Unset when there is no module file (such as for legacy struct providers, when the module is a REPL, or in Bazel's internal tests).
string file = 2;- Parameters:
value- The file to set.- Returns:
- This builder for chaining.
-
clearFile
The display form of the label of the module file in which the entity was originally declared (as seen from the starlark_doc_extract or Stardoc target's repo), or "<native>" for Bazel's built-in entities implemented in Java. Unset when there is no module file (such as for legacy struct providers, when the module is a REPL, or in Bazel's internal tests).
string file = 2;- Returns:
- This builder for chaining.
-
setFileBytes
The display form of the label of the module file in which the entity was originally declared (as seen from the starlark_doc_extract or Stardoc target's repo), or "<native>" for Bazel's built-in entities implemented in Java. Unset when there is no module file (such as for legacy struct providers, when the module is a REPL, or in Bazel's internal tests).
string file = 2;- Parameters:
value- The bytes for file to set.- Returns:
- This builder for chaining.
-