# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/oslogin_v1/proto/oslogin.proto

import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from google.cloud.oslogin_v1.proto import common_pb2 as google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='google/cloud/oslogin_v1/proto/oslogin.proto',
  package='google.cloud.oslogin.v1',
  syntax='proto3',
  serialized_pb=_b('\n+google/cloud/oslogin_v1/proto/oslogin.proto\x12\x17google.cloud.oslogin.v1\x1a\x1cgoogle/api/annotations.proto\x1a(google/cloud/oslogin/common/common.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xa6\x02\n\x0cLoginProfile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x41\n\x0eposix_accounts\x18\x02 \x03(\x0b\x32).google.cloud.oslogin.common.PosixAccount\x12Q\n\x0fssh_public_keys\x18\x03 \x03(\x0b\x32\x38.google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry\x12\x11\n\tsuspended\x18\x04 \x01(\x08\x1a_\n\x12SshPublicKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKey:\x02\x38\x01\")\n\x19\x44\x65letePosixAccountRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\")\n\x19\x44\x65leteSshPublicKeyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"&\n\x16GetLoginProfileRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"&\n\x16GetSshPublicKeyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x82\x01\n\x19ImportSshPublicKeyRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x41\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKey\x12\x12\n\nproject_id\x18\x03 \x01(\t\"Z\n\x1aImportSshPublicKeyResponse\x12<\n\rlogin_profile\x18\x01 \x01(\x0b\x32%.google.cloud.oslogin.v1.LoginProfile\"\x9d\x01\n\x19UpdateSshPublicKeyRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x41\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKey\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask2\xcd\x07\n\x0eOsLoginService\x12\x87\x01\n\x12\x44\x65letePosixAccount\x12\x32.google.cloud.oslogin.v1.DeletePosixAccountRequest\x1a\x16.google.protobuf.Empty\"%\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=users/*/projects/*}\x12\x8c\x01\n\x12\x44\x65leteSshPublicKey\x12\x32.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest\x1a\x16.google.protobuf.Empty\"*\x82\xd3\xe4\x93\x02$*\"/v1/{name=users/*/sshPublicKeys/*}\x12\x92\x01\n\x0fGetLoginProfile\x12/.google.cloud.oslogin.v1.GetLoginProfileRequest\x1a%.google.cloud.oslogin.v1.LoginProfile\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{name=users/*}/loginProfile\x12\x99\x01\n\x0fGetSshPublicKey\x12/.google.cloud.oslogin.v1.GetSshPublicKeyRequest\x1a).google.cloud.oslogin.common.SshPublicKey\"*\x82\xd3\xe4\x93\x02$\x12\"/v1/{name=users/*/sshPublicKeys/*}\x12\xbe\x01\n\x12ImportSshPublicKey\x12\x32.google.cloud.oslogin.v1.ImportSshPublicKeyRequest\x1a\x33.google.cloud.oslogin.v1.ImportSshPublicKeyResponse\"?\x82\xd3\xe4\x93\x02\x39\"\'/v1/{parent=users/*}:importSshPublicKey:\x0essh_public_key\x12\xaf\x01\n\x12UpdateSshPublicKey\x12\x32.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest\x1a).google.cloud.oslogin.common.SshPublicKey\":\x82\xd3\xe4\x93\x02\x34\x32\"/v1/{name=users/*/sshPublicKeys/*}:\x0essh_public_keyB\xa1\x01\n\x1b\x63om.google.cloud.oslogin.v1B\x0cOsLoginProtoP\x01Z>google.golang.org/genproto/googleapis/cloud/oslogin/v1;oslogin\xaa\x02\x17Google.Cloud.OsLogin.V1\xca\x02\x17Google\\Cloud\\OsLogin\\V1b\x06proto3')
  ,
  dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,])
_sym_db.RegisterFileDescriptor(DESCRIPTOR)




_LOGINPROFILE_SSHPUBLICKEYSENTRY = _descriptor.Descriptor(
  name='SshPublicKeysEntry',
  full_name='google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='key', full_name='google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry.key', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='value', full_name='google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry.value', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=407,
  serialized_end=502,
)

