Class ContentItem.Builder

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

public static final class ContentItem.Builder extends com.google.protobuf.GeneratedMessage.Builder<ContentItem.Builder> implements ContentItemOrBuilder
 Type of content to inspect.
 
Protobuf type google.privacy.dlp.v2.ContentItem
  • 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<ContentItem.Builder>
    • clear

      public ContentItem.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<ContentItem.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<ContentItem.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ContentItem.Builder mergeFrom(ContentItem other)
    • isInitialized

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

      public ContentItem.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<ContentItem.Builder>
      Throws:
      IOException
    • getDataItemCase

      public ContentItem.DataItemCase getDataItemCase()
      Specified by:
      getDataItemCase in interface ContentItemOrBuilder
    • clearDataItem

      public ContentItem.Builder clearDataItem()
    • hasValue

      public boolean hasValue()
       String data to inspect or redact.
       
      string value = 3;
      Specified by:
      hasValue in interface ContentItemOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public String getValue()
       String data to inspect or redact.
       
      string value = 3;
      Specified by:
      getValue in interface ContentItemOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       String data to inspect or redact.
       
      string value = 3;
      Specified by:
      getValueBytes in interface ContentItemOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public ContentItem.Builder setValue(String value)
       String data to inspect or redact.
       
      string value = 3;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public ContentItem.Builder clearValue()
       String data to inspect or redact.
       
      string value = 3;
      Returns:
      This builder for chaining.
    • setValueBytes

      public ContentItem.Builder setValueBytes(com.google.protobuf.ByteString value)
       String data to inspect or redact.
       
      string value = 3;
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.
    • hasTable

      public boolean hasTable()
       Structured content for inspection. See
       https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
       to learn more.
       
      .google.privacy.dlp.v2.Table table = 4;
      Specified by:
      hasTable in interface ContentItemOrBuilder
      Returns:
      Whether the table field is set.
    • getTable

      public Table getTable()
       Structured content for inspection. See
       https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
       to learn more.
       
      .google.privacy.dlp.v2.Table table = 4;
      Specified by:
      getTable in interface ContentItemOrBuilder
      Returns:
      The table.
    • setTable

      public ContentItem.Builder setTable(Table value)
       Structured content for inspection. See
       https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
       to learn more.
       
      .google.privacy.dlp.v2.Table table = 4;
    • setTable

      public ContentItem.Builder setTable(Table.Builder builderForValue)
       Structured content for inspection. See
       https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
       to learn more.
       
      .google.privacy.dlp.v2.Table table = 4;
    • mergeTable

      public ContentItem.Builder mergeTable(Table value)
       Structured content for inspection. See
       https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
       to learn more.
       
      .google.privacy.dlp.v2.Table table = 4;
    • clearTable

      public ContentItem.Builder clearTable()
       Structured content for inspection. See
       https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
       to learn more.
       
      .google.privacy.dlp.v2.Table table = 4;
    • getTableBuilder

      public Table.Builder getTableBuilder()
       Structured content for inspection. See
       https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
       to learn more.
       
      .google.privacy.dlp.v2.Table table = 4;
    • getTableOrBuilder

      public TableOrBuilder getTableOrBuilder()
       Structured content for inspection. See
       https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
       to learn more.
       
      .google.privacy.dlp.v2.Table table = 4;
      Specified by:
      getTableOrBuilder in interface ContentItemOrBuilder
    • hasByteItem

      public boolean hasByteItem()
       Content data to inspect or redact. Replaces `type` and `data`.
       
      .google.privacy.dlp.v2.ByteContentItem byte_item = 5;
      Specified by:
      hasByteItem in interface ContentItemOrBuilder
      Returns:
      Whether the byteItem field is set.
    • getByteItem

      public ByteContentItem getByteItem()
       Content data to inspect or redact. Replaces `type` and `data`.
       
      .google.privacy.dlp.v2.ByteContentItem byte_item = 5;
      Specified by:
      getByteItem in interface ContentItemOrBuilder
      Returns:
      The byteItem.
    • setByteItem

      public ContentItem.Builder setByteItem(ByteContentItem value)
       Content data to inspect or redact. Replaces `type` and `data`.
       
      .google.privacy.dlp.v2.ByteContentItem byte_item = 5;
    • setByteItem

      public ContentItem.Builder setByteItem(ByteContentItem.Builder builderForValue)
       Content data to inspect or redact. Replaces `type` and `data`.
       
      .google.privacy.dlp.v2.ByteContentItem byte_item = 5;
    • mergeByteItem

      public ContentItem.Builder mergeByteItem(ByteContentItem value)
       Content data to inspect or redact. Replaces `type` and `data`.
       
      .google.privacy.dlp.v2.ByteContentItem byte_item = 5;
    • clearByteItem

      public ContentItem.Builder clearByteItem()
       Content data to inspect or redact. Replaces `type` and `data`.
       
      .google.privacy.dlp.v2.ByteContentItem byte_item = 5;
    • getByteItemBuilder

      public ByteContentItem.Builder getByteItemBuilder()
       Content data to inspect or redact. Replaces `type` and `data`.
       
      .google.privacy.dlp.v2.ByteContentItem byte_item = 5;
    • getByteItemOrBuilder

      public ByteContentItemOrBuilder getByteItemOrBuilder()
       Content data to inspect or redact. Replaces `type` and `data`.
       
      .google.privacy.dlp.v2.ByteContentItem byte_item = 5;
      Specified by:
      getByteItemOrBuilder in interface ContentItemOrBuilder
    • hasContentMetadata

      public boolean hasContentMetadata()
       User provided metadata for the content.
       
      .google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
      Specified by:
      hasContentMetadata in interface ContentItemOrBuilder
      Returns:
      Whether the contentMetadata field is set.
    • getContentMetadata

      public ContentMetadata getContentMetadata()
       User provided metadata for the content.
       
      .google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
      Specified by:
      getContentMetadata in interface ContentItemOrBuilder
      Returns:
      The contentMetadata.
    • setContentMetadata

      public ContentItem.Builder setContentMetadata(ContentMetadata value)
       User provided metadata for the content.
       
      .google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
    • setContentMetadata

      public ContentItem.Builder setContentMetadata(ContentMetadata.Builder builderForValue)
       User provided metadata for the content.
       
      .google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
    • mergeContentMetadata

      public ContentItem.Builder mergeContentMetadata(ContentMetadata value)
       User provided metadata for the content.
       
      .google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
    • clearContentMetadata

      public ContentItem.Builder clearContentMetadata()
       User provided metadata for the content.
       
      .google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
    • getContentMetadataBuilder

      public ContentMetadata.Builder getContentMetadataBuilder()
       User provided metadata for the content.
       
      .google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
    • getContentMetadataOrBuilder

      public ContentMetadataOrBuilder getContentMetadataOrBuilder()
       User provided metadata for the content.
       
      .google.privacy.dlp.v2.ContentMetadata content_metadata = 6;
      Specified by:
      getContentMetadataOrBuilder in interface ContentItemOrBuilder