Class SdpFinding.SdpFindingLocation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SdpFinding.SdpFindingLocation.Builder>
com.google.cloud.modelarmor.v1beta.SdpFinding.SdpFindingLocation.Builder
All Implemented Interfaces:
SdpFinding.SdpFindingLocationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SdpFinding.SdpFindingLocation

public static final class SdpFinding.SdpFindingLocation.Builder extends com.google.protobuf.GeneratedMessage.Builder<SdpFinding.SdpFindingLocation.Builder> implements SdpFinding.SdpFindingLocationOrBuilder
 Location of this Sensitive Data Protection Finding within input content.
 
Protobuf type google.cloud.modelarmor.v1beta.SdpFinding.SdpFindingLocation
  • 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<SdpFinding.SdpFindingLocation.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<SdpFinding.SdpFindingLocation.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<SdpFinding.SdpFindingLocation.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

      public SdpFinding.SdpFindingLocation.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<SdpFinding.SdpFindingLocation.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.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1;
      Specified by:
      hasByteRange in interface SdpFinding.SdpFindingLocationOrBuilder
      Returns:
      Whether the byteRange field is set.
    • getByteRange

      public RangeInfo 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.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1;
      Specified by:
      getByteRange in interface SdpFinding.SdpFindingLocationOrBuilder
      Returns:
      The byteRange.
    • setByteRange

      public SdpFinding.SdpFindingLocation.Builder setByteRange(RangeInfo 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.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1;
    • setByteRange

      public SdpFinding.SdpFindingLocation.Builder setByteRange(RangeInfo.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.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1;
    • mergeByteRange

      public SdpFinding.SdpFindingLocation.Builder mergeByteRange(RangeInfo 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.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1;
    • clearByteRange

      public SdpFinding.SdpFindingLocation.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.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1;
    • getByteRangeBuilder

      public RangeInfo.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.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1;
    • getByteRangeOrBuilder

      public RangeInfoOrBuilder 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.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1;
      Specified by:
      getByteRangeOrBuilder in interface SdpFinding.SdpFindingLocationOrBuilder
    • 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.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2;
      Specified by:
      hasCodepointRange in interface SdpFinding.SdpFindingLocationOrBuilder
      Returns:
      Whether the codepointRange field is set.
    • getCodepointRange

      public RangeInfo getCodepointRange()
       Unicode character offsets delimiting the finding.
       These are relative to the finding's containing element.
       Provided when the content is text.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2;
      Specified by:
      getCodepointRange in interface SdpFinding.SdpFindingLocationOrBuilder
      Returns:
      The codepointRange.
    • setCodepointRange

      public SdpFinding.SdpFindingLocation.Builder setCodepointRange(RangeInfo value)
       Unicode character offsets delimiting the finding.
       These are relative to the finding's containing element.
       Provided when the content is text.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2;
    • setCodepointRange

      public SdpFinding.SdpFindingLocation.Builder setCodepointRange(RangeInfo.Builder builderForValue)
       Unicode character offsets delimiting the finding.
       These are relative to the finding's containing element.
       Provided when the content is text.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2;
    • mergeCodepointRange

      public SdpFinding.SdpFindingLocation.Builder mergeCodepointRange(RangeInfo value)
       Unicode character offsets delimiting the finding.
       These are relative to the finding's containing element.
       Provided when the content is text.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2;
    • clearCodepointRange

      public SdpFinding.SdpFindingLocation.Builder clearCodepointRange()
       Unicode character offsets delimiting the finding.
       These are relative to the finding's containing element.
       Provided when the content is text.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2;
    • getCodepointRangeBuilder

      public RangeInfo.Builder getCodepointRangeBuilder()
       Unicode character offsets delimiting the finding.
       These are relative to the finding's containing element.
       Provided when the content is text.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2;
    • getCodepointRangeOrBuilder

      public RangeInfoOrBuilder getCodepointRangeOrBuilder()
       Unicode character offsets delimiting the finding.
       These are relative to the finding's containing element.
       Provided when the content is text.
       Note: Omitted if content is an image.
       
      .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2;
      Specified by:
      getCodepointRangeOrBuilder in interface SdpFinding.SdpFindingLocationOrBuilder