# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/spanner/admin/instance_v1/proto/spanner_instance_admin.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.api import auth_pb2 as google_dot_api_dot_auth__pb2
from google.iam.v1 import iam_policy_pb2 as google_dot_iam_dot_v1_dot_iam__policy__pb2
from google.iam.v1 import policy_pb2 as google_dot_iam_dot_v1_dot_policy__pb2
from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__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
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='google/cloud/spanner/admin/instance_v1/proto/spanner_instance_admin.proto',
  package='google.spanner.admin.instance.v1',
  syntax='proto3',
  serialized_pb=_b('\nIgoogle/cloud/spanner/admin/instance_v1/proto/spanner_instance_admin.proto\x12 google.spanner.admin.instance.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x15google/api/auth.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"4\n\x0eInstanceConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\"\xc3\x02\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x63onfig\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x12\n\nnode_count\x18\x05 \x01(\x05\x12?\n\x05state\x18\x06 \x01(\x0e\x32\x30.google.spanner.admin.instance.v1.Instance.State\x12\x46\n\x06labels\x18\x07 \x03(\x0b\x32\x36.google.spanner.admin.instance.v1.Instance.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\"S\n\x1aListInstanceConfigsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x1bListInstanceConfigsResponse\x12J\n\x10instance_configs\x18\x01 \x03(\x0b\x32\x30.google.spanner.admin.instance.v1.InstanceConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"(\n\x18GetInstanceConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\"\n\x12GetInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"z\n\x15\x43reateInstanceRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12<\n\x08instance\x18\x03 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance\"]\n\x14ListInstancesRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"o\n\x15ListInstancesResponse\x12=\n\tinstances\x18\x01 \x03(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x85\x01\n\x15UpdateInstanceRequest\x12<\n\x08instance\x18\x01 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"%\n\x15\x44\x65leteInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xe5\x01\n\x16\x43reateInstanceMetadata\x12<\n\x08instance\x18\x01 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63\x61ncel_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe5\x01\n\x16UpdateInstanceMetadata\x12<\n\x08instance\x18\x01 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63\x61ncel_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xe6\x0c\n\rInstanceAdmin\x12\xc3\x01\n\x13ListInstanceConfigs\x12<.google.spanner.admin.instance.v1.ListInstanceConfigsRequest\x1a=.google.spanner.admin.instance.v1.ListInstanceConfigsResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/v1/{parent=projects/*}/instanceConfigs\x12\xb2\x01\n\x11GetInstanceConfig\x12:.google.spanner.admin.instance.v1.GetInstanceConfigRequest\x1a\x30.google.spanner.admin.instance.v1.InstanceConfig\"/\x82\xd3\xe4\x93\x02)\x12\'/v1/{name=projects/*/instanceConfigs/*}\x12\xab\x01\n\rListInstances\x12\x36.google.spanner.admin.instance.v1.ListInstancesRequest\x1a\x37.google.spanner.admin.instance.v1.ListInstancesResponse\")\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=projects/*}/instances\x12\x9a\x01\n\x0bGetInstance\x12\x34.google.spanner.admin.instance.v1.GetInstanceRequest\x1a*.google.spanner.admin.instance.v1.Instance\")\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/*/instances/*}\x12\x96\x01\n\x0e\x43reateInstance\x12\x37.google.spanner.admin.instance.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\",\x82\xd3\xe4\x93\x02&\"!/v1/{parent=projects/*}/instances:\x01*\x12\x9f\x01\n\x0eUpdateInstance\x12\x37.google.spanner.admin.instance.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"5\x82\xd3\xe4\x93\x02/2*/v1/{instance.name=projects/*/instances/*}:\x01*\x12\x8c\x01\n\x0e\x44\x65leteInstance\x12\x37.google.spanner.admin.instance.v1.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\")\x82\xd3\xe4\x93\x02#*!/v1/{name=projects/*/instances/*}\x12\x88\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/{resource=projects/*/instances/*}:setIamPolicy:\x01*\x12\x88\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/{resource=projects/*/instances/*}:getIamPolicy:\x01*\x12\xae\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"C\x82\xd3\xe4\x93\x02=\"8/v1/{resource=projects/*/instances/*}:testIamPermissions:\x01*B\xb6\x01\n$com.google.spanner.admin.instance.v1B\x19SpannerInstanceAdminProtoP\x01ZHgoogle.golang.org/genproto/googleapis/spanner/admin/instance/v1;instance\xaa\x02&Google.Cloud.Spanner.Admin.Instance.V1b\x06proto3')
  ,
  dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_auth__pb2.DESCRIPTOR,google_dot_iam_dot_v1_dot_iam__policy__pb2.DESCRIPTOR,google_dot_iam_dot_v1_dot_policy__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,])
_sym_db.RegisterFileDescriptor(DESCRIPTOR)



_INSTANCE_STATE = _descriptor.EnumDescriptor(
  name='State',
  full_name='google.spanner.admin.instance.v1.Instance.State',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='STATE_UNSPECIFIED', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='CREATING', index=1, number=1,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='READY', index=2, number=2,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=680,
  serialized_end=735,
)
_sym_db.RegisterEnumDescriptor(_INSTANCE_STATE)


_INSTANCECONFIG = _descriptor.Descriptor(
  name='InstanceConfig',
  full_name='google.spanner.admin.instance.v1.InstanceConfig',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='name', full_name='google.spanner.admin.instance.v1.InstanceConfig.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='display_name', full_name='google.spanner.admin.instance.v1.InstanceConfig.display_name', index=1,
      number=2, 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=357,
  serialized_end=409,
)


_INSTANCE_LABELSENTRY = _descriptor.Descriptor(
  name='LabelsEntry',
  full_name='google.spanner.admin.instance.v1.Instance.LabelsEntry',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='key', full_name='google.spanner.admin.instance.v1.Instance.LabelsEntry.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.spanner.admin.instance.v1.Instance.LabelsEntry.value', index=1,
      number=2, 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=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=633,
  serialized_end=678,
)

_INSTANCE = _descriptor.Descriptor(
  name='Instance',
  full_name='google.spanner.admin.instance.v1.Instance',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='name', full_name='google.spanner.admin.instance.v1.Instance.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='config', full_name='google.spanner.admin.instance.v1.Instance.config', index=1,
      number=2, 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='display_name', full_name='google.spanner.admin.instance.v1.Instance.display_name', 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),
    _descriptor.FieldDescriptor(
      name='node_count', full_name='google.spanner.admin.instance.v1.Instance.node_count', index=3,
      number=5, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='state', full_name='google.spanner.admin.instance.v1.Instance.state', index=4,
      number=6, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='labels', full_name='google.spanner.admin.instance.v1.Instance.labels', index=5,
      number=7, 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),
  ],
  extensions=[
  ],
  nested_types=[_INSTANCE_LABELSENTRY, ],
  enum_types=[
    _INSTANCE_STATE,
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=412,
  serialized_end=735,
)


