Class InspectResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InspectResult.Builder>
com.google.privacy.dlp.v2.InspectResult.Builder
All Implemented Interfaces:
InspectResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
InspectResult

public static final class InspectResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<InspectResult.Builder> implements InspectResultOrBuilder
 All the findings for a single scanned item.
 
Protobuf type google.privacy.dlp.v2.InspectResult
  • 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<InspectResult.Builder>
    • clear

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

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

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

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

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

      public InspectResult.Builder mergeFrom(InspectResult other)
    • isInitialized

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

      public InspectResult.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<InspectResult.Builder>
      Throws:
      IOException
    • getFindingsList

      public List<Finding> getFindingsList()
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
      Specified by:
      getFindingsList in interface InspectResultOrBuilder
    • getFindingsCount

      public int getFindingsCount()
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
      Specified by:
      getFindingsCount in interface InspectResultOrBuilder
    • getFindings

      public Finding getFindings(int index)
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
      Specified by:
      getFindings in interface InspectResultOrBuilder
    • setFindings

      public InspectResult.Builder setFindings(int index, Finding value)
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
    • setFindings

      public InspectResult.Builder setFindings(int index, Finding.Builder builderForValue)
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
    • addFindings

      public InspectResult.Builder addFindings(Finding value)
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
    • addFindings

      public InspectResult.Builder addFindings(int index, Finding value)
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
    • addFindings

      public InspectResult.Builder addFindings(Finding.Builder builderForValue)
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
    • addFindings

      public InspectResult.Builder addFindings(int index, Finding.Builder builderForValue)
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
    • addAllFindings

      public InspectResult.Builder addAllFindings(Iterable<? extends Finding> values)
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
    • clearFindings

      public InspectResult.Builder clearFindings()
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
    • removeFindings

      public InspectResult.Builder removeFindings(int index)
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
    • getFindingsBuilder

      public Finding.Builder getFindingsBuilder(int index)
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
    • getFindingsOrBuilder

      public FindingOrBuilder getFindingsOrBuilder(int index)
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
      Specified by:
      getFindingsOrBuilder in interface InspectResultOrBuilder
    • getFindingsOrBuilderList

      public List<? extends FindingOrBuilder> getFindingsOrBuilderList()
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
      Specified by:
      getFindingsOrBuilderList in interface InspectResultOrBuilder
    • addFindingsBuilder

      public Finding.Builder addFindingsBuilder()
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
    • addFindingsBuilder

      public Finding.Builder addFindingsBuilder(int index)
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
    • getFindingsBuilderList

      public List<Finding.Builder> getFindingsBuilderList()
       List of findings for an item.
       
      repeated .google.privacy.dlp.v2.Finding findings = 1;
    • getFindingsTruncated

      public boolean getFindingsTruncated()
       If true, then this item might have more findings than were returned,
       and the findings returned are an arbitrary subset of all findings.
       The findings list might be truncated because the input items were too
       large, or because the server reached the maximum amount of resources
       allowed for a single API call. For best results, divide the input into
       smaller batches.
       
      bool findings_truncated = 2;
      Specified by:
      getFindingsTruncated in interface InspectResultOrBuilder
      Returns:
      The findingsTruncated.
    • setFindingsTruncated

      public InspectResult.Builder setFindingsTruncated(boolean value)
       If true, then this item might have more findings than were returned,
       and the findings returned are an arbitrary subset of all findings.
       The findings list might be truncated because the input items were too
       large, or because the server reached the maximum amount of resources
       allowed for a single API call. For best results, divide the input into
       smaller batches.
       
      bool findings_truncated = 2;
      Parameters:
      value - The findingsTruncated to set.
      Returns:
      This builder for chaining.
    • clearFindingsTruncated

      public InspectResult.Builder clearFindingsTruncated()
       If true, then this item might have more findings than were returned,
       and the findings returned are an arbitrary subset of all findings.
       The findings list might be truncated because the input items were too
       large, or because the server reached the maximum amount of resources
       allowed for a single API call. For best results, divide the input into
       smaller batches.
       
      bool findings_truncated = 2;
      Returns:
      This builder for chaining.