# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: auth.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()




DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nauth.proto\x12\x04\x61uth\"\x0f\n\r_LoginRequest\"\xfc\x02\n\x0e_LoginResponse\x12<\n\x0e\x64irect_browser\x18\x01 \x01(\x0b\x32\".auth._LoginResponse.DirectBrowserH\x00\x12\x32\n\tlogged_in\x18\x02 \x01(\x0b\x32\x1d.auth._LoginResponse.LoggedInH\x00\x12/\n\x07message\x18\x03 \x01(\x0b\x32\x1c.auth._LoginResponse.MessageH\x00\x12+\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x1a.auth._LoginResponse.ErrorH\x00\x1a<\n\x08LoggedIn\x12\x15\n\rsession_token\x18\x01 \x01(\t\x12\x19\n\x11valid_for_seconds\x18\x02 \x01(\r\x1a\x1c\n\x05\x45rror\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x1a\x1c\n\rDirectBrowser\x12\x0b\n\x03url\x18\x01 \x01(\t\x1a\x17\n\x07Message\x12\x0c\n\x04text\x18\x01 \x01(\tB\x07\n\x05state\"\xa4\x08\n\x18_GenerateApiTokenRequest\x12\x35\n\x05never\x18\x01 \x01(\x0b\x32$.auth._GenerateApiTokenRequest.NeverH\x00\x12\x39\n\x07\x65xpires\x18\x02 \x01(\x0b\x32&.auth._GenerateApiTokenRequest.ExpiresH\x00\x12\x12\n\nauth_token\x18\x03 \x01(\t\x12?\n\x0bpermissions\x18\x04 \x01(\x0b\x32*.auth._GenerateApiTokenRequest.Permissions\x1a\x07\n\x05Never\x1a$\n\x07\x45xpires\x12\x19\n\x11valid_for_seconds\x18\x01 \x01(\r\x1a\xa8\x01\n\x0bPermissions\x12I\n\nsuper_user\x18\x01 \x01(\x0e\x32\x33.auth._GenerateApiTokenRequest.SuperUserPermissionsH\x00\x12\x46\n\x08\x65xplicit\x18\x02 \x01(\x0b\x32\x32.auth._GenerateApiTokenRequest.ExplicitPermissionsH\x00\x42\x06\n\x04kind\x1aZ\n\x13\x45xplicitPermissions\x12\x43\n\x0bpermissions\x18\x01 \x03(\x0b\x32..auth._GenerateApiTokenRequest.PermissionsType\x1a\xed\x02\n\x0fPermissionsType\x12\\\n\x11\x63\x61\x63he_permissions\x18\x01 \x01(\x0b\x32?.auth._GenerateApiTokenRequest.PermissionsType.CachePermissionsH\x00\x12\\\n\x11topic_permissions\x18\x02 \x01(\x0b\x32?.auth._GenerateApiTokenRequest.PermissionsType.TopicPermissionsH\x00\x1aJ\n\x10\x43\x61\x63hePermissions\x12\x36\n\x04role\x18\x01 \x01(\x0e\x32(.auth._GenerateApiTokenRequest.CacheRole\x1aJ\n\x10TopicPermissions\x12\x36\n\x04role\x18\x01 \x01(\x0e\x32(.auth._GenerateApiTokenRequest.TopicRoleB\x06\n\x04kind\"4\n\tCacheRole\x12\x13\n\x0f\x43\x61\x63hePermitNone\x10\x00\x12\x12\n\x0e\x43\x61\x63heReadWrite\x10\x01\"4\n\tTopicRole\x12\x13\n\x0fTopicPermitNone\x10\x00\x12\x12\n\x0eTopicReadWrite\x10\x01\"%\n\x14SuperUserPermissions\x12\r\n\tSuperUser\x10\x00\x42\x08\n\x06\x65xpiry\"j\n\x19_GenerateApiTokenResponse\x12\x0f\n\x07\x61pi_key\x18\x01 \x01(\t\x12\x15\n\rrefresh_token\x18\x02 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x03 \x01(\t\x12\x13\n\x0bvalid_until\x18\x04 \x01(\x04\"A\n\x17_RefreshApiTokenRequest\x12\x0f\n\x07\x61pi_key\x18\x01 \x01(\t\x12\x15\n\rrefresh_token\x18\x02 \x01(\t\"i\n\x18_RefreshApiTokenResponse\x12\x0f\n\x07\x61pi_key\x18\x01 \x01(\t\x12\x15\n\rrefresh_token\x18\x02 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x03 \x01(\t\x12\x13\n\x0bvalid_until\x18\x04 \x01(\x04\x32\xe9\x01\n\x04\x41uth\x12\x36\n\x05Login\x12\x13.auth._LoginRequest\x1a\x14.auth._LoginResponse\"\x00\x30\x01\x12U\n\x10GenerateApiToken\x12\x1e.auth._GenerateApiTokenRequest\x1a\x1f.auth._GenerateApiTokenResponse\"\x00\x12R\n\x0fRefreshApiToken\x12\x1d.auth._RefreshApiTokenRequest\x1a\x1e.auth._RefreshApiTokenResponse\"\x00\x42\x42\n\x0cmomento.authP\x01Z0github.com/momentohq/client-sdk-go;client_sdk_gob\x06proto3')

