Class DataProfilePubSubMessage.Builder

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

public static final class DataProfilePubSubMessage.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataProfilePubSubMessage.Builder> implements DataProfilePubSubMessageOrBuilder
 Pub/Sub topic message for a DataProfileAction.PubSubNotification event.
 To receive a message of protocol buffer schema type, convert the message data
 to an object of this proto class.
 
Protobuf type google.privacy.dlp.v2.DataProfilePubSubMessage
  • 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<DataProfilePubSubMessage.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<DataProfilePubSubMessage.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<DataProfilePubSubMessage.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DataProfilePubSubMessage.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<DataProfilePubSubMessage.Builder>
      Throws:
      IOException
    • hasProfile

      public boolean hasProfile()
       If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `full_resource` will be populated.
       
      .google.privacy.dlp.v2.TableDataProfile profile = 1;
      Specified by:
      hasProfile in interface DataProfilePubSubMessageOrBuilder
      Returns:
      Whether the profile field is set.
    • getProfile

      public TableDataProfile getProfile()
       If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `full_resource` will be populated.
       
      .google.privacy.dlp.v2.TableDataProfile profile = 1;
      Specified by:
      getProfile in interface DataProfilePubSubMessageOrBuilder
      Returns:
      The profile.
    • setProfile

       If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `full_resource` will be populated.
       
      .google.privacy.dlp.v2.TableDataProfile profile = 1;
    • setProfile

      public DataProfilePubSubMessage.Builder setProfile(TableDataProfile.Builder builderForValue)
       If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `full_resource` will be populated.
       
      .google.privacy.dlp.v2.TableDataProfile profile = 1;
    • mergeProfile

       If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `full_resource` will be populated.
       
      .google.privacy.dlp.v2.TableDataProfile profile = 1;
    • clearProfile

      public DataProfilePubSubMessage.Builder clearProfile()
       If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `full_resource` will be populated.
       
      .google.privacy.dlp.v2.TableDataProfile profile = 1;
    • getProfileBuilder

      public TableDataProfile.Builder getProfileBuilder()
       If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `full_resource` will be populated.
       
      .google.privacy.dlp.v2.TableDataProfile profile = 1;
    • getProfileOrBuilder

      public TableDataProfileOrBuilder getProfileOrBuilder()
       If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `full_resource` will be populated.
       
      .google.privacy.dlp.v2.TableDataProfile profile = 1;
      Specified by:
      getProfileOrBuilder in interface DataProfilePubSubMessageOrBuilder
    • hasFileStoreProfile

      public boolean hasFileStoreProfile()
       If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `file_store_path` will be populated.
       
      .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3;
      Specified by:
      hasFileStoreProfile in interface DataProfilePubSubMessageOrBuilder
      Returns:
      Whether the fileStoreProfile field is set.
    • getFileStoreProfile

      public FileStoreDataProfile getFileStoreProfile()
       If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `file_store_path` will be populated.
       
      .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3;
      Specified by:
      getFileStoreProfile in interface DataProfilePubSubMessageOrBuilder
      Returns:
      The fileStoreProfile.
    • setFileStoreProfile

      public DataProfilePubSubMessage.Builder setFileStoreProfile(FileStoreDataProfile value)
       If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `file_store_path` will be populated.
       
      .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3;
    • setFileStoreProfile

      public DataProfilePubSubMessage.Builder setFileStoreProfile(FileStoreDataProfile.Builder builderForValue)
       If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `file_store_path` will be populated.
       
      .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3;
    • mergeFileStoreProfile

      public DataProfilePubSubMessage.Builder mergeFileStoreProfile(FileStoreDataProfile value)
       If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `file_store_path` will be populated.
       
      .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3;
    • clearFileStoreProfile

      public DataProfilePubSubMessage.Builder clearFileStoreProfile()
       If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `file_store_path` will be populated.
       
      .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3;
    • getFileStoreProfileBuilder

      public FileStoreDataProfile.Builder getFileStoreProfileBuilder()
       If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `file_store_path` will be populated.
       
      .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3;
    • getFileStoreProfileOrBuilder

      public FileStoreDataProfileOrBuilder getFileStoreProfileOrBuilder()
       If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
       Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
       `file_store_path` will be populated.
       
      .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3;
      Specified by:
      getFileStoreProfileOrBuilder in interface DataProfilePubSubMessageOrBuilder
    • getEventValue

      public int getEventValue()
       The event that caused the Pub/Sub message to be sent.
       
      .google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
      Specified by:
      getEventValue in interface DataProfilePubSubMessageOrBuilder
      Returns:
      The enum numeric value on the wire for event.
    • setEventValue

      public DataProfilePubSubMessage.Builder setEventValue(int value)
       The event that caused the Pub/Sub message to be sent.
       
      .google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
      Parameters:
      value - The enum numeric value on the wire for event to set.
      Returns:
      This builder for chaining.
    • getEvent

      public DataProfileAction.EventType getEvent()
       The event that caused the Pub/Sub message to be sent.
       
      .google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
      Specified by:
      getEvent in interface DataProfilePubSubMessageOrBuilder
      Returns:
      The event.
    • setEvent

       The event that caused the Pub/Sub message to be sent.
       
      .google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
      Parameters:
      value - The event to set.
      Returns:
      This builder for chaining.
    • clearEvent

      public DataProfilePubSubMessage.Builder clearEvent()
       The event that caused the Pub/Sub message to be sent.
       
      .google.privacy.dlp.v2.DataProfileAction.EventType event = 2;
      Returns:
      This builder for chaining.