Class Deps.Dependency.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Deps.Dependency.Builder>
com.google.devtools.build.lib.view.proto.Deps.Dependency.Builder
All Implemented Interfaces:
Deps.DependencyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Deps.Dependency

public static final class Deps.Dependency.Builder extends com.google.protobuf.GeneratedMessage.Builder<Deps.Dependency.Builder> implements Deps.DependencyOrBuilder
Protobuf type blaze_deps.Dependency
  • 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<Deps.Dependency.Builder>
    • clear

      public Deps.Dependency.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<Deps.Dependency.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<Deps.Dependency.Builder>
    • getDefaultInstanceForType

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

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

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

      public Deps.Dependency.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<Deps.Dependency.Builder>
    • mergeFrom

      public Deps.Dependency.Builder mergeFrom(Deps.Dependency other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Deps.Dependency.Builder>
    • mergeFrom

      public Deps.Dependency.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<Deps.Dependency.Builder>
      Throws:
      IOException
    • hasPath

      public boolean hasPath()
       Path to the artifact representing this dependency.
       
      required string path = 1;
      Specified by:
      hasPath in interface Deps.DependencyOrBuilder
      Returns:
      Whether the path field is set.
    • getPath

      public String getPath()
       Path to the artifact representing this dependency.
       
      required string path = 1;
      Specified by:
      getPath in interface Deps.DependencyOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Path to the artifact representing this dependency.
       
      required string path = 1;
      Specified by:
      getPathBytes in interface Deps.DependencyOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public Deps.Dependency.Builder setPath(String value)
       Path to the artifact representing this dependency.
       
      required string path = 1;
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public Deps.Dependency.Builder clearPath()
       Path to the artifact representing this dependency.
       
      required string path = 1;
      Returns:
      This builder for chaining.
    • setPathBytes

      public Deps.Dependency.Builder setPathBytes(com.google.protobuf.ByteString value)
       Path to the artifact representing this dependency.
       
      required string path = 1;
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • hasKind

      public boolean hasKind()
       Dependency kind
       
      required .blaze_deps.Dependency.Kind kind = 2;
      Specified by:
      hasKind in interface Deps.DependencyOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public Deps.Dependency.Kind getKind()
       Dependency kind
       
      required .blaze_deps.Dependency.Kind kind = 2;
      Specified by:
      getKind in interface Deps.DependencyOrBuilder
      Returns:
      The kind.
    • setKind

       Dependency kind
       
      required .blaze_deps.Dependency.Kind kind = 2;
      Parameters:
      value - The kind to set.
      Returns:
      This builder for chaining.
    • clearKind

      public Deps.Dependency.Builder clearKind()
       Dependency kind
       
      required .blaze_deps.Dependency.Kind kind = 2;
      Returns:
      This builder for chaining.
    • getLocationList

      public List<Deps.SourceLocation> getLocationList()
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
      Specified by:
      getLocationList in interface Deps.DependencyOrBuilder
    • getLocationCount

      public int getLocationCount()
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
      Specified by:
      getLocationCount in interface Deps.DependencyOrBuilder
    • getLocation

      public Deps.SourceLocation getLocation(int index)
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
      Specified by:
      getLocation in interface Deps.DependencyOrBuilder
    • setLocation

      public Deps.Dependency.Builder setLocation(int index, Deps.SourceLocation value)
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
    • setLocation

      public Deps.Dependency.Builder setLocation(int index, Deps.SourceLocation.Builder builderForValue)
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
    • addLocation

      public Deps.Dependency.Builder addLocation(Deps.SourceLocation value)
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
    • addLocation

      public Deps.Dependency.Builder addLocation(int index, Deps.SourceLocation value)
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
    • addLocation

      public Deps.Dependency.Builder addLocation(Deps.SourceLocation.Builder builderForValue)
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
    • addLocation

      public Deps.Dependency.Builder addLocation(int index, Deps.SourceLocation.Builder builderForValue)
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
    • addAllLocation

      public Deps.Dependency.Builder addAllLocation(Iterable<? extends Deps.SourceLocation> values)
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
    • clearLocation

      public Deps.Dependency.Builder clearLocation()
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
    • removeLocation

      public Deps.Dependency.Builder removeLocation(int index)
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
    • getLocationBuilder

      public Deps.SourceLocation.Builder getLocationBuilder(int index)
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
    • getLocationOrBuilder

      public Deps.SourceLocationOrBuilder getLocationOrBuilder(int index)
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
      Specified by:
      getLocationOrBuilder in interface Deps.DependencyOrBuilder
    • getLocationOrBuilderList

      public List<? extends Deps.SourceLocationOrBuilder> getLocationOrBuilderList()
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
      Specified by:
      getLocationOrBuilderList in interface Deps.DependencyOrBuilder
    • addLocationBuilder

      public Deps.SourceLocation.Builder addLocationBuilder()
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
    • addLocationBuilder

      public Deps.SourceLocation.Builder addLocationBuilder(int index)
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;
    • getLocationBuilderList

      public List<Deps.SourceLocation.Builder> getLocationBuilderList()
       Source file locations: compilers can pinpoint the uses of a dependency.
       
      repeated .blaze_deps.SourceLocation location = 3;