Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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
      • setRepeatedField

        public DataProfilePubSubMessage.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
      • addRepeatedField

        public DataProfilePubSubMessage.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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

        public DataProfilePubSubMessage.Builder setProfile​(TableDataProfile value)
         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

        public DataProfilePubSubMessage.Builder mergeProfile​(TableDataProfile value)
         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;
      • 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.
      • 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.
      • setUnknownFields

        public final DataProfilePubSubMessage.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>
      • mergeUnknownFields

        public final DataProfilePubSubMessage.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DataProfilePubSubMessage.Builder>