_LISTINSTANCECONFIGSREQUEST = _descriptor.Descriptor(
  name='ListInstanceConfigsRequest',
  full_name='google.spanner.admin.instance.v1.ListInstanceConfigsRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='parent', full_name='google.spanner.admin.instance.v1.ListInstanceConfigsRequest.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='page_size', full_name='google.spanner.admin.instance.v1.ListInstanceConfigsRequest.page_size', index=1,
      number=2, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='page_token', full_name='google.spanner.admin.instance.v1.ListInstanceConfigsRequest.page_token', 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=737,
  serialized_end=820,
)


_LISTINSTANCECONFIGSRESPONSE = _descriptor.Descriptor(
  name='ListInstanceConfigsResponse',
  full_name='google.spanner.admin.instance.v1.ListInstanceConfigsResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='instance_configs', full_name='google.spanner.admin.instance.v1.ListInstanceConfigsResponse.instance_configs', index=0,
      number=1, 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='next_page_token', full_name='google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token', index=1,
      number=2, 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=823,
  serialized_end=953,
)


_GETINSTANCECONFIGREQUEST = _descriptor.Descriptor(
  name='GetInstanceConfigRequest',
  full_name='google.spanner.admin.instance.v1.GetInstanceConfigRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='name', full_name='google.spanner.admin.instance.v1.GetInstanceConfigRequest.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=955,
  serialized_end=995,
)


_GETINSTANCEREQUEST = _descriptor.Descriptor(
  name='GetInstanceRequest',
  full_name='google.spanner.admin.instance.v1.GetInstanceRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='name', full_name='google.spanner.admin.instance.v1.GetInstanceRequest.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=997,
  serialized_end=1031,
)


_CREATEINSTANCEREQUEST = _descriptor.Descriptor(
  name='CreateInstanceRequest',
  full_name='google.spanner.admin.instance.v1.CreateInstanceRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='parent', full_name='google.spanner.admin.instance.v1.CreateInstanceRequest.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='instance_id', full_name='google.spanner.admin.instance.v1.CreateInstanceRequest.instance_id', index=1,
      number=2, 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='instance', full_name='google.spanner.admin.instance.v1.CreateInstanceRequest.instance', 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=1033,
  serialized_end=1155,
)


_LISTINSTANCESREQUEST = _descriptor.Descriptor(
  name='ListInstancesRequest',
  full_name='google.spanner.admin.instance.v1.ListInstancesRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='parent', full_name='google.spanner.admin.instance.v1.ListInstancesRequest.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='page_size', full_name='google.spanner.admin.instance.v1.ListInstancesRequest.page_size', index=1,
      number=2, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='page_token', full_name='google.spanner.admin.instance.v1.ListInstancesRequest.page_token', 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),
    _descriptor.FieldDescriptor(
      name='filter', full_name='google.spanner.admin.instance.v1.ListInstancesRequest.filter', index=3,
      number=4, 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=1157,
  serialized_end=1250,
)


_LISTINSTANCESRESPONSE = _descriptor.Descriptor(
  name='ListInstancesResponse',
  full_name='google.spanner.admin.instance.v1.ListInstancesResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='instances', full_name='google.spanner.admin.instance.v1.ListInstancesResponse.instances', index=0,
      number=1, 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='next_page_token', full_name='google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token', index=1,
      number=2, 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=1252,
  serialized_end=1363,
)


