Class 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, java.lang.Cloneable
    Enclosing class:
    Deps.Dependency

    public static final class Deps.Dependency.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Deps.Dependency.Builder>
    implements Deps.DependencyOrBuilder
    Protobuf type blaze_deps.Dependency
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Deps.Dependency.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Deps.Dependency.Builder>
      • setField

        public Deps.Dependency.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Deps.Dependency.Builder>
      • clearField

        public Deps.Dependency.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Deps.Dependency.Builder>
      • clearOneof

        public Deps.Dependency.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Deps.Dependency.Builder>
      • setRepeatedField

        public Deps.Dependency.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Deps.Dependency.Builder>
      • addRepeatedField

        public Deps.Dependency.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Deps.Dependency.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>
      • isInitialized

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

        public Deps.Dependency.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws java.io.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:
        java.io.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 java.lang.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​(java.lang.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.
      • setKind

        public Deps.Dependency.Builder setKind​(Deps.Dependency.Kind value)
         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.
      • 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
      • 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;
      • 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;
      • addAllLocation

        public Deps.Dependency.Builder addAllLocation​(java.lang.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;
      • 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 java.util.List<Deps.SourceLocation.Builder> getLocationBuilderList()
         Source file locations: compilers can pinpoint the uses of a dependency.
         
        repeated .blaze_deps.SourceLocation location = 3;
      • setUnknownFields

        public final Deps.Dependency.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Deps.Dependency.Builder>
      • mergeUnknownFields

        public final Deps.Dependency.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Deps.Dependency.Builder>