Class DiscoveryConfig.OrgConfig.Builder

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

public static final class DiscoveryConfig.OrgConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<DiscoveryConfig.OrgConfig.Builder> implements DiscoveryConfig.OrgConfigOrBuilder
 Project and scan location information. Only set when the parent is an org.
 
Protobuf type google.privacy.dlp.v2.DiscoveryConfig.OrgConfig
  • 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<DiscoveryConfig.OrgConfig.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<DiscoveryConfig.OrgConfig.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<DiscoveryConfig.OrgConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DiscoveryConfig.OrgConfig.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<DiscoveryConfig.OrgConfig.Builder>
      Throws:
      IOException
    • hasLocation

      public boolean hasLocation()
       The data to scan: folder, org, or project
       
      .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;
      Specified by:
      hasLocation in interface DiscoveryConfig.OrgConfigOrBuilder
      Returns:
      Whether the location field is set.
    • getLocation

      public DiscoveryStartingLocation getLocation()
       The data to scan: folder, org, or project
       
      .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;
      Specified by:
      getLocation in interface DiscoveryConfig.OrgConfigOrBuilder
      Returns:
      The location.
    • setLocation

       The data to scan: folder, org, or project
       
      .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;
    • setLocation

       The data to scan: folder, org, or project
       
      .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;
    • mergeLocation

       The data to scan: folder, org, or project
       
      .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;
    • clearLocation

      public DiscoveryConfig.OrgConfig.Builder clearLocation()
       The data to scan: folder, org, or project
       
      .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;
    • getLocationBuilder

      public DiscoveryStartingLocation.Builder getLocationBuilder()
       The data to scan: folder, org, or project
       
      .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;
    • getLocationOrBuilder

      public DiscoveryStartingLocationOrBuilder getLocationOrBuilder()
       The data to scan: folder, org, or project
       
      .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1;
      Specified by:
      getLocationOrBuilder in interface DiscoveryConfig.OrgConfigOrBuilder
    • getProjectId

      public String getProjectId()
       The project that will run the scan. The DLP service
       account that exists within this project must have access to all resources
       that are profiled, and the DLP API must be enabled.
       
      string project_id = 2;
      Specified by:
      getProjectId in interface DiscoveryConfig.OrgConfigOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       The project that will run the scan. The DLP service
       account that exists within this project must have access to all resources
       that are profiled, and the DLP API must be enabled.
       
      string project_id = 2;
      Specified by:
      getProjectIdBytes in interface DiscoveryConfig.OrgConfigOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public DiscoveryConfig.OrgConfig.Builder setProjectId(String value)
       The project that will run the scan. The DLP service
       account that exists within this project must have access to all resources
       that are profiled, and the DLP API must be enabled.
       
      string project_id = 2;
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public DiscoveryConfig.OrgConfig.Builder clearProjectId()
       The project that will run the scan. The DLP service
       account that exists within this project must have access to all resources
       that are profiled, and the DLP API must be enabled.
       
      string project_id = 2;
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public DiscoveryConfig.OrgConfig.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       The project that will run the scan. The DLP service
       account that exists within this project must have access to all resources
       that are profiled, and the DLP API must be enabled.
       
      string project_id = 2;
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.