_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'auth_pb2', globals())
if _descriptor._USE_C_DESCRIPTORS == False:

  DESCRIPTOR._options = None
  DESCRIPTOR._serialized_options = b'\n\014momento.authP\001Z0github.com/momentohq/client-sdk-go;client_sdk_go'
  __LOGINREQUEST._serialized_start=20
  __LOGINREQUEST._serialized_end=35
  __LOGINRESPONSE._serialized_start=38
  __LOGINRESPONSE._serialized_end=418
  __LOGINRESPONSE_LOGGEDIN._serialized_start=264
  __LOGINRESPONSE_LOGGEDIN._serialized_end=324
  __LOGINRESPONSE_ERROR._serialized_start=326
  __LOGINRESPONSE_ERROR._serialized_end=354
  __LOGINRESPONSE_DIRECTBROWSER._serialized_start=356
  __LOGINRESPONSE_DIRECTBROWSER._serialized_end=384
  __LOGINRESPONSE_MESSAGE._serialized_start=386
  __LOGINRESPONSE_MESSAGE._serialized_end=409
  __GENERATEAPITOKENREQUEST._serialized_start=421
  __GENERATEAPITOKENREQUEST._serialized_end=1481
  __GENERATEAPITOKENREQUEST_NEVER._serialized_start=648
  __GENERATEAPITOKENREQUEST_NEVER._serialized_end=655
  __GENERATEAPITOKENREQUEST_EXPIRES._serialized_start=657
  __GENERATEAPITOKENREQUEST_EXPIRES._serialized_end=693
  __GENERATEAPITOKENREQUEST_PERMISSIONS._serialized_start=696
  __GENERATEAPITOKENREQUEST_PERMISSIONS._serialized_end=864
  __GENERATEAPITOKENREQUEST_EXPLICITPERMISSIONS._serialized_start=866
  __GENERATEAPITOKENREQUEST_EXPLICITPERMISSIONS._serialized_end=956
  __GENERATEAPITOKENREQUEST_PERMISSIONSTYPE._serialized_start=959
  __GENERATEAPITOKENREQUEST_PERMISSIONSTYPE._serialized_end=1324
  __GENERATEAPITOKENREQUEST_PERMISSIONSTYPE_CACHEPERMISSIONS._serialized_start=1166
  __GENERATEAPITOKENREQUEST_PERMISSIONSTYPE_CACHEPERMISSIONS._serialized_end=1240
  __GENERATEAPITOKENREQUEST_PERMISSIONSTYPE_TOPICPERMISSIONS._serialized_start=1242
  __GENERATEAPITOKENREQUEST_PERMISSIONSTYPE_TOPICPERMISSIONS._serialized_end=1316
  __GENERATEAPITOKENREQUEST_CACHEROLE._serialized_start=1326
  __GENERATEAPITOKENREQUEST_CACHEROLE._serialized_end=1378
  __GENERATEAPITOKENREQUEST_TOPICROLE._serialized_start=1380
  __GENERATEAPITOKENREQUEST_TOPICROLE._serialized_end=1432
  __GENERATEAPITOKENREQUEST_SUPERUSERPERMISSIONS._serialized_start=1434
  __GENERATEAPITOKENREQUEST_SUPERUSERPERMISSIONS._serialized_end=1471
  __GENERATEAPITOKENRESPONSE._serialized_start=1483
  __GENERATEAPITOKENRESPONSE._serialized_end=1589
  __REFRESHAPITOKENREQUEST._serialized_start=1591
  __REFRESHAPITOKENREQUEST._serialized_end=1656
  __REFRESHAPITOKENRESPONSE._serialized_start=1658
  __REFRESHAPITOKENRESPONSE._serialized_end=1763
  _AUTH._serialized_start=1766
  _AUTH._serialized_end=1999
# @@protoc_insertion_point(module_scope)
