
                            S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSKJ
r
  SS	KJr  \R                  " \R                  R                  \R                  R                   5       " S
 S\R"                  5      5       rg)z!The gcloud pubsub emulator group.    )absolute_import)division)unicode_literals)base)flags)pubsub_util)util)javac                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	PubSub   a  Manage your local pubsub emulator.

This set of commands allows you to start and use a local Pub/Sub emulator to
produce a local emulation of your production Google Pub/Sub environment. In
addition to having Java JRE (of version 7 or higher) installed and an
application built with Google Cloud Client libraries, you must have your
emulator configured (have it started with environment variables set) for
it to run successfully. The underlying commands help to set up this
configuration.

To stop the emulator, press Ctrl+C.

For a more comprehensive overview of Pub/Sub, see
https://cloud.google.com/pubsub/docs/overview. For Pub/Sub emulator specific
documentation, see https://cloud.google.com/pubsub/docs/emulator
EXAMPLESa            To start a local pubsub emulator with the default directory for
          configuration data, run:

            $ {command} start

          After starting the emulator, if your application and
          emulator run on the same machine, set environment variables
          automatically by running:

            $ {command} env-init

          If you're running your emulator on a different machine, run the above
          command and use its resulting output to set the environment variables
          on the machine that runs your application. This might look like:

            $ export PUBSUB_EMULATOR_HOST=localhost:8538
            $ export PUBSUB_PROJECT_ID=my-project-id

          Your emulator is now ready for use.
          c                 N    [         R                  " U [        R                  5        g )N)r   AddDataDirFlagr   PUBSUB)parsers    (lib/surface/emulators/pubsub/__init__.pyArgsPubSub.ArgsG   s    	!3!34    c                     [         R                  " [        R                  5        [        R
                  " S[        R                  5        UR                  (       d  [        R                  " 5       Ul        g g )Nzpubsub-emulator)r
   RequireJavaInstalledr   PUBSUB_TITLEr	   EnsureComponentIsInstalleddata_dir
GetDataDir)selfcontextargss      r   FilterPubSub.FilterL   sI    k667##$5{7O7OP==!,,.dm r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r    __static_attributes__r"   r   r   r   r      s1    $  -0 5 5/r   r   N)r'   
__future__r   r   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.emulatorsr   r   r	   googlecloudsdk.command_lib.utilr
   ReleaseTracksReleaseTrackALPHABETAGroupr   r"   r   r   <module>r4      sg    ( &  ' ( 6 < 5 0 D%%++T->->-C-CD4/TZZ 4/ E4/r   