Class RedactImageResponse.Builder

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

public static final class RedactImageResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<RedactImageResponse.Builder> implements RedactImageResponseOrBuilder
 Results of redacting an image.
 
Protobuf type google.privacy.dlp.v2.RedactImageResponse
  • 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<RedactImageResponse.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<RedactImageResponse.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<RedactImageResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RedactImageResponse.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<RedactImageResponse.Builder>
      Throws:
      IOException
    • getRedactedImage

      public com.google.protobuf.ByteString getRedactedImage()
       The redacted image. The type will be the same as the original image.
       
      bytes redacted_image = 1;
      Specified by:
      getRedactedImage in interface RedactImageResponseOrBuilder
      Returns:
      The redactedImage.
    • setRedactedImage

      public RedactImageResponse.Builder setRedactedImage(com.google.protobuf.ByteString value)
       The redacted image. The type will be the same as the original image.
       
      bytes redacted_image = 1;
      Parameters:
      value - The redactedImage to set.
      Returns:
      This builder for chaining.
    • clearRedactedImage

      public RedactImageResponse.Builder clearRedactedImage()
       The redacted image. The type will be the same as the original image.
       
      bytes redacted_image = 1;
      Returns:
      This builder for chaining.
    • getExtractedText

      public String getExtractedText()
       If an image was being inspected and the InspectConfig's include_quote was
       set to true, then this field will include all text, if any, that was found
       in the image.
       
      string extracted_text = 2;
      Specified by:
      getExtractedText in interface RedactImageResponseOrBuilder
      Returns:
      The extractedText.
    • getExtractedTextBytes

      public com.google.protobuf.ByteString getExtractedTextBytes()
       If an image was being inspected and the InspectConfig's include_quote was
       set to true, then this field will include all text, if any, that was found
       in the image.
       
      string extracted_text = 2;
      Specified by:
      getExtractedTextBytes in interface RedactImageResponseOrBuilder
      Returns:
      The bytes for extractedText.
    • setExtractedText

      public RedactImageResponse.Builder setExtractedText(String value)
       If an image was being inspected and the InspectConfig's include_quote was
       set to true, then this field will include all text, if any, that was found
       in the image.
       
      string extracted_text = 2;
      Parameters:
      value - The extractedText to set.
      Returns:
      This builder for chaining.
    • clearExtractedText

      public RedactImageResponse.Builder clearExtractedText()
       If an image was being inspected and the InspectConfig's include_quote was
       set to true, then this field will include all text, if any, that was found
       in the image.
       
      string extracted_text = 2;
      Returns:
      This builder for chaining.
    • setExtractedTextBytes

      public RedactImageResponse.Builder setExtractedTextBytes(com.google.protobuf.ByteString value)
       If an image was being inspected and the InspectConfig's include_quote was
       set to true, then this field will include all text, if any, that was found
       in the image.
       
      string extracted_text = 2;
      Parameters:
      value - The bytes for extractedText to set.
      Returns:
      This builder for chaining.
    • hasInspectResult

      public boolean hasInspectResult()
       The findings. Populated when include_findings in the request is true.
       
      .google.privacy.dlp.v2.InspectResult inspect_result = 3;
      Specified by:
      hasInspectResult in interface RedactImageResponseOrBuilder
      Returns:
      Whether the inspectResult field is set.
    • getInspectResult

      public InspectResult getInspectResult()
       The findings. Populated when include_findings in the request is true.
       
      .google.privacy.dlp.v2.InspectResult inspect_result = 3;
      Specified by:
      getInspectResult in interface RedactImageResponseOrBuilder
      Returns:
      The inspectResult.
    • setInspectResult

      public RedactImageResponse.Builder setInspectResult(InspectResult value)
       The findings. Populated when include_findings in the request is true.
       
      .google.privacy.dlp.v2.InspectResult inspect_result = 3;
    • setInspectResult

      public RedactImageResponse.Builder setInspectResult(InspectResult.Builder builderForValue)
       The findings. Populated when include_findings in the request is true.
       
      .google.privacy.dlp.v2.InspectResult inspect_result = 3;
    • mergeInspectResult

      public RedactImageResponse.Builder mergeInspectResult(InspectResult value)
       The findings. Populated when include_findings in the request is true.
       
      .google.privacy.dlp.v2.InspectResult inspect_result = 3;
    • clearInspectResult

      public RedactImageResponse.Builder clearInspectResult()
       The findings. Populated when include_findings in the request is true.
       
      .google.privacy.dlp.v2.InspectResult inspect_result = 3;
    • getInspectResultBuilder

      public InspectResult.Builder getInspectResultBuilder()
       The findings. Populated when include_findings in the request is true.
       
      .google.privacy.dlp.v2.InspectResult inspect_result = 3;
    • getInspectResultOrBuilder

      public InspectResultOrBuilder getInspectResultOrBuilder()
       The findings. Populated when include_findings in the request is true.
       
      .google.privacy.dlp.v2.InspectResult inspect_result = 3;
      Specified by:
      getInspectResultOrBuilder in interface RedactImageResponseOrBuilder