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:
  • 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasType

      public boolean hasType()
       The type of target contained in the message.
       
      required .blaze_query.Target.Discriminator type = 1;
      Specified by:
      hasType in interface Build.TargetOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public Build.Target.Discriminator getType()
       The type of target contained in the message.
       
      required .blaze_query.Target.Discriminator type = 1;
      Specified by:
      getType in interface Build.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:
      hasRule in interface Build.TargetOrBuilder
      Returns:
      Whether the rule field is set.
    • getRule

      public Build.Rule getRule()
       If this target represents a rule, the rule is stored here.
       
      optional .blaze_query.Rule rule = 2;
      Specified by:
      getRule in interface Build.TargetOrBuilder
      Returns:
      The rule.
    • getRuleOrBuilder

      public Build.RuleOrBuilder getRuleOrBuilder()
       If this target represents a rule, the rule is stored here.
       
      optional .blaze_query.Rule rule = 2;
      Specified by:
      getRuleOrBuilder in interface Build.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:
      hasSourceFile in interface Build.TargetOrBuilder
      Returns:
      Whether the sourceFile field is set.
    • getSourceFile

      public Build.SourceFile 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:
      getSourceFile in interface Build.TargetOrBuilder
      Returns:
      The sourceFile.
    • getSourceFileOrBuilder

      public Build.SourceFileOrBuilder 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:
      getSourceFileOrBuilder in interface Build.TargetOrBuilder
    • hasGeneratedFile

      public boolean hasGeneratedFile()
       A generated file that is the output of a rule.
       
      optional .blaze_query.GeneratedFile generated_file = 4;
      Specified by:
      hasGeneratedFile in interface Build.TargetOrBuilder
      Returns:
      Whether the generatedFile field is set.
    • getGeneratedFile

      public Build.GeneratedFile getGeneratedFile()
       A generated file that is the output of a rule.
       
      optional .blaze_query.GeneratedFile generated_file = 4;
      Specified by:
      getGeneratedFile in interface Build.TargetOrBuilder
      Returns:
      The generatedFile.
    • getGeneratedFileOrBuilder

      public Build.GeneratedFileOrBuilder getGeneratedFileOrBuilder()
       A generated file that is the output of a rule.
       
      optional .blaze_query.GeneratedFile generated_file = 4;
      Specified by:
      getGeneratedFileOrBuilder in interface Build.TargetOrBuilder
    • hasPackageGroup

      public boolean hasPackageGroup()
       A package group.
       
      optional .blaze_query.PackageGroup package_group = 5;
      Specified by:
      hasPackageGroup in interface Build.TargetOrBuilder
      Returns:
      Whether the packageGroup field is set.
    • getPackageGroup

      public Build.PackageGroup getPackageGroup()
       A package group.
       
      optional .blaze_query.PackageGroup package_group = 5;
      Specified by:
      getPackageGroup in interface Build.TargetOrBuilder
      Returns:
      The packageGroup.
    • getPackageGroupOrBuilder

      public Build.PackageGroupOrBuilder getPackageGroupOrBuilder()
       A package group.
       
      optional .blaze_query.PackageGroup package_group = 5;
      Specified by:
      getPackageGroupOrBuilder in interface Build.TargetOrBuilder
    • hasEnvironmentGroup

      public boolean hasEnvironmentGroup()
       An environment group.
       
      optional .blaze_query.EnvironmentGroup environment_group = 6;
      Specified by:
      hasEnvironmentGroup in interface Build.TargetOrBuilder
      Returns:
      Whether the environmentGroup field is set.
    • getEnvironmentGroup

      public Build.EnvironmentGroup getEnvironmentGroup()
       An environment group.
       
      optional .blaze_query.EnvironmentGroup environment_group = 6;
      Specified by:
      getEnvironmentGroup in interface Build.TargetOrBuilder
      Returns:
      The environmentGroup.
    • getEnvironmentGroupOrBuilder

      public Build.EnvironmentGroupOrBuilder getEnvironmentGroupOrBuilder()
       An environment group.
       
      optional .blaze_query.EnvironmentGroup environment_group = 6;
      Specified by:
      getEnvironmentGroupOrBuilder in interface Build.TargetOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static Build.Target parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Build.Target parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Build.Target parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Build.Target parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Build.Target parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Build.Target parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Build.Target.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Build.Target.Builder newBuilder()
    • newBuilder

      public static Build.Target.Builder newBuilder(Build.Target prototype)
    • toBuilder

      public Build.Target.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Build.Target.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Build.Target getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Build.Target> parser()
    • getParserForType

      public com.google.protobuf.Parser<Build.Target> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Build.Target getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder