Class Build.Target.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Build.Target.Builder>
com.google.devtools.build.lib.query2.proto.proto2api.Build.Target.Builder
- All Implemented Interfaces:
Build.TargetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Build.Target
public static final class Build.Target.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Build.Target.Builder>
implements Build.TargetOrBuilder
A target from a blaze query execution. Similar to the Attribute message, the Discriminator is used to determine which field contains information. For any given type, only one of these can be populated in a single Target.Protobuf type
blaze_query.Target-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()An environment group.A generated file that is the output of a rule.A package group.If this target represents a rule, the rule is stored here.A file that is not generated by the build system (version controlled or created by the test harness).The type of target contained in the message.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorAn environment group.An environment group.An environment group.A generated file that is the output of a rule.A generated file that is the output of a rule.A generated file that is the output of a rule.A package group.A package group.A package group.getRule()If this target represents a rule, the rule is stored here.If this target represents a rule, the rule is stored here.If this target represents a rule, the rule is stored here.A file that is not generated by the build system (version controlled or created by the test harness).A file that is not generated by the build system (version controlled or created by the test harness).A file that is not generated by the build system (version controlled or created by the test harness).getType()The type of target contained in the message.booleanAn environment group.booleanA generated file that is the output of a rule.booleanA package group.booleanhasRule()If this target represents a rule, the rule is stored here.booleanA file that is not generated by the build system (version controlled or created by the test harness).booleanhasType()The type of target contained in the message.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanAn environment group.mergeFrom(Build.Target other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) A generated file that is the output of a rule.A package group.mergeRule(Build.Rule value) If this target represents a rule, the rule is stored here.mergeSourceFile(Build.SourceFile value) A file that is not generated by the build system (version controlled or created by the test harness).An environment group.setEnvironmentGroup(Build.EnvironmentGroup.Builder builderForValue) An environment group.A generated file that is the output of a rule.setGeneratedFile(Build.GeneratedFile.Builder builderForValue) A generated file that is the output of a rule.A package group.setPackageGroup(Build.PackageGroup.Builder builderForValue) A package group.setRule(Build.Rule value) If this target represents a rule, the rule is stored here.setRule(Build.Rule.Builder builderForValue) If this target represents a rule, the rule is stored here.setSourceFile(Build.SourceFile value) A file that is not generated by the build system (version controlled or created by the test harness).setSourceFile(Build.SourceFile.Builder builderForValue) A file that is not generated by the build system (version controlled or created by the test harness).The type of target contained in the message.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.Target.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.Target.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.Target.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.Target.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Build.Target.Builder>
-
mergeFrom
public Build.Target.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.Target.Builder>- Throws:
IOException
-
hasType
public boolean hasType()The type of target contained in the message.
required .blaze_query.Target.Discriminator type = 1;- Specified by:
hasTypein interfaceBuild.TargetOrBuilder- Returns:
- Whether the type field is set.
-
getType
The type of target contained in the message.
required .blaze_query.Target.Discriminator type = 1;- Specified by:
getTypein interfaceBuild.TargetOrBuilder- Returns:
- The type.
-
setType
The type of target contained in the message.
required .blaze_query.Target.Discriminator type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The type of target contained in the message.
required .blaze_query.Target.Discriminator type = 1;- Returns:
- This builder for chaining.
-
hasRule
public boolean hasRule()If this target represents a rule, the rule is stored here.
optional .blaze_query.Rule rule = 2;- Specified by:
hasRulein interfaceBuild.TargetOrBuilder- Returns:
- Whether the rule field is set.
-
getRule
If this target represents a rule, the rule is stored here.
optional .blaze_query.Rule rule = 2;- Specified by:
getRulein interfaceBuild.TargetOrBuilder- Returns:
- The rule.
-
setRule
If this target represents a rule, the rule is stored here.
optional .blaze_query.Rule rule = 2; -
setRule
If this target represents a rule, the rule is stored here.
optional .blaze_query.Rule rule = 2; -
mergeRule
If this target represents a rule, the rule is stored here.
optional .blaze_query.Rule rule = 2; -
clearRule
If this target represents a rule, the rule is stored here.
optional .blaze_query.Rule rule = 2; -
getRuleBuilder
If this target represents a rule, the rule is stored here.
optional .blaze_query.Rule rule = 2; -
getRuleOrBuilder
If this target represents a rule, the rule is stored here.
optional .blaze_query.Rule rule = 2;- Specified by:
getRuleOrBuilderin interfaceBuild.TargetOrBuilder
-
hasSourceFile
public boolean hasSourceFile()A file that is not generated by the build system (version controlled or created by the test harness).
optional .blaze_query.SourceFile source_file = 3;- Specified by:
hasSourceFilein interfaceBuild.TargetOrBuilder- Returns:
- Whether the sourceFile field is set.
-
getSourceFile
A file that is not generated by the build system (version controlled or created by the test harness).
optional .blaze_query.SourceFile source_file = 3;- Specified by:
getSourceFilein interfaceBuild.TargetOrBuilder- Returns:
- The sourceFile.
-
setSourceFile
A file that is not generated by the build system (version controlled or created by the test harness).
optional .blaze_query.SourceFile source_file = 3; -
setSourceFile
A file that is not generated by the build system (version controlled or created by the test harness).
optional .blaze_query.SourceFile source_file = 3; -
mergeSourceFile
A file that is not generated by the build system (version controlled or created by the test harness).
optional .blaze_query.SourceFile source_file = 3; -
clearSourceFile
A file that is not generated by the build system (version controlled or created by the test harness).
optional .blaze_query.SourceFile source_file = 3; -
getSourceFileBuilder
A file that is not generated by the build system (version controlled or created by the test harness).
optional .blaze_query.SourceFile source_file = 3; -
getSourceFileOrBuilder
A file that is not generated by the build system (version controlled or created by the test harness).
optional .blaze_query.SourceFile source_file = 3;- Specified by:
getSourceFileOrBuilderin interfaceBuild.TargetOrBuilder
-
hasGeneratedFile
public boolean hasGeneratedFile()A generated file that is the output of a rule.
optional .blaze_query.GeneratedFile generated_file = 4;- Specified by:
hasGeneratedFilein interfaceBuild.TargetOrBuilder- Returns:
- Whether the generatedFile field is set.
-
getGeneratedFile
A generated file that is the output of a rule.
optional .blaze_query.GeneratedFile generated_file = 4;- Specified by:
getGeneratedFilein interfaceBuild.TargetOrBuilder- Returns:
- The generatedFile.
-
setGeneratedFile
A generated file that is the output of a rule.
optional .blaze_query.GeneratedFile generated_file = 4; -
setGeneratedFile
A generated file that is the output of a rule.
optional .blaze_query.GeneratedFile generated_file = 4; -
mergeGeneratedFile
A generated file that is the output of a rule.
optional .blaze_query.GeneratedFile generated_file = 4; -
clearGeneratedFile
A generated file that is the output of a rule.
optional .blaze_query.GeneratedFile generated_file = 4; -
getGeneratedFileBuilder
A generated file that is the output of a rule.
optional .blaze_query.GeneratedFile generated_file = 4; -
getGeneratedFileOrBuilder
A generated file that is the output of a rule.
optional .blaze_query.GeneratedFile generated_file = 4;- Specified by:
getGeneratedFileOrBuilderin interfaceBuild.TargetOrBuilder
-
hasPackageGroup
public boolean hasPackageGroup()A package group.
optional .blaze_query.PackageGroup package_group = 5;- Specified by:
hasPackageGroupin interfaceBuild.TargetOrBuilder- Returns:
- Whether the packageGroup field is set.
-
getPackageGroup
A package group.
optional .blaze_query.PackageGroup package_group = 5;- Specified by:
getPackageGroupin interfaceBuild.TargetOrBuilder- Returns:
- The packageGroup.
-
setPackageGroup
A package group.
optional .blaze_query.PackageGroup package_group = 5; -
setPackageGroup
A package group.
optional .blaze_query.PackageGroup package_group = 5; -
mergePackageGroup
A package group.
optional .blaze_query.PackageGroup package_group = 5; -
clearPackageGroup
A package group.
optional .blaze_query.PackageGroup package_group = 5; -
getPackageGroupBuilder
A package group.
optional .blaze_query.PackageGroup package_group = 5; -
getPackageGroupOrBuilder
A package group.
optional .blaze_query.PackageGroup package_group = 5;- Specified by:
getPackageGroupOrBuilderin interfaceBuild.TargetOrBuilder
-
hasEnvironmentGroup
public boolean hasEnvironmentGroup()An environment group.
optional .blaze_query.EnvironmentGroup environment_group = 6;- Specified by:
hasEnvironmentGroupin interfaceBuild.TargetOrBuilder- Returns:
- Whether the environmentGroup field is set.
-
getEnvironmentGroup
An environment group.
optional .blaze_query.EnvironmentGroup environment_group = 6;- Specified by:
getEnvironmentGroupin interfaceBuild.TargetOrBuilder- Returns:
- The environmentGroup.
-
setEnvironmentGroup
An environment group.
optional .blaze_query.EnvironmentGroup environment_group = 6; -
setEnvironmentGroup
An environment group.
optional .blaze_query.EnvironmentGroup environment_group = 6; -
mergeEnvironmentGroup
An environment group.
optional .blaze_query.EnvironmentGroup environment_group = 6; -
clearEnvironmentGroup
An environment group.
optional .blaze_query.EnvironmentGroup environment_group = 6; -
getEnvironmentGroupBuilder
An environment group.
optional .blaze_query.EnvironmentGroup environment_group = 6; -
getEnvironmentGroupOrBuilder
An environment group.
optional .blaze_query.EnvironmentGroup environment_group = 6;- Specified by:
getEnvironmentGroupOrBuilderin interfaceBuild.TargetOrBuilder
-