Class Location (3.56.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 3.56.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  Location   extends   GeneratedMessageV3   implements   LocationOrBuilder  
   
   Specifies the location of the finding.
 Protobuf type google.privacy.dlp.v2.Location
 
  
  
  
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  BYTE_RANGE_FIELD_NUMBER 
  
    
public   static   final   int   BYTE_RANGE_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  CODEPOINT_RANGE_FIELD_NUMBER 
  
    
public   static   final   int   CODEPOINT_RANGE_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  CONTAINER_FIELD_NUMBER 
  
    
public   static   final   int   CONTAINER_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  CONTENT_LOCATIONS_FIELD_NUMBER 
  
    
public   static   final   int   CONTENT_LOCATIONS_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   Location   getDefaultInstance ()  
   
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  
   
  newBuilder() 
  
    
public   static   Location . Builder   newBuilder ()  
   
  
   
  newBuilder(Location prototype) 
  
    
public   static   Location . Builder   newBuilder ( Location   prototype )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        prototype 
        Location  
       
     
  
  
   
  
  
    
public   static   Location   parseDelimitedFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   Location   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(byte[] data) 
  
    
public   static   Location   parseFrom ( byte []   data )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        data 
        byte [] 
       
     
  
  
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Location   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteString data) 
  
    
public   static   Location   parseFrom ( ByteString   data )  
   
  
  
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Location   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   Location   parseFrom ( CodedInputStream   input )  
   
  
  
  
   
  
  
    
public   static   Location   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   Location   parseFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   Location   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   Location   parseFrom ( ByteBuffer   data )  
   
  
  
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Location   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parser() 
  
    
public   static   Parser<Location>   parser ()  
   
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        obj 
        Object  
       
     
  
  
  Overrides 
  
   
  getByteRange() 
  
    
public   Range   getByteRange ()  
   
   Zero-based byte offsets delimiting the finding.
 These are relative to the finding's containing element.
 Note that when the content is not textual, this references
 the UTF-8 encoded textual representation of the content.
 Omitted if content is an image.
 .google.privacy.dlp.v2.Range byte_range = 1;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Range  
        The byteRange.
 
       
     
  
   
  getByteRangeOrBuilder() 
  
    
public   RangeOrBuilder   getByteRangeOrBuilder ()  
   
   Zero-based byte offsets delimiting the finding.
 These are relative to the finding's containing element.
 Note that when the content is not textual, this references
 the UTF-8 encoded textual representation of the content.
 Omitted if content is an image.
 .google.privacy.dlp.v2.Range byte_range = 1;
 
  
   
  getCodepointRange() 
  
    
public   Range   getCodepointRange ()  
   
   Unicode character offsets delimiting the finding.
 These are relative to the finding's containing element.
 Provided when the content is text.
 .google.privacy.dlp.v2.Range codepoint_range = 2;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Range  
        The codepointRange.
 
       
     
  
   
  getCodepointRangeOrBuilder() 
  
    
public   RangeOrBuilder   getCodepointRangeOrBuilder ()  
   
   Unicode character offsets delimiting the finding.
 These are relative to the finding's containing element.
 Provided when the content is text.
 .google.privacy.dlp.v2.Range codepoint_range = 2;
 
  
   
  getContainer() 
  
    
public   Container   getContainer ()  
   
   Information about the container where this finding occurred, if available.
 .google.privacy.dlp.v2.Container container = 8;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Container  
        The container.
 
       
     
  
   
  getContainerOrBuilder() 
  
    
public   ContainerOrBuilder   getContainerOrBuilder ()  
   
   Information about the container where this finding occurred, if available.
 .google.privacy.dlp.v2.Container container = 8;
 
  
   
  getContentLocations(int index) 
  
    
public   ContentLocation   getContentLocations ( int   index )  
   
   List of nested objects pointing to the precise location of the finding
 within the file or record.
 repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        index 
        int  
       
     
  
  
   
  getContentLocationsCount() 
  
    
public   int   getContentLocationsCount ()  
   
   List of nested objects pointing to the precise location of the finding
 within the file or record.
 repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
   
  getContentLocationsList() 
  
    
public   List<ContentLocation>   getContentLocationsList ()  
   
   List of nested objects pointing to the precise location of the finding
 within the file or record.
 repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;
 
  
   
  getContentLocationsOrBuilder(int index) 
  
    
public   ContentLocationOrBuilder   getContentLocationsOrBuilder ( int   index )  
   
   List of nested objects pointing to the precise location of the finding
 within the file or record.
 repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        index 
        int  
       
     
  
  
   
  getContentLocationsOrBuilderList() 
  
    
public   List <?   extends   ContentLocationOrBuilder >  getContentLocationsOrBuilderList ()  
   
   List of nested objects pointing to the precise location of the finding
 within the file or record.
 repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        List <? extends com.google.privacy.dlp.v2.ContentLocationOrBuilder > 
         
       
     
  
   
  getDefaultInstanceForType() 
  
    
public   Location   getDefaultInstanceForType ()  
   
  
   
  getParserForType() 
  
    
public   Parser<Location>   getParserForType ()  
   
  
  Overrides 
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  hasByteRange() 
  
    
public   boolean   hasByteRange ()  
   
   Zero-based byte offsets delimiting the finding.
 These are relative to the finding's containing element.
 Note that when the content is not textual, this references
 the UTF-8 encoded textual representation of the content.
 Omitted if content is an image.
 .google.privacy.dlp.v2.Range byte_range = 1;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the byteRange field is set.
 
       
     
  
   
  hasCodepointRange() 
  
    
public   boolean   hasCodepointRange ()  
   
   Unicode character offsets delimiting the finding.
 These are relative to the finding's containing element.
 Provided when the content is text.
 .google.privacy.dlp.v2.Range codepoint_range = 2;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the codepointRange field is set.
 
       
     
  
   
  hasContainer() 
  
    
public   boolean   hasContainer ()  
   
   Information about the container where this finding occurred, if available.
 .google.privacy.dlp.v2.Container container = 8;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the container field is set.
 
       
     
  
   
  hashCode() 
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   Location . Builder   newBuilderForType ()  
   
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Location . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Object  
         
       
     
  
  Overrides 
  
   
  toBuilder() 
  
    
public   Location . Builder   toBuilder ()  
   
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]