_UPDATEINSTANCEREQUEST = _descriptor.Descriptor(
  name='UpdateInstanceRequest',
  full_name='google.spanner.admin.instance.v1.UpdateInstanceRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='instance', full_name='google.spanner.admin.instance.v1.UpdateInstanceRequest.instance', 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),
    _descriptor.FieldDescriptor(
      name='field_mask', full_name='google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask', 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=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=1366,
  serialized_end=1499,
)


_DELETEINSTANCEREQUEST = _descriptor.Descriptor(
  name='DeleteInstanceRequest',
  full_name='google.spanner.admin.instance.v1.DeleteInstanceRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='name', full_name='google.spanner.admin.instance.v1.DeleteInstanceRequest.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=1501,
  serialized_end=1538,
)


_CREATEINSTANCEMETADATA = _descriptor.Descriptor(
  name='CreateInstanceMetadata',
  full_name='google.spanner.admin.instance.v1.CreateInstanceMetadata',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='instance', full_name='google.spanner.admin.instance.v1.CreateInstanceMetadata.instance', 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),
    _descriptor.FieldDescriptor(
      name='start_time', full_name='google.spanner.admin.instance.v1.CreateInstanceMetadata.start_time', 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='cancel_time', full_name='google.spanner.admin.instance.v1.CreateInstanceMetadata.cancel_time', 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),
    _descriptor.FieldDescriptor(
      name='end_time', full_name='google.spanner.admin.instance.v1.CreateInstanceMetadata.end_time', index=3,
      number=4, 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=1541,
  serialized_end=1770,
)


_UPDATEINSTANCEMETADATA = _descriptor.Descriptor(
  name='UpdateInstanceMetadata',
  full_name='google.spanner.admin.instance.v1.UpdateInstanceMetadata',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='instance', full_name='google.spanner.admin.instance.v1.UpdateInstanceMetadata.instance', 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),
    _descriptor.FieldDescriptor(
      name='start_time', full_name='google.spanner.admin.instance.v1.UpdateInstanceMetadata.start_time', 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='cancel_time', full_name='google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time', 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),
    _descriptor.FieldDescriptor(
      name='end_time', full_name='google.spanner.admin.instance.v1.UpdateInstanceMetadata.end_time', index=3,
      number=4, 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=1773,
  serialized_end=2002,
)

_INSTANCE_LABELSENTRY.containing_type = _INSTANCE
_INSTANCE.fields_by_name['state'].enum_type = _INSTANCE_STATE
_INSTANCE.fields_by_name['labels'].message_type = _INSTANCE_LABELSENTRY
_INSTANCE_STATE.containing_type = _INSTANCE
_LISTINSTANCECONFIGSRESPONSE.fields_by_name['instance_configs'].message_type = _INSTANCECONFIG
_CREATEINSTANCEREQUEST.fields_by_name['instance'].message_type = _INSTANCE
_LISTINSTANCESRESPONSE.fields_by_name['instances'].message_type = _INSTANCE
_UPDATEINSTANCEREQUEST.fields_by_name['instance'].message_type = _INSTANCE
_UPDATEINSTANCEREQUEST.fields_by_name['field_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK
_CREATEINSTANCEMETADATA.fields_by_name['instance'].message_type = _INSTANCE
_CREATEINSTANCEMETADATA.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
_CREATEINSTANCEMETADATA.fields_by_name['cancel_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
_CREATEINSTANCEMETADATA.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
_UPDATEINSTANCEMETADATA.fields_by_name['instance'].message_type = _INSTANCE
_UPDATEINSTANCEMETADATA.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
_UPDATEINSTANCEMETADATA.fields_by_name['cancel_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
_UPDATEINSTANCEMETADATA.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
DESCRIPTOR.message_types_by_name['InstanceConfig'] = _INSTANCECONFIG
DESCRIPTOR.message_types_by_name['Instance'] = _INSTANCE
DESCRIPTOR.message_types_by_name['ListInstanceConfigsRequest'] = _LISTINSTANCECONFIGSREQUEST
DESCRIPTOR.message_types_by_name['ListInstanceConfigsResponse'] = _LISTINSTANCECONFIGSRESPONSE
DESCRIPTOR.message_types_by_name['GetInstanceConfigRequest'] = _GETINSTANCECONFIGREQUEST
DESCRIPTOR.message_types_by_name['GetInstanceRequest'] = _GETINSTANCEREQUEST
DESCRIPTOR.message_types_by_name['CreateInstanceRequest'] = _CREATEINSTANCEREQUEST
DESCRIPTOR.message_types_by_name['ListInstancesRequest'] = _LISTINSTANCESREQUEST
DESCRIPTOR.message_types_by_name['ListInstancesResponse'] = _LISTINSTANCESRESPONSE
DESCRIPTOR.message_types_by_name['UpdateInstanceRequest'] = _UPDATEINSTANCEREQUEST
DESCRIPTOR.message_types_by_name['DeleteInstanceRequest'] = _DELETEINSTANCEREQUEST
DESCRIPTOR.message_types_by_name['CreateInstanceMetadata'] = _CREATEINSTANCEMETADATA
DESCRIPTOR.message_types_by_name['UpdateInstanceMetadata'] = _UPDATEINSTANCEMETADATA

InstanceConfig = _reflection.GeneratedProtocolMessageType('InstanceConfig', (_message.Message,), dict(
  DESCRIPTOR = _INSTANCECONFIG,
  __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2'
  ,
  __doc__ = """A possible configuration for a Cloud Spanner instance. Configurations
  define the geographic placement of nodes and their replication.
  
  
  Attributes:
      name:
          A unique identifier for the instance configuration. Values are
          of the form
          ``projects/<project>/instanceConfigs/[a-z][-a-z0-9]*``
      display_name:
          The name of this instance configuration as it appears in UIs.
  """,
  # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.InstanceConfig)
  ))
_sym_db.RegisterMessage(InstanceConfig)

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

  LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict(
    DESCRIPTOR = _INSTANCE_LABELSENTRY,
    __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2'
    # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.Instance.LabelsEntry)
    ))
  ,
  DESCRIPTOR = _INSTANCE,
  __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2'
  ,
  __doc__ = """An isolated set of Cloud Spanner resources on which databases can be
  hosted.
  
  
  Attributes:
      name:
          Required. A unique identifier for the instance, which cannot
          be changed after the instance is created. Values are of the
          form ``projects/<project>/instances/[a-z][-a-z0-9]*[a-z0-9]``.
          The final segment of the name must be between 6 and 30
          characters in length.
      config:
          Required. The name of the instance's configuration. Values are
          of the form
          ``projects/<project>/instanceConfigs/<configuration>``. See
          also [InstanceConfig][google.spanner.admin.instance.v1.Instanc
          eConfig] and [ListInstanceConfigs][google.spanner.admin.instan
          ce.v1.InstanceAdmin.ListInstanceConfigs].
      display_name:
          Required. The descriptive name for this instance as it appears
          in UIs. Must be unique per project and between 4 and 30
          characters in length.
      node_count:
          Required. The number of nodes allocated to this instance.
      state:
          Output only. The current instance state. For [CreateInstance][
          google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]
          , the state must be either omitted or set to ``CREATING``. For
          [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmi
          n.UpdateInstance], the state must be either omitted or set to
          ``READY``.
      labels:
          Cloud Labels are a flexible and lightweight mechanism for
          organizing cloud resources into groups that reflect a
          customer's organizational needs and deployment strategies.
          Cloud Labels can be used to filter collections of resources.
          They can be used to control how resource metrics are
          aggregated. And they can be used as arguments to policy
          management rules (e.g. route, firewall, load balancing, etc.).
          -  Label keys must be between 1 and 63 characters long and
          must conform    to the following regular expression:
          ``[a-z]([-a-z0-9]*[a-z0-9])?``. -  Label values must be
          between 0 and 63 characters long and must    conform to the
          regular expression ``([a-z]([-a-z0-9]*[a-z0-9])?)?``. -  No
          more than 64 labels can be associated with a given resource.
          See https://goo.gl/xmQnxf for more information on and examples
          of labels.  If you plan to use labels in your own code, please
          note that additional characters may be allowed in the future.
          And so you are advised to use an internal label
          representation, such as JSON, which doesn't rely upon specific
          characters being disallowed. For example, representing labels
          as the string: name + "*" + value would prove problematic if
          we were to allow "*" in a future release.
  """,
  # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.Instance)
  ))
_sym_db.RegisterMessage(Instance)
_sym_db.RegisterMessage(Instance.LabelsEntry)

ListInstanceConfigsRequest = _reflection.GeneratedProtocolMessageType('ListInstanceConfigsRequest', (_message.Message,), dict(
  DESCRIPTOR = _LISTINSTANCECONFIGSREQUEST,
  __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2'
  ,
  __doc__ = """The request for
  [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
  
  
  Attributes:
      parent:
          Required. The name of the project for which a list of
          supported instance configurations is requested. Values are of
          the form ``projects/<project>``.
      page_size:
          Number of instance configurations to be returned in the
          response. If 0 or less, defaults to the server's maximum
          allowed page size.
      page_token:
          If non-empty, ``page_token`` should contain a [next\_page\_tok
          en][google.spanner.admin.instance.v1.ListInstanceConfigsRespon
          se.next\_page\_token] from a previous [ListInstanceConfigsResp
          onse][google.spanner.admin.instance.v1.ListInstanceConfigsResp
          onse].
  """,
  # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstanceConfigsRequest)
  ))
_sym_db.RegisterMessage(ListInstanceConfigsRequest)

ListInstanceConfigsResponse = _reflection.GeneratedProtocolMessageType('ListInstanceConfigsResponse', (_message.Message,), dict(
  DESCRIPTOR = _LISTINSTANCECONFIGSRESPONSE,
  __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2'
  ,
  __doc__ = """The response for
  [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].
  
  
  Attributes:
      instance_configs:
          The list of requested instance configurations.
      next_page_token:
          ``next_page_token`` can be sent in a subsequent [ListInstanceC
          onfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListIns
          tanceConfigs] call to fetch more of the matching instance
          configurations.
  """,
  # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstanceConfigsResponse)
  ))
_sym_db.RegisterMessage(ListInstanceConfigsResponse)

GetInstanceConfigRequest = _reflection.GeneratedProtocolMessageType('GetInstanceConfigRequest', (_message.Message,), dict(
  DESCRIPTOR = _GETINSTANCECONFIGREQUEST,
  __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2'
  ,
  __doc__ = """The request for
  [GetInstanceConfigRequest][google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfig].
  
  
  Attributes:
      name:
          Required. The name of the requested instance configuration.
          Values are of the form
          ``projects/<project>/instanceConfigs/<config>``.
  """,
  # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.GetInstanceConfigRequest)
  ))
_sym_db.RegisterMessage(GetInstanceConfigRequest)

GetInstanceRequest = _reflection.GeneratedProtocolMessageType('GetInstanceRequest', (_message.Message,), dict(
  DESCRIPTOR = _GETINSTANCEREQUEST,
  __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2'
  ,
  __doc__ = """The request for
  [GetInstance][google.spanner.admin.instance.v1.InstanceAdmin.GetInstance].
  
  
  Attributes:
      name:
          Required. The name of the requested instance. Values are of
          the form ``projects/<project>/instances/<instance>``.
  """,
  # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.GetInstanceRequest)
  ))
_sym_db.RegisterMessage(GetInstanceRequest)

CreateInstanceRequest = _reflection.GeneratedProtocolMessageType('CreateInstanceRequest', (_message.Message,), dict(
  DESCRIPTOR = _CREATEINSTANCEREQUEST,
  __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2'
  ,
  __doc__ = """The request for
  [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance].
  
  
  Attributes:
      parent:
          Required. The name of the project in which to create the
          instance. Values are of the form ``projects/<project>``.
      instance_id:
          Required. The ID of the instance to create. Valid identifiers
          are of the form ``[a-z][-a-z0-9]*[a-z0-9]`` and must be
          between 6 and 30 characters in length.
      instance:
          Required. The instance to create. The name may be omitted, but
          if specified must be ``<parent>/instances/<instance_id>``.
  """,
  # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.CreateInstanceRequest)
  ))
_sym_db.RegisterMessage(CreateInstanceRequest)

ListInstancesRequest = _reflection.GeneratedProtocolMessageType('ListInstancesRequest', (_message.Message,), dict(
  DESCRIPTOR = _LISTINSTANCESREQUEST,
  __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2'
  ,
  __doc__ = """The request for
  [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances].
  
  
  Attributes:
      parent:
          Required. The name of the project for which a list of
          instances is requested. Values are of the form
          ``projects/<project>``.
      page_size:
          Number of instances to be returned in the response. If 0 or
          less, defaults to the server's maximum allowed page size.
      page_token:
          If non-empty, ``page_token`` should contain a [next\_page\_tok
          en][google.spanner.admin.instance.v1.ListInstancesResponse.nex
          t\_page\_token] from a previous [ListInstancesResponse][google
          .spanner.admin.instance.v1.ListInstancesResponse].
      filter:
          An expression for filtering the results of the request. Filter
          rules are case insensitive. The fields eligible for filtering
          are:  -  name -  display\_name -  labels.key where key is the
          name of a label  Some examples of using filters are:  -
          name:\* --> The instance has a name. -  name:Howl --> The
          instance's name contains the string "howl". -  name:HOWL -->
          Equivalent to above. -  NAME:howl --> Equivalent to above. -
          labels.env:\* --> The instance has the label "env". -
          labels.env:dev --> The instance has the label "env" and the
          value of    the label contains the string "dev". -  name:howl
          labels.env:dev --> The instance's name contains "howl" and
          it has the label "env" with its value containing "dev".
  """,
  # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstancesRequest)
  ))
_sym_db.RegisterMessage(ListInstancesRequest)

ListInstancesResponse = _reflection.GeneratedProtocolMessageType('ListInstancesResponse', (_message.Message,), dict(
  DESCRIPTOR = _LISTINSTANCESRESPONSE,
  __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2'
  ,
  __doc__ = """The response for
  [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances].
  
  
  Attributes:
      instances:
          The list of requested instances.
      next_page_token:
          ``next_page_token`` can be sent in a subsequent [ListInstances
          ][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances
          ] call to fetch more of the matching instances.
  """,
  # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.ListInstancesResponse)
  ))
_sym_db.RegisterMessage(ListInstancesResponse)

UpdateInstanceRequest = _reflection.GeneratedProtocolMessageType('UpdateInstanceRequest', (_message.Message,), dict(
  DESCRIPTOR = _UPDATEINSTANCEREQUEST,
  __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2'
  ,
  __doc__ = """The request for
  [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance].
  
  
  Attributes:
      instance:
          Required. The instance to update, which must always include
          the instance name. Otherwise, only fields mentioned in [][goog
          le.spanner.admin.instance.v1.UpdateInstanceRequest.field\_mask
          ] need be included.
      field_mask:
          Required. A mask specifying which fields in [][google.spanner.
          admin.instance.v1.UpdateInstanceRequest.instance] should be
          updated. The field mask must always be specified; this
          prevents any future fields in
          [][google.spanner.admin.instance.v1.Instance] from being
          erased accidentally by clients that do not know about them.
  """,
  # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.UpdateInstanceRequest)
  ))
_sym_db.RegisterMessage(UpdateInstanceRequest)

DeleteInstanceRequest = _reflection.GeneratedProtocolMessageType('DeleteInstanceRequest', (_message.Message,), dict(
  DESCRIPTOR = _DELETEINSTANCEREQUEST,
  __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2'
  ,
  __doc__ = """The request for
  [DeleteInstance][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstance].
  
  
  Attributes:
      name:
          Required. The name of the instance to be deleted. Values are
          of the form ``projects/<project>/instances/<instance>``
  """,
  # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.DeleteInstanceRequest)
  ))
_sym_db.RegisterMessage(DeleteInstanceRequest)

CreateInstanceMetadata = _reflection.GeneratedProtocolMessageType('CreateInstanceMetadata', (_message.Message,), dict(
  DESCRIPTOR = _CREATEINSTANCEMETADATA,
  __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2'
  ,
  __doc__ = """Metadata type for the operation returned by
  [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance].
  
  
  Attributes:
      instance:
          The instance being created.
      start_time:
          The time at which the [CreateInstance][google.spanner.admin.in
          stance.v1.InstanceAdmin.CreateInstance] request was received.
      cancel_time:
          The time at which this operation was cancelled. If set, this
          operation is in the process of undoing itself (which is
          guaranteed to succeed) and cannot be cancelled again.
      end_time:
          The time at which this operation failed or was completed
          successfully.
  """,
  # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.CreateInstanceMetadata)
  ))
_sym_db.RegisterMessage(CreateInstanceMetadata)

UpdateInstanceMetadata = _reflection.GeneratedProtocolMessageType('UpdateInstanceMetadata', (_message.Message,), dict(
  DESCRIPTOR = _UPDATEINSTANCEMETADATA,
  __module__ = 'google.cloud.spanner.admin.instance_v1.proto.spanner_instance_admin_pb2'
  ,
  __doc__ = """Metadata type for the operation returned by
  [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance].
  
  
  Attributes:
      instance:
          The desired end state of the update.
      start_time:
          The time at which [UpdateInstance][google.spanner.admin.instan
          ce.v1.InstanceAdmin.UpdateInstance] request was received.
      cancel_time:
          The time at which this operation was cancelled. If set, this
          operation is in the process of undoing itself (which is
          guaranteed to succeed) and cannot be cancelled again.
      end_time:
          The time at which this operation failed or was completed
          successfully.
  """,
  # @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.UpdateInstanceMetadata)
  ))
_sym_db.RegisterMessage(UpdateInstanceMetadata)


DESCRIPTOR.has_options = True
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n$com.google.spanner.admin.instance.v1B\031SpannerInstanceAdminProtoP\001ZHgoogle.golang.org/genproto/googleapis/spanner/admin/instance/v1;instance\252\002&Google.Cloud.Spanner.Admin.Instance.V1'))
_INSTANCE_LABELSENTRY.has_options = True
_INSTANCE_LABELSENTRY._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 InstanceAdminStub(object):
    """Cloud Spanner Instance Admin API

    The Cloud Spanner Instance Admin API can be used to create, delete,
    modify and list instances. Instances are dedicated Cloud Spanner serving
    and storage resources to be used by Cloud Spanner databases.

    Each instance has a "configuration", which dictates where the
    serving resources for the Cloud Spanner instance are located (e.g.,
    US-central, Europe). Configurations are created by Google based on
    resource availability.

    Cloud Spanner billing is based on the instances that exist and their
    sizes. After an instance exists, there are no additional
    per-database or per-operation charges for use of the instance
    (though there may be additional network bandwidth charges).
    Instances offer isolation: problems with databases in one instance
    will not affect other instances. However, within an instance
    databases can affect each other. For example, if one database in an
    instance receives a lot of requests and consumes most of the
    instance resources, fewer resources are available for other
    databases in that instance, and their performance may suffer.
    """

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

      Args:
        channel: A grpc.Channel.
      """
      self.ListInstanceConfigs = channel.unary_unary(
          '/google.spanner.admin.instance.v1.InstanceAdmin/ListInstanceConfigs',
          request_serializer=ListInstanceConfigsRequest.SerializeToString,
          response_deserializer=ListInstanceConfigsResponse.FromString,
          )
      self.GetInstanceConfig = channel.unary_unary(
          '/google.spanner.admin.instance.v1.InstanceAdmin/GetInstanceConfig',
          request_serializer=GetInstanceConfigRequest.SerializeToString,
          response_deserializer=InstanceConfig.FromString,
          )
      self.ListInstances = channel.unary_unary(
          '/google.spanner.admin.instance.v1.InstanceAdmin/ListInstances',
          request_serializer=ListInstancesRequest.SerializeToString,
          response_deserializer=ListInstancesResponse.FromString,
          )
      self.GetInstance = channel.unary_unary(
          '/google.spanner.admin.instance.v1.InstanceAdmin/GetInstance',
          request_serializer=GetInstanceRequest.SerializeToString,
          response_deserializer=Instance.FromString,
          )
      self.CreateInstance = channel.unary_unary(
          '/google.spanner.admin.instance.v1.InstanceAdmin/CreateInstance',
          request_serializer=CreateInstanceRequest.SerializeToString,
          response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString,
          )
      self.UpdateInstance = channel.unary_unary(
          '/google.spanner.admin.instance.v1.InstanceAdmin/UpdateInstance',
          request_serializer=UpdateInstanceRequest.SerializeToString,
          response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString,
          )
      self.DeleteInstance = channel.unary_unary(
          '/google.spanner.admin.instance.v1.InstanceAdmin/DeleteInstance',
          request_serializer=DeleteInstanceRequest.SerializeToString,
          response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
          )
      self.SetIamPolicy = channel.unary_unary(
          '/google.spanner.admin.instance.v1.InstanceAdmin/SetIamPolicy',
          request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString,
          response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString,
          )
      self.GetIamPolicy = channel.unary_unary(
          '/google.spanner.admin.instance.v1.InstanceAdmin/GetIamPolicy',
          request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString,
          response_deserializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString,
          )
      self.TestIamPermissions = channel.unary_unary(
          '/google.spanner.admin.instance.v1.InstanceAdmin/TestIamPermissions',
          request_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString,
          response_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString,
          )


  class InstanceAdminServicer(object):
    """Cloud Spanner Instance Admin API

    The Cloud Spanner Instance Admin API can be used to create, delete,
    modify and list instances. Instances are dedicated Cloud Spanner serving
    and storage resources to be used by Cloud Spanner databases.

    Each instance has a "configuration", which dictates where the
    serving resources for the Cloud Spanner instance are located (e.g.,
    US-central, Europe). Configurations are created by Google based on
    resource availability.

    Cloud Spanner billing is based on the instances that exist and their
    sizes. After an instance exists, there are no additional
    per-database or per-operation charges for use of the instance
    (though there may be additional network bandwidth charges).
    Instances offer isolation: problems with databases in one instance
    will not affect other instances. However, within an instance
    databases can affect each other. For example, if one database in an
    instance receives a lot of requests and consumes most of the
    instance resources, fewer resources are available for other
    databases in that instance, and their performance may suffer.
    """

    def ListInstanceConfigs(self, request, context):
      """Lists the supported instance configurations for a given project.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')

    def GetInstanceConfig(self, request, context):
      """Gets information about a particular instance configuration.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')

    def ListInstances(self, request, context):
      """Lists all instances in the given project.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')

    def GetInstance(self, request, context):
      """Gets information about a particular instance.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')

    def CreateInstance(self, request, context):
      """Creates an instance and begins preparing it to begin serving. The
      returned [long-running operation][google.longrunning.Operation]
      can be used to track the progress of preparing the new
      instance. The instance name is assigned by the caller. If the
      named instance already exists, `CreateInstance` returns
      `ALREADY_EXISTS`.

      Immediately upon completion of this request:

      * The instance is readable via the API, with all requested attributes
      but no allocated resources. Its state is `CREATING`.

      Until completion of the returned operation:

      * Cancelling the operation renders the instance immediately unreadable
      via the API.
      * The instance can be deleted.
      * All other attempts to modify the instance are rejected.

      Upon completion of the returned operation:

      * Billing for all successfully-allocated resources begins (some types
      may have lower than the requested levels).
      * Databases can be created in the instance.
      * The instance's allocated resource levels are readable via the API.
      * The instance's state becomes `READY`.

      The returned [long-running operation][google.longrunning.Operation] will
      have a name of the format `<instance_name>/operations/<operation_id>` and
      can be used to track creation of the instance.  The
      [metadata][google.longrunning.Operation.metadata] field type is
      [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata].
      The [response][google.longrunning.Operation.response] field type is
      [Instance][google.spanner.admin.instance.v1.Instance], if successful.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')

    def UpdateInstance(self, request, context):
      """Updates an instance, and begins allocating or releasing resources
      as requested. The returned [long-running
      operation][google.longrunning.Operation] can be used to track the
      progress of updating the instance. If the named instance does not
      exist, returns `NOT_FOUND`.

      Immediately upon completion of this request:

      * For resource types for which a decrease in the instance's allocation
      has been requested, billing is based on the newly-requested level.

      Until completion of the returned operation:

      * Cancelling the operation sets its metadata's
      [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time], and begins
      restoring resources to their pre-request values. The operation
      is guaranteed to succeed at undoing all resource changes,
      after which point it terminates with a `CANCELLED` status.
      * All other attempts to modify the instance are rejected.
      * Reading the instance via the API continues to give the pre-request
      resource levels.

      Upon completion of the returned operation:

      * Billing begins for all successfully-allocated resources (some types
      may have lower than the requested levels).
      * All newly-reserved resources are available for serving the instance's
      tables.
      * The instance's new resource levels are readable via the API.

      The returned [long-running operation][google.longrunning.Operation] will
      have a name of the format `<instance_name>/operations/<operation_id>` and
      can be used to track the instance modification.  The
      [metadata][google.longrunning.Operation.metadata] field type is
      [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata].
      The [response][google.longrunning.Operation.response] field type is
      [Instance][google.spanner.admin.instance.v1.Instance], if successful.

      Authorization requires `spanner.instances.update` permission on
      resource [name][google.spanner.admin.instance.v1.Instance.name].
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')

    def DeleteInstance(self, request, context):
      """Deletes an instance.

      Immediately upon completion of the request:

      * Billing ceases for all of the instance's reserved resources.

      Soon afterward:

      * The instance and *all of its databases* immediately and
      irrevocably disappear from the API. All data in the databases
      is permanently deleted.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')

    def SetIamPolicy(self, request, context):
      """Sets the access control policy on an instance resource. Replaces any
      existing policy.

      Authorization requires `spanner.instances.setIamPolicy` on
      [resource][google.iam.v1.SetIamPolicyRequest.resource].
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')

    def GetIamPolicy(self, request, context):
      """Gets the access control policy for an instance resource. Returns an empty
      policy if an instance exists but does not have a policy set.

      Authorization requires `spanner.instances.getIamPolicy` on
      [resource][google.iam.v1.GetIamPolicyRequest.resource].
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')

    def TestIamPermissions(self, request, context):
      """Returns permissions that the caller has on the specified instance resource.

      Attempting this RPC on a non-existent Cloud Spanner instance resource will
      result in a NOT_FOUND error if the user has `spanner.instances.list`
      permission on the containing Google Cloud Project. Otherwise returns an
      empty set of permissions.
      """
      context.set_code(grpc.StatusCode.UNIMPLEMENTED)
      context.set_details('Method not implemented!')
      raise NotImplementedError('Method not implemented!')


  def add_InstanceAdminServicer_to_server(servicer, server):
    rpc_method_handlers = {
        'ListInstanceConfigs': grpc.unary_unary_rpc_method_handler(
            servicer.ListInstanceConfigs,
            request_deserializer=ListInstanceConfigsRequest.FromString,
            response_serializer=ListInstanceConfigsResponse.SerializeToString,
        ),
        'GetInstanceConfig': grpc.unary_unary_rpc_method_handler(
            servicer.GetInstanceConfig,
            request_deserializer=GetInstanceConfigRequest.FromString,
            response_serializer=InstanceConfig.SerializeToString,
        ),
        'ListInstances': grpc.unary_unary_rpc_method_handler(
            servicer.ListInstances,
            request_deserializer=ListInstancesRequest.FromString,
            response_serializer=ListInstancesResponse.SerializeToString,
        ),
        'GetInstance': grpc.unary_unary_rpc_method_handler(
            servicer.GetInstance,
            request_deserializer=GetInstanceRequest.FromString,
            response_serializer=Instance.SerializeToString,
        ),
        'CreateInstance': grpc.unary_unary_rpc_method_handler(
            servicer.CreateInstance,
            request_deserializer=CreateInstanceRequest.FromString,
            response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
        ),
        'UpdateInstance': grpc.unary_unary_rpc_method_handler(
            servicer.UpdateInstance,
            request_deserializer=UpdateInstanceRequest.FromString,
            response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
        ),
        'DeleteInstance': grpc.unary_unary_rpc_method_handler(
            servicer.DeleteInstance,
            request_deserializer=DeleteInstanceRequest.FromString,
            response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
        ),
        'SetIamPolicy': grpc.unary_unary_rpc_method_handler(
            servicer.SetIamPolicy,
            request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString,
            response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString,
        ),
        'GetIamPolicy': grpc.unary_unary_rpc_method_handler(
            servicer.GetIamPolicy,
            request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString,
            response_serializer=google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString,
        ),
        'TestIamPermissions': grpc.unary_unary_rpc_method_handler(
            servicer.TestIamPermissions,
            request_deserializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString,
            response_serializer=google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString,
        ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
        'google.spanner.admin.instance.v1.InstanceAdmin', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


  class BetaInstanceAdminServicer(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 Spanner Instance Admin API

    The Cloud Spanner Instance Admin API can be used to create, delete,
    modify and list instances. Instances are dedicated Cloud Spanner serving
    and storage resources to be used by Cloud Spanner databases.

    Each instance has a "configuration", which dictates where the
    serving resources for the Cloud Spanner instance are located (e.g.,
    US-central, Europe). Configurations are created by Google based on
    resource availability.

    Cloud Spanner billing is based on the instances that exist and their
    sizes. After an instance exists, there are no additional
    per-database or per-operation charges for use of the instance
    (though there may be additional network bandwidth charges).
    Instances offer isolation: problems with databases in one instance
    will not affect other instances. However, within an instance
    databases can affect each other. For example, if one database in an
    instance receives a lot of requests and consumes most of the
    instance resources, fewer resources are available for other
    databases in that instance, and their performance may suffer.
    """
    def ListInstanceConfigs(self, request, context):
      """Lists the supported instance configurations for a given project.
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
    def GetInstanceConfig(self, request, context):
      """Gets information about a particular instance configuration.
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
    def ListInstances(self, request, context):
      """Lists all instances in the given project.
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
    def GetInstance(self, request, context):
      """Gets information about a particular instance.
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
    def CreateInstance(self, request, context):
      """Creates an instance and begins preparing it to begin serving. The
      returned [long-running operation][google.longrunning.Operation]
      can be used to track the progress of preparing the new
      instance. The instance name is assigned by the caller. If the
      named instance already exists, `CreateInstance` returns
      `ALREADY_EXISTS`.

      Immediately upon completion of this request:

      * The instance is readable via the API, with all requested attributes
      but no allocated resources. Its state is `CREATING`.

      Until completion of the returned operation:

      * Cancelling the operation renders the instance immediately unreadable
      via the API.
      * The instance can be deleted.
      * All other attempts to modify the instance are rejected.

      Upon completion of the returned operation:

      * Billing for all successfully-allocated resources begins (some types
      may have lower than the requested levels).
      * Databases can be created in the instance.
      * The instance's allocated resource levels are readable via the API.
      * The instance's state becomes `READY`.

      The returned [long-running operation][google.longrunning.Operation] will
      have a name of the format `<instance_name>/operations/<operation_id>` and
      can be used to track creation of the instance.  The
      [metadata][google.longrunning.Operation.metadata] field type is
      [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata].
      The [response][google.longrunning.Operation.response] field type is
      [Instance][google.spanner.admin.instance.v1.Instance], if successful.
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
    def UpdateInstance(self, request, context):
      """Updates an instance, and begins allocating or releasing resources
      as requested. The returned [long-running
      operation][google.longrunning.Operation] can be used to track the
      progress of updating the instance. If the named instance does not
      exist, returns `NOT_FOUND`.

      Immediately upon completion of this request:

      * For resource types for which a decrease in the instance's allocation
      has been requested, billing is based on the newly-requested level.

      Until completion of the returned operation:

      * Cancelling the operation sets its metadata's
      [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time], and begins
      restoring resources to their pre-request values. The operation
      is guaranteed to succeed at undoing all resource changes,
      after which point it terminates with a `CANCELLED` status.
      * All other attempts to modify the instance are rejected.
      * Reading the instance via the API continues to give the pre-request
      resource levels.

      Upon completion of the returned operation:

      * Billing begins for all successfully-allocated resources (some types
      may have lower than the requested levels).
      * All newly-reserved resources are available for serving the instance's
      tables.
      * The instance's new resource levels are readable via the API.

      The returned [long-running operation][google.longrunning.Operation] will
      have a name of the format `<instance_name>/operations/<operation_id>` and
      can be used to track the instance modification.  The
      [metadata][google.longrunning.Operation.metadata] field type is
      [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata].
      The [response][google.longrunning.Operation.response] field type is
      [Instance][google.spanner.admin.instance.v1.Instance], if successful.

      Authorization requires `spanner.instances.update` permission on
      resource [name][google.spanner.admin.instance.v1.Instance.name].
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
    def DeleteInstance(self, request, context):
      """Deletes an instance.

      Immediately upon completion of the request:

      * Billing ceases for all of the instance's reserved resources.

      Soon afterward:

      * The instance and *all of its databases* immediately and
      irrevocably disappear from the API. All data in the databases
      is permanently deleted.
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
    def SetIamPolicy(self, request, context):
      """Sets the access control policy on an instance resource. Replaces any
      existing policy.

      Authorization requires `spanner.instances.setIamPolicy` on
      [resource][google.iam.v1.SetIamPolicyRequest.resource].
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
    def GetIamPolicy(self, request, context):
      """Gets the access control policy for an instance resource. Returns an empty
      policy if an instance exists but does not have a policy set.

      Authorization requires `spanner.instances.getIamPolicy` on
      [resource][google.iam.v1.GetIamPolicyRequest.resource].
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
    def TestIamPermissions(self, request, context):
      """Returns permissions that the caller has on the specified instance resource.

      Attempting this RPC on a non-existent Cloud Spanner instance resource will
      result in a NOT_FOUND error if the user has `spanner.instances.list`
      permission on the containing Google Cloud Project. Otherwise returns an
      empty set of permissions.
      """
      context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)


  class BetaInstanceAdminStub(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 Spanner Instance Admin API

    The Cloud Spanner Instance Admin API can be used to create, delete,
    modify and list instances. Instances are dedicated Cloud Spanner serving
    and storage resources to be used by Cloud Spanner databases.

    Each instance has a "configuration", which dictates where the
    serving resources for the Cloud Spanner instance are located (e.g.,
    US-central, Europe). Configurations are created by Google based on
    resource availability.

    Cloud Spanner billing is based on the instances that exist and their
    sizes. After an instance exists, there are no additional
    per-database or per-operation charges for use of the instance
    (though there may be additional network bandwidth charges).
    Instances offer isolation: problems with databases in one instance
    will not affect other instances. However, within an instance
    databases can affect each other. For example, if one database in an
    instance receives a lot of requests and consumes most of the
    instance resources, fewer resources are available for other
    databases in that instance, and their performance may suffer.
    """
    def ListInstanceConfigs(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Lists the supported instance configurations for a given project.
      """
      raise NotImplementedError()
    ListInstanceConfigs.future = None
    def GetInstanceConfig(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Gets information about a particular instance configuration.
      """
      raise NotImplementedError()
    GetInstanceConfig.future = None
    def ListInstances(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Lists all instances in the given project.
      """
      raise NotImplementedError()
    ListInstances.future = None
    def GetInstance(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Gets information about a particular instance.
      """
      raise NotImplementedError()
    GetInstance.future = None
    def CreateInstance(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Creates an instance and begins preparing it to begin serving. The
      returned [long-running operation][google.longrunning.Operation]
      can be used to track the progress of preparing the new
      instance. The instance name is assigned by the caller. If the
      named instance already exists, `CreateInstance` returns
      `ALREADY_EXISTS`.

      Immediately upon completion of this request:

      * The instance is readable via the API, with all requested attributes
      but no allocated resources. Its state is `CREATING`.

      Until completion of the returned operation:

      * Cancelling the operation renders the instance immediately unreadable
      via the API.
      * The instance can be deleted.
      * All other attempts to modify the instance are rejected.

      Upon completion of the returned operation:

      * Billing for all successfully-allocated resources begins (some types
      may have lower than the requested levels).
      * Databases can be created in the instance.
      * The instance's allocated resource levels are readable via the API.
      * The instance's state becomes `READY`.

      The returned [long-running operation][google.longrunning.Operation] will
      have a name of the format `<instance_name>/operations/<operation_id>` and
      can be used to track creation of the instance.  The
      [metadata][google.longrunning.Operation.metadata] field type is
      [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata].
      The [response][google.longrunning.Operation.response] field type is
      [Instance][google.spanner.admin.instance.v1.Instance], if successful.
      """
      raise NotImplementedError()
    CreateInstance.future = None
    def UpdateInstance(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Updates an instance, and begins allocating or releasing resources
      as requested. The returned [long-running
      operation][google.longrunning.Operation] can be used to track the
      progress of updating the instance. If the named instance does not
      exist, returns `NOT_FOUND`.

      Immediately upon completion of this request:

      * For resource types for which a decrease in the instance's allocation
      has been requested, billing is based on the newly-requested level.

      Until completion of the returned operation:

      * Cancelling the operation sets its metadata's
      [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time], and begins
      restoring resources to their pre-request values. The operation
      is guaranteed to succeed at undoing all resource changes,
      after which point it terminates with a `CANCELLED` status.
      * All other attempts to modify the instance are rejected.
      * Reading the instance via the API continues to give the pre-request
      resource levels.

      Upon completion of the returned operation:

      * Billing begins for all successfully-allocated resources (some types
      may have lower than the requested levels).
      * All newly-reserved resources are available for serving the instance's
      tables.
      * The instance's new resource levels are readable via the API.

      The returned [long-running operation][google.longrunning.Operation] will
      have a name of the format `<instance_name>/operations/<operation_id>` and
      can be used to track the instance modification.  The
      [metadata][google.longrunning.Operation.metadata] field type is
      [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata].
      The [response][google.longrunning.Operation.response] field type is
      [Instance][google.spanner.admin.instance.v1.Instance], if successful.

      Authorization requires `spanner.instances.update` permission on
      resource [name][google.spanner.admin.instance.v1.Instance.name].
      """
      raise NotImplementedError()
    UpdateInstance.future = None
    def DeleteInstance(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Deletes an instance.

      Immediately upon completion of the request:

      * Billing ceases for all of the instance's reserved resources.

      Soon afterward:

      * The instance and *all of its databases* immediately and
      irrevocably disappear from the API. All data in the databases
      is permanently deleted.
      """
      raise NotImplementedError()
    DeleteInstance.future = None
    def SetIamPolicy(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Sets the access control policy on an instance resource. Replaces any
      existing policy.

      Authorization requires `spanner.instances.setIamPolicy` on
      [resource][google.iam.v1.SetIamPolicyRequest.resource].
      """
      raise NotImplementedError()
    SetIamPolicy.future = None
    def GetIamPolicy(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Gets the access control policy for an instance resource. Returns an empty
      policy if an instance exists but does not have a policy set.

      Authorization requires `spanner.instances.getIamPolicy` on
      [resource][google.iam.v1.GetIamPolicyRequest.resource].
      """
      raise NotImplementedError()
    GetIamPolicy.future = None
    def TestIamPermissions(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
      """Returns permissions that the caller has on the specified instance resource.

      Attempting this RPC on a non-existent Cloud Spanner instance resource will
      result in a NOT_FOUND error if the user has `spanner.instances.list`
      permission on the containing Google Cloud Project. Otherwise returns an
      empty set of permissions.
      """
      raise NotImplementedError()
    TestIamPermissions.future = None


  def beta_create_InstanceAdmin_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.spanner.admin.instance.v1.InstanceAdmin', 'CreateInstance'): CreateInstanceRequest.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'DeleteInstance'): DeleteInstanceRequest.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'GetIamPolicy'): google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'GetInstance'): GetInstanceRequest.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'GetInstanceConfig'): GetInstanceConfigRequest.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'ListInstanceConfigs'): ListInstanceConfigsRequest.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'ListInstances'): ListInstancesRequest.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'SetIamPolicy'): google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'TestIamPermissions'): google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'UpdateInstance'): UpdateInstanceRequest.FromString,
    }
    response_serializers = {
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'CreateInstance'): google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'DeleteInstance'): google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'GetIamPolicy'): google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'GetInstance'): Instance.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'GetInstanceConfig'): InstanceConfig.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'ListInstanceConfigs'): ListInstanceConfigsResponse.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'ListInstances'): ListInstancesResponse.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'SetIamPolicy'): google_dot_iam_dot_v1_dot_policy__pb2.Policy.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'TestIamPermissions'): google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'UpdateInstance'): google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
    }
    method_implementations = {
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'CreateInstance'): face_utilities.unary_unary_inline(servicer.CreateInstance),
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'DeleteInstance'): face_utilities.unary_unary_inline(servicer.DeleteInstance),
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'GetIamPolicy'): face_utilities.unary_unary_inline(servicer.GetIamPolicy),
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'GetInstance'): face_utilities.unary_unary_inline(servicer.GetInstance),
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'GetInstanceConfig'): face_utilities.unary_unary_inline(servicer.GetInstanceConfig),
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'ListInstanceConfigs'): face_utilities.unary_unary_inline(servicer.ListInstanceConfigs),
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'ListInstances'): face_utilities.unary_unary_inline(servicer.ListInstances),
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'SetIamPolicy'): face_utilities.unary_unary_inline(servicer.SetIamPolicy),
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'TestIamPermissions'): face_utilities.unary_unary_inline(servicer.TestIamPermissions),
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'UpdateInstance'): face_utilities.unary_unary_inline(servicer.UpdateInstance),
    }
    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_InstanceAdmin_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.spanner.admin.instance.v1.InstanceAdmin', 'CreateInstance'): CreateInstanceRequest.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'DeleteInstance'): DeleteInstanceRequest.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'GetIamPolicy'): google_dot_iam_dot_v1_dot_iam__policy__pb2.GetIamPolicyRequest.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'GetInstance'): GetInstanceRequest.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'GetInstanceConfig'): GetInstanceConfigRequest.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'ListInstanceConfigs'): ListInstanceConfigsRequest.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'ListInstances'): ListInstancesRequest.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'SetIamPolicy'): google_dot_iam_dot_v1_dot_iam__policy__pb2.SetIamPolicyRequest.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'TestIamPermissions'): google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsRequest.SerializeToString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'UpdateInstance'): UpdateInstanceRequest.SerializeToString,
    }
    response_deserializers = {
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'CreateInstance'): google_dot_longrunning_dot_operations__pb2.Operation.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'DeleteInstance'): google_dot_protobuf_dot_empty__pb2.Empty.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'GetIamPolicy'): google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'GetInstance'): Instance.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'GetInstanceConfig'): InstanceConfig.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'ListInstanceConfigs'): ListInstanceConfigsResponse.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'ListInstances'): ListInstancesResponse.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'SetIamPolicy'): google_dot_iam_dot_v1_dot_policy__pb2.Policy.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'TestIamPermissions'): google_dot_iam_dot_v1_dot_iam__policy__pb2.TestIamPermissionsResponse.FromString,
      ('google.spanner.admin.instance.v1.InstanceAdmin', 'UpdateInstance'): google_dot_longrunning_dot_operations__pb2.Operation.FromString,
    }
    cardinalities = {
      'CreateInstance': cardinality.Cardinality.UNARY_UNARY,
      'DeleteInstance': cardinality.Cardinality.UNARY_UNARY,
      'GetIamPolicy': cardinality.Cardinality.UNARY_UNARY,
      'GetInstance': cardinality.Cardinality.UNARY_UNARY,
      'GetInstanceConfig': cardinality.Cardinality.UNARY_UNARY,
      'ListInstanceConfigs': cardinality.Cardinality.UNARY_UNARY,
      'ListInstances': cardinality.Cardinality.UNARY_UNARY,
      'SetIamPolicy': cardinality.Cardinality.UNARY_UNARY,
      'TestIamPermissions': cardinality.Cardinality.UNARY_UNARY,
      'UpdateInstance': 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.spanner.admin.instance.v1.InstanceAdmin', cardinalities, options=stub_options)
except ImportError:
  pass
# @@protoc_insertion_point(module_scope)