_LOGINPROFILE = _descriptor.Descriptor(
  name='LoginProfile',
  full_name='google.cloud.oslogin.v1.LoginProfile',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='name', full_name='google.cloud.oslogin.v1.LoginProfile.name', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='posix_accounts', full_name='google.cloud.oslogin.v1.LoginProfile.posix_accounts', index=1,
      number=2, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='ssh_public_keys', full_name='google.cloud.oslogin.v1.LoginProfile.ssh_public_keys', index=2,
      number=3, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='suspended', full_name='google.cloud.oslogin.v1.LoginProfile.suspended', index=3,
      number=4, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[_LOGINPROFILE_SSHPUBLICKEYSENTRY, ],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=208,
  serialized_end=502,
)


_DELETEPOSIXACCOUNTREQUEST = _descriptor.Descriptor(
  name='DeletePosixAccountRequest',
  full_name='google.cloud.oslogin.v1.DeletePosixAccountRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='name', full_name='google.cloud.oslogin.v1.DeletePosixAccountRequest.name', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=504,
  serialized_end=545,
)


_DELETESSHPUBLICKEYREQUEST = _descriptor.Descriptor(
  name='DeleteSshPublicKeyRequest',
  full_name='google.cloud.oslogin.v1.DeleteSshPublicKeyRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='name', full_name='google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.name', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=547,
  serialized_end=588,
)


_GETLOGINPROFILEREQUEST = _descriptor.Descriptor(
  name='GetLoginProfileRequest',
  full_name='google.cloud.oslogin.v1.GetLoginProfileRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='name', full_name='google.cloud.oslogin.v1.GetLoginProfileRequest.name', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=590,
  serialized_end=628,
)


_GETSSHPUBLICKEYREQUEST = _descriptor.Descriptor(
  name='GetSshPublicKeyRequest',
  full_name='google.cloud.oslogin.v1.GetSshPublicKeyRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='name', full_name='google.cloud.oslogin.v1.GetSshPublicKeyRequest.name', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=630,
  serialized_end=668,
)


_IMPORTSSHPUBLICKEYREQUEST = _descriptor.Descriptor(
  name='ImportSshPublicKeyRequest',
  full_name='google.cloud.oslogin.v1.ImportSshPublicKeyRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='parent', full_name='google.cloud.oslogin.v1.ImportSshPublicKeyRequest.parent', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='ssh_public_key', full_name='google.cloud.oslogin.v1.ImportSshPublicKeyRequest.ssh_public_key', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='project_id', full_name='google.cloud.oslogin.v1.ImportSshPublicKeyRequest.project_id', index=2,
      number=3, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=671,
  serialized_end=801,
)


_IMPORTSSHPUBLICKEYRESPONSE = _descriptor.Descriptor(
  name='ImportSshPublicKeyResponse',
  full_name='google.cloud.oslogin.v1.ImportSshPublicKeyResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='login_profile', full_name='google.cloud.oslogin.v1.ImportSshPublicKeyResponse.login_profile', index=0,
      number=1, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=803,
  serialized_end=893,
)


_UPDATESSHPUBLICKEYREQUEST = _descriptor.Descriptor(
  name='UpdateSshPublicKeyRequest',
  full_name='google.cloud.oslogin.v1.UpdateSshPublicKeyRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='name', full_name='google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.name', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='ssh_public_key', full_name='google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.ssh_public_key', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='update_mask', full_name='google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.update_mask', index=2,
      number=3, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=896,
  serialized_end=1053,
)

