Class Build.GeneratedFile.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Build.GeneratedFile.Builder>
com.google.devtools.build.lib.query2.proto.proto2api.Build.GeneratedFile.Builder
- All Implemented Interfaces:
Build.GeneratedFileOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Build.GeneratedFile
public static final class Build.GeneratedFile.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Build.GeneratedFile.Builder>
implements Build.GeneratedFileOrBuilder
A file that is the output of a build rule.Protobuf type
blaze_query.GeneratedFile-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The label of the target that generates the file.The path, line number, and column number of the output file (not a label).The name of the generated file (a label).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe label of the target that generates the file.com.google.protobuf.ByteStringThe label of the target that generates the file.The path, line number, and column number of the output file (not a label).com.google.protobuf.ByteStringThe path, line number, and column number of the output file (not a label).getName()The name of the generated file (a label).com.google.protobuf.ByteStringThe name of the generated file (a label).booleanThe label of the target that generates the file.booleanThe path, line number, and column number of the output file (not a label).booleanhasName()The name of the generated file (a label).protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Build.GeneratedFile other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setGeneratingRule(String value) The label of the target that generates the file.setGeneratingRuleBytes(com.google.protobuf.ByteString value) The label of the target that generates the file.setLocation(String value) The path, line number, and column number of the output file (not a label).setLocationBytes(com.google.protobuf.ByteString value) The path, line number, and column number of the output file (not a label).The name of the generated file (a label).setNameBytes(com.google.protobuf.ByteString value) The name of the generated file (a label).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<Build.GeneratedFile.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<Build.GeneratedFile.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<Build.GeneratedFile.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<Build.GeneratedFile.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Build.GeneratedFile.Builder>
-
mergeFrom
public Build.GeneratedFile.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<Build.GeneratedFile.Builder>- Throws:
IOException
-
hasName
public boolean hasName()The name of the generated file (a label).
required string name = 1;- Specified by:
hasNamein interfaceBuild.GeneratedFileOrBuilder- Returns:
- Whether the name field is set.
-
getName
The name of the generated file (a label).
required string name = 1;- Specified by:
getNamein interfaceBuild.GeneratedFileOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the generated file (a label).
required string name = 1;- Specified by:
getNameBytesin interfaceBuild.GeneratedFileOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the generated file (a label).
required string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the generated file (a label).
required string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The name of the generated file (a label).
required string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasGeneratingRule
public boolean hasGeneratingRule()The label of the target that generates the file.
required string generating_rule = 2;- Specified by:
hasGeneratingRulein interfaceBuild.GeneratedFileOrBuilder- Returns:
- Whether the generatingRule field is set.
-
getGeneratingRule
The label of the target that generates the file.
required string generating_rule = 2;- Specified by:
getGeneratingRulein interfaceBuild.GeneratedFileOrBuilder- Returns:
- The generatingRule.
-
getGeneratingRuleBytes
public com.google.protobuf.ByteString getGeneratingRuleBytes()The label of the target that generates the file.
required string generating_rule = 2;- Specified by:
getGeneratingRuleBytesin interfaceBuild.GeneratedFileOrBuilder- Returns:
- The bytes for generatingRule.
-
setGeneratingRule
The label of the target that generates the file.
required string generating_rule = 2;- Parameters:
value- The generatingRule to set.- Returns:
- This builder for chaining.
-
clearGeneratingRule
The label of the target that generates the file.
required string generating_rule = 2;- Returns:
- This builder for chaining.
-
setGeneratingRuleBytes
The label of the target that generates the file.
required string generating_rule = 2;- Parameters:
value- The bytes for generatingRule to set.- Returns:
- This builder for chaining.
-
hasLocation
public boolean hasLocation()The path, line number, and column number of the output file (not a label).
optional string location = 3;- Specified by:
hasLocationin interfaceBuild.GeneratedFileOrBuilder- Returns:
- Whether the location field is set.
-
getLocation
The path, line number, and column number of the output file (not a label).
optional string location = 3;- Specified by:
getLocationin interfaceBuild.GeneratedFileOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()The path, line number, and column number of the output file (not a label).
optional string location = 3;- Specified by:
getLocationBytesin interfaceBuild.GeneratedFileOrBuilder- Returns:
- The bytes for location.
-
setLocation
The path, line number, and column number of the output file (not a label).
optional string location = 3;- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
The path, line number, and column number of the output file (not a label).
optional string location = 3;- Returns:
- This builder for chaining.
-
setLocationBytes
The path, line number, and column number of the output file (not a label).
optional string location = 3;- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-