Class Build.Target
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devtools.build.lib.query2.proto.proto2api.Build.Target
- All Implemented Interfaces:
Build.TargetOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Build
public static final class Build.Target
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA target from a blaze query execution.static enumProtobuf enumblaze_query.Target.DiscriminatorNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Build.Targetstatic final com.google.protobuf.Descriptors.DescriptorAn 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 package group.A package group.com.google.protobuf.Parser<Build.Target>getRule()If this target represents a rule, the rule is stored here.If this target represents a rule, the rule is stored here.intA 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.inthashCode()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 booleanstatic Build.Target.Builderstatic Build.Target.BuildernewBuilder(Build.Target prototype) protected Build.Target.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Build.TargetparseDelimitedFrom(InputStream input) static Build.TargetparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.TargetparseFrom(byte[] data) static Build.TargetparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.TargetparseFrom(com.google.protobuf.ByteString data) static Build.TargetparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.TargetparseFrom(com.google.protobuf.CodedInputStream input) static Build.TargetparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.TargetparseFrom(InputStream input) static Build.TargetparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Build.TargetparseFrom(ByteBuffer data) static Build.TargetparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Build.Target>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
RULE_FIELD_NUMBER
public static final int RULE_FIELD_NUMBER- See Also:
-
SOURCE_FILE_FIELD_NUMBER
public static final int SOURCE_FILE_FIELD_NUMBER- See Also:
-
GENERATED_FILE_FIELD_NUMBER
public static final int GENERATED_FILE_FIELD_NUMBER- See Also:
-
PACKAGE_GROUP_FIELD_NUMBER
public static final int PACKAGE_GROUP_FIELD_NUMBER- See Also:
-
ENVIRONMENT_GROUP_FIELD_NUMBER
public static final int ENVIRONMENT_GROUP_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
getEnvironmentGroupOrBuilder
An environment group.
optional .blaze_query.EnvironmentGroup environment_group = 6;- Specified by:
getEnvironmentGroupOrBuilderin interfaceBuild.TargetOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Build.Target parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Build.Target parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Build.Target parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Build.Target parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Build.Target parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Build.Target parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Build.Target parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Build.Target parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Build.Target parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Build.Target.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-