_LOGINPROFILE_SSHPUBLICKEYSENTRY.fields_by_name['value'].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY
_LOGINPROFILE_SSHPUBLICKEYSENTRY.containing_type = _LOGINPROFILE
_LOGINPROFILE.fields_by_name['posix_accounts'].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._POSIXACCOUNT
_LOGINPROFILE.fields_by_name['ssh_public_keys'].message_type = _LOGINPROFILE_SSHPUBLICKEYSENTRY
_IMPORTSSHPUBLICKEYREQUEST.fields_by_name['ssh_public_key'].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY
_IMPORTSSHPUBLICKEYRESPONSE.fields_by_name['login_profile'].message_type = _LOGINPROFILE
_UPDATESSHPUBLICKEYREQUEST.fields_by_name['ssh_public_key'].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY
_UPDATESSHPUBLICKEYREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK
DESCRIPTOR.message_types_by_name['LoginProfile'] = _LOGINPROFILE
DESCRIPTOR.message_types_by_name['DeletePosixAccountRequest'] = _DELETEPOSIXACCOUNTREQUEST
DESCRIPTOR.message_types_by_name['DeleteSshPublicKeyRequest'] = _DELETESSHPUBLICKEYREQUEST
DESCRIPTOR.message_types_by_name['GetLoginProfileRequest'] = _GETLOGINPROFILEREQUEST
DESCRIPTOR.message_types_by_name['GetSshPublicKeyRequest'] = _GETSSHPUBLICKEYREQUEST
DESCRIPTOR.message_types_by_name['ImportSshPublicKeyRequest'] = _IMPORTSSHPUBLICKEYREQUEST
DESCRIPTOR.message_types_by_name['ImportSshPublicKeyResponse'] = _IMPORTSSHPUBLICKEYRESPONSE
DESCRIPTOR.message_types_by_name['UpdateSshPublicKeyRequest'] = _UPDATESSHPUBLICKEYREQUEST

LoginProfile = _reflection.GeneratedProtocolMessageType('LoginProfile', (_message.Message,), dict(

  SshPublicKeysEntry = _reflection.GeneratedProtocolMessageType('SshPublicKeysEntry', (_message.Message,), dict(
    DESCRIPTOR = _LOGINPROFILE_SSHPUBLICKEYSENTRY,
    __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2'
    # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry)
    ))
  ,
  DESCRIPTOR = _LOGINPROFILE,
  __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2'
  ,
  __doc__ = """The user profile information used for logging in to a virtual machine on
  Google Compute Engine.


  Attributes:
      name:
          The primary email address that uniquely identifies the user.
      posix_accounts:
          The list of POSIX accounts associated with the user.
      ssh_public_keys:
          A map from SSH public key fingerprint to the associated key
          object.
      suspended:
          Indicates if the user is suspended. A suspended user cannot
          log in but their profile information is retained.
  """,
  # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.LoginProfile)
  ))
_sym_db.RegisterMessage(LoginProfile)
_sym_db.RegisterMessage(LoginProfile.SshPublicKeysEntry)

DeletePosixAccountRequest = _reflection.GeneratedProtocolMessageType('DeletePosixAccountRequest', (_message.Message,), dict(
  DESCRIPTOR = _DELETEPOSIXACCOUNTREQUEST,
  __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2'
  ,
  __doc__ = """A request message for deleting a POSIX account entry.


  Attributes:
      name:
          A reference to the POSIX account to update. POSIX accounts are
          identified by the project ID they are associated with. A
          reference to the POSIX account is in format
          ``users/{user}/projects/{project}``.
  """,
  # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.DeletePosixAccountRequest)
  ))
_sym_db.RegisterMessage(DeletePosixAccountRequest)

DeleteSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType('DeleteSshPublicKeyRequest', (_message.Message,), dict(
  DESCRIPTOR = _DELETESSHPUBLICKEYREQUEST,
  __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2'
  ,
  __doc__ = """A request message for deleting an SSH public key.


  Attributes:
      name:
          The fingerprint of the public key to update. Public keys are
          identified by their SHA-256 fingerprint. The fingerprint of
          the public key is in format
          ``users/{user}/sshPublicKeys/{fingerprint}``.
  """,
  # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.DeleteSshPublicKeyRequest)
  ))
_sym_db.RegisterMessage(DeleteSshPublicKeyRequest)

GetLoginProfileRequest = _reflection.GeneratedProtocolMessageType('GetLoginProfileRequest', (_message.Message,), dict(
  DESCRIPTOR = _GETLOGINPROFILEREQUEST,
  __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2'
  ,
  __doc__ = """A request message for retrieving the login profile information for a
  user.


  Attributes:
      name:
          The unique ID for the user in format ``users/{user}``.
  """,
  # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.GetLoginProfileRequest)
  ))
