Class Location.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Location.Builder>
io.grafeas.v1beta1.pkg.Location.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, LocationOrBuilder, Cloneable
Enclosing class:
Location

public static final class Location.Builder extends com.google.protobuf.GeneratedMessage.Builder<Location.Builder> implements LocationOrBuilder
 An occurrence of a particular package installation found within a system's
 filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
 
Protobuf type grafeas.v1beta1.package.Location
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Required.
    The path from which we gathered that this package/version is installed.
    The version installed at this location.
    Required.
    com.google.protobuf.ByteString
    Required.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The path from which we gathered that this package/version is installed.
    com.google.protobuf.ByteString
    The path from which we gathered that this package/version is installed.
    The version installed at this location.
    The version installed at this location.
    The version installed at this location.
    boolean
    The version installed at this location.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    The version installed at this location.
    Required.
    setCpeUriBytes(com.google.protobuf.ByteString value)
    Required.
    setPath(String value)
    The path from which we gathered that this package/version is installed.
    setPathBytes(com.google.protobuf.ByteString value)
    The path from which we gathered that this package/version is installed.
    The version installed at this location.
    setVersion(Version.Builder builderForValue)
    The version installed at this location.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<Location.Builder>
    • clear

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

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

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

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

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

      public Location.Builder mergeFrom(Location other)
    • isInitialized

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

      public Location.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<Location.Builder>
      Throws:
      IOException
    • getCpeUri

      public String getCpeUri()
       Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
       denoting the package manager version distributing a package.
       
      string cpe_uri = 1;
      Specified by:
      getCpeUri in interface LocationOrBuilder
      Returns:
      The cpeUri.
    • getCpeUriBytes

      public com.google.protobuf.ByteString getCpeUriBytes()
       Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
       denoting the package manager version distributing a package.
       
      string cpe_uri = 1;
      Specified by:
      getCpeUriBytes in interface LocationOrBuilder
      Returns:
      The bytes for cpeUri.
    • setCpeUri

      public Location.Builder setCpeUri(String value)
       Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
       denoting the package manager version distributing a package.
       
      string cpe_uri = 1;
      Parameters:
      value - The cpeUri to set.
      Returns:
      This builder for chaining.
    • clearCpeUri

      public Location.Builder clearCpeUri()
       Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
       denoting the package manager version distributing a package.
       
      string cpe_uri = 1;
      Returns:
      This builder for chaining.
    • setCpeUriBytes

      public Location.Builder setCpeUriBytes(com.google.protobuf.ByteString value)
       Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
       denoting the package manager version distributing a package.
       
      string cpe_uri = 1;
      Parameters:
      value - The bytes for cpeUri to set.
      Returns:
      This builder for chaining.
    • hasVersion

      public boolean hasVersion()
       The version installed at this location.
       
      .grafeas.v1beta1.package.Version version = 2;
      Specified by:
      hasVersion in interface LocationOrBuilder
      Returns:
      Whether the version field is set.
    • getVersion

      public Version getVersion()
       The version installed at this location.
       
      .grafeas.v1beta1.package.Version version = 2;
      Specified by:
      getVersion in interface LocationOrBuilder
      Returns:
      The version.
    • setVersion

      public Location.Builder setVersion(Version value)
       The version installed at this location.
       
      .grafeas.v1beta1.package.Version version = 2;
    • setVersion

      public Location.Builder setVersion(Version.Builder builderForValue)
       The version installed at this location.
       
      .grafeas.v1beta1.package.Version version = 2;
    • mergeVersion

      public Location.Builder mergeVersion(Version value)
       The version installed at this location.
       
      .grafeas.v1beta1.package.Version version = 2;
    • clearVersion

      public Location.Builder clearVersion()
       The version installed at this location.
       
      .grafeas.v1beta1.package.Version version = 2;
    • getVersionBuilder

      public Version.Builder getVersionBuilder()
       The version installed at this location.
       
      .grafeas.v1beta1.package.Version version = 2;
    • getVersionOrBuilder

      public VersionOrBuilder getVersionOrBuilder()
       The version installed at this location.
       
      .grafeas.v1beta1.package.Version version = 2;
      Specified by:
      getVersionOrBuilder in interface LocationOrBuilder
    • getPath

      public String getPath()
       The path from which we gathered that this package/version is installed.
       
      string path = 3;
      Specified by:
      getPath in interface LocationOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       The path from which we gathered that this package/version is installed.
       
      string path = 3;
      Specified by:
      getPathBytes in interface LocationOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public Location.Builder setPath(String value)
       The path from which we gathered that this package/version is installed.
       
      string path = 3;
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public Location.Builder clearPath()
       The path from which we gathered that this package/version is installed.
       
      string path = 3;
      Returns:
      This builder for chaining.
    • setPathBytes

      public Location.Builder setPathBytes(com.google.protobuf.ByteString value)
       The path from which we gathered that this package/version is installed.
       
      string path = 3;
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.