Class InspectContentRequest.Builder

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

public static final class InspectContentRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<InspectContentRequest.Builder> implements InspectContentRequestOrBuilder
 Request to search for potentially sensitive info in a ContentItem.
 
Protobuf type google.privacy.dlp.v2.InspectContentRequest
  • 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<InspectContentRequest.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<InspectContentRequest.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<InspectContentRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public InspectContentRequest.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<InspectContentRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Parent resource name.
      
       The format of this value varies depending on whether you have [specified a
       processing
       location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
      
       + Projects scope, location specified:
       `projects/{project_id}/locations/{location_id}`
       + Projects scope, no location specified (defaults to global):
       `projects/{project_id}`
      
       The following example `parent` string specifies a parent project with the
       identifier `example-project`, and specifies the `europe-west3` location
       for processing data:
      
       parent=projects/example-project/locations/europe-west3
       
      string parent = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface InspectContentRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Parent resource name.
      
       The format of this value varies depending on whether you have [specified a
       processing
       location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
      
       + Projects scope, location specified:
       `projects/{project_id}/locations/{location_id}`
       + Projects scope, no location specified (defaults to global):
       `projects/{project_id}`
      
       The following example `parent` string specifies a parent project with the
       identifier `example-project`, and specifies the `europe-west3` location
       for processing data:
      
       parent=projects/example-project/locations/europe-west3
       
      string parent = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface InspectContentRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public InspectContentRequest.Builder setParent(String value)
       Parent resource name.
      
       The format of this value varies depending on whether you have [specified a
       processing
       location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
      
       + Projects scope, location specified:
       `projects/{project_id}/locations/{location_id}`
       + Projects scope, no location specified (defaults to global):
       `projects/{project_id}`
      
       The following example `parent` string specifies a parent project with the
       identifier `example-project`, and specifies the `europe-west3` location
       for processing data:
      
       parent=projects/example-project/locations/europe-west3
       
      string parent = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public InspectContentRequest.Builder clearParent()
       Parent resource name.
      
       The format of this value varies depending on whether you have [specified a
       processing
       location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
      
       + Projects scope, location specified:
       `projects/{project_id}/locations/{location_id}`
       + Projects scope, no location specified (defaults to global):
       `projects/{project_id}`
      
       The following example `parent` string specifies a parent project with the
       identifier `example-project`, and specifies the `europe-west3` location
       for processing data:
      
       parent=projects/example-project/locations/europe-west3
       
      string parent = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public InspectContentRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Parent resource name.
      
       The format of this value varies depending on whether you have [specified a
       processing
       location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
      
       + Projects scope, location specified:
       `projects/{project_id}/locations/{location_id}`
       + Projects scope, no location specified (defaults to global):
       `projects/{project_id}`
      
       The following example `parent` string specifies a parent project with the
       identifier `example-project`, and specifies the `europe-west3` location
       for processing data:
      
       parent=projects/example-project/locations/europe-west3
       
      string parent = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasInspectConfig

      public boolean hasInspectConfig()
       Configuration for the inspector. What specified here will override
       the template referenced by the inspect_template_name argument.
       
      .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
      Specified by:
      hasInspectConfig in interface InspectContentRequestOrBuilder
      Returns:
      Whether the inspectConfig field is set.
    • getInspectConfig

      public InspectConfig getInspectConfig()
       Configuration for the inspector. What specified here will override
       the template referenced by the inspect_template_name argument.
       
      .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
      Specified by:
      getInspectConfig in interface InspectContentRequestOrBuilder
      Returns:
      The inspectConfig.
    • setInspectConfig

      public InspectContentRequest.Builder setInspectConfig(InspectConfig value)
       Configuration for the inspector. What specified here will override
       the template referenced by the inspect_template_name argument.
       
      .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
    • setInspectConfig

      public InspectContentRequest.Builder setInspectConfig(InspectConfig.Builder builderForValue)
       Configuration for the inspector. What specified here will override
       the template referenced by the inspect_template_name argument.
       
      .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
    • mergeInspectConfig

      public InspectContentRequest.Builder mergeInspectConfig(InspectConfig value)
       Configuration for the inspector. What specified here will override
       the template referenced by the inspect_template_name argument.
       
      .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
    • clearInspectConfig

      public InspectContentRequest.Builder clearInspectConfig()
       Configuration for the inspector. What specified here will override
       the template referenced by the inspect_template_name argument.
       
      .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
    • getInspectConfigBuilder

      public InspectConfig.Builder getInspectConfigBuilder()
       Configuration for the inspector. What specified here will override
       the template referenced by the inspect_template_name argument.
       
      .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
    • getInspectConfigOrBuilder

      public InspectConfigOrBuilder getInspectConfigOrBuilder()
       Configuration for the inspector. What specified here will override
       the template referenced by the inspect_template_name argument.
       
      .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
      Specified by:
      getInspectConfigOrBuilder in interface InspectContentRequestOrBuilder
    • hasItem

      public boolean hasItem()
       The item to inspect.
       
      .google.privacy.dlp.v2.ContentItem item = 3;
      Specified by:
      hasItem in interface InspectContentRequestOrBuilder
      Returns:
      Whether the item field is set.
    • getItem

      public ContentItem getItem()
       The item to inspect.
       
      .google.privacy.dlp.v2.ContentItem item = 3;
      Specified by:
      getItem in interface InspectContentRequestOrBuilder
      Returns:
      The item.
    • setItem

       The item to inspect.
       
      .google.privacy.dlp.v2.ContentItem item = 3;
    • setItem

      public InspectContentRequest.Builder setItem(ContentItem.Builder builderForValue)
       The item to inspect.
       
      .google.privacy.dlp.v2.ContentItem item = 3;
    • mergeItem

      public InspectContentRequest.Builder mergeItem(ContentItem value)
       The item to inspect.
       
      .google.privacy.dlp.v2.ContentItem item = 3;
    • clearItem

      public InspectContentRequest.Builder clearItem()
       The item to inspect.
       
      .google.privacy.dlp.v2.ContentItem item = 3;
    • getItemBuilder

      public ContentItem.Builder getItemBuilder()
       The item to inspect.
       
      .google.privacy.dlp.v2.ContentItem item = 3;
    • getItemOrBuilder

      public ContentItemOrBuilder getItemOrBuilder()
       The item to inspect.
       
      .google.privacy.dlp.v2.ContentItem item = 3;
      Specified by:
      getItemOrBuilder in interface InspectContentRequestOrBuilder
    • getInspectTemplateName

      public String getInspectTemplateName()
       Template to use. Any configuration directly specified in
       inspect_config will override those set in the template. Singular fields
       that are set in this request will replace their corresponding fields in the
       template. Repeated fields are appended. Singular sub-messages and groups
       are recursively merged.
       
      string inspect_template_name = 4;
      Specified by:
      getInspectTemplateName in interface InspectContentRequestOrBuilder
      Returns:
      The inspectTemplateName.
    • getInspectTemplateNameBytes

      public com.google.protobuf.ByteString getInspectTemplateNameBytes()
       Template to use. Any configuration directly specified in
       inspect_config will override those set in the template. Singular fields
       that are set in this request will replace their corresponding fields in the
       template. Repeated fields are appended. Singular sub-messages and groups
       are recursively merged.
       
      string inspect_template_name = 4;
      Specified by:
      getInspectTemplateNameBytes in interface InspectContentRequestOrBuilder
      Returns:
      The bytes for inspectTemplateName.
    • setInspectTemplateName

      public InspectContentRequest.Builder setInspectTemplateName(String value)
       Template to use. Any configuration directly specified in
       inspect_config will override those set in the template. Singular fields
       that are set in this request will replace their corresponding fields in the
       template. Repeated fields are appended. Singular sub-messages and groups
       are recursively merged.
       
      string inspect_template_name = 4;
      Parameters:
      value - The inspectTemplateName to set.
      Returns:
      This builder for chaining.
    • clearInspectTemplateName

      public InspectContentRequest.Builder clearInspectTemplateName()
       Template to use. Any configuration directly specified in
       inspect_config will override those set in the template. Singular fields
       that are set in this request will replace their corresponding fields in the
       template. Repeated fields are appended. Singular sub-messages and groups
       are recursively merged.
       
      string inspect_template_name = 4;
      Returns:
      This builder for chaining.
    • setInspectTemplateNameBytes

      public InspectContentRequest.Builder setInspectTemplateNameBytes(com.google.protobuf.ByteString value)
       Template to use. Any configuration directly specified in
       inspect_config will override those set in the template. Singular fields
       that are set in this request will replace their corresponding fields in the
       template. Repeated fields are appended. Singular sub-messages and groups
       are recursively merged.
       
      string inspect_template_name = 4;
      Parameters:
      value - The bytes for inspectTemplateName to set.
      Returns:
      This builder for chaining.
    • getLocationId

      public String getLocationId()
       Deprecated. This field has no effect.
       
      string location_id = 5;
      Specified by:
      getLocationId in interface InspectContentRequestOrBuilder
      Returns:
      The locationId.
    • getLocationIdBytes

      public com.google.protobuf.ByteString getLocationIdBytes()
       Deprecated. This field has no effect.
       
      string location_id = 5;
      Specified by:
      getLocationIdBytes in interface InspectContentRequestOrBuilder
      Returns:
      The bytes for locationId.
    • setLocationId

      public InspectContentRequest.Builder setLocationId(String value)
       Deprecated. This field has no effect.
       
      string location_id = 5;
      Parameters:
      value - The locationId to set.
      Returns:
      This builder for chaining.
    • clearLocationId

      public InspectContentRequest.Builder clearLocationId()
       Deprecated. This field has no effect.
       
      string location_id = 5;
      Returns:
      This builder for chaining.
    • setLocationIdBytes

      public InspectContentRequest.Builder setLocationIdBytes(com.google.protobuf.ByteString value)
       Deprecated. This field has no effect.
       
      string location_id = 5;
      Parameters:
      value - The bytes for locationId to set.
      Returns:
      This builder for chaining.