_sym_db.RegisterMessage(GetLoginProfileRequest)

GetSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType('GetSshPublicKeyRequest', (_message.Message,), dict(
  DESCRIPTOR = _GETSSHPUBLICKEYREQUEST,
  __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2'
  ,
  __doc__ = """A request message for retrieving an SSH public key.


  Attributes:
      name:
          The fingerprint of the public key to retrieve. Public keys are
          identified by their SHA-256 fingerprint. The fingerprint of
          the public key is in format
          ``users/{user}/sshPublicKeys/{fingerprint}``.
  """,
  # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.GetSshPublicKeyRequest)
  ))
_sym_db.RegisterMessage(GetSshPublicKeyRequest)

ImportSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType('ImportSshPublicKeyRequest', (_message.Message,), dict(
  DESCRIPTOR = _IMPORTSSHPUBLICKEYREQUEST,
  __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2'
  ,
  __doc__ = """A request message for importing an SSH public key.


  Attributes:
      parent:
          The unique ID for the user in format ``users/{user}``.
      ssh_public_key:
          The SSH public key and expiration time.
      project_id:
          The project ID of the Google Cloud Platform project.
  """,
  # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.ImportSshPublicKeyRequest)
  ))
_sym_db.RegisterMessage(ImportSshPublicKeyRequest)

ImportSshPublicKeyResponse = _reflection.GeneratedProtocolMessageType('ImportSshPublicKeyResponse', (_message.Message,), dict(
  DESCRIPTOR = _IMPORTSSHPUBLICKEYRESPONSE,
  __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2'
  ,
  __doc__ = """A response message for importing an SSH public key.


  Attributes:
      login_profile:
          The login profile information for the user.
  """,
  # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.ImportSshPublicKeyResponse)
  ))
_sym_db.RegisterMessage(ImportSshPublicKeyResponse)

UpdateSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType('UpdateSshPublicKeyRequest', (_message.Message,), dict(
  DESCRIPTOR = _UPDATESSHPUBLICKEYREQUEST,
  __module__ = 'google.cloud.oslogin_v1.proto.oslogin_pb2'
  ,
  __doc__ = """A request message for updating an SSH public key.


  Attributes:
      name:
          The fingerprint of the public key to update. Public keys are
          identified by their SHA-256 fingerprint. The fingerprint of
          the public key is in format
          ``users/{user}/sshPublicKeys/{fingerprint}``.
      ssh_public_key:
          The SSH public key and expiration time.
      update_mask:
          Mask to control which fields get updated. Updates all if not
          present.
  """,
  # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.UpdateSshPublicKeyRequest)
  ))
_sym_db.RegisterMessage(UpdateSshPublicKeyRequest)


