Class RedactImageRequest.ImageRedactionConfig.Builder

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

public static final class RedactImageRequest.ImageRedactionConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<RedactImageRequest.ImageRedactionConfig.Builder> implements RedactImageRequest.ImageRedactionConfigOrBuilder
 Configuration for determining how redaction of images should occur.
 
Protobuf type google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig
  • 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<RedactImageRequest.ImageRedactionConfig.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<RedactImageRequest.ImageRedactionConfig.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<RedactImageRequest.ImageRedactionConfig.Builder>
    • getDefaultInstanceForType

      public RedactImageRequest.ImageRedactionConfig 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

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

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

      public RedactImageRequest.ImageRedactionConfig.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<RedactImageRequest.ImageRedactionConfig.Builder>
      Throws:
      IOException
    • getTargetCase

      Specified by:
      getTargetCase in interface RedactImageRequest.ImageRedactionConfigOrBuilder
    • clearTarget

    • hasInfoType

      public boolean hasInfoType()
       Only one per info_type should be provided per request. If not
       specified, and redact_all_text is false, the DLP API will redact all
       text that it matches against all info_types that are found, but not
       specified in another ImageRedactionConfig.
       
      .google.privacy.dlp.v2.InfoType info_type = 1;
      Specified by:
      hasInfoType in interface RedactImageRequest.ImageRedactionConfigOrBuilder
      Returns:
      Whether the infoType field is set.
    • getInfoType

      public InfoType getInfoType()
       Only one per info_type should be provided per request. If not
       specified, and redact_all_text is false, the DLP API will redact all
       text that it matches against all info_types that are found, but not
       specified in another ImageRedactionConfig.
       
      .google.privacy.dlp.v2.InfoType info_type = 1;
      Specified by:
      getInfoType in interface RedactImageRequest.ImageRedactionConfigOrBuilder
      Returns:
      The infoType.
    • setInfoType

       Only one per info_type should be provided per request. If not
       specified, and redact_all_text is false, the DLP API will redact all
       text that it matches against all info_types that are found, but not
       specified in another ImageRedactionConfig.
       
      .google.privacy.dlp.v2.InfoType info_type = 1;
    • setInfoType

       Only one per info_type should be provided per request. If not
       specified, and redact_all_text is false, the DLP API will redact all
       text that it matches against all info_types that are found, but not
       specified in another ImageRedactionConfig.
       
      .google.privacy.dlp.v2.InfoType info_type = 1;
    • mergeInfoType

       Only one per info_type should be provided per request. If not
       specified, and redact_all_text is false, the DLP API will redact all
       text that it matches against all info_types that are found, but not
       specified in another ImageRedactionConfig.
       
      .google.privacy.dlp.v2.InfoType info_type = 1;
    • clearInfoType

       Only one per info_type should be provided per request. If not
       specified, and redact_all_text is false, the DLP API will redact all
       text that it matches against all info_types that are found, but not
       specified in another ImageRedactionConfig.
       
      .google.privacy.dlp.v2.InfoType info_type = 1;
    • getInfoTypeBuilder

      public InfoType.Builder getInfoTypeBuilder()
       Only one per info_type should be provided per request. If not
       specified, and redact_all_text is false, the DLP API will redact all
       text that it matches against all info_types that are found, but not
       specified in another ImageRedactionConfig.
       
      .google.privacy.dlp.v2.InfoType info_type = 1;
    • getInfoTypeOrBuilder

      public InfoTypeOrBuilder getInfoTypeOrBuilder()
       Only one per info_type should be provided per request. If not
       specified, and redact_all_text is false, the DLP API will redact all
       text that it matches against all info_types that are found, but not
       specified in another ImageRedactionConfig.
       
      .google.privacy.dlp.v2.InfoType info_type = 1;
      Specified by:
      getInfoTypeOrBuilder in interface RedactImageRequest.ImageRedactionConfigOrBuilder
    • hasRedactAllText

      public boolean hasRedactAllText()
       If true, all text found in the image, regardless whether it matches an
       info_type, is redacted. Only one should be provided.
       
      bool redact_all_text = 2;
      Specified by:
      hasRedactAllText in interface RedactImageRequest.ImageRedactionConfigOrBuilder
      Returns:
      Whether the redactAllText field is set.
    • getRedactAllText

      public boolean getRedactAllText()
       If true, all text found in the image, regardless whether it matches an
       info_type, is redacted. Only one should be provided.
       
      bool redact_all_text = 2;
      Specified by:
      getRedactAllText in interface RedactImageRequest.ImageRedactionConfigOrBuilder
      Returns:
      The redactAllText.
    • setRedactAllText

      public RedactImageRequest.ImageRedactionConfig.Builder setRedactAllText(boolean value)
       If true, all text found in the image, regardless whether it matches an
       info_type, is redacted. Only one should be provided.
       
      bool redact_all_text = 2;
      Parameters:
      value - The redactAllText to set.
      Returns:
      This builder for chaining.
    • clearRedactAllText

       If true, all text found in the image, regardless whether it matches an
       info_type, is redacted. Only one should be provided.
       
      bool redact_all_text = 2;
      Returns:
      This builder for chaining.
    • hasRedactionColor

      public boolean hasRedactionColor()
       The color to use when redacting content from an image. If not specified,
       the default is black.
       
      .google.privacy.dlp.v2.Color redaction_color = 3;
      Specified by:
      hasRedactionColor in interface RedactImageRequest.ImageRedactionConfigOrBuilder
      Returns:
      Whether the redactionColor field is set.
    • getRedactionColor

      public Color getRedactionColor()
       The color to use when redacting content from an image. If not specified,
       the default is black.
       
      .google.privacy.dlp.v2.Color redaction_color = 3;
      Specified by:
      getRedactionColor in interface RedactImageRequest.ImageRedactionConfigOrBuilder
      Returns:
      The redactionColor.
    • setRedactionColor

      public RedactImageRequest.ImageRedactionConfig.Builder setRedactionColor(Color value)
       The color to use when redacting content from an image. If not specified,
       the default is black.
       
      .google.privacy.dlp.v2.Color redaction_color = 3;
    • setRedactionColor

      public RedactImageRequest.ImageRedactionConfig.Builder setRedactionColor(Color.Builder builderForValue)
       The color to use when redacting content from an image. If not specified,
       the default is black.
       
      .google.privacy.dlp.v2.Color redaction_color = 3;
    • mergeRedactionColor

      public RedactImageRequest.ImageRedactionConfig.Builder mergeRedactionColor(Color value)
       The color to use when redacting content from an image. If not specified,
       the default is black.
       
      .google.privacy.dlp.v2.Color redaction_color = 3;
    • clearRedactionColor

       The color to use when redacting content from an image. If not specified,
       the default is black.
       
      .google.privacy.dlp.v2.Color redaction_color = 3;
    • getRedactionColorBuilder

      public Color.Builder getRedactionColorBuilder()
       The color to use when redacting content from an image. If not specified,
       the default is black.
       
      .google.privacy.dlp.v2.Color redaction_color = 3;
    • getRedactionColorOrBuilder

      public ColorOrBuilder getRedactionColorOrBuilder()
       The color to use when redacting content from an image. If not specified,
       the default is black.
       
      .google.privacy.dlp.v2.Color redaction_color = 3;
      Specified by:
      getRedactionColorOrBuilder in interface RedactImageRequest.ImageRedactionConfigOrBuilder