Class Location.Builder

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

public static final class Location.Builder extends com.google.protobuf.GeneratedMessage.Builder<Location.Builder> implements LocationOrBuilder
 Specifies the location of the finding.
 
Protobuf type google.privacy.dlp.v2.Location
  • 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
    • 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;
      Specified by:
      hasByteRange in interface LocationOrBuilder
      Returns:
      Whether the byteRange field is set.
    • 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;
      Specified by:
      getByteRange in interface LocationOrBuilder
      Returns:
      The byteRange.
    • setByteRange

      public Location.Builder setByteRange(Range value)
       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;
    • setByteRange

      public Location.Builder setByteRange(Range.Builder builderForValue)
       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;
    • mergeByteRange

      public Location.Builder mergeByteRange(Range value)
       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;
    • clearByteRange

      public Location.Builder clearByteRange()
       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;
    • getByteRangeBuilder

      public Range.Builder getByteRangeBuilder()
       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;
    • 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;
      Specified by:
      getByteRangeOrBuilder in interface LocationOrBuilder
    • 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;
      Specified by:
      hasCodepointRange in interface LocationOrBuilder
      Returns:
      Whether the codepointRange field is set.
    • 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;
      Specified by:
      getCodepointRange in interface LocationOrBuilder
      Returns:
      The codepointRange.
    • setCodepointRange

      public Location.Builder setCodepointRange(Range value)
       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;
    • setCodepointRange

      public Location.Builder setCodepointRange(Range.Builder builderForValue)
       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;
    • mergeCodepointRange

      public Location.Builder mergeCodepointRange(Range value)
       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;
    • clearCodepointRange

      public Location.Builder clearCodepointRange()
       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;
    • getCodepointRangeBuilder

      public Range.Builder getCodepointRangeBuilder()
       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;
    • 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;
      Specified by:
      getCodepointRangeOrBuilder in interface LocationOrBuilder
    • 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;
      Specified by:
      getContentLocationsList in interface LocationOrBuilder
    • 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;
      Specified by:
      getContentLocationsCount in interface LocationOrBuilder
    • getContentLocations

      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;
      Specified by:
      getContentLocations in interface LocationOrBuilder
    • setContentLocations

      public Location.Builder setContentLocations(int index, ContentLocation value)
       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;
    • setContentLocations

      public Location.Builder setContentLocations(int index, ContentLocation.Builder builderForValue)
       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;
    • addContentLocations

      public Location.Builder addContentLocations(ContentLocation value)
       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;
    • addContentLocations

      public Location.Builder addContentLocations(int index, ContentLocation value)
       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;
    • addContentLocations

      public Location.Builder addContentLocations(ContentLocation.Builder builderForValue)
       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;
    • addContentLocations

      public Location.Builder addContentLocations(int index, ContentLocation.Builder builderForValue)
       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;
    • addAllContentLocations

      public Location.Builder addAllContentLocations(Iterable<? extends ContentLocation> values)
       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;
    • clearContentLocations

      public Location.Builder clearContentLocations()
       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;
    • removeContentLocations

      public Location.Builder removeContentLocations(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;
    • getContentLocationsBuilder

      public ContentLocation.Builder getContentLocationsBuilder(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;
    • getContentLocationsOrBuilder

      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;
      Specified by:
      getContentLocationsOrBuilder in interface LocationOrBuilder
    • 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;
      Specified by:
      getContentLocationsOrBuilderList in interface LocationOrBuilder
    • addContentLocationsBuilder

      public ContentLocation.Builder addContentLocationsBuilder()
       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;
    • addContentLocationsBuilder

      public ContentLocation.Builder addContentLocationsBuilder(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;
    • getContentLocationsBuilderList

      public List<ContentLocation.Builder> getContentLocationsBuilderList()
       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;
    • hasContainer

      public boolean hasContainer()
       Information about the container where this finding occurred, if available.
       
      .google.privacy.dlp.v2.Container container = 8;
      Specified by:
      hasContainer in interface LocationOrBuilder
      Returns:
      Whether the container field is set.
    • getContainer

      public Container getContainer()
       Information about the container where this finding occurred, if available.
       
      .google.privacy.dlp.v2.Container container = 8;
      Specified by:
      getContainer in interface LocationOrBuilder
      Returns:
      The container.
    • setContainer

      public Location.Builder setContainer(Container value)
       Information about the container where this finding occurred, if available.
       
      .google.privacy.dlp.v2.Container container = 8;
    • setContainer

      public Location.Builder setContainer(Container.Builder builderForValue)
       Information about the container where this finding occurred, if available.
       
      .google.privacy.dlp.v2.Container container = 8;
    • mergeContainer

      public Location.Builder mergeContainer(Container value)
       Information about the container where this finding occurred, if available.
       
      .google.privacy.dlp.v2.Container container = 8;
    • clearContainer

      public Location.Builder clearContainer()
       Information about the container where this finding occurred, if available.
       
      .google.privacy.dlp.v2.Container container = 8;
    • getContainerBuilder

      public Container.Builder getContainerBuilder()
       Information about the container where this finding occurred, if available.
       
      .google.privacy.dlp.v2.Container container = 8;
    • getContainerOrBuilder

      public ContainerOrBuilder getContainerOrBuilder()
       Information about the container where this finding occurred, if available.
       
      .google.privacy.dlp.v2.Container container = 8;
      Specified by:
      getContainerOrBuilder in interface LocationOrBuilder