DESCRIPTOR.has_options = True
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\033com.google.cloud.oslogin.v1B\014OsLoginProtoP\001Z>google.golang.org/genproto/googleapis/cloud/oslogin/v1;oslogin\252\002\027Google.Cloud.OsLogin.V1\312\002\027Google\\Cloud\\OsLogin\\V1'))
_LOGINPROFILE_SSHPUBLICKEYSENTRY.has_options = True
_LOGINPROFILE_SSHPUBLICKEYSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
try:
  # THESE ELEMENTS WILL BE DEPRECATED.
  # Please use the generated *_pb2_grpc.py files instead.
  import grpc
  from grpc.beta import implementations as beta_implementations
  from grpc.beta import interfaces as beta_interfaces
  from grpc.framework.common import cardinality
  from grpc.framework.interfaces.face import utilities as face_utilities


  class OsLoginServiceStub(object):
    """Cloud OS Login API

    The Cloud OS Login API allows you to manage users and their associated SSH
    public keys for logging into virtual machines on Google Cloud Platform.
    """

    def __init__(self, channel):
      """Constructor.

      Args:
        channel: A grpc.Channel.
      """
      self.DeletePosixAccount = channel.unary_unary(
          '/google.cloud.oslogin.v1.OsLoginService/DeletePosixAccount',
          request_serializer=DeletePosixAccountRequest.SerializeToString,
          response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
          )
      self.DeleteSshPublicKey = channel.unary_unary(
          '/google.cloud.oslogin.v1.OsLoginService/DeleteSshPublicKey',
          request_serializer=DeleteSshPublicKeyRequest.SerializeToString,
          response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
          )
      self.GetLoginProfile = channel.unary_unary(
          '/google.cloud.oslogin.v1.OsLoginService/GetLoginProfile',
          request_serializer=GetLoginProfileRequest.SerializeToString,
          response_deserializer=LoginProfile.FromString,
          )
      self.GetSshPublicKey = channel.unary_unary(
          '/google.cloud.oslogin.v1.OsLoginService/GetSshPublicKey',
          request_serializer=GetSshPublicKeyRequest.SerializeToString,
          response_deserializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.FromString,
          )
      self.ImportSshPublicKey = channel.unary_unary(
          '/google.cloud.oslogin.v1.OsLoginService/ImportSshPublicKey',
          request_serializer=ImportSshPublicKeyRequest.SerializeToString,
          response_deserializer=ImportSshPublicKeyResponse.FromString,
          )
      self.UpdateSshPublicKey = channel.unary_unary(
          '/google.cloud.oslogin.v1.OsLoginService/UpdateSshPublicKey',
          request_serializer=UpdateSshPublicKeyRequest.SerializeToString,
          response_deserializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.FromString,
          )


  class OsLoginServiceServicer(object):
    """Cloud OS Login API

    The Cloud OS Login API allows you to manage users and their associated SSH
    public keys for logging into virtual machines on Google Cloud Platform.
    """

    def DeletePosixAccount(self, request, context):
      """Deletes a POSIX account.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')

    def DeleteSshPublicKey(self, request, context):
      """Deletes an SSH public key.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')

    def GetLoginProfile(self, request, context):
      """Retrieves the profile information used for logging in to a virtual machine
      on Google Compute Engine.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')

    def GetSshPublicKey(self, request, context):
      """Retrieves an SSH public key.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')

    def ImportSshPublicKey(self, request, context):
      """Adds an SSH public key and returns the profile information. Default POSIX
      account information is set when no username and UID exist as part of the
      login profile.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')

    def UpdateSshPublicKey(self, request, context):
      """Updates an SSH public key and returns the profile information. This method
      supports patch semantics.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')


  def add_OsLoginServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
        'DeletePosixAccount': grpc.unary_unary_rpc_method_handler(
            servicer.DeletePosixAccount,
            request_deserializer=DeletePosixAccountRequest.FromString,
            response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
        ),
        'DeleteSshPublicKey': grpc.unary_unary_rpc_method_handler(
            servicer.DeleteSshPublicKey,
            request_deserializer=DeleteSshPublicKeyRequest.FromString,
            response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
        ),
        'GetLoginProfile': grpc.unary_unary_rpc_method_handler(
            servicer.GetLoginProfile,
            request_deserializer=GetLoginProfileRequest.FromString,
            response_serializer=LoginProfile.SerializeToString,
        ),
        'GetSshPublicKey': grpc.unary_unary_rpc_method_handler(
            servicer.GetSshPublicKey,
            request_deserializer=GetSshPublicKeyRequest.FromString,
            response_serializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.SerializeToString,
        ),
        'ImportSshPublicKey': grpc.unary_unary_rpc_method_handler(
            servicer.ImportSshPublicKey,
            request_deserializer=ImportSshPublicKeyRequest.FromString,
            response_serializer=ImportSshPublicKeyResponse.SerializeToString,
        ),
        'UpdateSshPublicKey': grpc.unary_unary_rpc_method_handler(
            servicer.UpdateSshPublicKey,
            request_deserializer=UpdateSshPublicKeyRequest.FromString,
            response_serializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.SerializeToString,
        ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
        'google.cloud.oslogin.v1.OsLoginService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


  class BetaOsLoginServiceServicer(object):
    """The Beta API is deprecated for 0.15.0 and later.

    It is recommended to use the GA API (classes and functions in this
    file not marked beta) for all further purposes. This class was generated
    only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0."""
    """Cloud OS Login API

    The Cloud OS Login API allows you to manage users and their associated SSH
    public keys for logging into virtual machines on Google Cloud Platform.
    """
    def DeletePosixAccount(self, request, context):
      """Deletes a POSIX account.
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
    def DeleteSshPublicKey(self, request, context):
      """Deletes an SSH public key.
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
    def GetLoginProfile(self, request, context):
      """Retrieves the profile information used for logging in to a virtual machine
      on Google Compute Engine.
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
    def GetSshPublicKey(self, request, context):
      """Retrieves an SSH public key.
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
    def ImportSshPublicKey(self, request, context):
      """Adds an SSH public key and returns the profile information. Default POSIX
      account information is set when no username and UID exist as part of the
      login profile.
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
    def UpdateSshPublicKey(self, request, context):
      """Updates an SSH public key and returns the profile information. This method
      supports patch semantics.
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)


  class BetaOsLoginServiceStub(object):
    """The Beta API is deprecated for 0.15.0 and later.

    It is recommended to use the GA API (classes and functions in this
    file not marked beta) for all further purposes. This class was generated
    only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0."""
    """Cloud OS Login API

    The Cloud OS Login API allows you to manage users and their associated SSH
    public keys for logging into virtual machines on Google Cloud Platform.
    """
    def DeletePosixAccount(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Deletes a POSIX account.
      """
      raise NotImplementedError()
    DeletePosixAccount.future = None
    def DeleteSshPublicKey(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Deletes an SSH public key.
      """
      raise NotImplementedError()
    DeleteSshPublicKey.future = None
    def GetLoginProfile(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Retrieves the profile information used for logging in to a virtual machine
      on Google Compute Engine.
      """
      raise NotImplementedError()
    GetLoginProfile.future = None
    def GetSshPublicKey(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Retrieves an SSH public key.
      """
      raise NotImplementedError()
    GetSshPublicKey.future = None
    def ImportSshPublicKey(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Adds an SSH public key and returns the profile information. Default POSIX
      account information is set when no username and UID exist as part of the
      login profile.
      """
      raise NotImplementedError()
    ImportSshPublicKey.future = None
    def UpdateSshPublicKey(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Updates an SSH public key and returns the profile information. This method
      supports patch semantics.
      """
      raise NotImplementedError()
    UpdateSshPublicKey.future = None


  def beta_create_OsLoginService_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=None):
    """The Beta API is deprecated for 0.15.0 and later.

    It is recommended to use the GA API (classes and functions in this
    file not marked beta) for all further purposes. This function was
    generated only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0"""
    request_deserializers = {
      ('google.cloud.oslogin.v1.OsLoginService', 'DeletePosixAccount'): DeletePosixAccountRequest.FromString,
      ('google.cloud.oslogin.v1.OsLoginService', 'DeleteSshPublicKey'): DeleteSshPublicKeyRequest.FromString,
      ('google.cloud.oslogin.v1.OsLoginService', 'GetLoginProfile'): GetLoginProfileRequest.FromString,
      ('google.cloud.oslogin.v1.OsLoginService', 'GetSshPublicKey'): GetSshPublicKeyRequest.FromString,
      ('google.cloud.oslogin.v1.OsLoginService', 'ImportSshPublicKey'): ImportSshPublicKeyRequest.FromString,
      ('google.cloud.oslogin.v1.OsLoginService', 'UpdateSshPublicKey'): UpdateSshPublicKeyRequest.FromString,
    }
    response_serializers = {
      ('google.cloud.oslogin.v1.OsLoginService', 'DeletePosixAccount'): google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
      ('google.cloud.oslogin.v1.OsLoginService', 'DeleteSshPublicKey'): google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
      ('google.cloud.oslogin.v1.OsLoginService', 'GetLoginProfile'): LoginProfile.SerializeToString,
      ('google.cloud.oslogin.v1.OsLoginService', 'GetSshPublicKey'): google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.SerializeToString,
      ('google.cloud.oslogin.v1.OsLoginService', 'ImportSshPublicKey'): ImportSshPublicKeyResponse.SerializeToString,
      ('google.cloud.oslogin.v1.OsLoginService', 'UpdateSshPublicKey'): google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.SerializeToString,
    }
    method_implementations = {
      ('google.cloud.oslogin.v1.OsLoginService', 'DeletePosixAccount'): face_utilities.unary_unary_inline(servicer.DeletePosixAccount),
      ('google.cloud.oslogin.v1.OsLoginService', 'DeleteSshPublicKey'): face_utilities.unary_unary_inline(servicer.DeleteSshPublicKey),
      ('google.cloud.oslogin.v1.OsLoginService', 'GetLoginProfile'): face_utilities.unary_unary_inline(servicer.GetLoginProfile),
      ('google.cloud.oslogin.v1.OsLoginService', 'GetSshPublicKey'): face_utilities.unary_unary_inline(servicer.GetSshPublicKey),
      ('google.cloud.oslogin.v1.OsLoginService', 'ImportSshPublicKey'): face_utilities.unary_unary_inline(servicer.ImportSshPublicKey),
      ('google.cloud.oslogin.v1.OsLoginService', 'UpdateSshPublicKey'): face_utilities.unary_unary_inline(servicer.UpdateSshPublicKey),
    }
    server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout)
    return beta_implementations.server(method_implementations, options=server_options)


  def beta_create_OsLoginService_stub(channel, host=None, metadata_transformer=None, pool=None, pool_size=None):
    """The Beta API is deprecated for 0.15.0 and later.

    It is recommended to use the GA API (classes and functions in this
    file not marked beta) for all further purposes. This function was
    generated only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0"""
    request_serializers = {
      ('google.cloud.oslogin.v1.OsLoginService', 'DeletePosixAccount'): DeletePosixAccountRequest.SerializeToString,
      ('google.cloud.oslogin.v1.OsLoginService', 'DeleteSshPublicKey'): DeleteSshPublicKeyRequest.SerializeToString,
      ('google.cloud.oslogin.v1.OsLoginService', 'GetLoginProfile'): GetLoginProfileRequest.SerializeToString,
      ('google.cloud.oslogin.v1.OsLoginService', 'GetSshPublicKey'): GetSshPublicKeyRequest.SerializeToString,
      ('google.cloud.oslogin.v1.OsLoginService', 'ImportSshPublicKey'): ImportSshPublicKeyRequest.SerializeToString,
      ('google.cloud.oslogin.v1.OsLoginService', 'UpdateSshPublicKey'): UpdateSshPublicKeyRequest.SerializeToString,
    }
    response_deserializers = {
      ('google.cloud.oslogin.v1.OsLoginService', 'DeletePosixAccount'): google_dot_protobuf_dot_empty__pb2.Empty.FromString,
      ('google.cloud.oslogin.v1.OsLoginService', 'DeleteSshPublicKey'): google_dot_protobuf_dot_empty__pb2.Empty.FromString,
      ('google.cloud.oslogin.v1.OsLoginService', 'GetLoginProfile'): LoginProfile.FromString,
      ('google.cloud.oslogin.v1.OsLoginService', 'GetSshPublicKey'): google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.FromString,
      ('google.cloud.oslogin.v1.OsLoginService', 'ImportSshPublicKey'): ImportSshPublicKeyResponse.FromString,
      ('google.cloud.oslogin.v1.OsLoginService', 'UpdateSshPublicKey'): google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.FromString,
    }
    cardinalities = {
      'DeletePosixAccount': cardinality.Cardinality.UNARY_UNARY,
      'DeleteSshPublicKey': cardinality.Cardinality.UNARY_UNARY,
      'GetLoginProfile': cardinality.Cardinality.UNARY_UNARY,
      'GetSshPublicKey': cardinality.Cardinality.UNARY_UNARY,
      'ImportSshPublicKey': cardinality.Cardinality.UNARY_UNARY,
      'UpdateSshPublicKey': cardinality.Cardinality.UNARY_UNARY,
    }
    stub_options = beta_implementations.stub_options(host=host, metadata_transformer=metadata_transformer, request_serializers=request_serializers, response_deserializers=response_deserializers, thread_pool=pool, thread_pool_size=pool_size)
    return beta_implementations.dynamic_stub(channel, 'google.cloud.oslogin.v1.OsLoginService', cardinalities, options=stub_options)
except ImportError:
  pass
# @@protoc_insertion_point(module_scope)
