Class Action.PublishToPubSub.Builder

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

public static final class Action.PublishToPubSub.Builder extends com.google.protobuf.GeneratedMessage.Builder<Action.PublishToPubSub.Builder> implements Action.PublishToPubSubOrBuilder
 Publish a message into a given Pub/Sub topic when DlpJob has completed. The
 message contains a single field, `DlpJobName`, which is equal to the
 finished job's
 [`DlpJob.name`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
 Compatible with: Inspect, Risk
 
Protobuf type google.privacy.dlp.v2.Action.PublishToPubSub
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Cloud Pub/Sub topic to send notifications to.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Cloud Pub/Sub topic to send notifications to.
    com.google.protobuf.ByteString
    Cloud Pub/Sub topic to send notifications to.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    Cloud Pub/Sub topic to send notifications to.
    setTopicBytes(com.google.protobuf.ByteString value)
    Cloud Pub/Sub topic to send notifications to.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<Action.PublishToPubSub.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<Action.PublishToPubSub.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<Action.PublishToPubSub.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Action.PublishToPubSub.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<Action.PublishToPubSub.Builder>
      Throws:
      IOException
    • getTopic

      public String getTopic()
       Cloud Pub/Sub topic to send notifications to. The topic must have given
       publishing access rights to the DLP API service account executing
       the long running DlpJob sending the notifications.
       Format is projects/{project}/topics/{topic}.
       
      string topic = 1;
      Specified by:
      getTopic in interface Action.PublishToPubSubOrBuilder
      Returns:
      The topic.
    • getTopicBytes

      public com.google.protobuf.ByteString getTopicBytes()
       Cloud Pub/Sub topic to send notifications to. The topic must have given
       publishing access rights to the DLP API service account executing
       the long running DlpJob sending the notifications.
       Format is projects/{project}/topics/{topic}.
       
      string topic = 1;
      Specified by:
      getTopicBytes in interface Action.PublishToPubSubOrBuilder
      Returns:
      The bytes for topic.
    • setTopic

      public Action.PublishToPubSub.Builder setTopic(String value)
       Cloud Pub/Sub topic to send notifications to. The topic must have given
       publishing access rights to the DLP API service account executing
       the long running DlpJob sending the notifications.
       Format is projects/{project}/topics/{topic}.
       
      string topic = 1;
      Parameters:
      value - The topic to set.
      Returns:
      This builder for chaining.
    • clearTopic

      public Action.PublishToPubSub.Builder clearTopic()
       Cloud Pub/Sub topic to send notifications to. The topic must have given
       publishing access rights to the DLP API service account executing
       the long running DlpJob sending the notifications.
       Format is projects/{project}/topics/{topic}.
       
      string topic = 1;
      Returns:
      This builder for chaining.
    • setTopicBytes

      public Action.PublishToPubSub.Builder setTopicBytes(com.google.protobuf.ByteString value)
       Cloud Pub/Sub topic to send notifications to. The topic must have given
       publishing access rights to the DLP API service account executing
       the long running DlpJob sending the notifications.
       Format is projects/{project}/topics/{topic}.
       
      string topic = 1;
      Parameters:
      value - The bytes for topic to set.
      Returns:
      This builder for chaining.