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 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.Builder<Build.GeneratedFile.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Build.GeneratedFile.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Build.GeneratedFile.Builder>
    • getDefaultInstanceForType

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

      public Build.GeneratedFile build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Build.GeneratedFile buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Build.GeneratedFile.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Build.GeneratedFile.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasName in interface Build.GeneratedFileOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The name of the generated file (a label).
       
      required string name = 1;
      Specified by:
      getName in interface Build.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:
      getNameBytes in interface Build.GeneratedFileOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Build.GeneratedFile.Builder setName(String value)
       The name of the generated file (a label).
       
      required string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Build.GeneratedFile.Builder clearName()
       The name of the generated file (a label).
       
      required string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Build.GeneratedFile.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      hasGeneratingRule in interface Build.GeneratedFileOrBuilder
      Returns:
      Whether the generatingRule field is set.
    • getGeneratingRule

      public String getGeneratingRule()
       The label of the target that generates the file.
       
      required string generating_rule = 2;
      Specified by:
      getGeneratingRule in interface Build.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:
      getGeneratingRuleBytes in interface Build.GeneratedFileOrBuilder
      Returns:
      The bytes for generatingRule.
    • setGeneratingRule

      public Build.GeneratedFile.Builder setGeneratingRule(String value)
       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

      public Build.GeneratedFile.Builder clearGeneratingRule()
       The label of the target that generates the file.
       
      required string generating_rule = 2;
      Returns:
      This builder for chaining.
    • setGeneratingRuleBytes

      public Build.GeneratedFile.Builder setGeneratingRuleBytes(com.google.protobuf.ByteString value)
       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:
      hasLocation in interface Build.GeneratedFileOrBuilder
      Returns:
      Whether the location field is set.
    • getLocation

      public String getLocation()
       The path, line number, and column number of the output file (not a label).
       
      optional string location = 3;
      Specified by:
      getLocation in interface Build.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:
      getLocationBytes in interface Build.GeneratedFileOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public Build.GeneratedFile.Builder setLocation(String value)
       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

      public Build.GeneratedFile.Builder 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

      public Build.GeneratedFile.Builder setLocationBytes(com.google.protobuf.ByteString value)
       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.