public com.google.privacy.dlp.v2.Action.PublishToPubSub getPubSub() {
    if (actionCase_ == 2) {
      return (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_;
    }
    return com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance();
  }
public com . google . privacy . dlp . v2 . Action . PublishToPubSub getPubSub ( ) { if ( actionCase_ == 2 ) { return ( com . google . privacy . dlp . v2 . Action . PublishToPubSub ) action_ ; } return com . google . privacy . dlp . v2 . Action . PublishToPubSub . getDefaultInstance ( ) ; }
<pre>
Publish a notification to a pubsub topic.
</pre>

<code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code>