diff --git a/Makefile b/Makefile index ec4bbbd170..a77a158cdf 100644 --- a/Makefile +++ b/Makefile @@ -181,18 +181,15 @@ v3_test: bson: go generate ./go/... -# This rule rebuilds all the go files from the proto definitions for gRPC -# FIXME(alainjobart) also add support for python gRPC stubs, right now -# it's only the proto files without gRPC +# This rule rebuilds all the go files from the proto definitions for gRPC. # 1. list all proto files. # 2. remove 'proto/' prefix and '.proto' suffix. -# 3. run protoc for each proto and put in go/vt/proto/${proto_file_name} +# 3. (go) run protoc for each proto and put in go/vt/proto/${proto_file_name}/ +# 4. (python) run protoc for each proto and put in py/vtproto/ proto: find proto -name '*.proto' -print | sed 's/^proto\///' | sed 's/\.proto//' | xargs -I{} $$VTROOT/dist/protobuf/bin/protoc -Iproto proto/{}.proto --go_out=plugins=grpc:go/vt/proto/{} find go/vt/proto -name "*.pb.go" | xargs sed --in-place -r -e 's,import ([a-z0-9_]+) ".",import \1 "github.com/youtube/vitess/go/vt/proto/\1",g' - cd py/vtctl && $$VTROOT/dist/protobuf/bin/protoc -I../../proto ../../proto/logutil.proto --python_out=. --grpc_out=. --plugin=protoc-gen-grpc=$$VTROOT/dist/grpc/bin/grpc_python_plugin - cd py/vtctl && $$VTROOT/dist/protobuf/bin/protoc -I../../proto ../../proto/vtctldata.proto --python_out=. --grpc_out=. --plugin=protoc-gen-grpc=$$VTROOT/dist/grpc/bin/grpc_python_plugin - cd py/vtctl && $$VTROOT/dist/protobuf/bin/protoc -I../../proto ../../proto/vtctlservice.proto --python_out=. --grpc_out=. --plugin=protoc-gen-grpc=$$VTROOT/dist/grpc/bin/grpc_python_plugin + find proto -name '*.proto' -print | sed 's/^proto\///' | sed 's/\.proto//' | xargs -I{} $$VTROOT/dist/protobuf/bin/protoc -Iproto proto/{}.proto --python_out=py/vtproto --grpc_out=py/vtproto --plugin=protoc-gen-grpc=$$VTROOT/dist/grpc/bin/grpc_python_plugin # This rule builds the bootstrap images for all flavors. docker_bootstrap: diff --git a/py/vtctl/gorpc_vtctl_client.py b/py/vtctl/gorpc_vtctl_client.py index eb33307ead..21bf2120ce 100644 --- a/py/vtctl/gorpc_vtctl_client.py +++ b/py/vtctl/gorpc_vtctl_client.py @@ -2,9 +2,6 @@ # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file. -import logging -import re - from net import bsonrpc from vtctl import vtctl_client @@ -22,7 +19,7 @@ class GoRpcVtctlClient(vtctl_client.VctlClient): self.connected = False def __str__(self): - return '' % self.addr + return '' % self.addr def dial(self): if self.connected: @@ -38,40 +35,17 @@ class GoRpcVtctlClient(vtctl_client.VctlClient): def is_closed(self): return self.client.is_closed() - def execute_vtctl_command(self, args, action_timeout=30.0, - lock_timeout=5.0, info_to_debug=False): - """Executes a remote command on the vtctl server. - - Args: - args: Command line to run. - action_timeout: total timeout for the action (float, in seconds). - lock_timeout: timeout for locking topology (float, in seconds). - info_to_debug: if set, changes the info messages to debug. - - Returns: - The console output of the action. - """ + def execute_vtctl_command(self, args, action_timeout=30.0, lock_timeout=5.0): req = { 'Args': args, 'ActionTimeout': long(action_timeout * 1000000000), 'LockTimeout': long(lock_timeout * 1000000000), } self.client.stream_call('VtctlServer.ExecuteVtctlCommand', req) - console_result = '' while True: e = self.client.stream_next() if e is None: break - if e.reply['Level'] == 0: - if info_to_debug: - logging.debug('%s', e.reply['Value']) - else: - logging.info('%s', e.reply['Value']) - elif e.reply['Level'] == 1: - logging.warning('%s', e.reply['Value']) - elif e.reply['Level'] == 2: - logging.error('%s', e.reply['Value']) - elif e.reply['Level'] == 3: - console_result += e.reply['Value'] - - return console_result + yield vtctl_client.Event(e.reply['Time'], e.reply['Level'], + e.reply['File'], e.reply['Line'], + e.reply['Value']) diff --git a/py/vtctl/grpc_vtctl_client.py b/py/vtctl/grpc_vtctl_client.py index 5d274446eb..545727def0 100644 --- a/py/vtctl/grpc_vtctl_client.py +++ b/py/vtctl/grpc_vtctl_client.py @@ -6,74 +6,63 @@ # It is untested and doesn't work just yet: ExecuteVtctlCommand # just seems to time out. -import logging +import datetime from urlparse import urlparse import vtctl_client -import vtctldata_pb2 -import vtctlservice_pb2 +from vtproto import vtctldata_pb2 +from vtproto import vtctlservice_pb2 class GRPCVtctlClient(vtctl_client.VctlClient): - """GoRpcVtctlClient is the gRPC implementation of VctlClient. - It is registered as 'grpc' protocol. - """ + """GoRpcVtctlClient is the gRPC implementation of VctlClient. + It is registered as 'grpc' protocol. + """ - def __init__(self, addr, timeout, user=None, password=None, encrypted=False, - keyfile=None, certfile=None): - self.addr = addr - self.timeout = timeout - self.stub = None + def __init__(self, addr, timeout): + self.addr = addr + self.timeout = timeout + self.stub = None - def __str__(self): - return '' % self.addr + def __str__(self): + return '' % self.addr - def dial(self): - if self.stub: - self.stub.close() + def dial(self): + if self.stub: + self.stub.close() - p = urlparse("http://" + self.addr) - self.stub = vtctlservice_pb2.early_adopter_create_Vtctl_stub(p.hostname, - p.port) + p = urlparse('http://' + self.addr) + self.stub = vtctlservice_pb2.early_adopter_create_Vtctl_stub(p.hostname, + p.port) - def close(self): - self.stub.close() - self.stub = None + def close(self): + self.stub.close() + self.stub = None - def is_closed(self): - return self.stub == None + def is_closed(self): + return self.stub == None - def execute_vtctl_command(self, args, action_timeout=30.0, - lock_timeout=5.0, info_to_debug=False): - """Executes a remote command on the vtctl server. + def execute_vtctl_command(self, args, action_timeout=30.0, lock_timeout=5.0): + req = vtctldata_pb2.ExecuteVtctlCommandRequest( + args=args, + action_timeout=long(action_timeout * 1000000000), + lock_timeout=long(lock_timeout * 1000000000)) + with self.stub as stub: + it = stub.ExecuteVtctlCommand(req, action_timeout) + for response in it: + t = datetime.datetime.utcfromtimestamp(response.event.time.seconds) + try: + yield vtctl_client.Event(t, response.event.level, response.event.file, + response.event.line, response.event.value) + except GeneratorExit: + # if the loop is interrupted for any reason, we need to + # cancel the iterator, so we close the RPC connection, + # and the with __exit__ statement is executed. - Args: - args: Command line to run. - action_timeout: total timeout for the action (float, in seconds). - lock_timeout: timeout for locking topology (float, in seconds). - info_to_debug: if set, changes the info messages to debug. + # FIXME(alainjobart) this is flaky. It sometimes doesn't stop + # the iterator, and we don't get out of the 'with'. + # Sending a Ctrl-C to the process then works for some reason. + it.cancel() + break - Returns: - The console output of the action. - """ - req = vtctldata_pb2.ExecuteVtctlCommandRequest( - args=args, - action_timeout=long(action_timeout * 1000000000), - lock_timeout=long(lock_timeout * 1000000000)) - console_result = '' - with self.stub as stub: - for response in stub.ExecuteVtctlCommand(req, action_timeout): - if response.event.level == 0: - if info_to_debug: - logging.debug('%s', response.event.value) - else: - logging.info('%s', response.event.value) - elif response.event.level == 1: - logging.warning('%s', response.event.value) - elif response.event.level == 2: - logging.error('%s', response.event.value) - elif response.event.level == 3: - console_result += response.event.value - return console_result - -vtctl_client.register_conn_class("grpc", GRPCVtctlClient) +vtctl_client.register_conn_class('grpc', GRPCVtctlClient) diff --git a/py/vtctl/vtctl_client.py b/py/vtctl/vtctl_client.py index af79c9634b..38feac89e3 100644 --- a/py/vtctl/vtctl_client.py +++ b/py/vtctl/vtctl_client.py @@ -21,14 +21,14 @@ def register_conn_class(protocol, c): def connect(protocol, *pargs, **kargs): - """connect will return a dialed VctlClient connection to a vtctl server. + """connect will return a dialed VtctlClient connection to a vtctl server. Args: protocol: the registered protocol to use. arsg: passed to the registered protocol __init__ method. Returns: - A dialed VctlClient. + A dialed VtctlClient. """ if not protocol in vtctl_client_conn_classes: raise Exception('Unknown vtclient protocol', protocol) @@ -37,6 +37,24 @@ def connect(protocol, *pargs, **kargs): return conn +class Event(object): + """Event is streamed by VctlClient. + Eventually, we will just use the proto3 definition for logutil.proto/Event. + """ + + INFO = 0 + WARNING = 1 + ERROR = 2 + CONSOLE = 3 + + def __init__(self, time, level, file, line, value): + self.time = time + self.level = level + self.file = file + self.line = line + self.value = value + + class VctlClient(object): """VctlClient is the interface for the vtctl client implementations. All implementations must implement all these methods. @@ -70,17 +88,49 @@ class VctlClient(object): """ pass - def execute_vtctl_command(self, args, action_timeout=30.0, - lock_timeout=5.0, info_to_debug=False): + def execute_vtctl_command(self, args, action_timeout=30.0, lock_timeout=5.0): """Executes a remote command on the vtctl server. Args: args: Command line to run. action_timeout: total timeout for the action (float, in seconds). lock_timeout: timeout for locking topology (float, in seconds). - info_to_debug: if set, changes the info messages to debug. Returns: - The console output of the action. + This is a generator method that yields Event objects. """ pass + + +def execute_vtctl_command(client, args, action_timeout=30.0, + lock_timeout=5.0, info_to_debug=False): + """This is a helper method that executes a remote vtctl command, logs + the output to the logging module, and returns the console output. + + Args: + client: VtctlClient object to use. + args: Command line to run. + action_timeout: total timeout for the action (float, in seconds). + lock_timeout: timeout for locking topology (float, in seconds). + info_to_debug: if set, changes the info messages to debug. + + Returns: + The console output of the action. + """ + + console_result = '' + for e in client.execute_vtctl_command(args, action_timeout=action_timeout, + lock_timeout=lock_timeout): + if e.level == Event.INFO: + if info_to_debug: + logging.debug('%s', e.value) + else: + logging.info('%s', e.value) + elif e.level == Event.WARNING: + logging.warning('%s', e.value) + elif e.level == Event.ERROR: + logging.error('%s', e.value) + elif e.level == Event.CONSOLE: + console_result += e.value + + return console_result diff --git a/py/vtdb/database_context.py b/py/vtdb/database_context.py index 7de1b8be5f..0c8b3fc6fc 100644 --- a/py/vtdb/database_context.py +++ b/py/vtdb/database_context.py @@ -17,7 +17,6 @@ management. import contextlib import functools -import logging from vtdb import dbexceptions from vtdb import shard_constants diff --git a/py/vtdb/db_object_custom_sharded.py b/py/vtdb/db_object_custom_sharded.py index 7637b988da..47801a49e4 100644 --- a/py/vtdb/db_object_custom_sharded.py +++ b/py/vtdb/db_object_custom_sharded.py @@ -4,8 +4,6 @@ Vitess sharding scheme is range-sharded. Vitess supports routing for other sharding schemes by allowing explicit shard_name addressing. This implementation is not fully complete as yet. """ -import logging - from vtdb import db_object from vtdb import dbexceptions from vtdb import shard_constants diff --git a/py/vtdb/db_object_lookup.py b/py/vtdb/db_object_lookup.py index 9bde7f1819..81755e9230 100644 --- a/py/vtdb/db_object_lookup.py +++ b/py/vtdb/db_object_lookup.py @@ -6,7 +6,6 @@ extends the functionality for getting, creating, updating and deleting the lookup relationship. """ import functools -import logging import struct from vtdb import db_object diff --git a/py/vtdb/db_object_unsharded.py b/py/vtdb/db_object_unsharded.py index 43b5b4721c..9799951071 100644 --- a/py/vtdb/db_object_unsharded.py +++ b/py/vtdb/db_object_unsharded.py @@ -5,7 +5,6 @@ for the common database operations is defined in DBObjectBase. DBObjectUnsharded defines the cursor creation methods for the same. """ import functools -import logging import struct from vtdb import db_object diff --git a/py/vtdb/gorpc_update_stream.py b/py/vtdb/gorpc_update_stream.py new file mode 100644 index 0000000000..56680e821e --- /dev/null +++ b/py/vtdb/gorpc_update_stream.py @@ -0,0 +1,106 @@ +# Copyright 2015, Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can +# be found in the LICENSE file. + +from itertools import izip +import logging + +from net import gorpc +from net import bsonrpc +from vtdb import dbexceptions +from vtdb import field_types +from vtdb import update_stream + + +def _make_row(row, conversions): + converted_row = [] + for conversion_func, field_data in izip(conversions, row): + if field_data is None: + v = None + elif conversion_func: + v = conversion_func(field_data) + else: + v = field_data + converted_row.append(v) + return converted_row + + +class GoRpcUpdateStreamConnection(update_stream.UpdateStreamConnection): + """GoRpcUpdateStreamConnection is the go rpc implementation of + UpdateStreamConnection. + It is registered as 'gorpc' protocol. + """ + + def __init__(self, addr, timeout, user=None, password=None, encrypted=False, + keyfile=None, certfile=None): + self.addr = addr + self.timeout = timeout + self.client = bsonrpc.BsonRpcClient(addr, timeout, user=user, + password=password, encrypted=encrypted, + keyfile=keyfile, certfile=certfile) + self.connected = False + + def __str__(self): + return '' % self.addr + + def dial(self): + if self.connected: + self.client.close() + + self.client.dial() + self.connected = True + + def close(self): + self.connected = False + self.client.close() + + def is_closed(self): + return self.client.is_closed() + + def stream_update(self, position, timeout=3600.0): + """Note this implementation doesn't honor the timeout.""" + try: + self.client.stream_call('UpdateStream.ServeUpdateStream', + {"Position": position}) + while True: + response = self.client.stream_next() + if response is None: + break + reply = response.reply + + str_category = reply['Category'] + if str_category == 'DML': + category = update_stream.StreamEvent.DML + elif str_category == 'DDL': + category = update_stream.StreamEvent.DDL + elif str_category == 'POS': + category = update_stream.StreamEvent.POS + else: + category = update_stream.StreamEvent.ERR + + fields = [] + rows = [] + if reply['PrimaryKeyFields']: + conversions = [] + for field in reply['PrimaryKeyFields']: + fields.append(field['Name']) + conversions.append(field_types.conversions.get(field['Type'])) + + for pk_list in reply['PrimaryKeyValues']: + if not pk_list: + continue + row = tuple(_make_row(pk_list, conversions)) + rows.append(row) + + yield update_stream.StreamEvent(category, reply['TableName'], + fields, rows, reply['Sql'], + reply['Timestamp'], + reply['GTIDField']) + except gorpc.AppError as e: + raise dbexceptions.DatabaseError(*e.args) + except gorpc.GoRpcError as e: + raise dbexceptions.OperationalError(*e.args) + except: + raise + +update_stream.register_conn_class('gorpc', GoRpcUpdateStreamConnection) diff --git a/py/vtdb/grpc_update_stream.py b/py/vtdb/grpc_update_stream.py new file mode 100644 index 0000000000..3ce44b7d2c --- /dev/null +++ b/py/vtdb/grpc_update_stream.py @@ -0,0 +1,106 @@ +# Copyright 2015, Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can +# be found in the LICENSE file. + +from itertools import izip +import logging +from urlparse import urlparse + +from vtdb import dbexceptions +from vtdb import field_types +from vtdb import update_stream + +from vtproto import binlogdata_pb2 +from vtproto import binlogservice_pb2 +from vtproto import replicationdata_pb2 + +def _make_row(row, conversions): + converted_row = [] + for conversion_func, field_data in izip(conversions, row): + if field_data is None: + v = None + elif conversion_func: + v = conversion_func(field_data) + else: + v = field_data + converted_row.append(v) + return converted_row + + +class GRPCUpdateStreamConnection(update_stream.UpdateStreamConnection): + """GRPCUpdateStreamConnection is the gRPC implementation of + UpdateStreamConnection. + It is registered as 'grpc' protocol. + """ + + def __init__(self, addr, timeout): + self.addr = addr + self.timeout = timeout + self.stub = None + + def __str__(self): + return '' % self.addr + + def dial(self): + p = urlparse('http://' + self.addr) + self.stub = binlogservice_pb2.early_adopter_create_UpdateStream_stub( + p.hostname, p.port) + + def close(self): + self.stub = None + + def is_closed(self): + return self.stub == None + + def stream_update(self, position, timeout=3600.0): + # FIXME(alainjobart) the parameter we pass for position should be + # the string encoded one, we shouldn't need the structures. + if 'MariaDB' in position: + parts = position['MariaDB'].split("-") + domain = long(parts[0]) + server = long(parts[1]) + sequence = long(parts[2]) + p3_position = replicationdata_pb2.Position( + mariadb_gtid=replicationdata_pb2.MariadbGtid(domain=domain, + server=server, + sequence=sequence)) + else: + raise NotImplemented("Only MariaDB encoding is supported here for now") + + req = binlogdata_pb2.StreamUpdateRequest(position=p3_position) + + with self.stub as stub: + it = stub.StreamUpdate(req, timeout) + for response in it: + stream_event = response.stream_event + fields = [] + rows = [] + if stream_event.primary_key_fields: + conversions = [] + for field in stream_event.primary_key_fields: + fields.append(field.name) + conversions.append(field_types.conversions.get(field.type)) + + for r in stream_event.primary_key_values: + row = tuple(_make_row(r.values, conversions)) + rows.append(row) + + try: + yield update_stream.StreamEvent(int(stream_event.category), + stream_event.table_name, + fields, rows, + stream_event.sql, + stream_event.timestamp, + stream_event.gtid) + except GeneratorExit: + # if the loop is interrupted for any reason, we need to + # cancel the iterator, so we close the RPC connection, + # and the with __exit__ statement is executed. + + # FIXME(alainjobart) this is flaky. It sometimes doesn't stop + # the iterator, and we don't get out of the 'with'. + # Sending a Ctrl-C to the process then works for some reason. + it.cancel() + break + +update_stream.register_conn_class('grpc', GRPCUpdateStreamConnection) diff --git a/py/vtdb/topo_utils.py b/py/vtdb/topo_utils.py index 00d0758d6b..16a4389401 100644 --- a/py/vtdb/topo_utils.py +++ b/py/vtdb/topo_utils.py @@ -2,7 +2,6 @@ # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file. -import logging import random from zk import zkocc diff --git a/py/vtdb/topology.py b/py/vtdb/topology.py index 5bcb9b09c1..28ba1b77b4 100644 --- a/py/vtdb/topology.py +++ b/py/vtdb/topology.py @@ -13,7 +13,6 @@ # soon. # -import logging import random import time diff --git a/py/vtdb/update_stream.py b/py/vtdb/update_stream.py new file mode 100644 index 0000000000..1594d36479 --- /dev/null +++ b/py/vtdb/update_stream.py @@ -0,0 +1,106 @@ +# Copyright 2015, Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can +# be found in the LICENSE file. + +# mapping from protocol to python class. The protocol matches the string +# used by vttablet as a -binlog_player_protocol parameter. +update_stream_conn_classes = dict() + + +def register_conn_class(protocol, c): + """Used by implementations to register themselves. + + Args: + protocol: short string to document the protocol. + c: class to register. + """ + update_stream_conn_classes[protocol] = c + + +def connect(protocol, *pargs, **kargs): + """connect will return a dialed UpdateStreamConnection connection to + an update stream server. + + Args: + protocol: the registered protocol to use. + arsg: passed to the registered protocol __init__ method. + + Returns: + A dialed UpdateStreamConnection. + + """ + if not protocol in update_stream_conn_classes: + raise Exception('Unknown update stream protocol', protocol) + conn = update_stream_conn_classes[protocol](*pargs, **kargs) + conn.dial() + return conn + + +class StreamEvent(object): + """StreamEvent describes a single event in the update stream. + + Eventually we will use the proto3 definition object. + """ + + ERR = 0 + DML = 1 + DDL = 2 + POS = 3 + + def __init__(self, category, table_name, fields, rows, sql, timestamp, + position): + self.category = category + self.table_name = table_name + self.fields = fields + self.rows = rows + self.sql = sql + self.timestamp = timestamp + self.position = position + + +class UpdateStreamConnection(object): + """UpdateStreamConnection is the interface for the update stream + client implementations. + All implementations must implement all these methods. + If something goes wrong with the connection, this object will be thrown out. + + """ + + def __init__(self, addr, timeout): + """Initialize an update stream connection. + + Args: + addr: server address. Can be protocol dependent. + timeout: connection timeout (float, in seconds). + """ + pass + + def dial(self): + """Dial to the server. If successful, call close() to close the connection. + """ + pass + + def close(self): + """Close the connection. This object may be re-used again by calling dial(). + """ + pass + + def is_closed(self): + """Checks the connection status. + + Returns: + True if this connection is closed. + """ + pass + + def stream_update(self, position, timeout=3600.0): + """Generator method to stream the updates from a given replication point. + + Args: + position: Starting position to stream from. + timeout: Should stop streaming after we reach this timeout. + + Returns: + This is a generator method that yields StreamEvent objects. + """ + pass diff --git a/py/vtdb/update_stream_service.py b/py/vtdb/update_stream_service.py deleted file mode 100755 index 4f093e0ada..0000000000 --- a/py/vtdb/update_stream_service.py +++ /dev/null @@ -1,101 +0,0 @@ -#! /usr/bin/python - -from itertools import izip -import logging - -from net import gorpc -from net import bsonrpc -from vtdb import dbexceptions -from vtdb import field_types - -class Coord(object): - Position = None - ServerId = None - - def __init__(self, replPos, server_id = None): - self.Position = replPos - self.ServerId = server_id - - -def _make_row(row, conversions): - converted_row = [] - for conversion_func, field_data in izip(conversions, row): - if field_data is None: - v = None - elif conversion_func: - v = conversion_func(field_data) - else: - v = field_data - converted_row.append(v) - return converted_row - - -class EventData(object): - Category = None - TableName = None - PrimaryKeyFields = None - PrimaryKeyValues = None - Sql = None - Timestamp = None - GTIDField = None - - def __init__(self, raw_response): - for key, val in raw_response.iteritems(): - self.__dict__[key] = val - self.PkRows = [] - del self.__dict__['PrimaryKeyFields'] - del self.__dict__['PrimaryKeyValues'] - - # build the conversions - if not raw_response['PrimaryKeyFields']: - return - self.Fields = [] - conversions = [] - for field in raw_response['PrimaryKeyFields']: - self.Fields.append(field['Name']) - conversions.append(field_types.conversions.get(field['Type'])) - - # and parse the results - for pkList in raw_response['PrimaryKeyValues']: - if not pkList: - continue - pk_row = tuple(_make_row(pkList, conversions)) - self.PkRows.append(pk_row) - - -class UpdateStreamConnection(object): - def __init__(self, addr, timeout, user=None, password=None, encrypted=False, keyfile=None, certfile=None): - self.client = bsonrpc.BsonRpcClient(addr, timeout, user, password, encrypted, keyfile, certfile) - - def dial(self): - self.client.dial() - - def close(self): - self.client.close() - - def stream_start(self, replPos): - try: - self.client.stream_call('UpdateStream.ServeUpdateStream', {"Position": replPos}) - response = self.client.stream_next() - if response is None: - return None - return EventData(response.reply).__dict__ - except gorpc.GoRpcError as e: - raise dbexceptions.OperationalError(*e.args) - except: - logging.exception('gorpc low-level error') - raise - - def stream_next(self): - try: - response = self.client.stream_next() - if response is None: - return None - return EventData(response.reply).__dict__ - except gorpc.AppError as e: - raise dbexceptions.DatabaseError(*e.args) - except gorpc.GoRpcError as e: - raise dbexceptions.OperationalError(*e.args) - except: - logging.exception('gorpc low-level error') - raise diff --git a/py/vtproto/__init__.py b/py/vtproto/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/py/vtproto/automation_pb2.py b/py/vtproto/automation_pb2.py new file mode 100644 index 0000000000..6e670c690e --- /dev/null +++ b/py/vtproto/automation_pb2.py @@ -0,0 +1,631 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: automation.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper +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() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='automation.proto', + package='automation', + syntax='proto3', + serialized_pb=_b('\n\x10\x61utomation.proto\x12\nautomation\"\x90\x01\n\x10\x43lusterOperation\x12\n\n\x02id\x18\x01 \x01(\t\x12/\n\x0cserial_tasks\x18\x02 \x03(\x0b\x32\x19.automation.TaskContainer\x12\x30\n\x05state\x18\x03 \x01(\x0e\x32!.automation.ClusterOperationState\x12\r\n\x05\x65rror\x18\x04 \x01(\t\"N\n\rTaskContainer\x12(\n\x0eparallel_tasks\x18\x01 \x03(\x0b\x32\x10.automation.Task\x12\x13\n\x0b\x63oncurrency\x18\x02 \x01(\x05\"\xce\x01\n\x04Task\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\nparameters\x18\x02 \x03(\x0b\x32 .automation.Task.ParametersEntry\x12\n\n\x02id\x18\x03 \x01(\t\x12$\n\x05state\x18\x04 \x01(\x0e\x32\x15.automation.TaskState\x12\x0e\n\x06output\x18\x05 \x01(\t\x12\r\n\x05\x65rror\x18\x06 \x01(\t\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb1\x01\n\x1e\x45nqueueClusterOperationRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12N\n\nparameters\x18\x02 \x03(\x0b\x32:.automation.EnqueueClusterOperationRequest.ParametersEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"-\n\x1f\x45nqueueClusterOperationResponse\x12\n\n\x02id\x18\x01 \x01(\t\"-\n\x1fGetClusterOperationStateRequest\x12\n\n\x02id\x18\x01 \x01(\t\"T\n GetClusterOperationStateResponse\x12\x30\n\x05state\x18\x01 \x01(\x0e\x32!.automation.ClusterOperationState\"/\n!GetClusterOperationDetailsRequest\x12\n\n\x02id\x18\x01 \x01(\t\"V\n\"GetClusterOperationDetailsResponse\x12\x30\n\ncluster_op\x18\x02 \x01(\x0b\x32\x1c.automation.ClusterOperation*\x9a\x01\n\x15\x43lusterOperationState\x12#\n\x1fUNKNOWN_CLUSTER_OPERATION_STATE\x10\x00\x12!\n\x1d\x43LUSTER_OPERATION_NOT_STARTED\x10\x01\x12\x1d\n\x19\x43LUSTER_OPERATION_RUNNING\x10\x02\x12\x1a\n\x16\x43LUSTER_OPERATION_DONE\x10\x03*K\n\tTaskState\x12\x16\n\x12UNKNOWN_TASK_STATE\x10\x00\x12\x0f\n\x0bNOT_STARTED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x62\x06proto3') +) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +_CLUSTEROPERATIONSTATE = _descriptor.EnumDescriptor( + name='ClusterOperationState', + full_name='automation.ClusterOperationState', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNKNOWN_CLUSTER_OPERATION_STATE', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CLUSTER_OPERATION_NOT_STARTED', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CLUSTER_OPERATION_RUNNING', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CLUSTER_OPERATION_DONE', index=3, number=3, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=966, + serialized_end=1120, +) +_sym_db.RegisterEnumDescriptor(_CLUSTEROPERATIONSTATE) + +ClusterOperationState = enum_type_wrapper.EnumTypeWrapper(_CLUSTEROPERATIONSTATE) +_TASKSTATE = _descriptor.EnumDescriptor( + name='TaskState', + full_name='automation.TaskState', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNKNOWN_TASK_STATE', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_STARTED', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RUNNING', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DONE', index=3, number=3, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=1122, + serialized_end=1197, +) +_sym_db.RegisterEnumDescriptor(_TASKSTATE) + +TaskState = enum_type_wrapper.EnumTypeWrapper(_TASKSTATE) +UNKNOWN_CLUSTER_OPERATION_STATE = 0 +CLUSTER_OPERATION_NOT_STARTED = 1 +CLUSTER_OPERATION_RUNNING = 2 +CLUSTER_OPERATION_DONE = 3 +UNKNOWN_TASK_STATE = 0 +NOT_STARTED = 1 +RUNNING = 2 +DONE = 3 + + + +_CLUSTEROPERATION = _descriptor.Descriptor( + name='ClusterOperation', + full_name='automation.ClusterOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='automation.ClusterOperation.id', 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='serial_tasks', full_name='automation.ClusterOperation.serial_tasks', 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='state', full_name='automation.ClusterOperation.state', index=2, + number=3, 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='error', full_name='automation.ClusterOperation.error', 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=33, + serialized_end=177, +) + + +_TASKCONTAINER = _descriptor.Descriptor( + name='TaskContainer', + full_name='automation.TaskContainer', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='parallel_tasks', full_name='automation.TaskContainer.parallel_tasks', 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='concurrency', full_name='automation.TaskContainer.concurrency', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=179, + serialized_end=257, +) + + +_TASK_PARAMETERSENTRY = _descriptor.Descriptor( + name='ParametersEntry', + full_name='automation.Task.ParametersEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='automation.Task.ParametersEntry.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='automation.Task.ParametersEntry.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=417, + serialized_end=466, +) + +_TASK = _descriptor.Descriptor( + name='Task', + full_name='automation.Task', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='automation.Task.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='parameters', full_name='automation.Task.parameters', 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='id', full_name='automation.Task.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), + _descriptor.FieldDescriptor( + name='state', full_name='automation.Task.state', index=3, + number=4, 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='output', full_name='automation.Task.output', index=4, + number=5, 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='error', full_name='automation.Task.error', index=5, + number=6, 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=[_TASK_PARAMETERSENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=260, + serialized_end=466, +) + + +_ENQUEUECLUSTEROPERATIONREQUEST_PARAMETERSENTRY = _descriptor.Descriptor( + name='ParametersEntry', + full_name='automation.EnqueueClusterOperationRequest.ParametersEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='automation.EnqueueClusterOperationRequest.ParametersEntry.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='automation.EnqueueClusterOperationRequest.ParametersEntry.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=417, + serialized_end=466, +) + +_ENQUEUECLUSTEROPERATIONREQUEST = _descriptor.Descriptor( + name='EnqueueClusterOperationRequest', + full_name='automation.EnqueueClusterOperationRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='automation.EnqueueClusterOperationRequest.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='parameters', full_name='automation.EnqueueClusterOperationRequest.parameters', 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), + ], + extensions=[ + ], + nested_types=[_ENQUEUECLUSTEROPERATIONREQUEST_PARAMETERSENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=469, + serialized_end=646, +) + + +_ENQUEUECLUSTEROPERATIONRESPONSE = _descriptor.Descriptor( + name='EnqueueClusterOperationResponse', + full_name='automation.EnqueueClusterOperationResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='automation.EnqueueClusterOperationResponse.id', 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=648, + serialized_end=693, +) + + +_GETCLUSTEROPERATIONSTATEREQUEST = _descriptor.Descriptor( + name='GetClusterOperationStateRequest', + full_name='automation.GetClusterOperationStateRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='automation.GetClusterOperationStateRequest.id', 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=695, + serialized_end=740, +) + + +_GETCLUSTEROPERATIONSTATERESPONSE = _descriptor.Descriptor( + name='GetClusterOperationStateResponse', + full_name='automation.GetClusterOperationStateResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='state', full_name='automation.GetClusterOperationStateResponse.state', index=0, + number=1, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=742, + serialized_end=826, +) + + +_GETCLUSTEROPERATIONDETAILSREQUEST = _descriptor.Descriptor( + name='GetClusterOperationDetailsRequest', + full_name='automation.GetClusterOperationDetailsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='automation.GetClusterOperationDetailsRequest.id', 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=828, + serialized_end=875, +) + + +_GETCLUSTEROPERATIONDETAILSRESPONSE = _descriptor.Descriptor( + name='GetClusterOperationDetailsResponse', + full_name='automation.GetClusterOperationDetailsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='cluster_op', full_name='automation.GetClusterOperationDetailsResponse.cluster_op', index=0, + 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=877, + serialized_end=963, +) + +_CLUSTEROPERATION.fields_by_name['serial_tasks'].message_type = _TASKCONTAINER +_CLUSTEROPERATION.fields_by_name['state'].enum_type = _CLUSTEROPERATIONSTATE +_TASKCONTAINER.fields_by_name['parallel_tasks'].message_type = _TASK +_TASK_PARAMETERSENTRY.containing_type = _TASK +_TASK.fields_by_name['parameters'].message_type = _TASK_PARAMETERSENTRY +_TASK.fields_by_name['state'].enum_type = _TASKSTATE +_ENQUEUECLUSTEROPERATIONREQUEST_PARAMETERSENTRY.containing_type = _ENQUEUECLUSTEROPERATIONREQUEST +_ENQUEUECLUSTEROPERATIONREQUEST.fields_by_name['parameters'].message_type = _ENQUEUECLUSTEROPERATIONREQUEST_PARAMETERSENTRY +_GETCLUSTEROPERATIONSTATERESPONSE.fields_by_name['state'].enum_type = _CLUSTEROPERATIONSTATE +_GETCLUSTEROPERATIONDETAILSRESPONSE.fields_by_name['cluster_op'].message_type = _CLUSTEROPERATION +DESCRIPTOR.message_types_by_name['ClusterOperation'] = _CLUSTEROPERATION +DESCRIPTOR.message_types_by_name['TaskContainer'] = _TASKCONTAINER +DESCRIPTOR.message_types_by_name['Task'] = _TASK +DESCRIPTOR.message_types_by_name['EnqueueClusterOperationRequest'] = _ENQUEUECLUSTEROPERATIONREQUEST +DESCRIPTOR.message_types_by_name['EnqueueClusterOperationResponse'] = _ENQUEUECLUSTEROPERATIONRESPONSE +DESCRIPTOR.message_types_by_name['GetClusterOperationStateRequest'] = _GETCLUSTEROPERATIONSTATEREQUEST +DESCRIPTOR.message_types_by_name['GetClusterOperationStateResponse'] = _GETCLUSTEROPERATIONSTATERESPONSE +DESCRIPTOR.message_types_by_name['GetClusterOperationDetailsRequest'] = _GETCLUSTEROPERATIONDETAILSREQUEST +DESCRIPTOR.message_types_by_name['GetClusterOperationDetailsResponse'] = _GETCLUSTEROPERATIONDETAILSRESPONSE +DESCRIPTOR.enum_types_by_name['ClusterOperationState'] = _CLUSTEROPERATIONSTATE +DESCRIPTOR.enum_types_by_name['TaskState'] = _TASKSTATE + +ClusterOperation = _reflection.GeneratedProtocolMessageType('ClusterOperation', (_message.Message,), dict( + DESCRIPTOR = _CLUSTEROPERATION, + __module__ = 'automation_pb2' + # @@protoc_insertion_point(class_scope:automation.ClusterOperation) + )) +_sym_db.RegisterMessage(ClusterOperation) + +TaskContainer = _reflection.GeneratedProtocolMessageType('TaskContainer', (_message.Message,), dict( + DESCRIPTOR = _TASKCONTAINER, + __module__ = 'automation_pb2' + # @@protoc_insertion_point(class_scope:automation.TaskContainer) + )) +_sym_db.RegisterMessage(TaskContainer) + +Task = _reflection.GeneratedProtocolMessageType('Task', (_message.Message,), dict( + + ParametersEntry = _reflection.GeneratedProtocolMessageType('ParametersEntry', (_message.Message,), dict( + DESCRIPTOR = _TASK_PARAMETERSENTRY, + __module__ = 'automation_pb2' + # @@protoc_insertion_point(class_scope:automation.Task.ParametersEntry) + )) + , + DESCRIPTOR = _TASK, + __module__ = 'automation_pb2' + # @@protoc_insertion_point(class_scope:automation.Task) + )) +_sym_db.RegisterMessage(Task) +_sym_db.RegisterMessage(Task.ParametersEntry) + +EnqueueClusterOperationRequest = _reflection.GeneratedProtocolMessageType('EnqueueClusterOperationRequest', (_message.Message,), dict( + + ParametersEntry = _reflection.GeneratedProtocolMessageType('ParametersEntry', (_message.Message,), dict( + DESCRIPTOR = _ENQUEUECLUSTEROPERATIONREQUEST_PARAMETERSENTRY, + __module__ = 'automation_pb2' + # @@protoc_insertion_point(class_scope:automation.EnqueueClusterOperationRequest.ParametersEntry) + )) + , + DESCRIPTOR = _ENQUEUECLUSTEROPERATIONREQUEST, + __module__ = 'automation_pb2' + # @@protoc_insertion_point(class_scope:automation.EnqueueClusterOperationRequest) + )) +_sym_db.RegisterMessage(EnqueueClusterOperationRequest) +_sym_db.RegisterMessage(EnqueueClusterOperationRequest.ParametersEntry) + +EnqueueClusterOperationResponse = _reflection.GeneratedProtocolMessageType('EnqueueClusterOperationResponse', (_message.Message,), dict( + DESCRIPTOR = _ENQUEUECLUSTEROPERATIONRESPONSE, + __module__ = 'automation_pb2' + # @@protoc_insertion_point(class_scope:automation.EnqueueClusterOperationResponse) + )) +_sym_db.RegisterMessage(EnqueueClusterOperationResponse) + +GetClusterOperationStateRequest = _reflection.GeneratedProtocolMessageType('GetClusterOperationStateRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCLUSTEROPERATIONSTATEREQUEST, + __module__ = 'automation_pb2' + # @@protoc_insertion_point(class_scope:automation.GetClusterOperationStateRequest) + )) +_sym_db.RegisterMessage(GetClusterOperationStateRequest) + +GetClusterOperationStateResponse = _reflection.GeneratedProtocolMessageType('GetClusterOperationStateResponse', (_message.Message,), dict( + DESCRIPTOR = _GETCLUSTEROPERATIONSTATERESPONSE, + __module__ = 'automation_pb2' + # @@protoc_insertion_point(class_scope:automation.GetClusterOperationStateResponse) + )) +_sym_db.RegisterMessage(GetClusterOperationStateResponse) + +GetClusterOperationDetailsRequest = _reflection.GeneratedProtocolMessageType('GetClusterOperationDetailsRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCLUSTEROPERATIONDETAILSREQUEST, + __module__ = 'automation_pb2' + # @@protoc_insertion_point(class_scope:automation.GetClusterOperationDetailsRequest) + )) +_sym_db.RegisterMessage(GetClusterOperationDetailsRequest) + +GetClusterOperationDetailsResponse = _reflection.GeneratedProtocolMessageType('GetClusterOperationDetailsResponse', (_message.Message,), dict( + DESCRIPTOR = _GETCLUSTEROPERATIONDETAILSRESPONSE, + __module__ = 'automation_pb2' + # @@protoc_insertion_point(class_scope:automation.GetClusterOperationDetailsResponse) + )) +_sym_db.RegisterMessage(GetClusterOperationDetailsResponse) + + +_TASK_PARAMETERSENTRY.has_options = True +_TASK_PARAMETERSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_ENQUEUECLUSTEROPERATIONREQUEST_PARAMETERSENTRY.has_options = True +_ENQUEUECLUSTEROPERATIONREQUEST_PARAMETERSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +# @@protoc_insertion_point(module_scope) diff --git a/py/vtproto/automationservice_pb2.py b/py/vtproto/automationservice_pb2.py new file mode 100644 index 0000000000..aa72d12f9f --- /dev/null +++ b/py/vtproto/automationservice_pb2.py @@ -0,0 +1,98 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: automationservice.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() + + +import automation_pb2 as automation__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='automationservice.proto', + package='automationservice', + syntax='proto3', + serialized_pb=_b('\n\x17\x61utomationservice.proto\x12\x11\x61utomationservice\x1a\x10\x61utomation.proto2\x81\x02\n\nAutomation\x12t\n\x17\x45nqueueClusterOperation\x12*.automation.EnqueueClusterOperationRequest\x1a+.automation.EnqueueClusterOperationResponse\"\x00\x12}\n\x1aGetClusterOperationDetails\x12-.automation.GetClusterOperationDetailsRequest\x1a..automation.GetClusterOperationDetailsResponse\"\x00\x62\x06proto3') + , + dependencies=[automation__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + + + +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +class EarlyAdopterAutomationServicer(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def EnqueueClusterOperation(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def GetClusterOperationDetails(self, request, context): + raise NotImplementedError() +class EarlyAdopterAutomationServer(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def start(self): + raise NotImplementedError() + @abc.abstractmethod + def stop(self): + raise NotImplementedError() +class EarlyAdopterAutomationStub(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def EnqueueClusterOperation(self, request): + raise NotImplementedError() + EnqueueClusterOperation.async = None + @abc.abstractmethod + def GetClusterOperationDetails(self, request): + raise NotImplementedError() + GetClusterOperationDetails.async = None +def early_adopter_create_Automation_server(servicer, port, private_key=None, certificate_chain=None): + import automation_pb2 + import automation_pb2 + import automation_pb2 + import automation_pb2 + method_service_descriptions = { + "EnqueueClusterOperation": utilities.unary_unary_service_description( + servicer.EnqueueClusterOperation, + automation_pb2.EnqueueClusterOperationRequest.FromString, + automation_pb2.EnqueueClusterOperationResponse.SerializeToString, + ), + "GetClusterOperationDetails": utilities.unary_unary_service_description( + servicer.GetClusterOperationDetails, + automation_pb2.GetClusterOperationDetailsRequest.FromString, + automation_pb2.GetClusterOperationDetailsResponse.SerializeToString, + ), + } + return implementations.server("automationservice.Automation", method_service_descriptions, port, private_key=private_key, certificate_chain=certificate_chain) +def early_adopter_create_Automation_stub(host, port, metadata_transformer=None, secure=False, root_certificates=None, private_key=None, certificate_chain=None, server_host_override=None): + import automation_pb2 + import automation_pb2 + import automation_pb2 + import automation_pb2 + method_invocation_descriptions = { + "EnqueueClusterOperation": utilities.unary_unary_invocation_description( + automation_pb2.EnqueueClusterOperationRequest.SerializeToString, + automation_pb2.EnqueueClusterOperationResponse.FromString, + ), + "GetClusterOperationDetails": utilities.unary_unary_invocation_description( + automation_pb2.GetClusterOperationDetailsRequest.SerializeToString, + automation_pb2.GetClusterOperationDetailsResponse.FromString, + ), + } + return implementations.stub("automationservice.Automation", method_invocation_descriptions, host, port, metadata_transformer=metadata_transformer, secure=secure, root_certificates=root_certificates, private_key=private_key, certificate_chain=certificate_chain, server_host_override=server_host_override) +# @@protoc_insertion_point(module_scope) diff --git a/py/vtproto/binlogdata_pb2.py b/py/vtproto/binlogdata_pb2.py new file mode 100644 index 0000000000..078fcf40c4 --- /dev/null +++ b/py/vtproto/binlogdata_pb2.py @@ -0,0 +1,638 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: binlogdata.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() + + +import query_pb2 as query__pb2 +import topodata_pb2 as topodata__pb2 +import replicationdata_pb2 as replicationdata__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='binlogdata.proto', + package='binlogdata', + syntax='proto3', + serialized_pb=_b('\n\x10\x62inlogdata.proto\x12\nbinlogdata\x1a\x0bquery.proto\x1a\x0etopodata.proto\x1a\x15replicationdata.proto\"7\n\x07\x43harset\x12\x0e\n\x06\x63lient\x18\x01 \x01(\x05\x12\x0c\n\x04\x63onn\x18\x02 \x01(\x05\x12\x0e\n\x06server\x18\x03 \x01(\x05\"\xe9\x02\n\x11\x42inlogTransaction\x12;\n\nstatements\x18\x01 \x03(\x0b\x32\'.binlogdata.BinlogTransaction.Statement\x12\x11\n\ttimestamp\x18\x02 \x01(\x03\x12\x0c\n\x04gtid\x18\x03 \x01(\t\x1a\xf5\x01\n\tStatement\x12\x42\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32\x30.binlogdata.BinlogTransaction.Statement.Category\x12$\n\x07\x63harset\x18\x03 \x01(\x0b\x32\x13.binlogdata.Charset\x12\x0b\n\x03sql\x18\x02 \x01(\x0c\"q\n\x08\x43\x61tegory\x12\x13\n\x0f\x42L_UNRECOGNIZED\x10\x00\x12\x0c\n\x08\x42L_BEGIN\x10\x01\x12\r\n\tBL_COMMIT\x10\x02\x12\x0f\n\x0b\x42L_ROLLBACK\x10\x03\x12\n\n\x06\x42L_DML\x10\x04\x12\n\n\x06\x42L_DDL\x10\x05\x12\n\n\x06\x42L_SET\x10\x06\"\x91\x02\n\x0bStreamEvent\x12\x32\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32 .binlogdata.StreamEvent.Category\x12\x12\n\ntable_name\x18\x02 \x01(\t\x12(\n\x12primary_key_fields\x18\x03 \x03(\x0b\x32\x0c.query.Field\x12&\n\x12primary_key_values\x18\x04 \x03(\x0b\x32\n.query.Row\x12\x0b\n\x03sql\x18\x05 \x01(\t\x12\x11\n\ttimestamp\x18\x06 \x01(\x03\x12\x0c\n\x04gtid\x18\x07 \x01(\t\":\n\x08\x43\x61tegory\x12\n\n\x06SE_ERR\x10\x00\x12\n\n\x06SE_DML\x10\x01\x12\n\n\x06SE_DDL\x10\x02\x12\n\n\x06SE_POS\x10\x03\"B\n\x13StreamUpdateRequest\x12+\n\x08position\x18\x01 \x01(\x0b\x32\x19.replicationdata.Position\"E\n\x14StreamUpdateResponse\x12-\n\x0cstream_event\x18\x01 \x01(\x0b\x32\x17.binlogdata.StreamEvent\"\xc5\x01\n\x15StreamKeyRangeRequest\x12+\n\x08position\x18\x01 \x01(\x0b\x32\x19.replicationdata.Position\x12\x32\n\x10keyspace_id_type\x18\x02 \x01(\x0e\x32\x18.topodata.KeyspaceIdType\x12%\n\tkey_range\x18\x03 \x01(\x0b\x32\x12.topodata.KeyRange\x12$\n\x07\x63harset\x18\x04 \x01(\x0b\x32\x13.binlogdata.Charset\"S\n\x16StreamKeyRangeResponse\x12\x39\n\x12\x62inlog_transaction\x18\x01 \x01(\x0b\x32\x1d.binlogdata.BinlogTransaction\"x\n\x13StreamTablesRequest\x12+\n\x08position\x18\x01 \x01(\x0b\x32\x19.replicationdata.Position\x12\x0e\n\x06tables\x18\x02 \x03(\t\x12$\n\x07\x63harset\x18\x03 \x01(\x0b\x32\x13.binlogdata.Charset\"Q\n\x14StreamTablesResponse\x12\x39\n\x12\x62inlog_transaction\x18\x01 \x01(\x0b\x32\x1d.binlogdata.BinlogTransactionb\x06proto3') + , + dependencies=[query__pb2.DESCRIPTOR,topodata__pb2.DESCRIPTOR,replicationdata__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + +_BINLOGTRANSACTION_STATEMENT_CATEGORY = _descriptor.EnumDescriptor( + name='Category', + full_name='binlogdata.BinlogTransaction.Statement.Category', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='BL_UNRECOGNIZED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BL_BEGIN', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BL_COMMIT', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BL_ROLLBACK', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BL_DML', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BL_DDL', index=5, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BL_SET', index=6, number=6, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=390, + serialized_end=503, +) +_sym_db.RegisterEnumDescriptor(_BINLOGTRANSACTION_STATEMENT_CATEGORY) + +_STREAMEVENT_CATEGORY = _descriptor.EnumDescriptor( + name='Category', + full_name='binlogdata.StreamEvent.Category', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='SE_ERR', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SE_DML', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SE_DDL', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SE_POS', index=3, number=3, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=721, + serialized_end=779, +) +_sym_db.RegisterEnumDescriptor(_STREAMEVENT_CATEGORY) + + +_CHARSET = _descriptor.Descriptor( + name='Charset', + full_name='binlogdata.Charset', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='client', full_name='binlogdata.Charset.client', index=0, + number=1, 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='conn', full_name='binlogdata.Charset.conn', 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='server', full_name='binlogdata.Charset.server', index=2, + number=3, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=84, + serialized_end=139, +) + + +_BINLOGTRANSACTION_STATEMENT = _descriptor.Descriptor( + name='Statement', + full_name='binlogdata.BinlogTransaction.Statement', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='category', full_name='binlogdata.BinlogTransaction.Statement.category', index=0, + number=1, 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='charset', full_name='binlogdata.BinlogTransaction.Statement.charset', index=1, + 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='sql', full_name='binlogdata.BinlogTransaction.Statement.sql', index=2, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _BINLOGTRANSACTION_STATEMENT_CATEGORY, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=258, + serialized_end=503, +) + +_BINLOGTRANSACTION = _descriptor.Descriptor( + name='BinlogTransaction', + full_name='binlogdata.BinlogTransaction', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='statements', full_name='binlogdata.BinlogTransaction.statements', 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='timestamp', full_name='binlogdata.BinlogTransaction.timestamp', index=1, + number=2, type=3, cpp_type=2, 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='gtid', full_name='binlogdata.BinlogTransaction.gtid', 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=[_BINLOGTRANSACTION_STATEMENT, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=142, + serialized_end=503, +) + + +_STREAMEVENT = _descriptor.Descriptor( + name='StreamEvent', + full_name='binlogdata.StreamEvent', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='category', full_name='binlogdata.StreamEvent.category', index=0, + number=1, 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='table_name', full_name='binlogdata.StreamEvent.table_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), + _descriptor.FieldDescriptor( + name='primary_key_fields', full_name='binlogdata.StreamEvent.primary_key_fields', 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='primary_key_values', full_name='binlogdata.StreamEvent.primary_key_values', index=3, + number=4, 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='sql', full_name='binlogdata.StreamEvent.sql', index=4, + number=5, 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='timestamp', full_name='binlogdata.StreamEvent.timestamp', index=5, + number=6, type=3, cpp_type=2, 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='gtid', full_name='binlogdata.StreamEvent.gtid', index=6, + number=7, 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=[ + _STREAMEVENT_CATEGORY, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=506, + serialized_end=779, +) + + +_STREAMUPDATEREQUEST = _descriptor.Descriptor( + name='StreamUpdateRequest', + full_name='binlogdata.StreamUpdateRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='position', full_name='binlogdata.StreamUpdateRequest.position', 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=781, + serialized_end=847, +) + + +_STREAMUPDATERESPONSE = _descriptor.Descriptor( + name='StreamUpdateResponse', + full_name='binlogdata.StreamUpdateResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='stream_event', full_name='binlogdata.StreamUpdateResponse.stream_event', 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=849, + serialized_end=918, +) + + +_STREAMKEYRANGEREQUEST = _descriptor.Descriptor( + name='StreamKeyRangeRequest', + full_name='binlogdata.StreamKeyRangeRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='position', full_name='binlogdata.StreamKeyRangeRequest.position', 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='keyspace_id_type', full_name='binlogdata.StreamKeyRangeRequest.keyspace_id_type', index=1, + number=2, 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='key_range', full_name='binlogdata.StreamKeyRangeRequest.key_range', 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='charset', full_name='binlogdata.StreamKeyRangeRequest.charset', 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=921, + serialized_end=1118, +) + + +_STREAMKEYRANGERESPONSE = _descriptor.Descriptor( + name='StreamKeyRangeResponse', + full_name='binlogdata.StreamKeyRangeResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='binlog_transaction', full_name='binlogdata.StreamKeyRangeResponse.binlog_transaction', 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=1120, + serialized_end=1203, +) + + +_STREAMTABLESREQUEST = _descriptor.Descriptor( + name='StreamTablesRequest', + full_name='binlogdata.StreamTablesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='position', full_name='binlogdata.StreamTablesRequest.position', 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='tables', full_name='binlogdata.StreamTablesRequest.tables', index=1, + number=2, type=9, cpp_type=9, 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='charset', full_name='binlogdata.StreamTablesRequest.charset', 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=1205, + serialized_end=1325, +) + + +_STREAMTABLESRESPONSE = _descriptor.Descriptor( + name='StreamTablesResponse', + full_name='binlogdata.StreamTablesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='binlog_transaction', full_name='binlogdata.StreamTablesResponse.binlog_transaction', 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=1327, + serialized_end=1408, +) + +_BINLOGTRANSACTION_STATEMENT.fields_by_name['category'].enum_type = _BINLOGTRANSACTION_STATEMENT_CATEGORY +_BINLOGTRANSACTION_STATEMENT.fields_by_name['charset'].message_type = _CHARSET +_BINLOGTRANSACTION_STATEMENT.containing_type = _BINLOGTRANSACTION +_BINLOGTRANSACTION_STATEMENT_CATEGORY.containing_type = _BINLOGTRANSACTION_STATEMENT +_BINLOGTRANSACTION.fields_by_name['statements'].message_type = _BINLOGTRANSACTION_STATEMENT +_STREAMEVENT.fields_by_name['category'].enum_type = _STREAMEVENT_CATEGORY +_STREAMEVENT.fields_by_name['primary_key_fields'].message_type = query__pb2._FIELD +_STREAMEVENT.fields_by_name['primary_key_values'].message_type = query__pb2._ROW +_STREAMEVENT_CATEGORY.containing_type = _STREAMEVENT +_STREAMUPDATEREQUEST.fields_by_name['position'].message_type = replicationdata__pb2._POSITION +_STREAMUPDATERESPONSE.fields_by_name['stream_event'].message_type = _STREAMEVENT +_STREAMKEYRANGEREQUEST.fields_by_name['position'].message_type = replicationdata__pb2._POSITION +_STREAMKEYRANGEREQUEST.fields_by_name['keyspace_id_type'].enum_type = topodata__pb2._KEYSPACEIDTYPE +_STREAMKEYRANGEREQUEST.fields_by_name['key_range'].message_type = topodata__pb2._KEYRANGE +_STREAMKEYRANGEREQUEST.fields_by_name['charset'].message_type = _CHARSET +_STREAMKEYRANGERESPONSE.fields_by_name['binlog_transaction'].message_type = _BINLOGTRANSACTION +_STREAMTABLESREQUEST.fields_by_name['position'].message_type = replicationdata__pb2._POSITION +_STREAMTABLESREQUEST.fields_by_name['charset'].message_type = _CHARSET +_STREAMTABLESRESPONSE.fields_by_name['binlog_transaction'].message_type = _BINLOGTRANSACTION +DESCRIPTOR.message_types_by_name['Charset'] = _CHARSET +DESCRIPTOR.message_types_by_name['BinlogTransaction'] = _BINLOGTRANSACTION +DESCRIPTOR.message_types_by_name['StreamEvent'] = _STREAMEVENT +DESCRIPTOR.message_types_by_name['StreamUpdateRequest'] = _STREAMUPDATEREQUEST +DESCRIPTOR.message_types_by_name['StreamUpdateResponse'] = _STREAMUPDATERESPONSE +DESCRIPTOR.message_types_by_name['StreamKeyRangeRequest'] = _STREAMKEYRANGEREQUEST +DESCRIPTOR.message_types_by_name['StreamKeyRangeResponse'] = _STREAMKEYRANGERESPONSE +DESCRIPTOR.message_types_by_name['StreamTablesRequest'] = _STREAMTABLESREQUEST +DESCRIPTOR.message_types_by_name['StreamTablesResponse'] = _STREAMTABLESRESPONSE + +Charset = _reflection.GeneratedProtocolMessageType('Charset', (_message.Message,), dict( + DESCRIPTOR = _CHARSET, + __module__ = 'binlogdata_pb2' + # @@protoc_insertion_point(class_scope:binlogdata.Charset) + )) +_sym_db.RegisterMessage(Charset) + +BinlogTransaction = _reflection.GeneratedProtocolMessageType('BinlogTransaction', (_message.Message,), dict( + + Statement = _reflection.GeneratedProtocolMessageType('Statement', (_message.Message,), dict( + DESCRIPTOR = _BINLOGTRANSACTION_STATEMENT, + __module__ = 'binlogdata_pb2' + # @@protoc_insertion_point(class_scope:binlogdata.BinlogTransaction.Statement) + )) + , + DESCRIPTOR = _BINLOGTRANSACTION, + __module__ = 'binlogdata_pb2' + # @@protoc_insertion_point(class_scope:binlogdata.BinlogTransaction) + )) +_sym_db.RegisterMessage(BinlogTransaction) +_sym_db.RegisterMessage(BinlogTransaction.Statement) + +StreamEvent = _reflection.GeneratedProtocolMessageType('StreamEvent', (_message.Message,), dict( + DESCRIPTOR = _STREAMEVENT, + __module__ = 'binlogdata_pb2' + # @@protoc_insertion_point(class_scope:binlogdata.StreamEvent) + )) +_sym_db.RegisterMessage(StreamEvent) + +StreamUpdateRequest = _reflection.GeneratedProtocolMessageType('StreamUpdateRequest', (_message.Message,), dict( + DESCRIPTOR = _STREAMUPDATEREQUEST, + __module__ = 'binlogdata_pb2' + # @@protoc_insertion_point(class_scope:binlogdata.StreamUpdateRequest) + )) +_sym_db.RegisterMessage(StreamUpdateRequest) + +StreamUpdateResponse = _reflection.GeneratedProtocolMessageType('StreamUpdateResponse', (_message.Message,), dict( + DESCRIPTOR = _STREAMUPDATERESPONSE, + __module__ = 'binlogdata_pb2' + # @@protoc_insertion_point(class_scope:binlogdata.StreamUpdateResponse) + )) +_sym_db.RegisterMessage(StreamUpdateResponse) + +StreamKeyRangeRequest = _reflection.GeneratedProtocolMessageType('StreamKeyRangeRequest', (_message.Message,), dict( + DESCRIPTOR = _STREAMKEYRANGEREQUEST, + __module__ = 'binlogdata_pb2' + # @@protoc_insertion_point(class_scope:binlogdata.StreamKeyRangeRequest) + )) +_sym_db.RegisterMessage(StreamKeyRangeRequest) + +StreamKeyRangeResponse = _reflection.GeneratedProtocolMessageType('StreamKeyRangeResponse', (_message.Message,), dict( + DESCRIPTOR = _STREAMKEYRANGERESPONSE, + __module__ = 'binlogdata_pb2' + # @@protoc_insertion_point(class_scope:binlogdata.StreamKeyRangeResponse) + )) +_sym_db.RegisterMessage(StreamKeyRangeResponse) + +StreamTablesRequest = _reflection.GeneratedProtocolMessageType('StreamTablesRequest', (_message.Message,), dict( + DESCRIPTOR = _STREAMTABLESREQUEST, + __module__ = 'binlogdata_pb2' + # @@protoc_insertion_point(class_scope:binlogdata.StreamTablesRequest) + )) +_sym_db.RegisterMessage(StreamTablesRequest) + +StreamTablesResponse = _reflection.GeneratedProtocolMessageType('StreamTablesResponse', (_message.Message,), dict( + DESCRIPTOR = _STREAMTABLESRESPONSE, + __module__ = 'binlogdata_pb2' + # @@protoc_insertion_point(class_scope:binlogdata.StreamTablesResponse) + )) +_sym_db.RegisterMessage(StreamTablesResponse) + + +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +# @@protoc_insertion_point(module_scope) diff --git a/py/vtproto/binlogservice_pb2.py b/py/vtproto/binlogservice_pb2.py new file mode 100644 index 0000000000..5c2ff38f9d --- /dev/null +++ b/py/vtproto/binlogservice_pb2.py @@ -0,0 +1,118 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: binlogservice.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() + + +import binlogdata_pb2 as binlogdata__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='binlogservice.proto', + package='binlogservice', + syntax='proto3', + serialized_pb=_b('\n\x13\x62inlogservice.proto\x12\rbinlogservice\x1a\x10\x62inlogdata.proto2\x99\x02\n\x0cUpdateStream\x12U\n\x0cStreamUpdate\x12\x1f.binlogdata.StreamUpdateRequest\x1a .binlogdata.StreamUpdateResponse\"\x00\x30\x01\x12[\n\x0eStreamKeyRange\x12!.binlogdata.StreamKeyRangeRequest\x1a\".binlogdata.StreamKeyRangeResponse\"\x00\x30\x01\x12U\n\x0cStreamTables\x12\x1f.binlogdata.StreamTablesRequest\x1a .binlogdata.StreamTablesResponse\"\x00\x30\x01\x62\x06proto3') + , + dependencies=[binlogdata__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + + + +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +class EarlyAdopterUpdateStreamServicer(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def StreamUpdate(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def StreamKeyRange(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def StreamTables(self, request, context): + raise NotImplementedError() +class EarlyAdopterUpdateStreamServer(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def start(self): + raise NotImplementedError() + @abc.abstractmethod + def stop(self): + raise NotImplementedError() +class EarlyAdopterUpdateStreamStub(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def StreamUpdate(self, request): + raise NotImplementedError() + StreamUpdate.async = None + @abc.abstractmethod + def StreamKeyRange(self, request): + raise NotImplementedError() + StreamKeyRange.async = None + @abc.abstractmethod + def StreamTables(self, request): + raise NotImplementedError() + StreamTables.async = None +def early_adopter_create_UpdateStream_server(servicer, port, private_key=None, certificate_chain=None): + import binlogdata_pb2 + import binlogdata_pb2 + import binlogdata_pb2 + import binlogdata_pb2 + import binlogdata_pb2 + import binlogdata_pb2 + method_service_descriptions = { + "StreamKeyRange": utilities.unary_stream_service_description( + servicer.StreamKeyRange, + binlogdata_pb2.StreamKeyRangeRequest.FromString, + binlogdata_pb2.StreamKeyRangeResponse.SerializeToString, + ), + "StreamTables": utilities.unary_stream_service_description( + servicer.StreamTables, + binlogdata_pb2.StreamTablesRequest.FromString, + binlogdata_pb2.StreamTablesResponse.SerializeToString, + ), + "StreamUpdate": utilities.unary_stream_service_description( + servicer.StreamUpdate, + binlogdata_pb2.StreamUpdateRequest.FromString, + binlogdata_pb2.StreamUpdateResponse.SerializeToString, + ), + } + return implementations.server("binlogservice.UpdateStream", method_service_descriptions, port, private_key=private_key, certificate_chain=certificate_chain) +def early_adopter_create_UpdateStream_stub(host, port, metadata_transformer=None, secure=False, root_certificates=None, private_key=None, certificate_chain=None, server_host_override=None): + import binlogdata_pb2 + import binlogdata_pb2 + import binlogdata_pb2 + import binlogdata_pb2 + import binlogdata_pb2 + import binlogdata_pb2 + method_invocation_descriptions = { + "StreamKeyRange": utilities.unary_stream_invocation_description( + binlogdata_pb2.StreamKeyRangeRequest.SerializeToString, + binlogdata_pb2.StreamKeyRangeResponse.FromString, + ), + "StreamTables": utilities.unary_stream_invocation_description( + binlogdata_pb2.StreamTablesRequest.SerializeToString, + binlogdata_pb2.StreamTablesResponse.FromString, + ), + "StreamUpdate": utilities.unary_stream_invocation_description( + binlogdata_pb2.StreamUpdateRequest.SerializeToString, + binlogdata_pb2.StreamUpdateResponse.FromString, + ), + } + return implementations.stub("binlogservice.UpdateStream", method_invocation_descriptions, host, port, metadata_transformer=metadata_transformer, secure=secure, root_certificates=root_certificates, private_key=private_key, certificate_chain=certificate_chain, server_host_override=server_host_override) +# @@protoc_insertion_point(module_scope) diff --git a/py/vtctl/logutil_pb2.py b/py/vtproto/logutil_pb2.py similarity index 100% rename from py/vtctl/logutil_pb2.py rename to py/vtproto/logutil_pb2.py diff --git a/py/vtproto/mysqlctl_pb2.py b/py/vtproto/mysqlctl_pb2.py new file mode 100644 index 0000000000..d1c79fb8c6 --- /dev/null +++ b/py/vtproto/mysqlctl_pb2.py @@ -0,0 +1,315 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: mysqlctl.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() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='mysqlctl.proto', + package='mysqlctl', + syntax='proto3', + serialized_pb=_b('\n\x0emysqlctl.proto\x12\x08mysqlctl\"\x0e\n\x0cStartRequest\"\x0f\n\rStartResponse\"*\n\x0fShutdownRequest\x12\x17\n\x0fwait_for_mysqld\x18\x01 \x01(\x08\"\x12\n\x10ShutdownResponse\"\x18\n\x16RunMysqlUpgradeRequest\"\x19\n\x17RunMysqlUpgradeResponse2\xe5\x01\n\x08MysqlCtl\x12:\n\x05Start\x12\x16.mysqlctl.StartRequest\x1a\x17.mysqlctl.StartResponse\"\x00\x12\x43\n\x08Shutdown\x12\x19.mysqlctl.ShutdownRequest\x1a\x1a.mysqlctl.ShutdownResponse\"\x00\x12X\n\x0fRunMysqlUpgrade\x12 .mysqlctl.RunMysqlUpgradeRequest\x1a!.mysqlctl.RunMysqlUpgradeResponse\"\x00\x62\x06proto3') +) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + + +_STARTREQUEST = _descriptor.Descriptor( + name='StartRequest', + full_name='mysqlctl.StartRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=28, + serialized_end=42, +) + + +_STARTRESPONSE = _descriptor.Descriptor( + name='StartResponse', + full_name='mysqlctl.StartResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=44, + serialized_end=59, +) + + +_SHUTDOWNREQUEST = _descriptor.Descriptor( + name='ShutdownRequest', + full_name='mysqlctl.ShutdownRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='wait_for_mysqld', full_name='mysqlctl.ShutdownRequest.wait_for_mysqld', index=0, + number=1, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=61, + serialized_end=103, +) + + +_SHUTDOWNRESPONSE = _descriptor.Descriptor( + name='ShutdownResponse', + full_name='mysqlctl.ShutdownResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=105, + serialized_end=123, +) + + +_RUNMYSQLUPGRADEREQUEST = _descriptor.Descriptor( + name='RunMysqlUpgradeRequest', + full_name='mysqlctl.RunMysqlUpgradeRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=125, + serialized_end=149, +) + + +_RUNMYSQLUPGRADERESPONSE = _descriptor.Descriptor( + name='RunMysqlUpgradeResponse', + full_name='mysqlctl.RunMysqlUpgradeResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=151, + serialized_end=176, +) + +DESCRIPTOR.message_types_by_name['StartRequest'] = _STARTREQUEST +DESCRIPTOR.message_types_by_name['StartResponse'] = _STARTRESPONSE +DESCRIPTOR.message_types_by_name['ShutdownRequest'] = _SHUTDOWNREQUEST +DESCRIPTOR.message_types_by_name['ShutdownResponse'] = _SHUTDOWNRESPONSE +DESCRIPTOR.message_types_by_name['RunMysqlUpgradeRequest'] = _RUNMYSQLUPGRADEREQUEST +DESCRIPTOR.message_types_by_name['RunMysqlUpgradeResponse'] = _RUNMYSQLUPGRADERESPONSE + +StartRequest = _reflection.GeneratedProtocolMessageType('StartRequest', (_message.Message,), dict( + DESCRIPTOR = _STARTREQUEST, + __module__ = 'mysqlctl_pb2' + # @@protoc_insertion_point(class_scope:mysqlctl.StartRequest) + )) +_sym_db.RegisterMessage(StartRequest) + +StartResponse = _reflection.GeneratedProtocolMessageType('StartResponse', (_message.Message,), dict( + DESCRIPTOR = _STARTRESPONSE, + __module__ = 'mysqlctl_pb2' + # @@protoc_insertion_point(class_scope:mysqlctl.StartResponse) + )) +_sym_db.RegisterMessage(StartResponse) + +ShutdownRequest = _reflection.GeneratedProtocolMessageType('ShutdownRequest', (_message.Message,), dict( + DESCRIPTOR = _SHUTDOWNREQUEST, + __module__ = 'mysqlctl_pb2' + # @@protoc_insertion_point(class_scope:mysqlctl.ShutdownRequest) + )) +_sym_db.RegisterMessage(ShutdownRequest) + +ShutdownResponse = _reflection.GeneratedProtocolMessageType('ShutdownResponse', (_message.Message,), dict( + DESCRIPTOR = _SHUTDOWNRESPONSE, + __module__ = 'mysqlctl_pb2' + # @@protoc_insertion_point(class_scope:mysqlctl.ShutdownResponse) + )) +_sym_db.RegisterMessage(ShutdownResponse) + +RunMysqlUpgradeRequest = _reflection.GeneratedProtocolMessageType('RunMysqlUpgradeRequest', (_message.Message,), dict( + DESCRIPTOR = _RUNMYSQLUPGRADEREQUEST, + __module__ = 'mysqlctl_pb2' + # @@protoc_insertion_point(class_scope:mysqlctl.RunMysqlUpgradeRequest) + )) +_sym_db.RegisterMessage(RunMysqlUpgradeRequest) + +RunMysqlUpgradeResponse = _reflection.GeneratedProtocolMessageType('RunMysqlUpgradeResponse', (_message.Message,), dict( + DESCRIPTOR = _RUNMYSQLUPGRADERESPONSE, + __module__ = 'mysqlctl_pb2' + # @@protoc_insertion_point(class_scope:mysqlctl.RunMysqlUpgradeResponse) + )) +_sym_db.RegisterMessage(RunMysqlUpgradeResponse) + + +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +class EarlyAdopterMysqlCtlServicer(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def Start(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def Shutdown(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def RunMysqlUpgrade(self, request, context): + raise NotImplementedError() +class EarlyAdopterMysqlCtlServer(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def start(self): + raise NotImplementedError() + @abc.abstractmethod + def stop(self): + raise NotImplementedError() +class EarlyAdopterMysqlCtlStub(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def Start(self, request): + raise NotImplementedError() + Start.async = None + @abc.abstractmethod + def Shutdown(self, request): + raise NotImplementedError() + Shutdown.async = None + @abc.abstractmethod + def RunMysqlUpgrade(self, request): + raise NotImplementedError() + RunMysqlUpgrade.async = None +def early_adopter_create_MysqlCtl_server(servicer, port, private_key=None, certificate_chain=None): + import mysqlctl_pb2 + import mysqlctl_pb2 + import mysqlctl_pb2 + import mysqlctl_pb2 + import mysqlctl_pb2 + import mysqlctl_pb2 + method_service_descriptions = { + "RunMysqlUpgrade": utilities.unary_unary_service_description( + servicer.RunMysqlUpgrade, + mysqlctl_pb2.RunMysqlUpgradeRequest.FromString, + mysqlctl_pb2.RunMysqlUpgradeResponse.SerializeToString, + ), + "Shutdown": utilities.unary_unary_service_description( + servicer.Shutdown, + mysqlctl_pb2.ShutdownRequest.FromString, + mysqlctl_pb2.ShutdownResponse.SerializeToString, + ), + "Start": utilities.unary_unary_service_description( + servicer.Start, + mysqlctl_pb2.StartRequest.FromString, + mysqlctl_pb2.StartResponse.SerializeToString, + ), + } + return implementations.server("mysqlctl.MysqlCtl", method_service_descriptions, port, private_key=private_key, certificate_chain=certificate_chain) +def early_adopter_create_MysqlCtl_stub(host, port, metadata_transformer=None, secure=False, root_certificates=None, private_key=None, certificate_chain=None, server_host_override=None): + import mysqlctl_pb2 + import mysqlctl_pb2 + import mysqlctl_pb2 + import mysqlctl_pb2 + import mysqlctl_pb2 + import mysqlctl_pb2 + method_invocation_descriptions = { + "RunMysqlUpgrade": utilities.unary_unary_invocation_description( + mysqlctl_pb2.RunMysqlUpgradeRequest.SerializeToString, + mysqlctl_pb2.RunMysqlUpgradeResponse.FromString, + ), + "Shutdown": utilities.unary_unary_invocation_description( + mysqlctl_pb2.ShutdownRequest.SerializeToString, + mysqlctl_pb2.ShutdownResponse.FromString, + ), + "Start": utilities.unary_unary_invocation_description( + mysqlctl_pb2.StartRequest.SerializeToString, + mysqlctl_pb2.StartResponse.FromString, + ), + } + return implementations.stub("mysqlctl.MysqlCtl", method_invocation_descriptions, host, port, metadata_transformer=metadata_transformer, secure=secure, root_certificates=root_certificates, private_key=private_key, certificate_chain=certificate_chain, server_host_override=server_host_override) +# @@protoc_insertion_point(module_scope) diff --git a/py/vtproto/query_pb2.py b/py/vtproto/query_pb2.py new file mode 100644 index 0000000000..f33fc4967c --- /dev/null +++ b/py/vtproto/query_pb2.py @@ -0,0 +1,1862 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: query.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() + + +import topodata_pb2 as topodata__pb2 +import vtrpc_pb2 as vtrpc__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='query.proto', + package='query', + syntax='proto3', + serialized_pb=_b('\n\x0bquery.proto\x12\x05query\x1a\x0etopodata.proto\x1a\x0bvtrpc.proto\"T\n\x06Target\x12\x10\n\x08keyspace\x18\x01 \x01(\t\x12\r\n\x05shard\x18\x02 \x01(\t\x12)\n\x0btablet_type\x18\x03 \x01(\x0e\x32\x14.topodata.TabletType\"\"\n\x0eVTGateCallerID\x12\x10\n\x08username\x18\x01 \x01(\t\"\x92\x03\n\x0c\x42indVariable\x12&\n\x04type\x18\x01 \x01(\x0e\x32\x18.query.BindVariable.Type\x12\x13\n\x0bvalue_bytes\x18\x02 \x01(\x0c\x12\x11\n\tvalue_int\x18\x03 \x01(\x03\x12\x12\n\nvalue_uint\x18\x04 \x01(\x04\x12\x13\n\x0bvalue_float\x18\x05 \x01(\x01\x12\x18\n\x10value_bytes_list\x18\x06 \x03(\x0c\x12\x16\n\x0evalue_int_list\x18\x07 \x03(\x03\x12\x17\n\x0fvalue_uint_list\x18\x08 \x03(\x04\x12\x18\n\x10value_float_list\x18\t \x03(\x01\"\xa3\x01\n\x04Type\x12\r\n\tTYPE_NULL\x10\x00\x12\x0e\n\nTYPE_BYTES\x10\x01\x12\x0c\n\x08TYPE_INT\x10\x02\x12\r\n\tTYPE_UINT\x10\x03\x12\x0e\n\nTYPE_FLOAT\x10\x04\x12\x13\n\x0fTYPE_BYTES_LIST\x10\x05\x12\x11\n\rTYPE_INT_LIST\x10\x06\x12\x12\n\x0eTYPE_UINT_LIST\x10\x07\x12\x13\n\x0fTYPE_FLOAT_LIST\x10\x08\"\xa2\x01\n\nBoundQuery\x12\x0b\n\x03sql\x18\x01 \x01(\x0c\x12<\n\x0e\x62ind_variables\x18\x02 \x03(\x0b\x32$.query.BoundQuery.BindVariablesEntry\x1aI\n\x12\x42indVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\"\n\x05value\x18\x02 \x01(\x0b\x32\x13.query.BindVariable:\x02\x38\x01\"\xa1\x07\n\x05\x46ield\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1f\n\x04type\x18\x02 \x01(\x0e\x32\x11.query.Field.Type\x12\r\n\x05\x66lags\x18\x03 \x01(\x03\"\xe1\x03\n\x04Type\x12\x10\n\x0cTYPE_DECIMAL\x10\x00\x12\r\n\tTYPE_TINY\x10\x01\x12\x0e\n\nTYPE_SHORT\x10\x02\x12\r\n\tTYPE_LONG\x10\x03\x12\x0e\n\nTYPE_FLOAT\x10\x04\x12\x0f\n\x0bTYPE_DOUBLE\x10\x05\x12\r\n\tTYPE_NULL\x10\x06\x12\x12\n\x0eTYPE_TIMESTAMP\x10\x07\x12\x11\n\rTYPE_LONGLONG\x10\x08\x12\x0e\n\nTYPE_INT24\x10\t\x12\r\n\tTYPE_DATE\x10\n\x12\r\n\tTYPE_TIME\x10\x0b\x12\x11\n\rTYPE_DATETIME\x10\x0c\x12\r\n\tTYPE_YEAR\x10\r\x12\x10\n\x0cTYPE_NEWDATE\x10\x0e\x12\x10\n\x0cTYPE_VARCHAR\x10\x0f\x12\x0c\n\x08TYPE_BIT\x10\x10\x12\x14\n\x0fTYPE_NEWDECIMAL\x10\xf6\x01\x12\x0e\n\tTYPE_ENUM\x10\xf7\x01\x12\r\n\x08TYPE_SET\x10\xf8\x01\x12\x13\n\x0eTYPE_TINY_BLOB\x10\xf9\x01\x12\x15\n\x10TYPE_MEDIUM_BLOB\x10\xfa\x01\x12\x13\n\x0eTYPE_LONG_BLOB\x10\xfb\x01\x12\x0e\n\tTYPE_BLOB\x10\xfc\x01\x12\x14\n\x0fTYPE_VAR_STRING\x10\xfd\x01\x12\x10\n\x0bTYPE_STRING\x10\xfe\x01\x12\x12\n\rTYPE_GEOMETRY\x10\xff\x01\"\xf5\x02\n\x04\x46lag\x12\x15\n\x11VT_ZEROVALUE_FLAG\x10\x00\x12\x14\n\x10VT_NOT_NULL_FLAG\x10\x01\x12\x13\n\x0fVT_PRI_KEY_FLAG\x10\x02\x12\x16\n\x12VT_UNIQUE_KEY_FLAG\x10\x04\x12\x18\n\x14VT_MULTIPLE_KEY_FLAG\x10\x08\x12\x10\n\x0cVT_BLOB_FLAG\x10\x10\x12\x14\n\x10VT_UNSIGNED_FLAG\x10 \x12\x14\n\x10VT_ZEROFILL_FLAG\x10@\x12\x13\n\x0eVT_BINARY_FLAG\x10\x80\x01\x12\x11\n\x0cVT_ENUM_FLAG\x10\x80\x02\x12\x1b\n\x16VT_AUTO_INCREMENT_FLAG\x10\x80\x04\x12\x16\n\x11VT_TIMESTAMP_FLAG\x10\x80\x08\x12\x10\n\x0bVT_SET_FLAG\x10\x80\x10\x12\x1d\n\x18VT_NO_DEFAULT_VALUE_FLAG\x10\x80 \x12\x1a\n\x15VT_ON_UPDATE_NOW_FLAG\x10\x80@\x12\x11\n\x0bVT_NUM_FLAG\x10\x80\x80\x02\"\x15\n\x03Row\x12\x0e\n\x06values\x18\x01 \x03(\x0c\"o\n\x0bQueryResult\x12\x1c\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x0c.query.Field\x12\x15\n\rrows_affected\x18\x02 \x01(\x04\x12\x11\n\tinsert_id\x18\x03 \x01(\x04\x12\x18\n\x04rows\x18\x04 \x03(\x0b\x32\n.query.Row\"\x98\x01\n\x13GetSessionIdRequest\x12,\n\x13\x65\x66\x66\x65\x63tive_caller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12\x32\n\x13immediate_caller_id\x18\x02 \x01(\x0b\x32\x15.query.VTGateCallerID\x12\x10\n\x08keyspace\x18\x03 \x01(\t\x12\r\n\x05shard\x18\x04 \x01(\t\"J\n\x14GetSessionIdResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12\x12\n\nsession_id\x18\x02 \x01(\x03\"\xdf\x01\n\x0e\x45xecuteRequest\x12,\n\x13\x65\x66\x66\x65\x63tive_caller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12\x32\n\x13immediate_caller_id\x18\x02 \x01(\x0b\x32\x15.query.VTGateCallerID\x12\x1d\n\x06target\x18\x03 \x01(\x0b\x32\r.query.Target\x12 \n\x05query\x18\x04 \x01(\x0b\x32\x11.query.BoundQuery\x12\x16\n\x0etransaction_id\x18\x05 \x01(\x03\x12\x12\n\nsession_id\x18\x06 \x01(\x03\"U\n\x0f\x45xecuteResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12\"\n\x06result\x18\x02 \x01(\x0b\x32\x12.query.QueryResult\"\xe6\x01\n\x13\x45xecuteBatchRequest\x12,\n\x13\x65\x66\x66\x65\x63tive_caller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12\x32\n\x13immediate_caller_id\x18\x02 \x01(\x0b\x32\x15.query.VTGateCallerID\x12\x1d\n\x06target\x18\x03 \x01(\x0b\x32\r.query.Target\x12\"\n\x07queries\x18\x04 \x03(\x0b\x32\x11.query.BoundQuery\x12\x16\n\x0etransaction_id\x18\x05 \x01(\x03\x12\x12\n\nsession_id\x18\x06 \x01(\x03\"[\n\x14\x45xecuteBatchResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12#\n\x07results\x18\x02 \x03(\x0b\x32\x12.query.QueryResult\"\xcd\x01\n\x14StreamExecuteRequest\x12,\n\x13\x65\x66\x66\x65\x63tive_caller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12\x32\n\x13immediate_caller_id\x18\x02 \x01(\x0b\x32\x15.query.VTGateCallerID\x12\x1d\n\x06target\x18\x03 \x01(\x0b\x32\r.query.Target\x12 \n\x05query\x18\x04 \x01(\x0b\x32\x11.query.BoundQuery\x12\x12\n\nsession_id\x18\x05 \x01(\x03\"[\n\x15StreamExecuteResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12\"\n\x06result\x18\x02 \x01(\x0b\x32\x12.query.QueryResult\"\xa3\x01\n\x0c\x42\x65ginRequest\x12,\n\x13\x65\x66\x66\x65\x63tive_caller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12\x32\n\x13immediate_caller_id\x18\x02 \x01(\x0b\x32\x15.query.VTGateCallerID\x12\x1d\n\x06target\x18\x03 \x01(\x0b\x32\r.query.Target\x12\x12\n\nsession_id\x18\x04 \x01(\x03\"G\n\rBeginResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12\x16\n\x0etransaction_id\x18\x02 \x01(\x03\"\xbc\x01\n\rCommitRequest\x12,\n\x13\x65\x66\x66\x65\x63tive_caller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12\x32\n\x13immediate_caller_id\x18\x02 \x01(\x0b\x32\x15.query.VTGateCallerID\x12\x1d\n\x06target\x18\x03 \x01(\x0b\x32\r.query.Target\x12\x16\n\x0etransaction_id\x18\x04 \x01(\x03\x12\x12\n\nsession_id\x18\x05 \x01(\x03\"0\n\x0e\x43ommitResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\"\xbe\x01\n\x0fRollbackRequest\x12,\n\x13\x65\x66\x66\x65\x63tive_caller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12\x32\n\x13immediate_caller_id\x18\x02 \x01(\x0b\x32\x15.query.VTGateCallerID\x12\x1d\n\x06target\x18\x03 \x01(\x0b\x32\r.query.Target\x12\x16\n\x0etransaction_id\x18\x04 \x01(\x03\x12\x12\n\nsession_id\x18\x05 \x01(\x03\"2\n\x10RollbackResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\"\xf5\x01\n\x11SplitQueryRequest\x12,\n\x13\x65\x66\x66\x65\x63tive_caller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12\x32\n\x13immediate_caller_id\x18\x02 \x01(\x0b\x32\x15.query.VTGateCallerID\x12\x1d\n\x06target\x18\x03 \x01(\x0b\x32\r.query.Target\x12 \n\x05query\x18\x04 \x01(\x0b\x32\x11.query.BoundQuery\x12\x14\n\x0csplit_column\x18\x05 \x01(\t\x12\x13\n\x0bsplit_count\x18\x06 \x01(\x03\x12\x12\n\nsession_id\x18\x07 \x01(\x03\"A\n\nQuerySplit\x12 \n\x05query\x18\x01 \x01(\x0b\x32\x11.query.BoundQuery\x12\x11\n\trow_count\x18\x02 \x01(\x03\"X\n\x12SplitQueryResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12\"\n\x07queries\x18\x02 \x03(\x0b\x32\x11.query.QuerySplit\"\x15\n\x13StreamHealthRequest\"W\n\rRealtimeStats\x12\x14\n\x0chealth_error\x18\x01 \x01(\t\x12\x1d\n\x15seconds_behind_master\x18\x02 \x01(\r\x12\x11\n\tcpu_usage\x18\x03 \x01(\x01\"\x93\x01\n\x14StreamHealthResponse\x12\x1d\n\x06target\x18\x01 \x01(\x0b\x32\r.query.Target\x12.\n&tablet_externally_reparented_timestamp\x18\x02 \x01(\x03\x12,\n\x0erealtime_stats\x18\x03 \x01(\x0b\x32\x14.query.RealtimeStatsb\x06proto3') + , + dependencies=[topodata__pb2.DESCRIPTOR,vtrpc__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + +_BINDVARIABLE_TYPE = _descriptor.EnumDescriptor( + name='Type', + full_name='query.BindVariable.Type', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='TYPE_NULL', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_BYTES', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_INT', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_UINT', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_FLOAT', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_BYTES_LIST', index=5, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_INT_LIST', index=6, number=6, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_UINT_LIST', index=7, number=7, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_FLOAT_LIST', index=8, number=8, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=413, + serialized_end=576, +) +_sym_db.RegisterEnumDescriptor(_BINDVARIABLE_TYPE) + +_FIELD_TYPE = _descriptor.EnumDescriptor( + name='Type', + full_name='query.Field.Type', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='TYPE_DECIMAL', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_TINY', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_SHORT', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_LONG', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_FLOAT', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_DOUBLE', index=5, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_NULL', index=6, number=6, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_TIMESTAMP', index=7, number=7, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_LONGLONG', index=8, number=8, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_INT24', index=9, number=9, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_DATE', index=10, number=10, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_TIME', index=11, number=11, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_DATETIME', index=12, number=12, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_YEAR', index=13, number=13, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_NEWDATE', index=14, number=14, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_VARCHAR', index=15, number=15, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_BIT', index=16, number=16, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_NEWDECIMAL', index=17, number=246, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_ENUM', index=18, number=247, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_SET', index=19, number=248, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_TINY_BLOB', index=20, number=249, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_MEDIUM_BLOB', index=21, number=250, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_LONG_BLOB', index=22, number=251, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_BLOB', index=23, number=252, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_VAR_STRING', index=24, number=253, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_STRING', index=25, number=254, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_GEOMETRY', index=26, number=255, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=816, + serialized_end=1297, +) +_sym_db.RegisterEnumDescriptor(_FIELD_TYPE) + +_FIELD_FLAG = _descriptor.EnumDescriptor( + name='Flag', + full_name='query.Field.Flag', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='VT_ZEROVALUE_FLAG', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VT_NOT_NULL_FLAG', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VT_PRI_KEY_FLAG', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VT_UNIQUE_KEY_FLAG', index=3, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VT_MULTIPLE_KEY_FLAG', index=4, number=8, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VT_BLOB_FLAG', index=5, number=16, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VT_UNSIGNED_FLAG', index=6, number=32, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VT_ZEROFILL_FLAG', index=7, number=64, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VT_BINARY_FLAG', index=8, number=128, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VT_ENUM_FLAG', index=9, number=256, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VT_AUTO_INCREMENT_FLAG', index=10, number=512, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VT_TIMESTAMP_FLAG', index=11, number=1024, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VT_SET_FLAG', index=12, number=2048, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VT_NO_DEFAULT_VALUE_FLAG', index=13, number=4096, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VT_ON_UPDATE_NOW_FLAG', index=14, number=8192, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VT_NUM_FLAG', index=15, number=32768, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=1300, + serialized_end=1673, +) +_sym_db.RegisterEnumDescriptor(_FIELD_FLAG) + + +_TARGET = _descriptor.Descriptor( + name='Target', + full_name='query.Target', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='keyspace', full_name='query.Target.keyspace', 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='shard', full_name='query.Target.shard', 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='tablet_type', full_name='query.Target.tablet_type', index=2, + number=3, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=51, + serialized_end=135, +) + + +_VTGATECALLERID = _descriptor.Descriptor( + name='VTGateCallerID', + full_name='query.VTGateCallerID', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='username', full_name='query.VTGateCallerID.username', 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=137, + serialized_end=171, +) + + +_BINDVARIABLE = _descriptor.Descriptor( + name='BindVariable', + full_name='query.BindVariable', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='type', full_name='query.BindVariable.type', index=0, + number=1, 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='value_bytes', full_name='query.BindVariable.value_bytes', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='value_int', full_name='query.BindVariable.value_int', index=2, + number=3, type=3, cpp_type=2, 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='value_uint', full_name='query.BindVariable.value_uint', index=3, + number=4, type=4, cpp_type=4, 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='value_float', full_name='query.BindVariable.value_float', index=4, + number=5, type=1, cpp_type=5, 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='value_bytes_list', full_name='query.BindVariable.value_bytes_list', index=5, + number=6, type=12, cpp_type=9, 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='value_int_list', full_name='query.BindVariable.value_int_list', index=6, + number=7, type=3, cpp_type=2, 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='value_uint_list', full_name='query.BindVariable.value_uint_list', index=7, + number=8, type=4, cpp_type=4, 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='value_float_list', full_name='query.BindVariable.value_float_list', index=8, + number=9, type=1, cpp_type=5, 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=[], + enum_types=[ + _BINDVARIABLE_TYPE, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=174, + serialized_end=576, +) + + +_BOUNDQUERY_BINDVARIABLESENTRY = _descriptor.Descriptor( + name='BindVariablesEntry', + full_name='query.BoundQuery.BindVariablesEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='query.BoundQuery.BindVariablesEntry.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='query.BoundQuery.BindVariablesEntry.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=668, + serialized_end=741, +) + +_BOUNDQUERY = _descriptor.Descriptor( + name='BoundQuery', + full_name='query.BoundQuery', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='sql', full_name='query.BoundQuery.sql', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='bind_variables', full_name='query.BoundQuery.bind_variables', 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), + ], + extensions=[ + ], + nested_types=[_BOUNDQUERY_BINDVARIABLESENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=579, + serialized_end=741, +) + + +_FIELD = _descriptor.Descriptor( + name='Field', + full_name='query.Field', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='query.Field.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='type', full_name='query.Field.type', index=1, + number=2, 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='flags', full_name='query.Field.flags', index=2, + number=3, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FIELD_TYPE, + _FIELD_FLAG, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=744, + serialized_end=1673, +) + + +_ROW = _descriptor.Descriptor( + name='Row', + full_name='query.Row', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='values', full_name='query.Row.values', index=0, + number=1, type=12, cpp_type=9, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1675, + serialized_end=1696, +) + + +_QUERYRESULT = _descriptor.Descriptor( + name='QueryResult', + full_name='query.QueryResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='fields', full_name='query.QueryResult.fields', 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='rows_affected', full_name='query.QueryResult.rows_affected', index=1, + number=2, type=4, cpp_type=4, 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='insert_id', full_name='query.QueryResult.insert_id', index=2, + number=3, type=4, cpp_type=4, 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='rows', full_name='query.QueryResult.rows', index=3, + number=4, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1698, + serialized_end=1809, +) + + +_GETSESSIONIDREQUEST = _descriptor.Descriptor( + name='GetSessionIdRequest', + full_name='query.GetSessionIdRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='effective_caller_id', full_name='query.GetSessionIdRequest.effective_caller_id', 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='immediate_caller_id', full_name='query.GetSessionIdRequest.immediate_caller_id', 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='keyspace', full_name='query.GetSessionIdRequest.keyspace', 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='shard', full_name='query.GetSessionIdRequest.shard', 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=1812, + serialized_end=1964, +) + + +_GETSESSIONIDRESPONSE = _descriptor.Descriptor( + name='GetSessionIdResponse', + full_name='query.GetSessionIdResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='query.GetSessionIdResponse.error', 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='session_id', full_name='query.GetSessionIdResponse.session_id', index=1, + number=2, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1966, + serialized_end=2040, +) + + +_EXECUTEREQUEST = _descriptor.Descriptor( + name='ExecuteRequest', + full_name='query.ExecuteRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='effective_caller_id', full_name='query.ExecuteRequest.effective_caller_id', 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='immediate_caller_id', full_name='query.ExecuteRequest.immediate_caller_id', 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='target', full_name='query.ExecuteRequest.target', 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='query', full_name='query.ExecuteRequest.query', 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), + _descriptor.FieldDescriptor( + name='transaction_id', full_name='query.ExecuteRequest.transaction_id', index=4, + number=5, type=3, cpp_type=2, 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='session_id', full_name='query.ExecuteRequest.session_id', index=5, + number=6, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2043, + serialized_end=2266, +) + + +_EXECUTERESPONSE = _descriptor.Descriptor( + name='ExecuteResponse', + full_name='query.ExecuteResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='query.ExecuteResponse.error', 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='result', full_name='query.ExecuteResponse.result', 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=2268, + serialized_end=2353, +) + + +_EXECUTEBATCHREQUEST = _descriptor.Descriptor( + name='ExecuteBatchRequest', + full_name='query.ExecuteBatchRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='effective_caller_id', full_name='query.ExecuteBatchRequest.effective_caller_id', 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='immediate_caller_id', full_name='query.ExecuteBatchRequest.immediate_caller_id', 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='target', full_name='query.ExecuteBatchRequest.target', 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='queries', full_name='query.ExecuteBatchRequest.queries', index=3, + number=4, 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='transaction_id', full_name='query.ExecuteBatchRequest.transaction_id', index=4, + number=5, type=3, cpp_type=2, 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='session_id', full_name='query.ExecuteBatchRequest.session_id', index=5, + number=6, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2356, + serialized_end=2586, +) + + +_EXECUTEBATCHRESPONSE = _descriptor.Descriptor( + name='ExecuteBatchResponse', + full_name='query.ExecuteBatchResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='query.ExecuteBatchResponse.error', 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='results', full_name='query.ExecuteBatchResponse.results', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2588, + serialized_end=2679, +) + + +_STREAMEXECUTEREQUEST = _descriptor.Descriptor( + name='StreamExecuteRequest', + full_name='query.StreamExecuteRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='effective_caller_id', full_name='query.StreamExecuteRequest.effective_caller_id', 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='immediate_caller_id', full_name='query.StreamExecuteRequest.immediate_caller_id', 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='target', full_name='query.StreamExecuteRequest.target', 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='query', full_name='query.StreamExecuteRequest.query', 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), + _descriptor.FieldDescriptor( + name='session_id', full_name='query.StreamExecuteRequest.session_id', index=4, + number=5, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2682, + serialized_end=2887, +) + + +_STREAMEXECUTERESPONSE = _descriptor.Descriptor( + name='StreamExecuteResponse', + full_name='query.StreamExecuteResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='query.StreamExecuteResponse.error', 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='result', full_name='query.StreamExecuteResponse.result', 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=2889, + serialized_end=2980, +) + + +_BEGINREQUEST = _descriptor.Descriptor( + name='BeginRequest', + full_name='query.BeginRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='effective_caller_id', full_name='query.BeginRequest.effective_caller_id', 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='immediate_caller_id', full_name='query.BeginRequest.immediate_caller_id', 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='target', full_name='query.BeginRequest.target', 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='session_id', full_name='query.BeginRequest.session_id', index=3, + number=4, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2983, + serialized_end=3146, +) + + +_BEGINRESPONSE = _descriptor.Descriptor( + name='BeginResponse', + full_name='query.BeginResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='query.BeginResponse.error', 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='transaction_id', full_name='query.BeginResponse.transaction_id', index=1, + number=2, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3148, + serialized_end=3219, +) + + +_COMMITREQUEST = _descriptor.Descriptor( + name='CommitRequest', + full_name='query.CommitRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='effective_caller_id', full_name='query.CommitRequest.effective_caller_id', 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='immediate_caller_id', full_name='query.CommitRequest.immediate_caller_id', 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='target', full_name='query.CommitRequest.target', 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='transaction_id', full_name='query.CommitRequest.transaction_id', index=3, + number=4, type=3, cpp_type=2, 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='session_id', full_name='query.CommitRequest.session_id', index=4, + number=5, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3222, + serialized_end=3410, +) + + +_COMMITRESPONSE = _descriptor.Descriptor( + name='CommitResponse', + full_name='query.CommitResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='query.CommitResponse.error', 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=3412, + serialized_end=3460, +) + + +_ROLLBACKREQUEST = _descriptor.Descriptor( + name='RollbackRequest', + full_name='query.RollbackRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='effective_caller_id', full_name='query.RollbackRequest.effective_caller_id', 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='immediate_caller_id', full_name='query.RollbackRequest.immediate_caller_id', 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='target', full_name='query.RollbackRequest.target', 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='transaction_id', full_name='query.RollbackRequest.transaction_id', index=3, + number=4, type=3, cpp_type=2, 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='session_id', full_name='query.RollbackRequest.session_id', index=4, + number=5, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3463, + serialized_end=3653, +) + + +_ROLLBACKRESPONSE = _descriptor.Descriptor( + name='RollbackResponse', + full_name='query.RollbackResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='query.RollbackResponse.error', 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=3655, + serialized_end=3705, +) + + +_SPLITQUERYREQUEST = _descriptor.Descriptor( + name='SplitQueryRequest', + full_name='query.SplitQueryRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='effective_caller_id', full_name='query.SplitQueryRequest.effective_caller_id', 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='immediate_caller_id', full_name='query.SplitQueryRequest.immediate_caller_id', 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='target', full_name='query.SplitQueryRequest.target', 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='query', full_name='query.SplitQueryRequest.query', 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), + _descriptor.FieldDescriptor( + name='split_column', full_name='query.SplitQueryRequest.split_column', index=4, + number=5, 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='split_count', full_name='query.SplitQueryRequest.split_count', index=5, + number=6, type=3, cpp_type=2, 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='session_id', full_name='query.SplitQueryRequest.session_id', index=6, + number=7, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3708, + serialized_end=3953, +) + + +_QUERYSPLIT = _descriptor.Descriptor( + name='QuerySplit', + full_name='query.QuerySplit', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='query', full_name='query.QuerySplit.query', 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='row_count', full_name='query.QuerySplit.row_count', index=1, + number=2, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3955, + serialized_end=4020, +) + + +_SPLITQUERYRESPONSE = _descriptor.Descriptor( + name='SplitQueryResponse', + full_name='query.SplitQueryResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='query.SplitQueryResponse.error', 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='queries', full_name='query.SplitQueryResponse.queries', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4022, + serialized_end=4110, +) + + +_STREAMHEALTHREQUEST = _descriptor.Descriptor( + name='StreamHealthRequest', + full_name='query.StreamHealthRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4112, + serialized_end=4133, +) + + +_REALTIMESTATS = _descriptor.Descriptor( + name='RealtimeStats', + full_name='query.RealtimeStats', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='health_error', full_name='query.RealtimeStats.health_error', 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='seconds_behind_master', full_name='query.RealtimeStats.seconds_behind_master', index=1, + number=2, type=13, cpp_type=3, 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='cpu_usage', full_name='query.RealtimeStats.cpu_usage', index=2, + number=3, type=1, cpp_type=5, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4135, + serialized_end=4222, +) + + +_STREAMHEALTHRESPONSE = _descriptor.Descriptor( + name='StreamHealthResponse', + full_name='query.StreamHealthResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='target', full_name='query.StreamHealthResponse.target', 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='tablet_externally_reparented_timestamp', full_name='query.StreamHealthResponse.tablet_externally_reparented_timestamp', index=1, + number=2, type=3, cpp_type=2, 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='realtime_stats', full_name='query.StreamHealthResponse.realtime_stats', 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=4225, + serialized_end=4372, +) + +_TARGET.fields_by_name['tablet_type'].enum_type = topodata__pb2._TABLETTYPE +_BINDVARIABLE.fields_by_name['type'].enum_type = _BINDVARIABLE_TYPE +_BINDVARIABLE_TYPE.containing_type = _BINDVARIABLE +_BOUNDQUERY_BINDVARIABLESENTRY.fields_by_name['value'].message_type = _BINDVARIABLE +_BOUNDQUERY_BINDVARIABLESENTRY.containing_type = _BOUNDQUERY +_BOUNDQUERY.fields_by_name['bind_variables'].message_type = _BOUNDQUERY_BINDVARIABLESENTRY +_FIELD.fields_by_name['type'].enum_type = _FIELD_TYPE +_FIELD_TYPE.containing_type = _FIELD +_FIELD_FLAG.containing_type = _FIELD +_QUERYRESULT.fields_by_name['fields'].message_type = _FIELD +_QUERYRESULT.fields_by_name['rows'].message_type = _ROW +_GETSESSIONIDREQUEST.fields_by_name['effective_caller_id'].message_type = vtrpc__pb2._CALLERID +_GETSESSIONIDREQUEST.fields_by_name['immediate_caller_id'].message_type = _VTGATECALLERID +_GETSESSIONIDRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_EXECUTEREQUEST.fields_by_name['effective_caller_id'].message_type = vtrpc__pb2._CALLERID +_EXECUTEREQUEST.fields_by_name['immediate_caller_id'].message_type = _VTGATECALLERID +_EXECUTEREQUEST.fields_by_name['target'].message_type = _TARGET +_EXECUTEREQUEST.fields_by_name['query'].message_type = _BOUNDQUERY +_EXECUTERESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_EXECUTERESPONSE.fields_by_name['result'].message_type = _QUERYRESULT +_EXECUTEBATCHREQUEST.fields_by_name['effective_caller_id'].message_type = vtrpc__pb2._CALLERID +_EXECUTEBATCHREQUEST.fields_by_name['immediate_caller_id'].message_type = _VTGATECALLERID +_EXECUTEBATCHREQUEST.fields_by_name['target'].message_type = _TARGET +_EXECUTEBATCHREQUEST.fields_by_name['queries'].message_type = _BOUNDQUERY +_EXECUTEBATCHRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_EXECUTEBATCHRESPONSE.fields_by_name['results'].message_type = _QUERYRESULT +_STREAMEXECUTEREQUEST.fields_by_name['effective_caller_id'].message_type = vtrpc__pb2._CALLERID +_STREAMEXECUTEREQUEST.fields_by_name['immediate_caller_id'].message_type = _VTGATECALLERID +_STREAMEXECUTEREQUEST.fields_by_name['target'].message_type = _TARGET +_STREAMEXECUTEREQUEST.fields_by_name['query'].message_type = _BOUNDQUERY +_STREAMEXECUTERESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_STREAMEXECUTERESPONSE.fields_by_name['result'].message_type = _QUERYRESULT +_BEGINREQUEST.fields_by_name['effective_caller_id'].message_type = vtrpc__pb2._CALLERID +_BEGINREQUEST.fields_by_name['immediate_caller_id'].message_type = _VTGATECALLERID +_BEGINREQUEST.fields_by_name['target'].message_type = _TARGET +_BEGINRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_COMMITREQUEST.fields_by_name['effective_caller_id'].message_type = vtrpc__pb2._CALLERID +_COMMITREQUEST.fields_by_name['immediate_caller_id'].message_type = _VTGATECALLERID +_COMMITREQUEST.fields_by_name['target'].message_type = _TARGET +_COMMITRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_ROLLBACKREQUEST.fields_by_name['effective_caller_id'].message_type = vtrpc__pb2._CALLERID +_ROLLBACKREQUEST.fields_by_name['immediate_caller_id'].message_type = _VTGATECALLERID +_ROLLBACKREQUEST.fields_by_name['target'].message_type = _TARGET +_ROLLBACKRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_SPLITQUERYREQUEST.fields_by_name['effective_caller_id'].message_type = vtrpc__pb2._CALLERID +_SPLITQUERYREQUEST.fields_by_name['immediate_caller_id'].message_type = _VTGATECALLERID +_SPLITQUERYREQUEST.fields_by_name['target'].message_type = _TARGET +_SPLITQUERYREQUEST.fields_by_name['query'].message_type = _BOUNDQUERY +_QUERYSPLIT.fields_by_name['query'].message_type = _BOUNDQUERY +_SPLITQUERYRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_SPLITQUERYRESPONSE.fields_by_name['queries'].message_type = _QUERYSPLIT +_STREAMHEALTHRESPONSE.fields_by_name['target'].message_type = _TARGET +_STREAMHEALTHRESPONSE.fields_by_name['realtime_stats'].message_type = _REALTIMESTATS +DESCRIPTOR.message_types_by_name['Target'] = _TARGET +DESCRIPTOR.message_types_by_name['VTGateCallerID'] = _VTGATECALLERID +DESCRIPTOR.message_types_by_name['BindVariable'] = _BINDVARIABLE +DESCRIPTOR.message_types_by_name['BoundQuery'] = _BOUNDQUERY +DESCRIPTOR.message_types_by_name['Field'] = _FIELD +DESCRIPTOR.message_types_by_name['Row'] = _ROW +DESCRIPTOR.message_types_by_name['QueryResult'] = _QUERYRESULT +DESCRIPTOR.message_types_by_name['GetSessionIdRequest'] = _GETSESSIONIDREQUEST +DESCRIPTOR.message_types_by_name['GetSessionIdResponse'] = _GETSESSIONIDRESPONSE +DESCRIPTOR.message_types_by_name['ExecuteRequest'] = _EXECUTEREQUEST +DESCRIPTOR.message_types_by_name['ExecuteResponse'] = _EXECUTERESPONSE +DESCRIPTOR.message_types_by_name['ExecuteBatchRequest'] = _EXECUTEBATCHREQUEST +DESCRIPTOR.message_types_by_name['ExecuteBatchResponse'] = _EXECUTEBATCHRESPONSE +DESCRIPTOR.message_types_by_name['StreamExecuteRequest'] = _STREAMEXECUTEREQUEST +DESCRIPTOR.message_types_by_name['StreamExecuteResponse'] = _STREAMEXECUTERESPONSE +DESCRIPTOR.message_types_by_name['BeginRequest'] = _BEGINREQUEST +DESCRIPTOR.message_types_by_name['BeginResponse'] = _BEGINRESPONSE +DESCRIPTOR.message_types_by_name['CommitRequest'] = _COMMITREQUEST +DESCRIPTOR.message_types_by_name['CommitResponse'] = _COMMITRESPONSE +DESCRIPTOR.message_types_by_name['RollbackRequest'] = _ROLLBACKREQUEST +DESCRIPTOR.message_types_by_name['RollbackResponse'] = _ROLLBACKRESPONSE +DESCRIPTOR.message_types_by_name['SplitQueryRequest'] = _SPLITQUERYREQUEST +DESCRIPTOR.message_types_by_name['QuerySplit'] = _QUERYSPLIT +DESCRIPTOR.message_types_by_name['SplitQueryResponse'] = _SPLITQUERYRESPONSE +DESCRIPTOR.message_types_by_name['StreamHealthRequest'] = _STREAMHEALTHREQUEST +DESCRIPTOR.message_types_by_name['RealtimeStats'] = _REALTIMESTATS +DESCRIPTOR.message_types_by_name['StreamHealthResponse'] = _STREAMHEALTHRESPONSE + +Target = _reflection.GeneratedProtocolMessageType('Target', (_message.Message,), dict( + DESCRIPTOR = _TARGET, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.Target) + )) +_sym_db.RegisterMessage(Target) + +VTGateCallerID = _reflection.GeneratedProtocolMessageType('VTGateCallerID', (_message.Message,), dict( + DESCRIPTOR = _VTGATECALLERID, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.VTGateCallerID) + )) +_sym_db.RegisterMessage(VTGateCallerID) + +BindVariable = _reflection.GeneratedProtocolMessageType('BindVariable', (_message.Message,), dict( + DESCRIPTOR = _BINDVARIABLE, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.BindVariable) + )) +_sym_db.RegisterMessage(BindVariable) + +BoundQuery = _reflection.GeneratedProtocolMessageType('BoundQuery', (_message.Message,), dict( + + BindVariablesEntry = _reflection.GeneratedProtocolMessageType('BindVariablesEntry', (_message.Message,), dict( + DESCRIPTOR = _BOUNDQUERY_BINDVARIABLESENTRY, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.BoundQuery.BindVariablesEntry) + )) + , + DESCRIPTOR = _BOUNDQUERY, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.BoundQuery) + )) +_sym_db.RegisterMessage(BoundQuery) +_sym_db.RegisterMessage(BoundQuery.BindVariablesEntry) + +Field = _reflection.GeneratedProtocolMessageType('Field', (_message.Message,), dict( + DESCRIPTOR = _FIELD, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.Field) + )) +_sym_db.RegisterMessage(Field) + +Row = _reflection.GeneratedProtocolMessageType('Row', (_message.Message,), dict( + DESCRIPTOR = _ROW, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.Row) + )) +_sym_db.RegisterMessage(Row) + +QueryResult = _reflection.GeneratedProtocolMessageType('QueryResult', (_message.Message,), dict( + DESCRIPTOR = _QUERYRESULT, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.QueryResult) + )) +_sym_db.RegisterMessage(QueryResult) + +GetSessionIdRequest = _reflection.GeneratedProtocolMessageType('GetSessionIdRequest', (_message.Message,), dict( + DESCRIPTOR = _GETSESSIONIDREQUEST, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.GetSessionIdRequest) + )) +_sym_db.RegisterMessage(GetSessionIdRequest) + +GetSessionIdResponse = _reflection.GeneratedProtocolMessageType('GetSessionIdResponse', (_message.Message,), dict( + DESCRIPTOR = _GETSESSIONIDRESPONSE, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.GetSessionIdResponse) + )) +_sym_db.RegisterMessage(GetSessionIdResponse) + +ExecuteRequest = _reflection.GeneratedProtocolMessageType('ExecuteRequest', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEREQUEST, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.ExecuteRequest) + )) +_sym_db.RegisterMessage(ExecuteRequest) + +ExecuteResponse = _reflection.GeneratedProtocolMessageType('ExecuteResponse', (_message.Message,), dict( + DESCRIPTOR = _EXECUTERESPONSE, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.ExecuteResponse) + )) +_sym_db.RegisterMessage(ExecuteResponse) + +ExecuteBatchRequest = _reflection.GeneratedProtocolMessageType('ExecuteBatchRequest', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEBATCHREQUEST, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.ExecuteBatchRequest) + )) +_sym_db.RegisterMessage(ExecuteBatchRequest) + +ExecuteBatchResponse = _reflection.GeneratedProtocolMessageType('ExecuteBatchResponse', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEBATCHRESPONSE, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.ExecuteBatchResponse) + )) +_sym_db.RegisterMessage(ExecuteBatchResponse) + +StreamExecuteRequest = _reflection.GeneratedProtocolMessageType('StreamExecuteRequest', (_message.Message,), dict( + DESCRIPTOR = _STREAMEXECUTEREQUEST, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.StreamExecuteRequest) + )) +_sym_db.RegisterMessage(StreamExecuteRequest) + +StreamExecuteResponse = _reflection.GeneratedProtocolMessageType('StreamExecuteResponse', (_message.Message,), dict( + DESCRIPTOR = _STREAMEXECUTERESPONSE, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.StreamExecuteResponse) + )) +_sym_db.RegisterMessage(StreamExecuteResponse) + +BeginRequest = _reflection.GeneratedProtocolMessageType('BeginRequest', (_message.Message,), dict( + DESCRIPTOR = _BEGINREQUEST, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.BeginRequest) + )) +_sym_db.RegisterMessage(BeginRequest) + +BeginResponse = _reflection.GeneratedProtocolMessageType('BeginResponse', (_message.Message,), dict( + DESCRIPTOR = _BEGINRESPONSE, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.BeginResponse) + )) +_sym_db.RegisterMessage(BeginResponse) + +CommitRequest = _reflection.GeneratedProtocolMessageType('CommitRequest', (_message.Message,), dict( + DESCRIPTOR = _COMMITREQUEST, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.CommitRequest) + )) +_sym_db.RegisterMessage(CommitRequest) + +CommitResponse = _reflection.GeneratedProtocolMessageType('CommitResponse', (_message.Message,), dict( + DESCRIPTOR = _COMMITRESPONSE, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.CommitResponse) + )) +_sym_db.RegisterMessage(CommitResponse) + +RollbackRequest = _reflection.GeneratedProtocolMessageType('RollbackRequest', (_message.Message,), dict( + DESCRIPTOR = _ROLLBACKREQUEST, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.RollbackRequest) + )) +_sym_db.RegisterMessage(RollbackRequest) + +RollbackResponse = _reflection.GeneratedProtocolMessageType('RollbackResponse', (_message.Message,), dict( + DESCRIPTOR = _ROLLBACKRESPONSE, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.RollbackResponse) + )) +_sym_db.RegisterMessage(RollbackResponse) + +SplitQueryRequest = _reflection.GeneratedProtocolMessageType('SplitQueryRequest', (_message.Message,), dict( + DESCRIPTOR = _SPLITQUERYREQUEST, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.SplitQueryRequest) + )) +_sym_db.RegisterMessage(SplitQueryRequest) + +QuerySplit = _reflection.GeneratedProtocolMessageType('QuerySplit', (_message.Message,), dict( + DESCRIPTOR = _QUERYSPLIT, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.QuerySplit) + )) +_sym_db.RegisterMessage(QuerySplit) + +SplitQueryResponse = _reflection.GeneratedProtocolMessageType('SplitQueryResponse', (_message.Message,), dict( + DESCRIPTOR = _SPLITQUERYRESPONSE, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.SplitQueryResponse) + )) +_sym_db.RegisterMessage(SplitQueryResponse) + +StreamHealthRequest = _reflection.GeneratedProtocolMessageType('StreamHealthRequest', (_message.Message,), dict( + DESCRIPTOR = _STREAMHEALTHREQUEST, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.StreamHealthRequest) + )) +_sym_db.RegisterMessage(StreamHealthRequest) + +RealtimeStats = _reflection.GeneratedProtocolMessageType('RealtimeStats', (_message.Message,), dict( + DESCRIPTOR = _REALTIMESTATS, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.RealtimeStats) + )) +_sym_db.RegisterMessage(RealtimeStats) + +StreamHealthResponse = _reflection.GeneratedProtocolMessageType('StreamHealthResponse', (_message.Message,), dict( + DESCRIPTOR = _STREAMHEALTHRESPONSE, + __module__ = 'query_pb2' + # @@protoc_insertion_point(class_scope:query.StreamHealthResponse) + )) +_sym_db.RegisterMessage(StreamHealthResponse) + + +_BOUNDQUERY_BINDVARIABLESENTRY.has_options = True +_BOUNDQUERY_BINDVARIABLESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +# @@protoc_insertion_point(module_scope) diff --git a/py/vtproto/queryservice_pb2.py b/py/vtproto/queryservice_pb2.py new file mode 100644 index 0000000000..6d68de0a5f --- /dev/null +++ b/py/vtproto/queryservice_pb2.py @@ -0,0 +1,238 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: queryservice.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() + + +import query_pb2 as query__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='queryservice.proto', + package='queryservice', + syntax='proto3', + serialized_pb=_b('\n\x12queryservice.proto\x12\x0cqueryservice\x1a\x0bquery.proto2\xe9\x04\n\x05Query\x12I\n\x0cGetSessionId\x12\x1a.query.GetSessionIdRequest\x1a\x1b.query.GetSessionIdResponse\"\x00\x12:\n\x07\x45xecute\x12\x15.query.ExecuteRequest\x1a\x16.query.ExecuteResponse\"\x00\x12I\n\x0c\x45xecuteBatch\x12\x1a.query.ExecuteBatchRequest\x1a\x1b.query.ExecuteBatchResponse\"\x00\x12N\n\rStreamExecute\x12\x1b.query.StreamExecuteRequest\x1a\x1c.query.StreamExecuteResponse\"\x00\x30\x01\x12\x34\n\x05\x42\x65gin\x12\x13.query.BeginRequest\x1a\x14.query.BeginResponse\"\x00\x12\x37\n\x06\x43ommit\x12\x14.query.CommitRequest\x1a\x15.query.CommitResponse\"\x00\x12=\n\x08Rollback\x12\x16.query.RollbackRequest\x1a\x17.query.RollbackResponse\"\x00\x12\x43\n\nSplitQuery\x12\x18.query.SplitQueryRequest\x1a\x19.query.SplitQueryResponse\"\x00\x12K\n\x0cStreamHealth\x12\x1a.query.StreamHealthRequest\x1a\x1b.query.StreamHealthResponse\"\x00\x30\x01\x62\x06proto3') + , + dependencies=[query__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + + + +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +class EarlyAdopterQueryServicer(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def GetSessionId(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def Execute(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def ExecuteBatch(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def StreamExecute(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def Begin(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def Commit(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def Rollback(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def SplitQuery(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def StreamHealth(self, request, context): + raise NotImplementedError() +class EarlyAdopterQueryServer(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def start(self): + raise NotImplementedError() + @abc.abstractmethod + def stop(self): + raise NotImplementedError() +class EarlyAdopterQueryStub(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def GetSessionId(self, request): + raise NotImplementedError() + GetSessionId.async = None + @abc.abstractmethod + def Execute(self, request): + raise NotImplementedError() + Execute.async = None + @abc.abstractmethod + def ExecuteBatch(self, request): + raise NotImplementedError() + ExecuteBatch.async = None + @abc.abstractmethod + def StreamExecute(self, request): + raise NotImplementedError() + StreamExecute.async = None + @abc.abstractmethod + def Begin(self, request): + raise NotImplementedError() + Begin.async = None + @abc.abstractmethod + def Commit(self, request): + raise NotImplementedError() + Commit.async = None + @abc.abstractmethod + def Rollback(self, request): + raise NotImplementedError() + Rollback.async = None + @abc.abstractmethod + def SplitQuery(self, request): + raise NotImplementedError() + SplitQuery.async = None + @abc.abstractmethod + def StreamHealth(self, request): + raise NotImplementedError() + StreamHealth.async = None +def early_adopter_create_Query_server(servicer, port, private_key=None, certificate_chain=None): + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + method_service_descriptions = { + "Begin": utilities.unary_unary_service_description( + servicer.Begin, + query_pb2.BeginRequest.FromString, + query_pb2.BeginResponse.SerializeToString, + ), + "Commit": utilities.unary_unary_service_description( + servicer.Commit, + query_pb2.CommitRequest.FromString, + query_pb2.CommitResponse.SerializeToString, + ), + "Execute": utilities.unary_unary_service_description( + servicer.Execute, + query_pb2.ExecuteRequest.FromString, + query_pb2.ExecuteResponse.SerializeToString, + ), + "ExecuteBatch": utilities.unary_unary_service_description( + servicer.ExecuteBatch, + query_pb2.ExecuteBatchRequest.FromString, + query_pb2.ExecuteBatchResponse.SerializeToString, + ), + "GetSessionId": utilities.unary_unary_service_description( + servicer.GetSessionId, + query_pb2.GetSessionIdRequest.FromString, + query_pb2.GetSessionIdResponse.SerializeToString, + ), + "Rollback": utilities.unary_unary_service_description( + servicer.Rollback, + query_pb2.RollbackRequest.FromString, + query_pb2.RollbackResponse.SerializeToString, + ), + "SplitQuery": utilities.unary_unary_service_description( + servicer.SplitQuery, + query_pb2.SplitQueryRequest.FromString, + query_pb2.SplitQueryResponse.SerializeToString, + ), + "StreamExecute": utilities.unary_stream_service_description( + servicer.StreamExecute, + query_pb2.StreamExecuteRequest.FromString, + query_pb2.StreamExecuteResponse.SerializeToString, + ), + "StreamHealth": utilities.unary_stream_service_description( + servicer.StreamHealth, + query_pb2.StreamHealthRequest.FromString, + query_pb2.StreamHealthResponse.SerializeToString, + ), + } + return implementations.server("queryservice.Query", method_service_descriptions, port, private_key=private_key, certificate_chain=certificate_chain) +def early_adopter_create_Query_stub(host, port, metadata_transformer=None, secure=False, root_certificates=None, private_key=None, certificate_chain=None, server_host_override=None): + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + import query_pb2 + method_invocation_descriptions = { + "Begin": utilities.unary_unary_invocation_description( + query_pb2.BeginRequest.SerializeToString, + query_pb2.BeginResponse.FromString, + ), + "Commit": utilities.unary_unary_invocation_description( + query_pb2.CommitRequest.SerializeToString, + query_pb2.CommitResponse.FromString, + ), + "Execute": utilities.unary_unary_invocation_description( + query_pb2.ExecuteRequest.SerializeToString, + query_pb2.ExecuteResponse.FromString, + ), + "ExecuteBatch": utilities.unary_unary_invocation_description( + query_pb2.ExecuteBatchRequest.SerializeToString, + query_pb2.ExecuteBatchResponse.FromString, + ), + "GetSessionId": utilities.unary_unary_invocation_description( + query_pb2.GetSessionIdRequest.SerializeToString, + query_pb2.GetSessionIdResponse.FromString, + ), + "Rollback": utilities.unary_unary_invocation_description( + query_pb2.RollbackRequest.SerializeToString, + query_pb2.RollbackResponse.FromString, + ), + "SplitQuery": utilities.unary_unary_invocation_description( + query_pb2.SplitQueryRequest.SerializeToString, + query_pb2.SplitQueryResponse.FromString, + ), + "StreamExecute": utilities.unary_stream_invocation_description( + query_pb2.StreamExecuteRequest.SerializeToString, + query_pb2.StreamExecuteResponse.FromString, + ), + "StreamHealth": utilities.unary_stream_invocation_description( + query_pb2.StreamHealthRequest.SerializeToString, + query_pb2.StreamHealthResponse.FromString, + ), + } + return implementations.stub("queryservice.Query", method_invocation_descriptions, host, port, metadata_transformer=metadata_transformer, secure=secure, root_certificates=root_certificates, private_key=private_key, certificate_chain=certificate_chain, server_host_override=server_host_override) +# @@protoc_insertion_point(module_scope) diff --git a/py/vtproto/replicationdata_pb2.py b/py/vtproto/replicationdata_pb2.py new file mode 100644 index 0000000000..92ece3b6dd --- /dev/null +++ b/py/vtproto/replicationdata_pb2.py @@ -0,0 +1,349 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: replicationdata.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() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='replicationdata.proto', + package='replicationdata', + syntax='proto3', + serialized_pb=_b('\n\x15replicationdata.proto\x12\x0freplicationdata\"?\n\x0bMariadbGtid\x12\x0e\n\x06\x64omain\x18\x01 \x01(\r\x12\x0e\n\x06server\x18\x02 \x01(\r\x12\x10\n\x08sequence\x18\x03 \x01(\x04\"\xd7\x01\n\x0cMysqlGtidSet\x12<\n\x08uuid_set\x18\x01 \x03(\x0b\x32*.replicationdata.MysqlGtidSet.MysqlUuidSet\x1a,\n\rMysqlInterval\x12\r\n\x05\x66irst\x18\x01 \x01(\x04\x12\x0c\n\x04last\x18\x02 \x01(\x04\x1a[\n\x0cMysqlUuidSet\x12\x0c\n\x04uuid\x18\x01 \x01(\x0c\x12=\n\x08interval\x18\x02 \x03(\x0b\x32+.replicationdata.MysqlGtidSet.MysqlInterval\"u\n\x08Position\x12\x32\n\x0cmariadb_gtid\x18\x01 \x01(\x0b\x32\x1c.replicationdata.MariadbGtid\x12\x35\n\x0emysql_gtid_set\x18\x02 \x01(\x0b\x32\x1d.replicationdata.MysqlGtidSet\"\xd1\x01\n\x06Status\x12+\n\x08position\x18\x01 \x01(\x0b\x32\x19.replicationdata.Position\x12\x18\n\x10slave_io_running\x18\x02 \x01(\x08\x12\x19\n\x11slave_sql_running\x18\x03 \x01(\x08\x12\x1d\n\x15seconds_behind_master\x18\x04 \x01(\r\x12\x13\n\x0bmaster_host\x18\x05 \x01(\t\x12\x13\n\x0bmaster_port\x18\x06 \x01(\x05\x12\x1c\n\x14master_connect_retry\x18\x07 \x01(\x05\x62\x06proto3') +) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + + +_MARIADBGTID = _descriptor.Descriptor( + name='MariadbGtid', + full_name='replicationdata.MariadbGtid', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='domain', full_name='replicationdata.MariadbGtid.domain', index=0, + number=1, type=13, cpp_type=3, 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='server', full_name='replicationdata.MariadbGtid.server', index=1, + number=2, type=13, cpp_type=3, 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='sequence', full_name='replicationdata.MariadbGtid.sequence', index=2, + number=3, type=4, cpp_type=4, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=42, + serialized_end=105, +) + + +_MYSQLGTIDSET_MYSQLINTERVAL = _descriptor.Descriptor( + name='MysqlInterval', + full_name='replicationdata.MysqlGtidSet.MysqlInterval', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='first', full_name='replicationdata.MysqlGtidSet.MysqlInterval.first', index=0, + number=1, type=4, cpp_type=4, 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='last', full_name='replicationdata.MysqlGtidSet.MysqlInterval.last', index=1, + number=2, type=4, cpp_type=4, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=186, + serialized_end=230, +) + +_MYSQLGTIDSET_MYSQLUUIDSET = _descriptor.Descriptor( + name='MysqlUuidSet', + full_name='replicationdata.MysqlGtidSet.MysqlUuidSet', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='uuid', full_name='replicationdata.MysqlGtidSet.MysqlUuidSet.uuid', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='interval', full_name='replicationdata.MysqlGtidSet.MysqlUuidSet.interval', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=232, + serialized_end=323, +) + +_MYSQLGTIDSET = _descriptor.Descriptor( + name='MysqlGtidSet', + full_name='replicationdata.MysqlGtidSet', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='uuid_set', full_name='replicationdata.MysqlGtidSet.uuid_set', 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), + ], + extensions=[ + ], + nested_types=[_MYSQLGTIDSET_MYSQLINTERVAL, _MYSQLGTIDSET_MYSQLUUIDSET, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=108, + serialized_end=323, +) + + +_POSITION = _descriptor.Descriptor( + name='Position', + full_name='replicationdata.Position', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='mariadb_gtid', full_name='replicationdata.Position.mariadb_gtid', 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='mysql_gtid_set', full_name='replicationdata.Position.mysql_gtid_set', 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=325, + serialized_end=442, +) + + +_STATUS = _descriptor.Descriptor( + name='Status', + full_name='replicationdata.Status', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='position', full_name='replicationdata.Status.position', 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='slave_io_running', full_name='replicationdata.Status.slave_io_running', index=1, + number=2, 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), + _descriptor.FieldDescriptor( + name='slave_sql_running', full_name='replicationdata.Status.slave_sql_running', index=2, + number=3, 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), + _descriptor.FieldDescriptor( + name='seconds_behind_master', full_name='replicationdata.Status.seconds_behind_master', index=3, + number=4, type=13, cpp_type=3, 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='master_host', full_name='replicationdata.Status.master_host', index=4, + number=5, 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='master_port', full_name='replicationdata.Status.master_port', index=5, + number=6, 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='master_connect_retry', full_name='replicationdata.Status.master_connect_retry', index=6, + number=7, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=445, + serialized_end=654, +) + +_MYSQLGTIDSET_MYSQLINTERVAL.containing_type = _MYSQLGTIDSET +_MYSQLGTIDSET_MYSQLUUIDSET.fields_by_name['interval'].message_type = _MYSQLGTIDSET_MYSQLINTERVAL +_MYSQLGTIDSET_MYSQLUUIDSET.containing_type = _MYSQLGTIDSET +_MYSQLGTIDSET.fields_by_name['uuid_set'].message_type = _MYSQLGTIDSET_MYSQLUUIDSET +_POSITION.fields_by_name['mariadb_gtid'].message_type = _MARIADBGTID +_POSITION.fields_by_name['mysql_gtid_set'].message_type = _MYSQLGTIDSET +_STATUS.fields_by_name['position'].message_type = _POSITION +DESCRIPTOR.message_types_by_name['MariadbGtid'] = _MARIADBGTID +DESCRIPTOR.message_types_by_name['MysqlGtidSet'] = _MYSQLGTIDSET +DESCRIPTOR.message_types_by_name['Position'] = _POSITION +DESCRIPTOR.message_types_by_name['Status'] = _STATUS + +MariadbGtid = _reflection.GeneratedProtocolMessageType('MariadbGtid', (_message.Message,), dict( + DESCRIPTOR = _MARIADBGTID, + __module__ = 'replicationdata_pb2' + # @@protoc_insertion_point(class_scope:replicationdata.MariadbGtid) + )) +_sym_db.RegisterMessage(MariadbGtid) + +MysqlGtidSet = _reflection.GeneratedProtocolMessageType('MysqlGtidSet', (_message.Message,), dict( + + MysqlInterval = _reflection.GeneratedProtocolMessageType('MysqlInterval', (_message.Message,), dict( + DESCRIPTOR = _MYSQLGTIDSET_MYSQLINTERVAL, + __module__ = 'replicationdata_pb2' + # @@protoc_insertion_point(class_scope:replicationdata.MysqlGtidSet.MysqlInterval) + )) + , + + MysqlUuidSet = _reflection.GeneratedProtocolMessageType('MysqlUuidSet', (_message.Message,), dict( + DESCRIPTOR = _MYSQLGTIDSET_MYSQLUUIDSET, + __module__ = 'replicationdata_pb2' + # @@protoc_insertion_point(class_scope:replicationdata.MysqlGtidSet.MysqlUuidSet) + )) + , + DESCRIPTOR = _MYSQLGTIDSET, + __module__ = 'replicationdata_pb2' + # @@protoc_insertion_point(class_scope:replicationdata.MysqlGtidSet) + )) +_sym_db.RegisterMessage(MysqlGtidSet) +_sym_db.RegisterMessage(MysqlGtidSet.MysqlInterval) +_sym_db.RegisterMessage(MysqlGtidSet.MysqlUuidSet) + +Position = _reflection.GeneratedProtocolMessageType('Position', (_message.Message,), dict( + DESCRIPTOR = _POSITION, + __module__ = 'replicationdata_pb2' + # @@protoc_insertion_point(class_scope:replicationdata.Position) + )) +_sym_db.RegisterMessage(Position) + +Status = _reflection.GeneratedProtocolMessageType('Status', (_message.Message,), dict( + DESCRIPTOR = _STATUS, + __module__ = 'replicationdata_pb2' + # @@protoc_insertion_point(class_scope:replicationdata.Status) + )) +_sym_db.RegisterMessage(Status) + + +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +# @@protoc_insertion_point(module_scope) diff --git a/py/vtproto/tabletmanagerdata_pb2.py b/py/vtproto/tabletmanagerdata_pb2.py new file mode 100644 index 0000000000..bb74bc9cf4 --- /dev/null +++ b/py/vtproto/tabletmanagerdata_pb2.py @@ -0,0 +1,3721 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: tabletmanagerdata.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() + + +import query_pb2 as query__pb2 +import topodata_pb2 as topodata__pb2 +import replicationdata_pb2 as replicationdata__pb2 +import logutil_pb2 as logutil__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='tabletmanagerdata.proto', + package='tabletmanagerdata', + syntax='proto3', + serialized_pb=_b('\n\x17tabletmanagerdata.proto\x12\x11tabletmanagerdata\x1a\x0bquery.proto\x1a\x0etopodata.proto\x1a\x15replicationdata.proto\x1a\rlogutil.proto\"\x93\x01\n\x0fTableDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06schema\x18\x02 \x01(\t\x12\x0f\n\x07\x63olumns\x18\x03 \x03(\t\x12\x1b\n\x13primary_key_columns\x18\x04 \x03(\t\x12\x0c\n\x04type\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x61ta_length\x18\x06 \x01(\x04\x12\x11\n\trow_count\x18\x07 \x01(\x04\"{\n\x10SchemaDefinition\x12\x17\n\x0f\x64\x61tabase_schema\x18\x01 \x01(\t\x12=\n\x11table_definitions\x18\x02 \x03(\x0b\x32\".tabletmanagerdata.TableDefinition\x12\x0f\n\x07version\x18\x03 \x01(\t\"\xc1\x01\n\x0eUserPermission\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04user\x18\x02 \x01(\t\x12\x19\n\x11password_checksum\x18\x03 \x01(\x04\x12\x45\n\nprivileges\x18\x04 \x03(\x0b\x32\x31.tabletmanagerdata.UserPermission.PrivilegesEntry\x1a\x31\n\x0fPrivilegesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xae\x01\n\x0c\x44\x62Permission\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\n\n\x02\x64\x62\x18\x02 \x01(\t\x12\x0c\n\x04user\x18\x03 \x01(\t\x12\x43\n\nprivileges\x18\x04 \x03(\x0b\x32/.tabletmanagerdata.DbPermission.PrivilegesEntry\x1a\x31\n\x0fPrivilegesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa4\x01\n\x0eHostPermission\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\n\n\x02\x64\x62\x18\x02 \x01(\t\x12\x45\n\nprivileges\x18\x03 \x03(\x0b\x32\x31.tabletmanagerdata.HostPermission.PrivilegesEntry\x1a\x31\n\x0fPrivilegesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc0\x01\n\x0bPermissions\x12;\n\x10user_permissions\x18\x01 \x03(\x0b\x32!.tabletmanagerdata.UserPermission\x12\x37\n\x0e\x64\x62_permissions\x18\x02 \x03(\x0b\x32\x1f.tabletmanagerdata.DbPermission\x12;\n\x10host_permissions\x18\x03 \x03(\x0b\x32!.tabletmanagerdata.HostPermission\"G\n\x0b\x42lpPosition\x12\x0b\n\x03uid\x18\x01 \x01(\r\x12+\n\x08position\x18\x02 \x01(\x0b\x32\x19.replicationdata.Position\"\x1e\n\x0bPingRequest\x12\x0f\n\x07payload\x18\x01 \x01(\t\"\x1f\n\x0cPingResponse\x12\x0f\n\x07payload\x18\x01 \x01(\t\" \n\x0cSleepRequest\x12\x10\n\x08\x64uration\x18\x01 \x01(\x03\"\x0f\n\rSleepResponse\"\xaf\x01\n\x12\x45xecuteHookRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nparameters\x18\x02 \x03(\t\x12\x46\n\textra_env\x18\x03 \x03(\x0b\x32\x33.tabletmanagerdata.ExecuteHookRequest.ExtraEnvEntry\x1a/\n\rExtraEnvEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"J\n\x13\x45xecuteHookResponse\x12\x13\n\x0b\x65xit_status\x18\x01 \x01(\x03\x12\x0e\n\x06stdout\x18\x02 \x01(\t\x12\x0e\n\x06stderr\x18\x03 \x01(\t\"Q\n\x10GetSchemaRequest\x12\x0e\n\x06tables\x18\x01 \x03(\t\x12\x15\n\rinclude_views\x18\x02 \x01(\x08\x12\x16\n\x0e\x65xclude_tables\x18\x03 \x03(\t\"S\n\x11GetSchemaResponse\x12>\n\x11schema_definition\x18\x01 \x01(\x0b\x32#.tabletmanagerdata.SchemaDefinition\"\x17\n\x15GetPermissionsRequest\"M\n\x16GetPermissionsResponse\x12\x33\n\x0bpermissions\x18\x01 \x01(\x0b\x32\x1e.tabletmanagerdata.Permissions\"\x14\n\x12SetReadOnlyRequest\"\x15\n\x13SetReadOnlyResponse\"\x15\n\x13SetReadWriteRequest\"\x16\n\x14SetReadWriteResponse\">\n\x11\x43hangeTypeRequest\x12)\n\x0btablet_type\x18\x01 \x01(\x0e\x32\x14.topodata.TabletType\"\x14\n\x12\x43hangeTypeResponse\"\x0e\n\x0cScrapRequest\"\x0f\n\rScrapResponse\"\x15\n\x13RefreshStateRequest\"\x16\n\x14RefreshStateResponse\"B\n\x15RunHealthCheckRequest\x12)\n\x0btablet_type\x18\x01 \x01(\x0e\x32\x14.topodata.TabletType\"\x18\n\x16RunHealthCheckResponse\"\x15\n\x13ReloadSchemaRequest\"\x16\n\x14ReloadSchemaResponse\"(\n\x16PreflightSchemaRequest\x12\x0e\n\x06\x63hange\x18\x01 \x01(\t\"\x90\x01\n\x17PreflightSchemaResponse\x12:\n\rbefore_schema\x18\x01 \x01(\x0b\x32#.tabletmanagerdata.SchemaDefinition\x12\x39\n\x0c\x61\x66ter_schema\x18\x02 \x01(\x0b\x32#.tabletmanagerdata.SchemaDefinition\"\xc2\x01\n\x12\x41pplySchemaRequest\x12\x0b\n\x03sql\x18\x01 \x01(\t\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x12\x19\n\x11\x61llow_replication\x18\x03 \x01(\x08\x12:\n\rbefore_schema\x18\x04 \x01(\x0b\x32#.tabletmanagerdata.SchemaDefinition\x12\x39\n\x0c\x61\x66ter_schema\x18\x05 \x01(\x0b\x32#.tabletmanagerdata.SchemaDefinition\"\x8c\x01\n\x13\x41pplySchemaResponse\x12:\n\rbefore_schema\x18\x01 \x01(\x0b\x32#.tabletmanagerdata.SchemaDefinition\x12\x39\n\x0c\x61\x66ter_schema\x18\x02 \x01(\x0b\x32#.tabletmanagerdata.SchemaDefinition\"\x91\x01\n\x18\x45xecuteFetchAsDbaRequest\x12\r\n\x05query\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x62_name\x18\x02 \x01(\t\x12\x10\n\x08max_rows\x18\x03 \x01(\x04\x12\x13\n\x0bwant_fields\x18\x04 \x01(\x08\x12\x17\n\x0f\x64isable_binlogs\x18\x05 \x01(\x08\x12\x15\n\rreload_schema\x18\x06 \x01(\x08\"?\n\x19\x45xecuteFetchAsDbaResponse\x12\"\n\x06result\x18\x01 \x01(\x0b\x32\x12.query.QueryResult\"P\n\x18\x45xecuteFetchAsAppRequest\x12\r\n\x05query\x18\x01 \x01(\t\x12\x10\n\x08max_rows\x18\x02 \x01(\x04\x12\x13\n\x0bwant_fields\x18\x03 \x01(\x08\"?\n\x19\x45xecuteFetchAsAppResponse\x12\"\n\x06result\x18\x01 \x01(\x0b\x32\x12.query.QueryResult\"\x14\n\x12SlaveStatusRequest\">\n\x13SlaveStatusResponse\x12\'\n\x06status\x18\x01 \x01(\x0b\x32\x17.replicationdata.Status\"\x17\n\x15MasterPositionRequest\"E\n\x16MasterPositionResponse\x12+\n\x08position\x18\x01 \x01(\x0b\x32\x19.replicationdata.Position\"\x12\n\x10StopSlaveRequest\"\x13\n\x11StopSlaveResponse\"\\\n\x17StopSlaveMinimumRequest\x12+\n\x08position\x18\x01 \x01(\x0b\x32\x19.replicationdata.Position\x12\x14\n\x0cwait_timeout\x18\x02 \x01(\x03\"G\n\x18StopSlaveMinimumResponse\x12+\n\x08position\x18\x01 \x01(\x0b\x32\x19.replicationdata.Position\"\x13\n\x11StartSlaveRequest\"\x14\n\x12StartSlaveResponse\"8\n!TabletExternallyReparentedRequest\x12\x13\n\x0b\x65xternal_id\x18\x01 \x01(\t\"$\n\"TabletExternallyReparentedResponse\" \n\x1eTabletExternallyElectedRequest\"!\n\x1fTabletExternallyElectedResponse\"\x12\n\x10GetSlavesRequest\"\"\n\x11GetSlavesResponse\x12\r\n\x05\x61\x64\x64rs\x18\x01 \x03(\t\"d\n\x16WaitBlpPositionRequest\x12\x34\n\x0c\x62lp_position\x18\x01 \x01(\x0b\x32\x1e.tabletmanagerdata.BlpPosition\x12\x14\n\x0cwait_timeout\x18\x02 \x01(\x03\"\x19\n\x17WaitBlpPositionResponse\"\x10\n\x0eStopBlpRequest\"H\n\x0fStopBlpResponse\x12\x35\n\rblp_positions\x18\x01 \x03(\x0b\x32\x1e.tabletmanagerdata.BlpPosition\"\x11\n\x0fStartBlpRequest\"\x12\n\x10StartBlpResponse\"a\n\x12RunBlpUntilRequest\x12\x35\n\rblp_positions\x18\x01 \x03(\x0b\x32\x1e.tabletmanagerdata.BlpPosition\x12\x14\n\x0cwait_timeout\x18\x02 \x01(\x03\"B\n\x13RunBlpUntilResponse\x12+\n\x08position\x18\x01 \x01(\x0b\x32\x19.replicationdata.Position\"\x19\n\x17ResetReplicationRequest\"\x1a\n\x18ResetReplicationResponse\"\x13\n\x11InitMasterRequest\"A\n\x12InitMasterResponse\x12+\n\x08position\x18\x01 \x01(\x0b\x32\x19.replicationdata.Position\"\xb4\x01\n\x1ePopulateReparentJournalRequest\x12\x17\n\x0ftime_created_ns\x18\x01 \x01(\x03\x12\x13\n\x0b\x61\x63tion_name\x18\x02 \x01(\t\x12+\n\x0cmaster_alias\x18\x03 \x01(\x0b\x32\x15.topodata.TabletAlias\x12\x37\n\x14replication_position\x18\x04 \x01(\x0b\x32\x19.replicationdata.Position\"!\n\x1fPopulateReparentJournalResponse\"\x8b\x01\n\x10InitSlaveRequest\x12%\n\x06parent\x18\x01 \x01(\x0b\x32\x15.topodata.TabletAlias\x12\x37\n\x14replication_position\x18\x02 \x01(\x0b\x32\x19.replicationdata.Position\x12\x17\n\x0ftime_created_ns\x18\x03 \x01(\x03\"\x13\n\x11InitSlaveResponse\"\x15\n\x13\x44\x65moteMasterRequest\"C\n\x14\x44\x65moteMasterResponse\x12+\n\x08position\x18\x01 \x01(\x0b\x32\x19.replicationdata.Position\"N\n\x1fPromoteSlaveWhenCaughtUpRequest\x12+\n\x08position\x18\x01 \x01(\x0b\x32\x19.replicationdata.Position\"O\n PromoteSlaveWhenCaughtUpResponse\x12+\n\x08position\x18\x01 \x01(\x0b\x32\x19.replicationdata.Position\"\x19\n\x17SlaveWasPromotedRequest\"\x1a\n\x18SlaveWasPromotedResponse\"m\n\x10SetMasterRequest\x12%\n\x06parent\x18\x01 \x01(\x0b\x32\x15.topodata.TabletAlias\x12\x17\n\x0ftime_created_ns\x18\x02 \x01(\x03\x12\x19\n\x11\x66orce_start_slave\x18\x03 \x01(\x08\"\x13\n\x11SetMasterResponse\"A\n\x18SlaveWasRestartedRequest\x12%\n\x06parent\x18\x01 \x01(\x0b\x32\x15.topodata.TabletAlias\"\x1b\n\x19SlaveWasRestartedResponse\"$\n\"StopReplicationAndGetStatusRequest\"N\n#StopReplicationAndGetStatusResponse\x12\'\n\x06status\x18\x01 \x01(\x0b\x32\x17.replicationdata.Status\"\x15\n\x13PromoteSlaveRequest\"C\n\x14PromoteSlaveResponse\x12+\n\x08position\x18\x01 \x01(\x0b\x32\x19.replicationdata.Position\"$\n\rBackupRequest\x12\x13\n\x0b\x63oncurrency\x18\x01 \x01(\x03\"/\n\x0e\x42\x61\x63kupResponse\x12\x1d\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x0e.logutil.Eventb\x06proto3') + , + dependencies=[query__pb2.DESCRIPTOR,topodata__pb2.DESCRIPTOR,replicationdata__pb2.DESCRIPTOR,logutil__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + + +_TABLEDEFINITION = _descriptor.Descriptor( + name='TableDefinition', + full_name='tabletmanagerdata.TableDefinition', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='tabletmanagerdata.TableDefinition.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='schema', full_name='tabletmanagerdata.TableDefinition.schema', 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='columns', full_name='tabletmanagerdata.TableDefinition.columns', index=2, + number=3, type=9, cpp_type=9, 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='primary_key_columns', full_name='tabletmanagerdata.TableDefinition.primary_key_columns', index=3, + number=4, type=9, cpp_type=9, 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='type', full_name='tabletmanagerdata.TableDefinition.type', index=4, + number=5, 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='data_length', full_name='tabletmanagerdata.TableDefinition.data_length', index=5, + number=6, type=4, cpp_type=4, 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='row_count', full_name='tabletmanagerdata.TableDefinition.row_count', index=6, + number=7, type=4, cpp_type=4, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=114, + serialized_end=261, +) + + +_SCHEMADEFINITION = _descriptor.Descriptor( + name='SchemaDefinition', + full_name='tabletmanagerdata.SchemaDefinition', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='database_schema', full_name='tabletmanagerdata.SchemaDefinition.database_schema', 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='table_definitions', full_name='tabletmanagerdata.SchemaDefinition.table_definitions', 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='version', full_name='tabletmanagerdata.SchemaDefinition.version', 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=263, + serialized_end=386, +) + + +_USERPERMISSION_PRIVILEGESENTRY = _descriptor.Descriptor( + name='PrivilegesEntry', + full_name='tabletmanagerdata.UserPermission.PrivilegesEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='tabletmanagerdata.UserPermission.PrivilegesEntry.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='tabletmanagerdata.UserPermission.PrivilegesEntry.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=533, + serialized_end=582, +) + +_USERPERMISSION = _descriptor.Descriptor( + name='UserPermission', + full_name='tabletmanagerdata.UserPermission', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='host', full_name='tabletmanagerdata.UserPermission.host', 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='user', full_name='tabletmanagerdata.UserPermission.user', 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='password_checksum', full_name='tabletmanagerdata.UserPermission.password_checksum', index=2, + number=3, type=4, cpp_type=4, 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='privileges', full_name='tabletmanagerdata.UserPermission.privileges', index=3, + number=4, 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=[_USERPERMISSION_PRIVILEGESENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=389, + serialized_end=582, +) + + +_DBPERMISSION_PRIVILEGESENTRY = _descriptor.Descriptor( + name='PrivilegesEntry', + full_name='tabletmanagerdata.DbPermission.PrivilegesEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='tabletmanagerdata.DbPermission.PrivilegesEntry.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='tabletmanagerdata.DbPermission.PrivilegesEntry.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=533, + serialized_end=582, +) + +_DBPERMISSION = _descriptor.Descriptor( + name='DbPermission', + full_name='tabletmanagerdata.DbPermission', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='host', full_name='tabletmanagerdata.DbPermission.host', 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='db', full_name='tabletmanagerdata.DbPermission.db', 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='user', full_name='tabletmanagerdata.DbPermission.user', 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='privileges', full_name='tabletmanagerdata.DbPermission.privileges', index=3, + number=4, 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=[_DBPERMISSION_PRIVILEGESENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=585, + serialized_end=759, +) + + +_HOSTPERMISSION_PRIVILEGESENTRY = _descriptor.Descriptor( + name='PrivilegesEntry', + full_name='tabletmanagerdata.HostPermission.PrivilegesEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='tabletmanagerdata.HostPermission.PrivilegesEntry.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='tabletmanagerdata.HostPermission.PrivilegesEntry.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=533, + serialized_end=582, +) + +_HOSTPERMISSION = _descriptor.Descriptor( + name='HostPermission', + full_name='tabletmanagerdata.HostPermission', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='host', full_name='tabletmanagerdata.HostPermission.host', 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='db', full_name='tabletmanagerdata.HostPermission.db', 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='privileges', full_name='tabletmanagerdata.HostPermission.privileges', 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), + ], + extensions=[ + ], + nested_types=[_HOSTPERMISSION_PRIVILEGESENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=762, + serialized_end=926, +) + + +_PERMISSIONS = _descriptor.Descriptor( + name='Permissions', + full_name='tabletmanagerdata.Permissions', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='user_permissions', full_name='tabletmanagerdata.Permissions.user_permissions', 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='db_permissions', full_name='tabletmanagerdata.Permissions.db_permissions', 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='host_permissions', full_name='tabletmanagerdata.Permissions.host_permissions', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=929, + serialized_end=1121, +) + + +_BLPPOSITION = _descriptor.Descriptor( + name='BlpPosition', + full_name='tabletmanagerdata.BlpPosition', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='uid', full_name='tabletmanagerdata.BlpPosition.uid', index=0, + number=1, type=13, cpp_type=3, 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='position', full_name='tabletmanagerdata.BlpPosition.position', 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=1123, + serialized_end=1194, +) + + +_PINGREQUEST = _descriptor.Descriptor( + name='PingRequest', + full_name='tabletmanagerdata.PingRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='payload', full_name='tabletmanagerdata.PingRequest.payload', 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=1196, + serialized_end=1226, +) + + +_PINGRESPONSE = _descriptor.Descriptor( + name='PingResponse', + full_name='tabletmanagerdata.PingResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='payload', full_name='tabletmanagerdata.PingResponse.payload', 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=1228, + serialized_end=1259, +) + + +_SLEEPREQUEST = _descriptor.Descriptor( + name='SleepRequest', + full_name='tabletmanagerdata.SleepRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='duration', full_name='tabletmanagerdata.SleepRequest.duration', index=0, + number=1, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1261, + serialized_end=1293, +) + + +_SLEEPRESPONSE = _descriptor.Descriptor( + name='SleepResponse', + full_name='tabletmanagerdata.SleepResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1295, + serialized_end=1310, +) + + +_EXECUTEHOOKREQUEST_EXTRAENVENTRY = _descriptor.Descriptor( + name='ExtraEnvEntry', + full_name='tabletmanagerdata.ExecuteHookRequest.ExtraEnvEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='tabletmanagerdata.ExecuteHookRequest.ExtraEnvEntry.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='tabletmanagerdata.ExecuteHookRequest.ExtraEnvEntry.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=1441, + serialized_end=1488, +) + +_EXECUTEHOOKREQUEST = _descriptor.Descriptor( + name='ExecuteHookRequest', + full_name='tabletmanagerdata.ExecuteHookRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='tabletmanagerdata.ExecuteHookRequest.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='parameters', full_name='tabletmanagerdata.ExecuteHookRequest.parameters', index=1, + number=2, type=9, cpp_type=9, 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='extra_env', full_name='tabletmanagerdata.ExecuteHookRequest.extra_env', 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), + ], + extensions=[ + ], + nested_types=[_EXECUTEHOOKREQUEST_EXTRAENVENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1313, + serialized_end=1488, +) + + +_EXECUTEHOOKRESPONSE = _descriptor.Descriptor( + name='ExecuteHookResponse', + full_name='tabletmanagerdata.ExecuteHookResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='exit_status', full_name='tabletmanagerdata.ExecuteHookResponse.exit_status', index=0, + number=1, type=3, cpp_type=2, 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='stdout', full_name='tabletmanagerdata.ExecuteHookResponse.stdout', 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='stderr', full_name='tabletmanagerdata.ExecuteHookResponse.stderr', 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=1490, + serialized_end=1564, +) + + +_GETSCHEMAREQUEST = _descriptor.Descriptor( + name='GetSchemaRequest', + full_name='tabletmanagerdata.GetSchemaRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='tables', full_name='tabletmanagerdata.GetSchemaRequest.tables', index=0, + number=1, type=9, cpp_type=9, 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='include_views', full_name='tabletmanagerdata.GetSchemaRequest.include_views', index=1, + number=2, 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), + _descriptor.FieldDescriptor( + name='exclude_tables', full_name='tabletmanagerdata.GetSchemaRequest.exclude_tables', index=2, + number=3, type=9, cpp_type=9, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1566, + serialized_end=1647, +) + + +_GETSCHEMARESPONSE = _descriptor.Descriptor( + name='GetSchemaResponse', + full_name='tabletmanagerdata.GetSchemaResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='schema_definition', full_name='tabletmanagerdata.GetSchemaResponse.schema_definition', 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=1649, + serialized_end=1732, +) + + +_GETPERMISSIONSREQUEST = _descriptor.Descriptor( + name='GetPermissionsRequest', + full_name='tabletmanagerdata.GetPermissionsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1734, + serialized_end=1757, +) + + +_GETPERMISSIONSRESPONSE = _descriptor.Descriptor( + name='GetPermissionsResponse', + full_name='tabletmanagerdata.GetPermissionsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='permissions', full_name='tabletmanagerdata.GetPermissionsResponse.permissions', 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=1759, + serialized_end=1836, +) + + +_SETREADONLYREQUEST = _descriptor.Descriptor( + name='SetReadOnlyRequest', + full_name='tabletmanagerdata.SetReadOnlyRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1838, + serialized_end=1858, +) + + +_SETREADONLYRESPONSE = _descriptor.Descriptor( + name='SetReadOnlyResponse', + full_name='tabletmanagerdata.SetReadOnlyResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1860, + serialized_end=1881, +) + + +_SETREADWRITEREQUEST = _descriptor.Descriptor( + name='SetReadWriteRequest', + full_name='tabletmanagerdata.SetReadWriteRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1883, + serialized_end=1904, +) + + +_SETREADWRITERESPONSE = _descriptor.Descriptor( + name='SetReadWriteResponse', + full_name='tabletmanagerdata.SetReadWriteResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1906, + serialized_end=1928, +) + + +_CHANGETYPEREQUEST = _descriptor.Descriptor( + name='ChangeTypeRequest', + full_name='tabletmanagerdata.ChangeTypeRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='tablet_type', full_name='tabletmanagerdata.ChangeTypeRequest.tablet_type', index=0, + number=1, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1930, + serialized_end=1992, +) + + +_CHANGETYPERESPONSE = _descriptor.Descriptor( + name='ChangeTypeResponse', + full_name='tabletmanagerdata.ChangeTypeResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1994, + serialized_end=2014, +) + + +_SCRAPREQUEST = _descriptor.Descriptor( + name='ScrapRequest', + full_name='tabletmanagerdata.ScrapRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2016, + serialized_end=2030, +) + + +_SCRAPRESPONSE = _descriptor.Descriptor( + name='ScrapResponse', + full_name='tabletmanagerdata.ScrapResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2032, + serialized_end=2047, +) + + +_REFRESHSTATEREQUEST = _descriptor.Descriptor( + name='RefreshStateRequest', + full_name='tabletmanagerdata.RefreshStateRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2049, + serialized_end=2070, +) + + +_REFRESHSTATERESPONSE = _descriptor.Descriptor( + name='RefreshStateResponse', + full_name='tabletmanagerdata.RefreshStateResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2072, + serialized_end=2094, +) + + +_RUNHEALTHCHECKREQUEST = _descriptor.Descriptor( + name='RunHealthCheckRequest', + full_name='tabletmanagerdata.RunHealthCheckRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='tablet_type', full_name='tabletmanagerdata.RunHealthCheckRequest.tablet_type', index=0, + number=1, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2096, + serialized_end=2162, +) + + +_RUNHEALTHCHECKRESPONSE = _descriptor.Descriptor( + name='RunHealthCheckResponse', + full_name='tabletmanagerdata.RunHealthCheckResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2164, + serialized_end=2188, +) + + +_RELOADSCHEMAREQUEST = _descriptor.Descriptor( + name='ReloadSchemaRequest', + full_name='tabletmanagerdata.ReloadSchemaRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2190, + serialized_end=2211, +) + + +_RELOADSCHEMARESPONSE = _descriptor.Descriptor( + name='ReloadSchemaResponse', + full_name='tabletmanagerdata.ReloadSchemaResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2213, + serialized_end=2235, +) + + +_PREFLIGHTSCHEMAREQUEST = _descriptor.Descriptor( + name='PreflightSchemaRequest', + full_name='tabletmanagerdata.PreflightSchemaRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='change', full_name='tabletmanagerdata.PreflightSchemaRequest.change', 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=2237, + serialized_end=2277, +) + + +_PREFLIGHTSCHEMARESPONSE = _descriptor.Descriptor( + name='PreflightSchemaResponse', + full_name='tabletmanagerdata.PreflightSchemaResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='before_schema', full_name='tabletmanagerdata.PreflightSchemaResponse.before_schema', 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='after_schema', full_name='tabletmanagerdata.PreflightSchemaResponse.after_schema', 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=2280, + serialized_end=2424, +) + + +_APPLYSCHEMAREQUEST = _descriptor.Descriptor( + name='ApplySchemaRequest', + full_name='tabletmanagerdata.ApplySchemaRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='sql', full_name='tabletmanagerdata.ApplySchemaRequest.sql', 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='force', full_name='tabletmanagerdata.ApplySchemaRequest.force', index=1, + number=2, 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), + _descriptor.FieldDescriptor( + name='allow_replication', full_name='tabletmanagerdata.ApplySchemaRequest.allow_replication', index=2, + number=3, 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), + _descriptor.FieldDescriptor( + name='before_schema', full_name='tabletmanagerdata.ApplySchemaRequest.before_schema', 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), + _descriptor.FieldDescriptor( + name='after_schema', full_name='tabletmanagerdata.ApplySchemaRequest.after_schema', index=4, + number=5, 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=2427, + serialized_end=2621, +) + + +_APPLYSCHEMARESPONSE = _descriptor.Descriptor( + name='ApplySchemaResponse', + full_name='tabletmanagerdata.ApplySchemaResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='before_schema', full_name='tabletmanagerdata.ApplySchemaResponse.before_schema', 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='after_schema', full_name='tabletmanagerdata.ApplySchemaResponse.after_schema', 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=2624, + serialized_end=2764, +) + + +_EXECUTEFETCHASDBAREQUEST = _descriptor.Descriptor( + name='ExecuteFetchAsDbaRequest', + full_name='tabletmanagerdata.ExecuteFetchAsDbaRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='query', full_name='tabletmanagerdata.ExecuteFetchAsDbaRequest.query', 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='db_name', full_name='tabletmanagerdata.ExecuteFetchAsDbaRequest.db_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), + _descriptor.FieldDescriptor( + name='max_rows', full_name='tabletmanagerdata.ExecuteFetchAsDbaRequest.max_rows', index=2, + number=3, type=4, cpp_type=4, 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='want_fields', full_name='tabletmanagerdata.ExecuteFetchAsDbaRequest.want_fields', 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), + _descriptor.FieldDescriptor( + name='disable_binlogs', full_name='tabletmanagerdata.ExecuteFetchAsDbaRequest.disable_binlogs', index=4, + number=5, 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), + _descriptor.FieldDescriptor( + name='reload_schema', full_name='tabletmanagerdata.ExecuteFetchAsDbaRequest.reload_schema', index=5, + number=6, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2767, + serialized_end=2912, +) + + +_EXECUTEFETCHASDBARESPONSE = _descriptor.Descriptor( + name='ExecuteFetchAsDbaResponse', + full_name='tabletmanagerdata.ExecuteFetchAsDbaResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='result', full_name='tabletmanagerdata.ExecuteFetchAsDbaResponse.result', 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=2914, + serialized_end=2977, +) + + +_EXECUTEFETCHASAPPREQUEST = _descriptor.Descriptor( + name='ExecuteFetchAsAppRequest', + full_name='tabletmanagerdata.ExecuteFetchAsAppRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='query', full_name='tabletmanagerdata.ExecuteFetchAsAppRequest.query', 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='max_rows', full_name='tabletmanagerdata.ExecuteFetchAsAppRequest.max_rows', index=1, + number=2, type=4, cpp_type=4, 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='want_fields', full_name='tabletmanagerdata.ExecuteFetchAsAppRequest.want_fields', index=2, + number=3, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2979, + serialized_end=3059, +) + + +_EXECUTEFETCHASAPPRESPONSE = _descriptor.Descriptor( + name='ExecuteFetchAsAppResponse', + full_name='tabletmanagerdata.ExecuteFetchAsAppResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='result', full_name='tabletmanagerdata.ExecuteFetchAsAppResponse.result', 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=3061, + serialized_end=3124, +) + + +_SLAVESTATUSREQUEST = _descriptor.Descriptor( + name='SlaveStatusRequest', + full_name='tabletmanagerdata.SlaveStatusRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3126, + serialized_end=3146, +) + + +_SLAVESTATUSRESPONSE = _descriptor.Descriptor( + name='SlaveStatusResponse', + full_name='tabletmanagerdata.SlaveStatusResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='status', full_name='tabletmanagerdata.SlaveStatusResponse.status', 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=3148, + serialized_end=3210, +) + + +_MASTERPOSITIONREQUEST = _descriptor.Descriptor( + name='MasterPositionRequest', + full_name='tabletmanagerdata.MasterPositionRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3212, + serialized_end=3235, +) + + +_MASTERPOSITIONRESPONSE = _descriptor.Descriptor( + name='MasterPositionResponse', + full_name='tabletmanagerdata.MasterPositionResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='position', full_name='tabletmanagerdata.MasterPositionResponse.position', 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=3237, + serialized_end=3306, +) + + +_STOPSLAVEREQUEST = _descriptor.Descriptor( + name='StopSlaveRequest', + full_name='tabletmanagerdata.StopSlaveRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3308, + serialized_end=3326, +) + + +_STOPSLAVERESPONSE = _descriptor.Descriptor( + name='StopSlaveResponse', + full_name='tabletmanagerdata.StopSlaveResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3328, + serialized_end=3347, +) + + +_STOPSLAVEMINIMUMREQUEST = _descriptor.Descriptor( + name='StopSlaveMinimumRequest', + full_name='tabletmanagerdata.StopSlaveMinimumRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='position', full_name='tabletmanagerdata.StopSlaveMinimumRequest.position', 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='wait_timeout', full_name='tabletmanagerdata.StopSlaveMinimumRequest.wait_timeout', index=1, + number=2, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3349, + serialized_end=3441, +) + + +_STOPSLAVEMINIMUMRESPONSE = _descriptor.Descriptor( + name='StopSlaveMinimumResponse', + full_name='tabletmanagerdata.StopSlaveMinimumResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='position', full_name='tabletmanagerdata.StopSlaveMinimumResponse.position', 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=3443, + serialized_end=3514, +) + + +_STARTSLAVEREQUEST = _descriptor.Descriptor( + name='StartSlaveRequest', + full_name='tabletmanagerdata.StartSlaveRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3516, + serialized_end=3535, +) + + +_STARTSLAVERESPONSE = _descriptor.Descriptor( + name='StartSlaveResponse', + full_name='tabletmanagerdata.StartSlaveResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3537, + serialized_end=3557, +) + + +_TABLETEXTERNALLYREPARENTEDREQUEST = _descriptor.Descriptor( + name='TabletExternallyReparentedRequest', + full_name='tabletmanagerdata.TabletExternallyReparentedRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='external_id', full_name='tabletmanagerdata.TabletExternallyReparentedRequest.external_id', 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=3559, + serialized_end=3615, +) + + +_TABLETEXTERNALLYREPARENTEDRESPONSE = _descriptor.Descriptor( + name='TabletExternallyReparentedResponse', + full_name='tabletmanagerdata.TabletExternallyReparentedResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3617, + serialized_end=3653, +) + + +_TABLETEXTERNALLYELECTEDREQUEST = _descriptor.Descriptor( + name='TabletExternallyElectedRequest', + full_name='tabletmanagerdata.TabletExternallyElectedRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3655, + serialized_end=3687, +) + + +_TABLETEXTERNALLYELECTEDRESPONSE = _descriptor.Descriptor( + name='TabletExternallyElectedResponse', + full_name='tabletmanagerdata.TabletExternallyElectedResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3689, + serialized_end=3722, +) + + +_GETSLAVESREQUEST = _descriptor.Descriptor( + name='GetSlavesRequest', + full_name='tabletmanagerdata.GetSlavesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3724, + serialized_end=3742, +) + + +_GETSLAVESRESPONSE = _descriptor.Descriptor( + name='GetSlavesResponse', + full_name='tabletmanagerdata.GetSlavesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='addrs', full_name='tabletmanagerdata.GetSlavesResponse.addrs', index=0, + number=1, type=9, cpp_type=9, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3744, + serialized_end=3778, +) + + +_WAITBLPPOSITIONREQUEST = _descriptor.Descriptor( + name='WaitBlpPositionRequest', + full_name='tabletmanagerdata.WaitBlpPositionRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='blp_position', full_name='tabletmanagerdata.WaitBlpPositionRequest.blp_position', 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='wait_timeout', full_name='tabletmanagerdata.WaitBlpPositionRequest.wait_timeout', index=1, + number=2, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3780, + serialized_end=3880, +) + + +_WAITBLPPOSITIONRESPONSE = _descriptor.Descriptor( + name='WaitBlpPositionResponse', + full_name='tabletmanagerdata.WaitBlpPositionResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3882, + serialized_end=3907, +) + + +_STOPBLPREQUEST = _descriptor.Descriptor( + name='StopBlpRequest', + full_name='tabletmanagerdata.StopBlpRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3909, + serialized_end=3925, +) + + +_STOPBLPRESPONSE = _descriptor.Descriptor( + name='StopBlpResponse', + full_name='tabletmanagerdata.StopBlpResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='blp_positions', full_name='tabletmanagerdata.StopBlpResponse.blp_positions', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3927, + serialized_end=3999, +) + + +_STARTBLPREQUEST = _descriptor.Descriptor( + name='StartBlpRequest', + full_name='tabletmanagerdata.StartBlpRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4001, + serialized_end=4018, +) + + +_STARTBLPRESPONSE = _descriptor.Descriptor( + name='StartBlpResponse', + full_name='tabletmanagerdata.StartBlpResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4020, + serialized_end=4038, +) + + +_RUNBLPUNTILREQUEST = _descriptor.Descriptor( + name='RunBlpUntilRequest', + full_name='tabletmanagerdata.RunBlpUntilRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='blp_positions', full_name='tabletmanagerdata.RunBlpUntilRequest.blp_positions', 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='wait_timeout', full_name='tabletmanagerdata.RunBlpUntilRequest.wait_timeout', index=1, + number=2, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4040, + serialized_end=4137, +) + + +_RUNBLPUNTILRESPONSE = _descriptor.Descriptor( + name='RunBlpUntilResponse', + full_name='tabletmanagerdata.RunBlpUntilResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='position', full_name='tabletmanagerdata.RunBlpUntilResponse.position', 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=4139, + serialized_end=4205, +) + + +_RESETREPLICATIONREQUEST = _descriptor.Descriptor( + name='ResetReplicationRequest', + full_name='tabletmanagerdata.ResetReplicationRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4207, + serialized_end=4232, +) + + +_RESETREPLICATIONRESPONSE = _descriptor.Descriptor( + name='ResetReplicationResponse', + full_name='tabletmanagerdata.ResetReplicationResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4234, + serialized_end=4260, +) + + +_INITMASTERREQUEST = _descriptor.Descriptor( + name='InitMasterRequest', + full_name='tabletmanagerdata.InitMasterRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4262, + serialized_end=4281, +) + + +_INITMASTERRESPONSE = _descriptor.Descriptor( + name='InitMasterResponse', + full_name='tabletmanagerdata.InitMasterResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='position', full_name='tabletmanagerdata.InitMasterResponse.position', 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=4283, + serialized_end=4348, +) + + +_POPULATEREPARENTJOURNALREQUEST = _descriptor.Descriptor( + name='PopulateReparentJournalRequest', + full_name='tabletmanagerdata.PopulateReparentJournalRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='time_created_ns', full_name='tabletmanagerdata.PopulateReparentJournalRequest.time_created_ns', index=0, + number=1, type=3, cpp_type=2, 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='action_name', full_name='tabletmanagerdata.PopulateReparentJournalRequest.action_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), + _descriptor.FieldDescriptor( + name='master_alias', full_name='tabletmanagerdata.PopulateReparentJournalRequest.master_alias', 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='replication_position', full_name='tabletmanagerdata.PopulateReparentJournalRequest.replication_position', 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=4351, + serialized_end=4531, +) + + +_POPULATEREPARENTJOURNALRESPONSE = _descriptor.Descriptor( + name='PopulateReparentJournalResponse', + full_name='tabletmanagerdata.PopulateReparentJournalResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4533, + serialized_end=4566, +) + + +_INITSLAVEREQUEST = _descriptor.Descriptor( + name='InitSlaveRequest', + full_name='tabletmanagerdata.InitSlaveRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='parent', full_name='tabletmanagerdata.InitSlaveRequest.parent', 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='replication_position', full_name='tabletmanagerdata.InitSlaveRequest.replication_position', 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='time_created_ns', full_name='tabletmanagerdata.InitSlaveRequest.time_created_ns', index=2, + number=3, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4569, + serialized_end=4708, +) + + +_INITSLAVERESPONSE = _descriptor.Descriptor( + name='InitSlaveResponse', + full_name='tabletmanagerdata.InitSlaveResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4710, + serialized_end=4729, +) + + +_DEMOTEMASTERREQUEST = _descriptor.Descriptor( + name='DemoteMasterRequest', + full_name='tabletmanagerdata.DemoteMasterRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4731, + serialized_end=4752, +) + + +_DEMOTEMASTERRESPONSE = _descriptor.Descriptor( + name='DemoteMasterResponse', + full_name='tabletmanagerdata.DemoteMasterResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='position', full_name='tabletmanagerdata.DemoteMasterResponse.position', 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=4754, + serialized_end=4821, +) + + +_PROMOTESLAVEWHENCAUGHTUPREQUEST = _descriptor.Descriptor( + name='PromoteSlaveWhenCaughtUpRequest', + full_name='tabletmanagerdata.PromoteSlaveWhenCaughtUpRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='position', full_name='tabletmanagerdata.PromoteSlaveWhenCaughtUpRequest.position', 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=4823, + serialized_end=4901, +) + + +_PROMOTESLAVEWHENCAUGHTUPRESPONSE = _descriptor.Descriptor( + name='PromoteSlaveWhenCaughtUpResponse', + full_name='tabletmanagerdata.PromoteSlaveWhenCaughtUpResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='position', full_name='tabletmanagerdata.PromoteSlaveWhenCaughtUpResponse.position', 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=4903, + serialized_end=4982, +) + + +_SLAVEWASPROMOTEDREQUEST = _descriptor.Descriptor( + name='SlaveWasPromotedRequest', + full_name='tabletmanagerdata.SlaveWasPromotedRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4984, + serialized_end=5009, +) + + +_SLAVEWASPROMOTEDRESPONSE = _descriptor.Descriptor( + name='SlaveWasPromotedResponse', + full_name='tabletmanagerdata.SlaveWasPromotedResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5011, + serialized_end=5037, +) + + +_SETMASTERREQUEST = _descriptor.Descriptor( + name='SetMasterRequest', + full_name='tabletmanagerdata.SetMasterRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='parent', full_name='tabletmanagerdata.SetMasterRequest.parent', 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='time_created_ns', full_name='tabletmanagerdata.SetMasterRequest.time_created_ns', index=1, + number=2, type=3, cpp_type=2, 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='force_start_slave', full_name='tabletmanagerdata.SetMasterRequest.force_start_slave', index=2, + number=3, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5039, + serialized_end=5148, +) + + +_SETMASTERRESPONSE = _descriptor.Descriptor( + name='SetMasterResponse', + full_name='tabletmanagerdata.SetMasterResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5150, + serialized_end=5169, +) + + +_SLAVEWASRESTARTEDREQUEST = _descriptor.Descriptor( + name='SlaveWasRestartedRequest', + full_name='tabletmanagerdata.SlaveWasRestartedRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='parent', full_name='tabletmanagerdata.SlaveWasRestartedRequest.parent', 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=5171, + serialized_end=5236, +) + + +_SLAVEWASRESTARTEDRESPONSE = _descriptor.Descriptor( + name='SlaveWasRestartedResponse', + full_name='tabletmanagerdata.SlaveWasRestartedResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5238, + serialized_end=5265, +) + + +_STOPREPLICATIONANDGETSTATUSREQUEST = _descriptor.Descriptor( + name='StopReplicationAndGetStatusRequest', + full_name='tabletmanagerdata.StopReplicationAndGetStatusRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5267, + serialized_end=5303, +) + + +_STOPREPLICATIONANDGETSTATUSRESPONSE = _descriptor.Descriptor( + name='StopReplicationAndGetStatusResponse', + full_name='tabletmanagerdata.StopReplicationAndGetStatusResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='status', full_name='tabletmanagerdata.StopReplicationAndGetStatusResponse.status', 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=5305, + serialized_end=5383, +) + + +_PROMOTESLAVEREQUEST = _descriptor.Descriptor( + name='PromoteSlaveRequest', + full_name='tabletmanagerdata.PromoteSlaveRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5385, + serialized_end=5406, +) + + +_PROMOTESLAVERESPONSE = _descriptor.Descriptor( + name='PromoteSlaveResponse', + full_name='tabletmanagerdata.PromoteSlaveResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='position', full_name='tabletmanagerdata.PromoteSlaveResponse.position', 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=5408, + serialized_end=5475, +) + + +_BACKUPREQUEST = _descriptor.Descriptor( + name='BackupRequest', + full_name='tabletmanagerdata.BackupRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='concurrency', full_name='tabletmanagerdata.BackupRequest.concurrency', index=0, + number=1, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5477, + serialized_end=5513, +) + + +_BACKUPRESPONSE = _descriptor.Descriptor( + name='BackupResponse', + full_name='tabletmanagerdata.BackupResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='event', full_name='tabletmanagerdata.BackupResponse.event', 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=5515, + serialized_end=5562, +) + +_SCHEMADEFINITION.fields_by_name['table_definitions'].message_type = _TABLEDEFINITION +_USERPERMISSION_PRIVILEGESENTRY.containing_type = _USERPERMISSION +_USERPERMISSION.fields_by_name['privileges'].message_type = _USERPERMISSION_PRIVILEGESENTRY +_DBPERMISSION_PRIVILEGESENTRY.containing_type = _DBPERMISSION +_DBPERMISSION.fields_by_name['privileges'].message_type = _DBPERMISSION_PRIVILEGESENTRY +_HOSTPERMISSION_PRIVILEGESENTRY.containing_type = _HOSTPERMISSION +_HOSTPERMISSION.fields_by_name['privileges'].message_type = _HOSTPERMISSION_PRIVILEGESENTRY +_PERMISSIONS.fields_by_name['user_permissions'].message_type = _USERPERMISSION +_PERMISSIONS.fields_by_name['db_permissions'].message_type = _DBPERMISSION +_PERMISSIONS.fields_by_name['host_permissions'].message_type = _HOSTPERMISSION +_BLPPOSITION.fields_by_name['position'].message_type = replicationdata__pb2._POSITION +_EXECUTEHOOKREQUEST_EXTRAENVENTRY.containing_type = _EXECUTEHOOKREQUEST +_EXECUTEHOOKREQUEST.fields_by_name['extra_env'].message_type = _EXECUTEHOOKREQUEST_EXTRAENVENTRY +_GETSCHEMARESPONSE.fields_by_name['schema_definition'].message_type = _SCHEMADEFINITION +_GETPERMISSIONSRESPONSE.fields_by_name['permissions'].message_type = _PERMISSIONS +_CHANGETYPEREQUEST.fields_by_name['tablet_type'].enum_type = topodata__pb2._TABLETTYPE +_RUNHEALTHCHECKREQUEST.fields_by_name['tablet_type'].enum_type = topodata__pb2._TABLETTYPE +_PREFLIGHTSCHEMARESPONSE.fields_by_name['before_schema'].message_type = _SCHEMADEFINITION +_PREFLIGHTSCHEMARESPONSE.fields_by_name['after_schema'].message_type = _SCHEMADEFINITION +_APPLYSCHEMAREQUEST.fields_by_name['before_schema'].message_type = _SCHEMADEFINITION +_APPLYSCHEMAREQUEST.fields_by_name['after_schema'].message_type = _SCHEMADEFINITION +_APPLYSCHEMARESPONSE.fields_by_name['before_schema'].message_type = _SCHEMADEFINITION +_APPLYSCHEMARESPONSE.fields_by_name['after_schema'].message_type = _SCHEMADEFINITION +_EXECUTEFETCHASDBARESPONSE.fields_by_name['result'].message_type = query__pb2._QUERYRESULT +_EXECUTEFETCHASAPPRESPONSE.fields_by_name['result'].message_type = query__pb2._QUERYRESULT +_SLAVESTATUSRESPONSE.fields_by_name['status'].message_type = replicationdata__pb2._STATUS +_MASTERPOSITIONRESPONSE.fields_by_name['position'].message_type = replicationdata__pb2._POSITION +_STOPSLAVEMINIMUMREQUEST.fields_by_name['position'].message_type = replicationdata__pb2._POSITION +_STOPSLAVEMINIMUMRESPONSE.fields_by_name['position'].message_type = replicationdata__pb2._POSITION +_WAITBLPPOSITIONREQUEST.fields_by_name['blp_position'].message_type = _BLPPOSITION +_STOPBLPRESPONSE.fields_by_name['blp_positions'].message_type = _BLPPOSITION +_RUNBLPUNTILREQUEST.fields_by_name['blp_positions'].message_type = _BLPPOSITION +_RUNBLPUNTILRESPONSE.fields_by_name['position'].message_type = replicationdata__pb2._POSITION +_INITMASTERRESPONSE.fields_by_name['position'].message_type = replicationdata__pb2._POSITION +_POPULATEREPARENTJOURNALREQUEST.fields_by_name['master_alias'].message_type = topodata__pb2._TABLETALIAS +_POPULATEREPARENTJOURNALREQUEST.fields_by_name['replication_position'].message_type = replicationdata__pb2._POSITION +_INITSLAVEREQUEST.fields_by_name['parent'].message_type = topodata__pb2._TABLETALIAS +_INITSLAVEREQUEST.fields_by_name['replication_position'].message_type = replicationdata__pb2._POSITION +_DEMOTEMASTERRESPONSE.fields_by_name['position'].message_type = replicationdata__pb2._POSITION +_PROMOTESLAVEWHENCAUGHTUPREQUEST.fields_by_name['position'].message_type = replicationdata__pb2._POSITION +_PROMOTESLAVEWHENCAUGHTUPRESPONSE.fields_by_name['position'].message_type = replicationdata__pb2._POSITION +_SETMASTERREQUEST.fields_by_name['parent'].message_type = topodata__pb2._TABLETALIAS +_SLAVEWASRESTARTEDREQUEST.fields_by_name['parent'].message_type = topodata__pb2._TABLETALIAS +_STOPREPLICATIONANDGETSTATUSRESPONSE.fields_by_name['status'].message_type = replicationdata__pb2._STATUS +_PROMOTESLAVERESPONSE.fields_by_name['position'].message_type = replicationdata__pb2._POSITION +_BACKUPRESPONSE.fields_by_name['event'].message_type = logutil__pb2._EVENT +DESCRIPTOR.message_types_by_name['TableDefinition'] = _TABLEDEFINITION +DESCRIPTOR.message_types_by_name['SchemaDefinition'] = _SCHEMADEFINITION +DESCRIPTOR.message_types_by_name['UserPermission'] = _USERPERMISSION +DESCRIPTOR.message_types_by_name['DbPermission'] = _DBPERMISSION +DESCRIPTOR.message_types_by_name['HostPermission'] = _HOSTPERMISSION +DESCRIPTOR.message_types_by_name['Permissions'] = _PERMISSIONS +DESCRIPTOR.message_types_by_name['BlpPosition'] = _BLPPOSITION +DESCRIPTOR.message_types_by_name['PingRequest'] = _PINGREQUEST +DESCRIPTOR.message_types_by_name['PingResponse'] = _PINGRESPONSE +DESCRIPTOR.message_types_by_name['SleepRequest'] = _SLEEPREQUEST +DESCRIPTOR.message_types_by_name['SleepResponse'] = _SLEEPRESPONSE +DESCRIPTOR.message_types_by_name['ExecuteHookRequest'] = _EXECUTEHOOKREQUEST +DESCRIPTOR.message_types_by_name['ExecuteHookResponse'] = _EXECUTEHOOKRESPONSE +DESCRIPTOR.message_types_by_name['GetSchemaRequest'] = _GETSCHEMAREQUEST +DESCRIPTOR.message_types_by_name['GetSchemaResponse'] = _GETSCHEMARESPONSE +DESCRIPTOR.message_types_by_name['GetPermissionsRequest'] = _GETPERMISSIONSREQUEST +DESCRIPTOR.message_types_by_name['GetPermissionsResponse'] = _GETPERMISSIONSRESPONSE +DESCRIPTOR.message_types_by_name['SetReadOnlyRequest'] = _SETREADONLYREQUEST +DESCRIPTOR.message_types_by_name['SetReadOnlyResponse'] = _SETREADONLYRESPONSE +DESCRIPTOR.message_types_by_name['SetReadWriteRequest'] = _SETREADWRITEREQUEST +DESCRIPTOR.message_types_by_name['SetReadWriteResponse'] = _SETREADWRITERESPONSE +DESCRIPTOR.message_types_by_name['ChangeTypeRequest'] = _CHANGETYPEREQUEST +DESCRIPTOR.message_types_by_name['ChangeTypeResponse'] = _CHANGETYPERESPONSE +DESCRIPTOR.message_types_by_name['ScrapRequest'] = _SCRAPREQUEST +DESCRIPTOR.message_types_by_name['ScrapResponse'] = _SCRAPRESPONSE +DESCRIPTOR.message_types_by_name['RefreshStateRequest'] = _REFRESHSTATEREQUEST +DESCRIPTOR.message_types_by_name['RefreshStateResponse'] = _REFRESHSTATERESPONSE +DESCRIPTOR.message_types_by_name['RunHealthCheckRequest'] = _RUNHEALTHCHECKREQUEST +DESCRIPTOR.message_types_by_name['RunHealthCheckResponse'] = _RUNHEALTHCHECKRESPONSE +DESCRIPTOR.message_types_by_name['ReloadSchemaRequest'] = _RELOADSCHEMAREQUEST +DESCRIPTOR.message_types_by_name['ReloadSchemaResponse'] = _RELOADSCHEMARESPONSE +DESCRIPTOR.message_types_by_name['PreflightSchemaRequest'] = _PREFLIGHTSCHEMAREQUEST +DESCRIPTOR.message_types_by_name['PreflightSchemaResponse'] = _PREFLIGHTSCHEMARESPONSE +DESCRIPTOR.message_types_by_name['ApplySchemaRequest'] = _APPLYSCHEMAREQUEST +DESCRIPTOR.message_types_by_name['ApplySchemaResponse'] = _APPLYSCHEMARESPONSE +DESCRIPTOR.message_types_by_name['ExecuteFetchAsDbaRequest'] = _EXECUTEFETCHASDBAREQUEST +DESCRIPTOR.message_types_by_name['ExecuteFetchAsDbaResponse'] = _EXECUTEFETCHASDBARESPONSE +DESCRIPTOR.message_types_by_name['ExecuteFetchAsAppRequest'] = _EXECUTEFETCHASAPPREQUEST +DESCRIPTOR.message_types_by_name['ExecuteFetchAsAppResponse'] = _EXECUTEFETCHASAPPRESPONSE +DESCRIPTOR.message_types_by_name['SlaveStatusRequest'] = _SLAVESTATUSREQUEST +DESCRIPTOR.message_types_by_name['SlaveStatusResponse'] = _SLAVESTATUSRESPONSE +DESCRIPTOR.message_types_by_name['MasterPositionRequest'] = _MASTERPOSITIONREQUEST +DESCRIPTOR.message_types_by_name['MasterPositionResponse'] = _MASTERPOSITIONRESPONSE +DESCRIPTOR.message_types_by_name['StopSlaveRequest'] = _STOPSLAVEREQUEST +DESCRIPTOR.message_types_by_name['StopSlaveResponse'] = _STOPSLAVERESPONSE +DESCRIPTOR.message_types_by_name['StopSlaveMinimumRequest'] = _STOPSLAVEMINIMUMREQUEST +DESCRIPTOR.message_types_by_name['StopSlaveMinimumResponse'] = _STOPSLAVEMINIMUMRESPONSE +DESCRIPTOR.message_types_by_name['StartSlaveRequest'] = _STARTSLAVEREQUEST +DESCRIPTOR.message_types_by_name['StartSlaveResponse'] = _STARTSLAVERESPONSE +DESCRIPTOR.message_types_by_name['TabletExternallyReparentedRequest'] = _TABLETEXTERNALLYREPARENTEDREQUEST +DESCRIPTOR.message_types_by_name['TabletExternallyReparentedResponse'] = _TABLETEXTERNALLYREPARENTEDRESPONSE +DESCRIPTOR.message_types_by_name['TabletExternallyElectedRequest'] = _TABLETEXTERNALLYELECTEDREQUEST +DESCRIPTOR.message_types_by_name['TabletExternallyElectedResponse'] = _TABLETEXTERNALLYELECTEDRESPONSE +DESCRIPTOR.message_types_by_name['GetSlavesRequest'] = _GETSLAVESREQUEST +DESCRIPTOR.message_types_by_name['GetSlavesResponse'] = _GETSLAVESRESPONSE +DESCRIPTOR.message_types_by_name['WaitBlpPositionRequest'] = _WAITBLPPOSITIONREQUEST +DESCRIPTOR.message_types_by_name['WaitBlpPositionResponse'] = _WAITBLPPOSITIONRESPONSE +DESCRIPTOR.message_types_by_name['StopBlpRequest'] = _STOPBLPREQUEST +DESCRIPTOR.message_types_by_name['StopBlpResponse'] = _STOPBLPRESPONSE +DESCRIPTOR.message_types_by_name['StartBlpRequest'] = _STARTBLPREQUEST +DESCRIPTOR.message_types_by_name['StartBlpResponse'] = _STARTBLPRESPONSE +DESCRIPTOR.message_types_by_name['RunBlpUntilRequest'] = _RUNBLPUNTILREQUEST +DESCRIPTOR.message_types_by_name['RunBlpUntilResponse'] = _RUNBLPUNTILRESPONSE +DESCRIPTOR.message_types_by_name['ResetReplicationRequest'] = _RESETREPLICATIONREQUEST +DESCRIPTOR.message_types_by_name['ResetReplicationResponse'] = _RESETREPLICATIONRESPONSE +DESCRIPTOR.message_types_by_name['InitMasterRequest'] = _INITMASTERREQUEST +DESCRIPTOR.message_types_by_name['InitMasterResponse'] = _INITMASTERRESPONSE +DESCRIPTOR.message_types_by_name['PopulateReparentJournalRequest'] = _POPULATEREPARENTJOURNALREQUEST +DESCRIPTOR.message_types_by_name['PopulateReparentJournalResponse'] = _POPULATEREPARENTJOURNALRESPONSE +DESCRIPTOR.message_types_by_name['InitSlaveRequest'] = _INITSLAVEREQUEST +DESCRIPTOR.message_types_by_name['InitSlaveResponse'] = _INITSLAVERESPONSE +DESCRIPTOR.message_types_by_name['DemoteMasterRequest'] = _DEMOTEMASTERREQUEST +DESCRIPTOR.message_types_by_name['DemoteMasterResponse'] = _DEMOTEMASTERRESPONSE +DESCRIPTOR.message_types_by_name['PromoteSlaveWhenCaughtUpRequest'] = _PROMOTESLAVEWHENCAUGHTUPREQUEST +DESCRIPTOR.message_types_by_name['PromoteSlaveWhenCaughtUpResponse'] = _PROMOTESLAVEWHENCAUGHTUPRESPONSE +DESCRIPTOR.message_types_by_name['SlaveWasPromotedRequest'] = _SLAVEWASPROMOTEDREQUEST +DESCRIPTOR.message_types_by_name['SlaveWasPromotedResponse'] = _SLAVEWASPROMOTEDRESPONSE +DESCRIPTOR.message_types_by_name['SetMasterRequest'] = _SETMASTERREQUEST +DESCRIPTOR.message_types_by_name['SetMasterResponse'] = _SETMASTERRESPONSE +DESCRIPTOR.message_types_by_name['SlaveWasRestartedRequest'] = _SLAVEWASRESTARTEDREQUEST +DESCRIPTOR.message_types_by_name['SlaveWasRestartedResponse'] = _SLAVEWASRESTARTEDRESPONSE +DESCRIPTOR.message_types_by_name['StopReplicationAndGetStatusRequest'] = _STOPREPLICATIONANDGETSTATUSREQUEST +DESCRIPTOR.message_types_by_name['StopReplicationAndGetStatusResponse'] = _STOPREPLICATIONANDGETSTATUSRESPONSE +DESCRIPTOR.message_types_by_name['PromoteSlaveRequest'] = _PROMOTESLAVEREQUEST +DESCRIPTOR.message_types_by_name['PromoteSlaveResponse'] = _PROMOTESLAVERESPONSE +DESCRIPTOR.message_types_by_name['BackupRequest'] = _BACKUPREQUEST +DESCRIPTOR.message_types_by_name['BackupResponse'] = _BACKUPRESPONSE + +TableDefinition = _reflection.GeneratedProtocolMessageType('TableDefinition', (_message.Message,), dict( + DESCRIPTOR = _TABLEDEFINITION, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.TableDefinition) + )) +_sym_db.RegisterMessage(TableDefinition) + +SchemaDefinition = _reflection.GeneratedProtocolMessageType('SchemaDefinition', (_message.Message,), dict( + DESCRIPTOR = _SCHEMADEFINITION, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.SchemaDefinition) + )) +_sym_db.RegisterMessage(SchemaDefinition) + +UserPermission = _reflection.GeneratedProtocolMessageType('UserPermission', (_message.Message,), dict( + + PrivilegesEntry = _reflection.GeneratedProtocolMessageType('PrivilegesEntry', (_message.Message,), dict( + DESCRIPTOR = _USERPERMISSION_PRIVILEGESENTRY, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.UserPermission.PrivilegesEntry) + )) + , + DESCRIPTOR = _USERPERMISSION, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.UserPermission) + )) +_sym_db.RegisterMessage(UserPermission) +_sym_db.RegisterMessage(UserPermission.PrivilegesEntry) + +DbPermission = _reflection.GeneratedProtocolMessageType('DbPermission', (_message.Message,), dict( + + PrivilegesEntry = _reflection.GeneratedProtocolMessageType('PrivilegesEntry', (_message.Message,), dict( + DESCRIPTOR = _DBPERMISSION_PRIVILEGESENTRY, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.DbPermission.PrivilegesEntry) + )) + , + DESCRIPTOR = _DBPERMISSION, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.DbPermission) + )) +_sym_db.RegisterMessage(DbPermission) +_sym_db.RegisterMessage(DbPermission.PrivilegesEntry) + +HostPermission = _reflection.GeneratedProtocolMessageType('HostPermission', (_message.Message,), dict( + + PrivilegesEntry = _reflection.GeneratedProtocolMessageType('PrivilegesEntry', (_message.Message,), dict( + DESCRIPTOR = _HOSTPERMISSION_PRIVILEGESENTRY, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.HostPermission.PrivilegesEntry) + )) + , + DESCRIPTOR = _HOSTPERMISSION, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.HostPermission) + )) +_sym_db.RegisterMessage(HostPermission) +_sym_db.RegisterMessage(HostPermission.PrivilegesEntry) + +Permissions = _reflection.GeneratedProtocolMessageType('Permissions', (_message.Message,), dict( + DESCRIPTOR = _PERMISSIONS, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.Permissions) + )) +_sym_db.RegisterMessage(Permissions) + +BlpPosition = _reflection.GeneratedProtocolMessageType('BlpPosition', (_message.Message,), dict( + DESCRIPTOR = _BLPPOSITION, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.BlpPosition) + )) +_sym_db.RegisterMessage(BlpPosition) + +PingRequest = _reflection.GeneratedProtocolMessageType('PingRequest', (_message.Message,), dict( + DESCRIPTOR = _PINGREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.PingRequest) + )) +_sym_db.RegisterMessage(PingRequest) + +PingResponse = _reflection.GeneratedProtocolMessageType('PingResponse', (_message.Message,), dict( + DESCRIPTOR = _PINGRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.PingResponse) + )) +_sym_db.RegisterMessage(PingResponse) + +SleepRequest = _reflection.GeneratedProtocolMessageType('SleepRequest', (_message.Message,), dict( + DESCRIPTOR = _SLEEPREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.SleepRequest) + )) +_sym_db.RegisterMessage(SleepRequest) + +SleepResponse = _reflection.GeneratedProtocolMessageType('SleepResponse', (_message.Message,), dict( + DESCRIPTOR = _SLEEPRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.SleepResponse) + )) +_sym_db.RegisterMessage(SleepResponse) + +ExecuteHookRequest = _reflection.GeneratedProtocolMessageType('ExecuteHookRequest', (_message.Message,), dict( + + ExtraEnvEntry = _reflection.GeneratedProtocolMessageType('ExtraEnvEntry', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEHOOKREQUEST_EXTRAENVENTRY, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ExecuteHookRequest.ExtraEnvEntry) + )) + , + DESCRIPTOR = _EXECUTEHOOKREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ExecuteHookRequest) + )) +_sym_db.RegisterMessage(ExecuteHookRequest) +_sym_db.RegisterMessage(ExecuteHookRequest.ExtraEnvEntry) + +ExecuteHookResponse = _reflection.GeneratedProtocolMessageType('ExecuteHookResponse', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEHOOKRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ExecuteHookResponse) + )) +_sym_db.RegisterMessage(ExecuteHookResponse) + +GetSchemaRequest = _reflection.GeneratedProtocolMessageType('GetSchemaRequest', (_message.Message,), dict( + DESCRIPTOR = _GETSCHEMAREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.GetSchemaRequest) + )) +_sym_db.RegisterMessage(GetSchemaRequest) + +GetSchemaResponse = _reflection.GeneratedProtocolMessageType('GetSchemaResponse', (_message.Message,), dict( + DESCRIPTOR = _GETSCHEMARESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.GetSchemaResponse) + )) +_sym_db.RegisterMessage(GetSchemaResponse) + +GetPermissionsRequest = _reflection.GeneratedProtocolMessageType('GetPermissionsRequest', (_message.Message,), dict( + DESCRIPTOR = _GETPERMISSIONSREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.GetPermissionsRequest) + )) +_sym_db.RegisterMessage(GetPermissionsRequest) + +GetPermissionsResponse = _reflection.GeneratedProtocolMessageType('GetPermissionsResponse', (_message.Message,), dict( + DESCRIPTOR = _GETPERMISSIONSRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.GetPermissionsResponse) + )) +_sym_db.RegisterMessage(GetPermissionsResponse) + +SetReadOnlyRequest = _reflection.GeneratedProtocolMessageType('SetReadOnlyRequest', (_message.Message,), dict( + DESCRIPTOR = _SETREADONLYREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.SetReadOnlyRequest) + )) +_sym_db.RegisterMessage(SetReadOnlyRequest) + +SetReadOnlyResponse = _reflection.GeneratedProtocolMessageType('SetReadOnlyResponse', (_message.Message,), dict( + DESCRIPTOR = _SETREADONLYRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.SetReadOnlyResponse) + )) +_sym_db.RegisterMessage(SetReadOnlyResponse) + +SetReadWriteRequest = _reflection.GeneratedProtocolMessageType('SetReadWriteRequest', (_message.Message,), dict( + DESCRIPTOR = _SETREADWRITEREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.SetReadWriteRequest) + )) +_sym_db.RegisterMessage(SetReadWriteRequest) + +SetReadWriteResponse = _reflection.GeneratedProtocolMessageType('SetReadWriteResponse', (_message.Message,), dict( + DESCRIPTOR = _SETREADWRITERESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.SetReadWriteResponse) + )) +_sym_db.RegisterMessage(SetReadWriteResponse) + +ChangeTypeRequest = _reflection.GeneratedProtocolMessageType('ChangeTypeRequest', (_message.Message,), dict( + DESCRIPTOR = _CHANGETYPEREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ChangeTypeRequest) + )) +_sym_db.RegisterMessage(ChangeTypeRequest) + +ChangeTypeResponse = _reflection.GeneratedProtocolMessageType('ChangeTypeResponse', (_message.Message,), dict( + DESCRIPTOR = _CHANGETYPERESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ChangeTypeResponse) + )) +_sym_db.RegisterMessage(ChangeTypeResponse) + +ScrapRequest = _reflection.GeneratedProtocolMessageType('ScrapRequest', (_message.Message,), dict( + DESCRIPTOR = _SCRAPREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ScrapRequest) + )) +_sym_db.RegisterMessage(ScrapRequest) + +ScrapResponse = _reflection.GeneratedProtocolMessageType('ScrapResponse', (_message.Message,), dict( + DESCRIPTOR = _SCRAPRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ScrapResponse) + )) +_sym_db.RegisterMessage(ScrapResponse) + +RefreshStateRequest = _reflection.GeneratedProtocolMessageType('RefreshStateRequest', (_message.Message,), dict( + DESCRIPTOR = _REFRESHSTATEREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.RefreshStateRequest) + )) +_sym_db.RegisterMessage(RefreshStateRequest) + +RefreshStateResponse = _reflection.GeneratedProtocolMessageType('RefreshStateResponse', (_message.Message,), dict( + DESCRIPTOR = _REFRESHSTATERESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.RefreshStateResponse) + )) +_sym_db.RegisterMessage(RefreshStateResponse) + +RunHealthCheckRequest = _reflection.GeneratedProtocolMessageType('RunHealthCheckRequest', (_message.Message,), dict( + DESCRIPTOR = _RUNHEALTHCHECKREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.RunHealthCheckRequest) + )) +_sym_db.RegisterMessage(RunHealthCheckRequest) + +RunHealthCheckResponse = _reflection.GeneratedProtocolMessageType('RunHealthCheckResponse', (_message.Message,), dict( + DESCRIPTOR = _RUNHEALTHCHECKRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.RunHealthCheckResponse) + )) +_sym_db.RegisterMessage(RunHealthCheckResponse) + +ReloadSchemaRequest = _reflection.GeneratedProtocolMessageType('ReloadSchemaRequest', (_message.Message,), dict( + DESCRIPTOR = _RELOADSCHEMAREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ReloadSchemaRequest) + )) +_sym_db.RegisterMessage(ReloadSchemaRequest) + +ReloadSchemaResponse = _reflection.GeneratedProtocolMessageType('ReloadSchemaResponse', (_message.Message,), dict( + DESCRIPTOR = _RELOADSCHEMARESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ReloadSchemaResponse) + )) +_sym_db.RegisterMessage(ReloadSchemaResponse) + +PreflightSchemaRequest = _reflection.GeneratedProtocolMessageType('PreflightSchemaRequest', (_message.Message,), dict( + DESCRIPTOR = _PREFLIGHTSCHEMAREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.PreflightSchemaRequest) + )) +_sym_db.RegisterMessage(PreflightSchemaRequest) + +PreflightSchemaResponse = _reflection.GeneratedProtocolMessageType('PreflightSchemaResponse', (_message.Message,), dict( + DESCRIPTOR = _PREFLIGHTSCHEMARESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.PreflightSchemaResponse) + )) +_sym_db.RegisterMessage(PreflightSchemaResponse) + +ApplySchemaRequest = _reflection.GeneratedProtocolMessageType('ApplySchemaRequest', (_message.Message,), dict( + DESCRIPTOR = _APPLYSCHEMAREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ApplySchemaRequest) + )) +_sym_db.RegisterMessage(ApplySchemaRequest) + +ApplySchemaResponse = _reflection.GeneratedProtocolMessageType('ApplySchemaResponse', (_message.Message,), dict( + DESCRIPTOR = _APPLYSCHEMARESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ApplySchemaResponse) + )) +_sym_db.RegisterMessage(ApplySchemaResponse) + +ExecuteFetchAsDbaRequest = _reflection.GeneratedProtocolMessageType('ExecuteFetchAsDbaRequest', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEFETCHASDBAREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ExecuteFetchAsDbaRequest) + )) +_sym_db.RegisterMessage(ExecuteFetchAsDbaRequest) + +ExecuteFetchAsDbaResponse = _reflection.GeneratedProtocolMessageType('ExecuteFetchAsDbaResponse', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEFETCHASDBARESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ExecuteFetchAsDbaResponse) + )) +_sym_db.RegisterMessage(ExecuteFetchAsDbaResponse) + +ExecuteFetchAsAppRequest = _reflection.GeneratedProtocolMessageType('ExecuteFetchAsAppRequest', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEFETCHASAPPREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ExecuteFetchAsAppRequest) + )) +_sym_db.RegisterMessage(ExecuteFetchAsAppRequest) + +ExecuteFetchAsAppResponse = _reflection.GeneratedProtocolMessageType('ExecuteFetchAsAppResponse', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEFETCHASAPPRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ExecuteFetchAsAppResponse) + )) +_sym_db.RegisterMessage(ExecuteFetchAsAppResponse) + +SlaveStatusRequest = _reflection.GeneratedProtocolMessageType('SlaveStatusRequest', (_message.Message,), dict( + DESCRIPTOR = _SLAVESTATUSREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.SlaveStatusRequest) + )) +_sym_db.RegisterMessage(SlaveStatusRequest) + +SlaveStatusResponse = _reflection.GeneratedProtocolMessageType('SlaveStatusResponse', (_message.Message,), dict( + DESCRIPTOR = _SLAVESTATUSRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.SlaveStatusResponse) + )) +_sym_db.RegisterMessage(SlaveStatusResponse) + +MasterPositionRequest = _reflection.GeneratedProtocolMessageType('MasterPositionRequest', (_message.Message,), dict( + DESCRIPTOR = _MASTERPOSITIONREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.MasterPositionRequest) + )) +_sym_db.RegisterMessage(MasterPositionRequest) + +MasterPositionResponse = _reflection.GeneratedProtocolMessageType('MasterPositionResponse', (_message.Message,), dict( + DESCRIPTOR = _MASTERPOSITIONRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.MasterPositionResponse) + )) +_sym_db.RegisterMessage(MasterPositionResponse) + +StopSlaveRequest = _reflection.GeneratedProtocolMessageType('StopSlaveRequest', (_message.Message,), dict( + DESCRIPTOR = _STOPSLAVEREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.StopSlaveRequest) + )) +_sym_db.RegisterMessage(StopSlaveRequest) + +StopSlaveResponse = _reflection.GeneratedProtocolMessageType('StopSlaveResponse', (_message.Message,), dict( + DESCRIPTOR = _STOPSLAVERESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.StopSlaveResponse) + )) +_sym_db.RegisterMessage(StopSlaveResponse) + +StopSlaveMinimumRequest = _reflection.GeneratedProtocolMessageType('StopSlaveMinimumRequest', (_message.Message,), dict( + DESCRIPTOR = _STOPSLAVEMINIMUMREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.StopSlaveMinimumRequest) + )) +_sym_db.RegisterMessage(StopSlaveMinimumRequest) + +StopSlaveMinimumResponse = _reflection.GeneratedProtocolMessageType('StopSlaveMinimumResponse', (_message.Message,), dict( + DESCRIPTOR = _STOPSLAVEMINIMUMRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.StopSlaveMinimumResponse) + )) +_sym_db.RegisterMessage(StopSlaveMinimumResponse) + +StartSlaveRequest = _reflection.GeneratedProtocolMessageType('StartSlaveRequest', (_message.Message,), dict( + DESCRIPTOR = _STARTSLAVEREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.StartSlaveRequest) + )) +_sym_db.RegisterMessage(StartSlaveRequest) + +StartSlaveResponse = _reflection.GeneratedProtocolMessageType('StartSlaveResponse', (_message.Message,), dict( + DESCRIPTOR = _STARTSLAVERESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.StartSlaveResponse) + )) +_sym_db.RegisterMessage(StartSlaveResponse) + +TabletExternallyReparentedRequest = _reflection.GeneratedProtocolMessageType('TabletExternallyReparentedRequest', (_message.Message,), dict( + DESCRIPTOR = _TABLETEXTERNALLYREPARENTEDREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.TabletExternallyReparentedRequest) + )) +_sym_db.RegisterMessage(TabletExternallyReparentedRequest) + +TabletExternallyReparentedResponse = _reflection.GeneratedProtocolMessageType('TabletExternallyReparentedResponse', (_message.Message,), dict( + DESCRIPTOR = _TABLETEXTERNALLYREPARENTEDRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.TabletExternallyReparentedResponse) + )) +_sym_db.RegisterMessage(TabletExternallyReparentedResponse) + +TabletExternallyElectedRequest = _reflection.GeneratedProtocolMessageType('TabletExternallyElectedRequest', (_message.Message,), dict( + DESCRIPTOR = _TABLETEXTERNALLYELECTEDREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.TabletExternallyElectedRequest) + )) +_sym_db.RegisterMessage(TabletExternallyElectedRequest) + +TabletExternallyElectedResponse = _reflection.GeneratedProtocolMessageType('TabletExternallyElectedResponse', (_message.Message,), dict( + DESCRIPTOR = _TABLETEXTERNALLYELECTEDRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.TabletExternallyElectedResponse) + )) +_sym_db.RegisterMessage(TabletExternallyElectedResponse) + +GetSlavesRequest = _reflection.GeneratedProtocolMessageType('GetSlavesRequest', (_message.Message,), dict( + DESCRIPTOR = _GETSLAVESREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.GetSlavesRequest) + )) +_sym_db.RegisterMessage(GetSlavesRequest) + +GetSlavesResponse = _reflection.GeneratedProtocolMessageType('GetSlavesResponse', (_message.Message,), dict( + DESCRIPTOR = _GETSLAVESRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.GetSlavesResponse) + )) +_sym_db.RegisterMessage(GetSlavesResponse) + +WaitBlpPositionRequest = _reflection.GeneratedProtocolMessageType('WaitBlpPositionRequest', (_message.Message,), dict( + DESCRIPTOR = _WAITBLPPOSITIONREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.WaitBlpPositionRequest) + )) +_sym_db.RegisterMessage(WaitBlpPositionRequest) + +WaitBlpPositionResponse = _reflection.GeneratedProtocolMessageType('WaitBlpPositionResponse', (_message.Message,), dict( + DESCRIPTOR = _WAITBLPPOSITIONRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.WaitBlpPositionResponse) + )) +_sym_db.RegisterMessage(WaitBlpPositionResponse) + +StopBlpRequest = _reflection.GeneratedProtocolMessageType('StopBlpRequest', (_message.Message,), dict( + DESCRIPTOR = _STOPBLPREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.StopBlpRequest) + )) +_sym_db.RegisterMessage(StopBlpRequest) + +StopBlpResponse = _reflection.GeneratedProtocolMessageType('StopBlpResponse', (_message.Message,), dict( + DESCRIPTOR = _STOPBLPRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.StopBlpResponse) + )) +_sym_db.RegisterMessage(StopBlpResponse) + +StartBlpRequest = _reflection.GeneratedProtocolMessageType('StartBlpRequest', (_message.Message,), dict( + DESCRIPTOR = _STARTBLPREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.StartBlpRequest) + )) +_sym_db.RegisterMessage(StartBlpRequest) + +StartBlpResponse = _reflection.GeneratedProtocolMessageType('StartBlpResponse', (_message.Message,), dict( + DESCRIPTOR = _STARTBLPRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.StartBlpResponse) + )) +_sym_db.RegisterMessage(StartBlpResponse) + +RunBlpUntilRequest = _reflection.GeneratedProtocolMessageType('RunBlpUntilRequest', (_message.Message,), dict( + DESCRIPTOR = _RUNBLPUNTILREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.RunBlpUntilRequest) + )) +_sym_db.RegisterMessage(RunBlpUntilRequest) + +RunBlpUntilResponse = _reflection.GeneratedProtocolMessageType('RunBlpUntilResponse', (_message.Message,), dict( + DESCRIPTOR = _RUNBLPUNTILRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.RunBlpUntilResponse) + )) +_sym_db.RegisterMessage(RunBlpUntilResponse) + +ResetReplicationRequest = _reflection.GeneratedProtocolMessageType('ResetReplicationRequest', (_message.Message,), dict( + DESCRIPTOR = _RESETREPLICATIONREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ResetReplicationRequest) + )) +_sym_db.RegisterMessage(ResetReplicationRequest) + +ResetReplicationResponse = _reflection.GeneratedProtocolMessageType('ResetReplicationResponse', (_message.Message,), dict( + DESCRIPTOR = _RESETREPLICATIONRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.ResetReplicationResponse) + )) +_sym_db.RegisterMessage(ResetReplicationResponse) + +InitMasterRequest = _reflection.GeneratedProtocolMessageType('InitMasterRequest', (_message.Message,), dict( + DESCRIPTOR = _INITMASTERREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.InitMasterRequest) + )) +_sym_db.RegisterMessage(InitMasterRequest) + +InitMasterResponse = _reflection.GeneratedProtocolMessageType('InitMasterResponse', (_message.Message,), dict( + DESCRIPTOR = _INITMASTERRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.InitMasterResponse) + )) +_sym_db.RegisterMessage(InitMasterResponse) + +PopulateReparentJournalRequest = _reflection.GeneratedProtocolMessageType('PopulateReparentJournalRequest', (_message.Message,), dict( + DESCRIPTOR = _POPULATEREPARENTJOURNALREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.PopulateReparentJournalRequest) + )) +_sym_db.RegisterMessage(PopulateReparentJournalRequest) + +PopulateReparentJournalResponse = _reflection.GeneratedProtocolMessageType('PopulateReparentJournalResponse', (_message.Message,), dict( + DESCRIPTOR = _POPULATEREPARENTJOURNALRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.PopulateReparentJournalResponse) + )) +_sym_db.RegisterMessage(PopulateReparentJournalResponse) + +InitSlaveRequest = _reflection.GeneratedProtocolMessageType('InitSlaveRequest', (_message.Message,), dict( + DESCRIPTOR = _INITSLAVEREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.InitSlaveRequest) + )) +_sym_db.RegisterMessage(InitSlaveRequest) + +InitSlaveResponse = _reflection.GeneratedProtocolMessageType('InitSlaveResponse', (_message.Message,), dict( + DESCRIPTOR = _INITSLAVERESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.InitSlaveResponse) + )) +_sym_db.RegisterMessage(InitSlaveResponse) + +DemoteMasterRequest = _reflection.GeneratedProtocolMessageType('DemoteMasterRequest', (_message.Message,), dict( + DESCRIPTOR = _DEMOTEMASTERREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.DemoteMasterRequest) + )) +_sym_db.RegisterMessage(DemoteMasterRequest) + +DemoteMasterResponse = _reflection.GeneratedProtocolMessageType('DemoteMasterResponse', (_message.Message,), dict( + DESCRIPTOR = _DEMOTEMASTERRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.DemoteMasterResponse) + )) +_sym_db.RegisterMessage(DemoteMasterResponse) + +PromoteSlaveWhenCaughtUpRequest = _reflection.GeneratedProtocolMessageType('PromoteSlaveWhenCaughtUpRequest', (_message.Message,), dict( + DESCRIPTOR = _PROMOTESLAVEWHENCAUGHTUPREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.PromoteSlaveWhenCaughtUpRequest) + )) +_sym_db.RegisterMessage(PromoteSlaveWhenCaughtUpRequest) + +PromoteSlaveWhenCaughtUpResponse = _reflection.GeneratedProtocolMessageType('PromoteSlaveWhenCaughtUpResponse', (_message.Message,), dict( + DESCRIPTOR = _PROMOTESLAVEWHENCAUGHTUPRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.PromoteSlaveWhenCaughtUpResponse) + )) +_sym_db.RegisterMessage(PromoteSlaveWhenCaughtUpResponse) + +SlaveWasPromotedRequest = _reflection.GeneratedProtocolMessageType('SlaveWasPromotedRequest', (_message.Message,), dict( + DESCRIPTOR = _SLAVEWASPROMOTEDREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.SlaveWasPromotedRequest) + )) +_sym_db.RegisterMessage(SlaveWasPromotedRequest) + +SlaveWasPromotedResponse = _reflection.GeneratedProtocolMessageType('SlaveWasPromotedResponse', (_message.Message,), dict( + DESCRIPTOR = _SLAVEWASPROMOTEDRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.SlaveWasPromotedResponse) + )) +_sym_db.RegisterMessage(SlaveWasPromotedResponse) + +SetMasterRequest = _reflection.GeneratedProtocolMessageType('SetMasterRequest', (_message.Message,), dict( + DESCRIPTOR = _SETMASTERREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.SetMasterRequest) + )) +_sym_db.RegisterMessage(SetMasterRequest) + +SetMasterResponse = _reflection.GeneratedProtocolMessageType('SetMasterResponse', (_message.Message,), dict( + DESCRIPTOR = _SETMASTERRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.SetMasterResponse) + )) +_sym_db.RegisterMessage(SetMasterResponse) + +SlaveWasRestartedRequest = _reflection.GeneratedProtocolMessageType('SlaveWasRestartedRequest', (_message.Message,), dict( + DESCRIPTOR = _SLAVEWASRESTARTEDREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.SlaveWasRestartedRequest) + )) +_sym_db.RegisterMessage(SlaveWasRestartedRequest) + +SlaveWasRestartedResponse = _reflection.GeneratedProtocolMessageType('SlaveWasRestartedResponse', (_message.Message,), dict( + DESCRIPTOR = _SLAVEWASRESTARTEDRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.SlaveWasRestartedResponse) + )) +_sym_db.RegisterMessage(SlaveWasRestartedResponse) + +StopReplicationAndGetStatusRequest = _reflection.GeneratedProtocolMessageType('StopReplicationAndGetStatusRequest', (_message.Message,), dict( + DESCRIPTOR = _STOPREPLICATIONANDGETSTATUSREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.StopReplicationAndGetStatusRequest) + )) +_sym_db.RegisterMessage(StopReplicationAndGetStatusRequest) + +StopReplicationAndGetStatusResponse = _reflection.GeneratedProtocolMessageType('StopReplicationAndGetStatusResponse', (_message.Message,), dict( + DESCRIPTOR = _STOPREPLICATIONANDGETSTATUSRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.StopReplicationAndGetStatusResponse) + )) +_sym_db.RegisterMessage(StopReplicationAndGetStatusResponse) + +PromoteSlaveRequest = _reflection.GeneratedProtocolMessageType('PromoteSlaveRequest', (_message.Message,), dict( + DESCRIPTOR = _PROMOTESLAVEREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.PromoteSlaveRequest) + )) +_sym_db.RegisterMessage(PromoteSlaveRequest) + +PromoteSlaveResponse = _reflection.GeneratedProtocolMessageType('PromoteSlaveResponse', (_message.Message,), dict( + DESCRIPTOR = _PROMOTESLAVERESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.PromoteSlaveResponse) + )) +_sym_db.RegisterMessage(PromoteSlaveResponse) + +BackupRequest = _reflection.GeneratedProtocolMessageType('BackupRequest', (_message.Message,), dict( + DESCRIPTOR = _BACKUPREQUEST, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.BackupRequest) + )) +_sym_db.RegisterMessage(BackupRequest) + +BackupResponse = _reflection.GeneratedProtocolMessageType('BackupResponse', (_message.Message,), dict( + DESCRIPTOR = _BACKUPRESPONSE, + __module__ = 'tabletmanagerdata_pb2' + # @@protoc_insertion_point(class_scope:tabletmanagerdata.BackupResponse) + )) +_sym_db.RegisterMessage(BackupResponse) + + +_USERPERMISSION_PRIVILEGESENTRY.has_options = True +_USERPERMISSION_PRIVILEGESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_DBPERMISSION_PRIVILEGESENTRY.has_options = True +_DBPERMISSION_PRIVILEGESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_HOSTPERMISSION_PRIVILEGESENTRY.has_options = True +_HOSTPERMISSION_PRIVILEGESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_EXECUTEHOOKREQUEST_EXTRAENVENTRY.has_options = True +_EXECUTEHOOKREQUEST_EXTRAENVENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +# @@protoc_insertion_point(module_scope) diff --git a/py/vtproto/tabletmanagerservice_pb2.py b/py/vtproto/tabletmanagerservice_pb2.py new file mode 100644 index 0000000000..30679cfd2f --- /dev/null +++ b/py/vtproto/tabletmanagerservice_pb2.py @@ -0,0 +1,858 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: tabletmanagerservice.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() + + +import tabletmanagerdata_pb2 as tabletmanagerdata__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='tabletmanagerservice.proto', + package='tabletmanagerservice', + syntax='proto3', + serialized_pb=_b('\n\x1atabletmanagerservice.proto\x12\x14tabletmanagerservice\x1a\x17tabletmanagerdata.proto2\x83 \n\rTabletManager\x12I\n\x04Ping\x12\x1e.tabletmanagerdata.PingRequest\x1a\x1f.tabletmanagerdata.PingResponse\"\x00\x12L\n\x05Sleep\x12\x1f.tabletmanagerdata.SleepRequest\x1a .tabletmanagerdata.SleepResponse\"\x00\x12^\n\x0b\x45xecuteHook\x12%.tabletmanagerdata.ExecuteHookRequest\x1a&.tabletmanagerdata.ExecuteHookResponse\"\x00\x12X\n\tGetSchema\x12#.tabletmanagerdata.GetSchemaRequest\x1a$.tabletmanagerdata.GetSchemaResponse\"\x00\x12g\n\x0eGetPermissions\x12(.tabletmanagerdata.GetPermissionsRequest\x1a).tabletmanagerdata.GetPermissionsResponse\"\x00\x12^\n\x0bSetReadOnly\x12%.tabletmanagerdata.SetReadOnlyRequest\x1a&.tabletmanagerdata.SetReadOnlyResponse\"\x00\x12\x61\n\x0cSetReadWrite\x12&.tabletmanagerdata.SetReadWriteRequest\x1a\'.tabletmanagerdata.SetReadWriteResponse\"\x00\x12[\n\nChangeType\x12$.tabletmanagerdata.ChangeTypeRequest\x1a%.tabletmanagerdata.ChangeTypeResponse\"\x00\x12L\n\x05Scrap\x12\x1f.tabletmanagerdata.ScrapRequest\x1a .tabletmanagerdata.ScrapResponse\"\x00\x12\x61\n\x0cRefreshState\x12&.tabletmanagerdata.RefreshStateRequest\x1a\'.tabletmanagerdata.RefreshStateResponse\"\x00\x12g\n\x0eRunHealthCheck\x12(.tabletmanagerdata.RunHealthCheckRequest\x1a).tabletmanagerdata.RunHealthCheckResponse\"\x00\x12\x61\n\x0cReloadSchema\x12&.tabletmanagerdata.ReloadSchemaRequest\x1a\'.tabletmanagerdata.ReloadSchemaResponse\"\x00\x12j\n\x0fPreflightSchema\x12).tabletmanagerdata.PreflightSchemaRequest\x1a*.tabletmanagerdata.PreflightSchemaResponse\"\x00\x12^\n\x0b\x41pplySchema\x12%.tabletmanagerdata.ApplySchemaRequest\x1a&.tabletmanagerdata.ApplySchemaResponse\"\x00\x12p\n\x11\x45xecuteFetchAsDba\x12+.tabletmanagerdata.ExecuteFetchAsDbaRequest\x1a,.tabletmanagerdata.ExecuteFetchAsDbaResponse\"\x00\x12p\n\x11\x45xecuteFetchAsApp\x12+.tabletmanagerdata.ExecuteFetchAsAppRequest\x1a,.tabletmanagerdata.ExecuteFetchAsAppResponse\"\x00\x12^\n\x0bSlaveStatus\x12%.tabletmanagerdata.SlaveStatusRequest\x1a&.tabletmanagerdata.SlaveStatusResponse\"\x00\x12g\n\x0eMasterPosition\x12(.tabletmanagerdata.MasterPositionRequest\x1a).tabletmanagerdata.MasterPositionResponse\"\x00\x12X\n\tStopSlave\x12#.tabletmanagerdata.StopSlaveRequest\x1a$.tabletmanagerdata.StopSlaveResponse\"\x00\x12m\n\x10StopSlaveMinimum\x12*.tabletmanagerdata.StopSlaveMinimumRequest\x1a+.tabletmanagerdata.StopSlaveMinimumResponse\"\x00\x12[\n\nStartSlave\x12$.tabletmanagerdata.StartSlaveRequest\x1a%.tabletmanagerdata.StartSlaveResponse\"\x00\x12\x8b\x01\n\x1aTabletExternallyReparented\x12\x34.tabletmanagerdata.TabletExternallyReparentedRequest\x1a\x35.tabletmanagerdata.TabletExternallyReparentedResponse\"\x00\x12\x82\x01\n\x17TabletExternallyElected\x12\x31.tabletmanagerdata.TabletExternallyElectedRequest\x1a\x32.tabletmanagerdata.TabletExternallyElectedResponse\"\x00\x12X\n\tGetSlaves\x12#.tabletmanagerdata.GetSlavesRequest\x1a$.tabletmanagerdata.GetSlavesResponse\"\x00\x12j\n\x0fWaitBlpPosition\x12).tabletmanagerdata.WaitBlpPositionRequest\x1a*.tabletmanagerdata.WaitBlpPositionResponse\"\x00\x12R\n\x07StopBlp\x12!.tabletmanagerdata.StopBlpRequest\x1a\".tabletmanagerdata.StopBlpResponse\"\x00\x12U\n\x08StartBlp\x12\".tabletmanagerdata.StartBlpRequest\x1a#.tabletmanagerdata.StartBlpResponse\"\x00\x12^\n\x0bRunBlpUntil\x12%.tabletmanagerdata.RunBlpUntilRequest\x1a&.tabletmanagerdata.RunBlpUntilResponse\"\x00\x12m\n\x10ResetReplication\x12*.tabletmanagerdata.ResetReplicationRequest\x1a+.tabletmanagerdata.ResetReplicationResponse\"\x00\x12[\n\nInitMaster\x12$.tabletmanagerdata.InitMasterRequest\x1a%.tabletmanagerdata.InitMasterResponse\"\x00\x12\x82\x01\n\x17PopulateReparentJournal\x12\x31.tabletmanagerdata.PopulateReparentJournalRequest\x1a\x32.tabletmanagerdata.PopulateReparentJournalResponse\"\x00\x12X\n\tInitSlave\x12#.tabletmanagerdata.InitSlaveRequest\x1a$.tabletmanagerdata.InitSlaveResponse\"\x00\x12\x61\n\x0c\x44\x65moteMaster\x12&.tabletmanagerdata.DemoteMasterRequest\x1a\'.tabletmanagerdata.DemoteMasterResponse\"\x00\x12\x85\x01\n\x18PromoteSlaveWhenCaughtUp\x12\x32.tabletmanagerdata.PromoteSlaveWhenCaughtUpRequest\x1a\x33.tabletmanagerdata.PromoteSlaveWhenCaughtUpResponse\"\x00\x12m\n\x10SlaveWasPromoted\x12*.tabletmanagerdata.SlaveWasPromotedRequest\x1a+.tabletmanagerdata.SlaveWasPromotedResponse\"\x00\x12X\n\tSetMaster\x12#.tabletmanagerdata.SetMasterRequest\x1a$.tabletmanagerdata.SetMasterResponse\"\x00\x12p\n\x11SlaveWasRestarted\x12+.tabletmanagerdata.SlaveWasRestartedRequest\x1a,.tabletmanagerdata.SlaveWasRestartedResponse\"\x00\x12\x8e\x01\n\x1bStopReplicationAndGetStatus\x12\x35.tabletmanagerdata.StopReplicationAndGetStatusRequest\x1a\x36.tabletmanagerdata.StopReplicationAndGetStatusResponse\"\x00\x12\x61\n\x0cPromoteSlave\x12&.tabletmanagerdata.PromoteSlaveRequest\x1a\'.tabletmanagerdata.PromoteSlaveResponse\"\x00\x12Q\n\x06\x42\x61\x63kup\x12 .tabletmanagerdata.BackupRequest\x1a!.tabletmanagerdata.BackupResponse\"\x00\x30\x01\x62\x06proto3') + , + dependencies=[tabletmanagerdata__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + + + +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +class EarlyAdopterTabletManagerServicer(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def Ping(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def Sleep(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def ExecuteHook(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def GetSchema(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def GetPermissions(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def SetReadOnly(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def SetReadWrite(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def ChangeType(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def Scrap(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def RefreshState(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def RunHealthCheck(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def ReloadSchema(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def PreflightSchema(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def ApplySchema(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def ExecuteFetchAsDba(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def ExecuteFetchAsApp(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def SlaveStatus(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def MasterPosition(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def StopSlave(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def StopSlaveMinimum(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def StartSlave(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def TabletExternallyReparented(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def TabletExternallyElected(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def GetSlaves(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def WaitBlpPosition(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def StopBlp(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def StartBlp(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def RunBlpUntil(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def ResetReplication(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def InitMaster(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def PopulateReparentJournal(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def InitSlave(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def DemoteMaster(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def PromoteSlaveWhenCaughtUp(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def SlaveWasPromoted(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def SetMaster(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def SlaveWasRestarted(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def StopReplicationAndGetStatus(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def PromoteSlave(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def Backup(self, request, context): + raise NotImplementedError() +class EarlyAdopterTabletManagerServer(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def start(self): + raise NotImplementedError() + @abc.abstractmethod + def stop(self): + raise NotImplementedError() +class EarlyAdopterTabletManagerStub(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def Ping(self, request): + raise NotImplementedError() + Ping.async = None + @abc.abstractmethod + def Sleep(self, request): + raise NotImplementedError() + Sleep.async = None + @abc.abstractmethod + def ExecuteHook(self, request): + raise NotImplementedError() + ExecuteHook.async = None + @abc.abstractmethod + def GetSchema(self, request): + raise NotImplementedError() + GetSchema.async = None + @abc.abstractmethod + def GetPermissions(self, request): + raise NotImplementedError() + GetPermissions.async = None + @abc.abstractmethod + def SetReadOnly(self, request): + raise NotImplementedError() + SetReadOnly.async = None + @abc.abstractmethod + def SetReadWrite(self, request): + raise NotImplementedError() + SetReadWrite.async = None + @abc.abstractmethod + def ChangeType(self, request): + raise NotImplementedError() + ChangeType.async = None + @abc.abstractmethod + def Scrap(self, request): + raise NotImplementedError() + Scrap.async = None + @abc.abstractmethod + def RefreshState(self, request): + raise NotImplementedError() + RefreshState.async = None + @abc.abstractmethod + def RunHealthCheck(self, request): + raise NotImplementedError() + RunHealthCheck.async = None + @abc.abstractmethod + def ReloadSchema(self, request): + raise NotImplementedError() + ReloadSchema.async = None + @abc.abstractmethod + def PreflightSchema(self, request): + raise NotImplementedError() + PreflightSchema.async = None + @abc.abstractmethod + def ApplySchema(self, request): + raise NotImplementedError() + ApplySchema.async = None + @abc.abstractmethod + def ExecuteFetchAsDba(self, request): + raise NotImplementedError() + ExecuteFetchAsDba.async = None + @abc.abstractmethod + def ExecuteFetchAsApp(self, request): + raise NotImplementedError() + ExecuteFetchAsApp.async = None + @abc.abstractmethod + def SlaveStatus(self, request): + raise NotImplementedError() + SlaveStatus.async = None + @abc.abstractmethod + def MasterPosition(self, request): + raise NotImplementedError() + MasterPosition.async = None + @abc.abstractmethod + def StopSlave(self, request): + raise NotImplementedError() + StopSlave.async = None + @abc.abstractmethod + def StopSlaveMinimum(self, request): + raise NotImplementedError() + StopSlaveMinimum.async = None + @abc.abstractmethod + def StartSlave(self, request): + raise NotImplementedError() + StartSlave.async = None + @abc.abstractmethod + def TabletExternallyReparented(self, request): + raise NotImplementedError() + TabletExternallyReparented.async = None + @abc.abstractmethod + def TabletExternallyElected(self, request): + raise NotImplementedError() + TabletExternallyElected.async = None + @abc.abstractmethod + def GetSlaves(self, request): + raise NotImplementedError() + GetSlaves.async = None + @abc.abstractmethod + def WaitBlpPosition(self, request): + raise NotImplementedError() + WaitBlpPosition.async = None + @abc.abstractmethod + def StopBlp(self, request): + raise NotImplementedError() + StopBlp.async = None + @abc.abstractmethod + def StartBlp(self, request): + raise NotImplementedError() + StartBlp.async = None + @abc.abstractmethod + def RunBlpUntil(self, request): + raise NotImplementedError() + RunBlpUntil.async = None + @abc.abstractmethod + def ResetReplication(self, request): + raise NotImplementedError() + ResetReplication.async = None + @abc.abstractmethod + def InitMaster(self, request): + raise NotImplementedError() + InitMaster.async = None + @abc.abstractmethod + def PopulateReparentJournal(self, request): + raise NotImplementedError() + PopulateReparentJournal.async = None + @abc.abstractmethod + def InitSlave(self, request): + raise NotImplementedError() + InitSlave.async = None + @abc.abstractmethod + def DemoteMaster(self, request): + raise NotImplementedError() + DemoteMaster.async = None + @abc.abstractmethod + def PromoteSlaveWhenCaughtUp(self, request): + raise NotImplementedError() + PromoteSlaveWhenCaughtUp.async = None + @abc.abstractmethod + def SlaveWasPromoted(self, request): + raise NotImplementedError() + SlaveWasPromoted.async = None + @abc.abstractmethod + def SetMaster(self, request): + raise NotImplementedError() + SetMaster.async = None + @abc.abstractmethod + def SlaveWasRestarted(self, request): + raise NotImplementedError() + SlaveWasRestarted.async = None + @abc.abstractmethod + def StopReplicationAndGetStatus(self, request): + raise NotImplementedError() + StopReplicationAndGetStatus.async = None + @abc.abstractmethod + def PromoteSlave(self, request): + raise NotImplementedError() + PromoteSlave.async = None + @abc.abstractmethod + def Backup(self, request): + raise NotImplementedError() + Backup.async = None +def early_adopter_create_TabletManager_server(servicer, port, private_key=None, certificate_chain=None): + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + method_service_descriptions = { + "ApplySchema": utilities.unary_unary_service_description( + servicer.ApplySchema, + tabletmanagerdata_pb2.ApplySchemaRequest.FromString, + tabletmanagerdata_pb2.ApplySchemaResponse.SerializeToString, + ), + "Backup": utilities.unary_stream_service_description( + servicer.Backup, + tabletmanagerdata_pb2.BackupRequest.FromString, + tabletmanagerdata_pb2.BackupResponse.SerializeToString, + ), + "ChangeType": utilities.unary_unary_service_description( + servicer.ChangeType, + tabletmanagerdata_pb2.ChangeTypeRequest.FromString, + tabletmanagerdata_pb2.ChangeTypeResponse.SerializeToString, + ), + "DemoteMaster": utilities.unary_unary_service_description( + servicer.DemoteMaster, + tabletmanagerdata_pb2.DemoteMasterRequest.FromString, + tabletmanagerdata_pb2.DemoteMasterResponse.SerializeToString, + ), + "ExecuteFetchAsApp": utilities.unary_unary_service_description( + servicer.ExecuteFetchAsApp, + tabletmanagerdata_pb2.ExecuteFetchAsAppRequest.FromString, + tabletmanagerdata_pb2.ExecuteFetchAsAppResponse.SerializeToString, + ), + "ExecuteFetchAsDba": utilities.unary_unary_service_description( + servicer.ExecuteFetchAsDba, + tabletmanagerdata_pb2.ExecuteFetchAsDbaRequest.FromString, + tabletmanagerdata_pb2.ExecuteFetchAsDbaResponse.SerializeToString, + ), + "ExecuteHook": utilities.unary_unary_service_description( + servicer.ExecuteHook, + tabletmanagerdata_pb2.ExecuteHookRequest.FromString, + tabletmanagerdata_pb2.ExecuteHookResponse.SerializeToString, + ), + "GetPermissions": utilities.unary_unary_service_description( + servicer.GetPermissions, + tabletmanagerdata_pb2.GetPermissionsRequest.FromString, + tabletmanagerdata_pb2.GetPermissionsResponse.SerializeToString, + ), + "GetSchema": utilities.unary_unary_service_description( + servicer.GetSchema, + tabletmanagerdata_pb2.GetSchemaRequest.FromString, + tabletmanagerdata_pb2.GetSchemaResponse.SerializeToString, + ), + "GetSlaves": utilities.unary_unary_service_description( + servicer.GetSlaves, + tabletmanagerdata_pb2.GetSlavesRequest.FromString, + tabletmanagerdata_pb2.GetSlavesResponse.SerializeToString, + ), + "InitMaster": utilities.unary_unary_service_description( + servicer.InitMaster, + tabletmanagerdata_pb2.InitMasterRequest.FromString, + tabletmanagerdata_pb2.InitMasterResponse.SerializeToString, + ), + "InitSlave": utilities.unary_unary_service_description( + servicer.InitSlave, + tabletmanagerdata_pb2.InitSlaveRequest.FromString, + tabletmanagerdata_pb2.InitSlaveResponse.SerializeToString, + ), + "MasterPosition": utilities.unary_unary_service_description( + servicer.MasterPosition, + tabletmanagerdata_pb2.MasterPositionRequest.FromString, + tabletmanagerdata_pb2.MasterPositionResponse.SerializeToString, + ), + "Ping": utilities.unary_unary_service_description( + servicer.Ping, + tabletmanagerdata_pb2.PingRequest.FromString, + tabletmanagerdata_pb2.PingResponse.SerializeToString, + ), + "PopulateReparentJournal": utilities.unary_unary_service_description( + servicer.PopulateReparentJournal, + tabletmanagerdata_pb2.PopulateReparentJournalRequest.FromString, + tabletmanagerdata_pb2.PopulateReparentJournalResponse.SerializeToString, + ), + "PreflightSchema": utilities.unary_unary_service_description( + servicer.PreflightSchema, + tabletmanagerdata_pb2.PreflightSchemaRequest.FromString, + tabletmanagerdata_pb2.PreflightSchemaResponse.SerializeToString, + ), + "PromoteSlave": utilities.unary_unary_service_description( + servicer.PromoteSlave, + tabletmanagerdata_pb2.PromoteSlaveRequest.FromString, + tabletmanagerdata_pb2.PromoteSlaveResponse.SerializeToString, + ), + "PromoteSlaveWhenCaughtUp": utilities.unary_unary_service_description( + servicer.PromoteSlaveWhenCaughtUp, + tabletmanagerdata_pb2.PromoteSlaveWhenCaughtUpRequest.FromString, + tabletmanagerdata_pb2.PromoteSlaveWhenCaughtUpResponse.SerializeToString, + ), + "RefreshState": utilities.unary_unary_service_description( + servicer.RefreshState, + tabletmanagerdata_pb2.RefreshStateRequest.FromString, + tabletmanagerdata_pb2.RefreshStateResponse.SerializeToString, + ), + "ReloadSchema": utilities.unary_unary_service_description( + servicer.ReloadSchema, + tabletmanagerdata_pb2.ReloadSchemaRequest.FromString, + tabletmanagerdata_pb2.ReloadSchemaResponse.SerializeToString, + ), + "ResetReplication": utilities.unary_unary_service_description( + servicer.ResetReplication, + tabletmanagerdata_pb2.ResetReplicationRequest.FromString, + tabletmanagerdata_pb2.ResetReplicationResponse.SerializeToString, + ), + "RunBlpUntil": utilities.unary_unary_service_description( + servicer.RunBlpUntil, + tabletmanagerdata_pb2.RunBlpUntilRequest.FromString, + tabletmanagerdata_pb2.RunBlpUntilResponse.SerializeToString, + ), + "RunHealthCheck": utilities.unary_unary_service_description( + servicer.RunHealthCheck, + tabletmanagerdata_pb2.RunHealthCheckRequest.FromString, + tabletmanagerdata_pb2.RunHealthCheckResponse.SerializeToString, + ), + "Scrap": utilities.unary_unary_service_description( + servicer.Scrap, + tabletmanagerdata_pb2.ScrapRequest.FromString, + tabletmanagerdata_pb2.ScrapResponse.SerializeToString, + ), + "SetMaster": utilities.unary_unary_service_description( + servicer.SetMaster, + tabletmanagerdata_pb2.SetMasterRequest.FromString, + tabletmanagerdata_pb2.SetMasterResponse.SerializeToString, + ), + "SetReadOnly": utilities.unary_unary_service_description( + servicer.SetReadOnly, + tabletmanagerdata_pb2.SetReadOnlyRequest.FromString, + tabletmanagerdata_pb2.SetReadOnlyResponse.SerializeToString, + ), + "SetReadWrite": utilities.unary_unary_service_description( + servicer.SetReadWrite, + tabletmanagerdata_pb2.SetReadWriteRequest.FromString, + tabletmanagerdata_pb2.SetReadWriteResponse.SerializeToString, + ), + "SlaveStatus": utilities.unary_unary_service_description( + servicer.SlaveStatus, + tabletmanagerdata_pb2.SlaveStatusRequest.FromString, + tabletmanagerdata_pb2.SlaveStatusResponse.SerializeToString, + ), + "SlaveWasPromoted": utilities.unary_unary_service_description( + servicer.SlaveWasPromoted, + tabletmanagerdata_pb2.SlaveWasPromotedRequest.FromString, + tabletmanagerdata_pb2.SlaveWasPromotedResponse.SerializeToString, + ), + "SlaveWasRestarted": utilities.unary_unary_service_description( + servicer.SlaveWasRestarted, + tabletmanagerdata_pb2.SlaveWasRestartedRequest.FromString, + tabletmanagerdata_pb2.SlaveWasRestartedResponse.SerializeToString, + ), + "Sleep": utilities.unary_unary_service_description( + servicer.Sleep, + tabletmanagerdata_pb2.SleepRequest.FromString, + tabletmanagerdata_pb2.SleepResponse.SerializeToString, + ), + "StartBlp": utilities.unary_unary_service_description( + servicer.StartBlp, + tabletmanagerdata_pb2.StartBlpRequest.FromString, + tabletmanagerdata_pb2.StartBlpResponse.SerializeToString, + ), + "StartSlave": utilities.unary_unary_service_description( + servicer.StartSlave, + tabletmanagerdata_pb2.StartSlaveRequest.FromString, + tabletmanagerdata_pb2.StartSlaveResponse.SerializeToString, + ), + "StopBlp": utilities.unary_unary_service_description( + servicer.StopBlp, + tabletmanagerdata_pb2.StopBlpRequest.FromString, + tabletmanagerdata_pb2.StopBlpResponse.SerializeToString, + ), + "StopReplicationAndGetStatus": utilities.unary_unary_service_description( + servicer.StopReplicationAndGetStatus, + tabletmanagerdata_pb2.StopReplicationAndGetStatusRequest.FromString, + tabletmanagerdata_pb2.StopReplicationAndGetStatusResponse.SerializeToString, + ), + "StopSlave": utilities.unary_unary_service_description( + servicer.StopSlave, + tabletmanagerdata_pb2.StopSlaveRequest.FromString, + tabletmanagerdata_pb2.StopSlaveResponse.SerializeToString, + ), + "StopSlaveMinimum": utilities.unary_unary_service_description( + servicer.StopSlaveMinimum, + tabletmanagerdata_pb2.StopSlaveMinimumRequest.FromString, + tabletmanagerdata_pb2.StopSlaveMinimumResponse.SerializeToString, + ), + "TabletExternallyElected": utilities.unary_unary_service_description( + servicer.TabletExternallyElected, + tabletmanagerdata_pb2.TabletExternallyElectedRequest.FromString, + tabletmanagerdata_pb2.TabletExternallyElectedResponse.SerializeToString, + ), + "TabletExternallyReparented": utilities.unary_unary_service_description( + servicer.TabletExternallyReparented, + tabletmanagerdata_pb2.TabletExternallyReparentedRequest.FromString, + tabletmanagerdata_pb2.TabletExternallyReparentedResponse.SerializeToString, + ), + "WaitBlpPosition": utilities.unary_unary_service_description( + servicer.WaitBlpPosition, + tabletmanagerdata_pb2.WaitBlpPositionRequest.FromString, + tabletmanagerdata_pb2.WaitBlpPositionResponse.SerializeToString, + ), + } + return implementations.server("tabletmanagerservice.TabletManager", method_service_descriptions, port, private_key=private_key, certificate_chain=certificate_chain) +def early_adopter_create_TabletManager_stub(host, port, metadata_transformer=None, secure=False, root_certificates=None, private_key=None, certificate_chain=None, server_host_override=None): + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + import tabletmanagerdata_pb2 + method_invocation_descriptions = { + "ApplySchema": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.ApplySchemaRequest.SerializeToString, + tabletmanagerdata_pb2.ApplySchemaResponse.FromString, + ), + "Backup": utilities.unary_stream_invocation_description( + tabletmanagerdata_pb2.BackupRequest.SerializeToString, + tabletmanagerdata_pb2.BackupResponse.FromString, + ), + "ChangeType": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.ChangeTypeRequest.SerializeToString, + tabletmanagerdata_pb2.ChangeTypeResponse.FromString, + ), + "DemoteMaster": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.DemoteMasterRequest.SerializeToString, + tabletmanagerdata_pb2.DemoteMasterResponse.FromString, + ), + "ExecuteFetchAsApp": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.ExecuteFetchAsAppRequest.SerializeToString, + tabletmanagerdata_pb2.ExecuteFetchAsAppResponse.FromString, + ), + "ExecuteFetchAsDba": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.ExecuteFetchAsDbaRequest.SerializeToString, + tabletmanagerdata_pb2.ExecuteFetchAsDbaResponse.FromString, + ), + "ExecuteHook": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.ExecuteHookRequest.SerializeToString, + tabletmanagerdata_pb2.ExecuteHookResponse.FromString, + ), + "GetPermissions": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.GetPermissionsRequest.SerializeToString, + tabletmanagerdata_pb2.GetPermissionsResponse.FromString, + ), + "GetSchema": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.GetSchemaRequest.SerializeToString, + tabletmanagerdata_pb2.GetSchemaResponse.FromString, + ), + "GetSlaves": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.GetSlavesRequest.SerializeToString, + tabletmanagerdata_pb2.GetSlavesResponse.FromString, + ), + "InitMaster": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.InitMasterRequest.SerializeToString, + tabletmanagerdata_pb2.InitMasterResponse.FromString, + ), + "InitSlave": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.InitSlaveRequest.SerializeToString, + tabletmanagerdata_pb2.InitSlaveResponse.FromString, + ), + "MasterPosition": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.MasterPositionRequest.SerializeToString, + tabletmanagerdata_pb2.MasterPositionResponse.FromString, + ), + "Ping": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.PingRequest.SerializeToString, + tabletmanagerdata_pb2.PingResponse.FromString, + ), + "PopulateReparentJournal": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.PopulateReparentJournalRequest.SerializeToString, + tabletmanagerdata_pb2.PopulateReparentJournalResponse.FromString, + ), + "PreflightSchema": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.PreflightSchemaRequest.SerializeToString, + tabletmanagerdata_pb2.PreflightSchemaResponse.FromString, + ), + "PromoteSlave": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.PromoteSlaveRequest.SerializeToString, + tabletmanagerdata_pb2.PromoteSlaveResponse.FromString, + ), + "PromoteSlaveWhenCaughtUp": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.PromoteSlaveWhenCaughtUpRequest.SerializeToString, + tabletmanagerdata_pb2.PromoteSlaveWhenCaughtUpResponse.FromString, + ), + "RefreshState": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.RefreshStateRequest.SerializeToString, + tabletmanagerdata_pb2.RefreshStateResponse.FromString, + ), + "ReloadSchema": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.ReloadSchemaRequest.SerializeToString, + tabletmanagerdata_pb2.ReloadSchemaResponse.FromString, + ), + "ResetReplication": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.ResetReplicationRequest.SerializeToString, + tabletmanagerdata_pb2.ResetReplicationResponse.FromString, + ), + "RunBlpUntil": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.RunBlpUntilRequest.SerializeToString, + tabletmanagerdata_pb2.RunBlpUntilResponse.FromString, + ), + "RunHealthCheck": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.RunHealthCheckRequest.SerializeToString, + tabletmanagerdata_pb2.RunHealthCheckResponse.FromString, + ), + "Scrap": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.ScrapRequest.SerializeToString, + tabletmanagerdata_pb2.ScrapResponse.FromString, + ), + "SetMaster": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.SetMasterRequest.SerializeToString, + tabletmanagerdata_pb2.SetMasterResponse.FromString, + ), + "SetReadOnly": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.SetReadOnlyRequest.SerializeToString, + tabletmanagerdata_pb2.SetReadOnlyResponse.FromString, + ), + "SetReadWrite": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.SetReadWriteRequest.SerializeToString, + tabletmanagerdata_pb2.SetReadWriteResponse.FromString, + ), + "SlaveStatus": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.SlaveStatusRequest.SerializeToString, + tabletmanagerdata_pb2.SlaveStatusResponse.FromString, + ), + "SlaveWasPromoted": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.SlaveWasPromotedRequest.SerializeToString, + tabletmanagerdata_pb2.SlaveWasPromotedResponse.FromString, + ), + "SlaveWasRestarted": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.SlaveWasRestartedRequest.SerializeToString, + tabletmanagerdata_pb2.SlaveWasRestartedResponse.FromString, + ), + "Sleep": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.SleepRequest.SerializeToString, + tabletmanagerdata_pb2.SleepResponse.FromString, + ), + "StartBlp": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.StartBlpRequest.SerializeToString, + tabletmanagerdata_pb2.StartBlpResponse.FromString, + ), + "StartSlave": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.StartSlaveRequest.SerializeToString, + tabletmanagerdata_pb2.StartSlaveResponse.FromString, + ), + "StopBlp": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.StopBlpRequest.SerializeToString, + tabletmanagerdata_pb2.StopBlpResponse.FromString, + ), + "StopReplicationAndGetStatus": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.StopReplicationAndGetStatusRequest.SerializeToString, + tabletmanagerdata_pb2.StopReplicationAndGetStatusResponse.FromString, + ), + "StopSlave": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.StopSlaveRequest.SerializeToString, + tabletmanagerdata_pb2.StopSlaveResponse.FromString, + ), + "StopSlaveMinimum": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.StopSlaveMinimumRequest.SerializeToString, + tabletmanagerdata_pb2.StopSlaveMinimumResponse.FromString, + ), + "TabletExternallyElected": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.TabletExternallyElectedRequest.SerializeToString, + tabletmanagerdata_pb2.TabletExternallyElectedResponse.FromString, + ), + "TabletExternallyReparented": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.TabletExternallyReparentedRequest.SerializeToString, + tabletmanagerdata_pb2.TabletExternallyReparentedResponse.FromString, + ), + "WaitBlpPosition": utilities.unary_unary_invocation_description( + tabletmanagerdata_pb2.WaitBlpPositionRequest.SerializeToString, + tabletmanagerdata_pb2.WaitBlpPositionResponse.FromString, + ), + } + return implementations.stub("tabletmanagerservice.TabletManager", method_invocation_descriptions, host, port, metadata_transformer=metadata_transformer, secure=secure, root_certificates=root_certificates, private_key=private_key, certificate_chain=certificate_chain, server_host_override=server_host_override) +# @@protoc_insertion_point(module_scope) diff --git a/py/vtproto/topodata_pb2.py b/py/vtproto/topodata_pb2.py new file mode 100644 index 0000000000..8f0a10c03c --- /dev/null +++ b/py/vtproto/topodata_pb2.py @@ -0,0 +1,1414 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: topodata.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper +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() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='topodata.proto', + package='topodata', + syntax='proto3', + serialized_pb=_b('\n\x0etopodata.proto\x12\x08topodata\"&\n\x08KeyRange\x12\r\n\x05start\x18\x01 \x01(\x0c\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x0c\"(\n\x0bTabletAlias\x12\x0c\n\x04\x63\x65ll\x18\x01 \x01(\t\x12\x0b\n\x03uid\x18\x02 \x01(\r\"\xf0\x03\n\x06Tablet\x12$\n\x05\x61lias\x18\x01 \x01(\x0b\x32\x15.topodata.TabletAlias\x12\x10\n\x08hostname\x18\x02 \x01(\t\x12\n\n\x02ip\x18\x03 \x01(\t\x12.\n\x07portmap\x18\x04 \x03(\x0b\x32\x1d.topodata.Tablet.PortmapEntry\x12\x10\n\x08keyspace\x18\x05 \x01(\t\x12\r\n\x05shard\x18\x06 \x01(\t\x12%\n\tkey_range\x18\x07 \x01(\x0b\x32\x12.topodata.KeyRange\x12\"\n\x04type\x18\x08 \x01(\x0e\x32\x14.topodata.TabletType\x12\x18\n\x10\x64\x62_name_override\x18\t \x01(\t\x12(\n\x04tags\x18\n \x03(\x0b\x32\x1a.topodata.Tablet.TagsEntry\x12\x33\n\nhealth_map\x18\x0b \x03(\x0b\x32\x1f.topodata.Tablet.HealthMapEntry\x1a.\n\x0cPortmapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x30\n\x0eHealthMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd8\x04\n\x05Shard\x12+\n\x0cmaster_alias\x18\x01 \x01(\x0b\x32\x15.topodata.TabletAlias\x12%\n\tkey_range\x18\x02 \x01(\x0b\x32\x12.topodata.KeyRange\x12\x38\n\x0fserved_type_map\x18\x03 \x03(\x0b\x32\x1f.topodata.Shard.ShardServedType\x12\x32\n\rsource_shards\x18\x04 \x03(\x0b\x32\x1b.topodata.Shard.SourceShard\x12\r\n\x05\x63\x65lls\x18\x05 \x03(\t\x12\x36\n\x0ftablet_controls\x18\x06 \x03(\x0b\x32\x1d.topodata.Shard.TabletControl\x1aK\n\x0fShardServedType\x12)\n\x0btablet_type\x18\x01 \x01(\x0e\x32\x14.topodata.TabletType\x12\r\n\x05\x63\x65lls\x18\x02 \x03(\t\x1ar\n\x0bSourceShard\x12\x0b\n\x03uid\x18\x01 \x01(\r\x12\x10\n\x08keyspace\x18\x02 \x01(\t\x12\r\n\x05shard\x18\x03 \x01(\t\x12%\n\tkey_range\x18\x04 \x01(\x0b\x32\x12.topodata.KeyRange\x12\x0e\n\x06tables\x18\x05 \x03(\t\x1a\x84\x01\n\rTabletControl\x12)\n\x0btablet_type\x18\x01 \x01(\x0e\x32\x14.topodata.TabletType\x12\r\n\x05\x63\x65lls\x18\x02 \x03(\t\x12\x1d\n\x15\x64isable_query_service\x18\x03 \x01(\x08\x12\x1a\n\x12\x62lacklisted_tables\x18\x04 \x03(\t\"\x9a\x02\n\x08Keyspace\x12\x1c\n\x14sharding_column_name\x18\x01 \x01(\t\x12\x36\n\x14sharding_column_type\x18\x02 \x01(\x0e\x32\x18.topodata.KeyspaceIdType\x12\x19\n\x11split_shard_count\x18\x03 \x01(\x05\x12;\n\x0cserved_froms\x18\x04 \x03(\x0b\x32%.topodata.Keyspace.KeyspaceServedFrom\x1a`\n\x12KeyspaceServedFrom\x12)\n\x0btablet_type\x18\x01 \x01(\x0e\x32\x14.topodata.TabletType\x12\r\n\x05\x63\x65lls\x18\x02 \x03(\t\x12\x10\n\x08keyspace\x18\x03 \x01(\t\"\x99\x01\n\x10ShardReplication\x12\x45\n\x11replication_links\x18\x01 \x03(\x0b\x32*.topodata.ShardReplication.ReplicationLink\x1a>\n\x0fReplicationLink\x12+\n\x0ctablet_alias\x18\x01 \x01(\x0b\x32\x15.topodata.TabletAlias\"\xf0\x01\n\x08\x45ndPoint\x12\x0b\n\x03uid\x18\x01 \x01(\r\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x30\n\x07portmap\x18\x03 \x03(\x0b\x32\x1f.topodata.EndPoint.PortmapEntry\x12\x35\n\nhealth_map\x18\x04 \x03(\x0b\x32!.topodata.EndPoint.HealthMapEntry\x1a.\n\x0cPortmapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\x1a\x30\n\x0eHealthMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"0\n\tEndPoints\x12#\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x12.topodata.EndPoint\"T\n\x08SrvShard\x12\x0c\n\x04name\x18\x01 \x01(\t\x12%\n\tkey_range\x18\x02 \x01(\x0b\x32\x12.topodata.KeyRange\x12\x13\n\x0bmaster_cell\x18\x03 \x01(\t\"E\n\x0eShardReference\x12\x0c\n\x04name\x18\x01 \x01(\t\x12%\n\tkey_range\x18\x02 \x01(\x0b\x32\x12.topodata.KeyRange\"\xb1\x03\n\x0bSrvKeyspace\x12;\n\npartitions\x18\x01 \x03(\x0b\x32\'.topodata.SrvKeyspace.KeyspacePartition\x12\x1c\n\x14sharding_column_name\x18\x02 \x01(\t\x12\x36\n\x14sharding_column_type\x18\x03 \x01(\x0e\x32\x18.topodata.KeyspaceIdType\x12\x35\n\x0bserved_from\x18\x04 \x03(\x0b\x32 .topodata.SrvKeyspace.ServedFrom\x12\x19\n\x11split_shard_count\x18\x05 \x01(\x05\x1ar\n\x11KeyspacePartition\x12)\n\x0bserved_type\x18\x01 \x01(\x0e\x32\x14.topodata.TabletType\x12\x32\n\x10shard_references\x18\x02 \x03(\x0b\x32\x18.topodata.ShardReference\x1aI\n\nServedFrom\x12)\n\x0btablet_type\x18\x01 \x01(\x0e\x32\x14.topodata.TabletType\x12\x10\n\x08keyspace\x18\x02 \x01(\t*2\n\x0eKeyspaceIdType\x12\t\n\x05UNSET\x10\x00\x12\n\n\x06UINT64\x10\x01\x12\t\n\x05\x42YTES\x10\x02*\xb8\x01\n\nTabletType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04IDLE\x10\x01\x12\n\n\x06MASTER\x10\x02\x12\x0b\n\x07REPLICA\x10\x03\x12\n\n\x06RDONLY\x10\x04\x12\t\n\x05\x42\x41TCH\x10\x04\x12\t\n\x05SPARE\x10\x05\x12\x10\n\x0c\x45XPERIMENTAL\x10\x06\x12\x12\n\x0eSCHEMA_UPGRADE\x10\x07\x12\n\n\x06\x42\x41\x43KUP\x10\x08\x12\x0b\n\x07RESTORE\x10\t\x12\n\n\x06WORKER\x10\n\x12\t\n\x05SCRAP\x10\x0b\x1a\x02\x10\x01\x62\x06proto3') +) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +_KEYSPACEIDTYPE = _descriptor.EnumDescriptor( + name='KeyspaceIdType', + full_name='topodata.KeyspaceIdType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSET', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UINT64', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BYTES', index=2, number=2, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=2539, + serialized_end=2589, +) +_sym_db.RegisterEnumDescriptor(_KEYSPACEIDTYPE) + +KeyspaceIdType = enum_type_wrapper.EnumTypeWrapper(_KEYSPACEIDTYPE) +_TABLETTYPE = _descriptor.EnumDescriptor( + name='TabletType', + full_name='topodata.TabletType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IDLE', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MASTER', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REPLICA', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RDONLY', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BATCH', index=5, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SPARE', index=6, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPERIMENTAL', index=7, number=6, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SCHEMA_UPGRADE', index=8, number=7, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BACKUP', index=9, number=8, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RESTORE', index=10, number=9, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WORKER', index=11, number=10, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SCRAP', index=12, number=11, + options=None, + type=None), + ], + containing_type=None, + options=_descriptor._ParseOptions(descriptor_pb2.EnumOptions(), _b('\020\001')), + serialized_start=2592, + serialized_end=2776, +) +_sym_db.RegisterEnumDescriptor(_TABLETTYPE) + +TabletType = enum_type_wrapper.EnumTypeWrapper(_TABLETTYPE) +UNSET = 0 +UINT64 = 1 +BYTES = 2 +UNKNOWN = 0 +IDLE = 1 +MASTER = 2 +REPLICA = 3 +RDONLY = 4 +BATCH = 4 +SPARE = 5 +EXPERIMENTAL = 6 +SCHEMA_UPGRADE = 7 +BACKUP = 8 +RESTORE = 9 +WORKER = 10 +SCRAP = 11 + + + +_KEYRANGE = _descriptor.Descriptor( + name='KeyRange', + full_name='topodata.KeyRange', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='start', full_name='topodata.KeyRange.start', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='end', full_name='topodata.KeyRange.end', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + 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=28, + serialized_end=66, +) + + +_TABLETALIAS = _descriptor.Descriptor( + name='TabletAlias', + full_name='topodata.TabletAlias', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='cell', full_name='topodata.TabletAlias.cell', 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='uid', full_name='topodata.TabletAlias.uid', index=1, + number=2, type=13, cpp_type=3, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=68, + serialized_end=108, +) + + +_TABLET_PORTMAPENTRY = _descriptor.Descriptor( + name='PortmapEntry', + full_name='topodata.Tablet.PortmapEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='topodata.Tablet.PortmapEntry.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='topodata.Tablet.PortmapEntry.value', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=466, + serialized_end=512, +) + +_TABLET_TAGSENTRY = _descriptor.Descriptor( + name='TagsEntry', + full_name='topodata.Tablet.TagsEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='topodata.Tablet.TagsEntry.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='topodata.Tablet.TagsEntry.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=514, + serialized_end=557, +) + +_TABLET_HEALTHMAPENTRY = _descriptor.Descriptor( + name='HealthMapEntry', + full_name='topodata.Tablet.HealthMapEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='topodata.Tablet.HealthMapEntry.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='topodata.Tablet.HealthMapEntry.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=559, + serialized_end=607, +) + +_TABLET = _descriptor.Descriptor( + name='Tablet', + full_name='topodata.Tablet', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='alias', full_name='topodata.Tablet.alias', 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='hostname', full_name='topodata.Tablet.hostname', 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='ip', full_name='topodata.Tablet.ip', 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='portmap', full_name='topodata.Tablet.portmap', index=3, + number=4, 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='keyspace', full_name='topodata.Tablet.keyspace', index=4, + number=5, 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='shard', full_name='topodata.Tablet.shard', index=5, + number=6, 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='key_range', full_name='topodata.Tablet.key_range', index=6, + number=7, 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='type', full_name='topodata.Tablet.type', index=7, + number=8, 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='db_name_override', full_name='topodata.Tablet.db_name_override', index=8, + number=9, 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='tags', full_name='topodata.Tablet.tags', index=9, + number=10, 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='health_map', full_name='topodata.Tablet.health_map', index=10, + number=11, 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=[_TABLET_PORTMAPENTRY, _TABLET_TAGSENTRY, _TABLET_HEALTHMAPENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=111, + serialized_end=607, +) + + +_SHARD_SHARDSERVEDTYPE = _descriptor.Descriptor( + name='ShardServedType', + full_name='topodata.Shard.ShardServedType', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='tablet_type', full_name='topodata.Shard.ShardServedType.tablet_type', index=0, + number=1, 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='cells', full_name='topodata.Shard.ShardServedType.cells', index=1, + number=2, type=9, cpp_type=9, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=884, + serialized_end=959, +) + +_SHARD_SOURCESHARD = _descriptor.Descriptor( + name='SourceShard', + full_name='topodata.Shard.SourceShard', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='uid', full_name='topodata.Shard.SourceShard.uid', index=0, + number=1, type=13, cpp_type=3, 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='keyspace', full_name='topodata.Shard.SourceShard.keyspace', 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='shard', full_name='topodata.Shard.SourceShard.shard', 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='key_range', full_name='topodata.Shard.SourceShard.key_range', 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), + _descriptor.FieldDescriptor( + name='tables', full_name='topodata.Shard.SourceShard.tables', index=4, + number=5, type=9, cpp_type=9, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=961, + serialized_end=1075, +) + +_SHARD_TABLETCONTROL = _descriptor.Descriptor( + name='TabletControl', + full_name='topodata.Shard.TabletControl', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='tablet_type', full_name='topodata.Shard.TabletControl.tablet_type', index=0, + number=1, 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='cells', full_name='topodata.Shard.TabletControl.cells', index=1, + number=2, type=9, cpp_type=9, 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='disable_query_service', full_name='topodata.Shard.TabletControl.disable_query_service', index=2, + number=3, 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), + _descriptor.FieldDescriptor( + name='blacklisted_tables', full_name='topodata.Shard.TabletControl.blacklisted_tables', index=3, + number=4, type=9, cpp_type=9, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1078, + serialized_end=1210, +) + +_SHARD = _descriptor.Descriptor( + name='Shard', + full_name='topodata.Shard', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='master_alias', full_name='topodata.Shard.master_alias', 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='key_range', full_name='topodata.Shard.key_range', 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='served_type_map', full_name='topodata.Shard.served_type_map', 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='source_shards', full_name='topodata.Shard.source_shards', index=3, + number=4, 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='cells', full_name='topodata.Shard.cells', index=4, + number=5, type=9, cpp_type=9, 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='tablet_controls', full_name='topodata.Shard.tablet_controls', index=5, + number=6, 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=[_SHARD_SHARDSERVEDTYPE, _SHARD_SOURCESHARD, _SHARD_TABLETCONTROL, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=610, + serialized_end=1210, +) + + +_KEYSPACE_KEYSPACESERVEDFROM = _descriptor.Descriptor( + name='KeyspaceServedFrom', + full_name='topodata.Keyspace.KeyspaceServedFrom', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='tablet_type', full_name='topodata.Keyspace.KeyspaceServedFrom.tablet_type', index=0, + number=1, 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='cells', full_name='topodata.Keyspace.KeyspaceServedFrom.cells', index=1, + number=2, type=9, cpp_type=9, 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='keyspace', full_name='topodata.Keyspace.KeyspaceServedFrom.keyspace', 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=1399, + serialized_end=1495, +) + +_KEYSPACE = _descriptor.Descriptor( + name='Keyspace', + full_name='topodata.Keyspace', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='sharding_column_name', full_name='topodata.Keyspace.sharding_column_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='sharding_column_type', full_name='topodata.Keyspace.sharding_column_type', index=1, + number=2, 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='split_shard_count', full_name='topodata.Keyspace.split_shard_count', index=2, + number=3, 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='served_froms', full_name='topodata.Keyspace.served_froms', index=3, + number=4, 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=[_KEYSPACE_KEYSPACESERVEDFROM, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1213, + serialized_end=1495, +) + + +_SHARDREPLICATION_REPLICATIONLINK = _descriptor.Descriptor( + name='ReplicationLink', + full_name='topodata.ShardReplication.ReplicationLink', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='tablet_alias', full_name='topodata.ShardReplication.ReplicationLink.tablet_alias', 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=1589, + serialized_end=1651, +) + +_SHARDREPLICATION = _descriptor.Descriptor( + name='ShardReplication', + full_name='topodata.ShardReplication', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='replication_links', full_name='topodata.ShardReplication.replication_links', 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), + ], + extensions=[ + ], + nested_types=[_SHARDREPLICATION_REPLICATIONLINK, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1498, + serialized_end=1651, +) + + +_ENDPOINT_PORTMAPENTRY = _descriptor.Descriptor( + name='PortmapEntry', + full_name='topodata.EndPoint.PortmapEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='topodata.EndPoint.PortmapEntry.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='topodata.EndPoint.PortmapEntry.value', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=466, + serialized_end=512, +) + +_ENDPOINT_HEALTHMAPENTRY = _descriptor.Descriptor( + name='HealthMapEntry', + full_name='topodata.EndPoint.HealthMapEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='topodata.EndPoint.HealthMapEntry.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='topodata.EndPoint.HealthMapEntry.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=559, + serialized_end=607, +) + +_ENDPOINT = _descriptor.Descriptor( + name='EndPoint', + full_name='topodata.EndPoint', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='uid', full_name='topodata.EndPoint.uid', index=0, + number=1, type=13, cpp_type=3, 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='host', full_name='topodata.EndPoint.host', 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='portmap', full_name='topodata.EndPoint.portmap', 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='health_map', full_name='topodata.EndPoint.health_map', index=3, + number=4, 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=[_ENDPOINT_PORTMAPENTRY, _ENDPOINT_HEALTHMAPENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1654, + serialized_end=1894, +) + + +_ENDPOINTS = _descriptor.Descriptor( + name='EndPoints', + full_name='topodata.EndPoints', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='entries', full_name='topodata.EndPoints.entries', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1896, + serialized_end=1944, +) + + +_SRVSHARD = _descriptor.Descriptor( + name='SrvShard', + full_name='topodata.SrvShard', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='topodata.SrvShard.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='key_range', full_name='topodata.SrvShard.key_range', 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='master_cell', full_name='topodata.SrvShard.master_cell', 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=1946, + serialized_end=2030, +) + + +_SHARDREFERENCE = _descriptor.Descriptor( + name='ShardReference', + full_name='topodata.ShardReference', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='topodata.ShardReference.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='key_range', full_name='topodata.ShardReference.key_range', 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=2032, + serialized_end=2101, +) + + +_SRVKEYSPACE_KEYSPACEPARTITION = _descriptor.Descriptor( + name='KeyspacePartition', + full_name='topodata.SrvKeyspace.KeyspacePartition', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='served_type', full_name='topodata.SrvKeyspace.KeyspacePartition.served_type', index=0, + number=1, 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='shard_references', full_name='topodata.SrvKeyspace.KeyspacePartition.shard_references', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2348, + serialized_end=2462, +) + +_SRVKEYSPACE_SERVEDFROM = _descriptor.Descriptor( + name='ServedFrom', + full_name='topodata.SrvKeyspace.ServedFrom', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='tablet_type', full_name='topodata.SrvKeyspace.ServedFrom.tablet_type', index=0, + number=1, 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='keyspace', full_name='topodata.SrvKeyspace.ServedFrom.keyspace', 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=2464, + serialized_end=2537, +) + +_SRVKEYSPACE = _descriptor.Descriptor( + name='SrvKeyspace', + full_name='topodata.SrvKeyspace', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partitions', full_name='topodata.SrvKeyspace.partitions', 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='sharding_column_name', full_name='topodata.SrvKeyspace.sharding_column_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), + _descriptor.FieldDescriptor( + name='sharding_column_type', full_name='topodata.SrvKeyspace.sharding_column_type', index=2, + number=3, 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='served_from', full_name='topodata.SrvKeyspace.served_from', index=3, + number=4, 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='split_shard_count', full_name='topodata.SrvKeyspace.split_shard_count', index=4, + 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), + ], + extensions=[ + ], + nested_types=[_SRVKEYSPACE_KEYSPACEPARTITION, _SRVKEYSPACE_SERVEDFROM, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2104, + serialized_end=2537, +) + +_TABLET_PORTMAPENTRY.containing_type = _TABLET +_TABLET_TAGSENTRY.containing_type = _TABLET +_TABLET_HEALTHMAPENTRY.containing_type = _TABLET +_TABLET.fields_by_name['alias'].message_type = _TABLETALIAS +_TABLET.fields_by_name['portmap'].message_type = _TABLET_PORTMAPENTRY +_TABLET.fields_by_name['key_range'].message_type = _KEYRANGE +_TABLET.fields_by_name['type'].enum_type = _TABLETTYPE +_TABLET.fields_by_name['tags'].message_type = _TABLET_TAGSENTRY +_TABLET.fields_by_name['health_map'].message_type = _TABLET_HEALTHMAPENTRY +_SHARD_SHARDSERVEDTYPE.fields_by_name['tablet_type'].enum_type = _TABLETTYPE +_SHARD_SHARDSERVEDTYPE.containing_type = _SHARD +_SHARD_SOURCESHARD.fields_by_name['key_range'].message_type = _KEYRANGE +_SHARD_SOURCESHARD.containing_type = _SHARD +_SHARD_TABLETCONTROL.fields_by_name['tablet_type'].enum_type = _TABLETTYPE +_SHARD_TABLETCONTROL.containing_type = _SHARD +_SHARD.fields_by_name['master_alias'].message_type = _TABLETALIAS +_SHARD.fields_by_name['key_range'].message_type = _KEYRANGE +_SHARD.fields_by_name['served_type_map'].message_type = _SHARD_SHARDSERVEDTYPE +_SHARD.fields_by_name['source_shards'].message_type = _SHARD_SOURCESHARD +_SHARD.fields_by_name['tablet_controls'].message_type = _SHARD_TABLETCONTROL +_KEYSPACE_KEYSPACESERVEDFROM.fields_by_name['tablet_type'].enum_type = _TABLETTYPE +_KEYSPACE_KEYSPACESERVEDFROM.containing_type = _KEYSPACE +_KEYSPACE.fields_by_name['sharding_column_type'].enum_type = _KEYSPACEIDTYPE +_KEYSPACE.fields_by_name['served_froms'].message_type = _KEYSPACE_KEYSPACESERVEDFROM +_SHARDREPLICATION_REPLICATIONLINK.fields_by_name['tablet_alias'].message_type = _TABLETALIAS +_SHARDREPLICATION_REPLICATIONLINK.containing_type = _SHARDREPLICATION +_SHARDREPLICATION.fields_by_name['replication_links'].message_type = _SHARDREPLICATION_REPLICATIONLINK +_ENDPOINT_PORTMAPENTRY.containing_type = _ENDPOINT +_ENDPOINT_HEALTHMAPENTRY.containing_type = _ENDPOINT +_ENDPOINT.fields_by_name['portmap'].message_type = _ENDPOINT_PORTMAPENTRY +_ENDPOINT.fields_by_name['health_map'].message_type = _ENDPOINT_HEALTHMAPENTRY +_ENDPOINTS.fields_by_name['entries'].message_type = _ENDPOINT +_SRVSHARD.fields_by_name['key_range'].message_type = _KEYRANGE +_SHARDREFERENCE.fields_by_name['key_range'].message_type = _KEYRANGE +_SRVKEYSPACE_KEYSPACEPARTITION.fields_by_name['served_type'].enum_type = _TABLETTYPE +_SRVKEYSPACE_KEYSPACEPARTITION.fields_by_name['shard_references'].message_type = _SHARDREFERENCE +_SRVKEYSPACE_KEYSPACEPARTITION.containing_type = _SRVKEYSPACE +_SRVKEYSPACE_SERVEDFROM.fields_by_name['tablet_type'].enum_type = _TABLETTYPE +_SRVKEYSPACE_SERVEDFROM.containing_type = _SRVKEYSPACE +_SRVKEYSPACE.fields_by_name['partitions'].message_type = _SRVKEYSPACE_KEYSPACEPARTITION +_SRVKEYSPACE.fields_by_name['sharding_column_type'].enum_type = _KEYSPACEIDTYPE +_SRVKEYSPACE.fields_by_name['served_from'].message_type = _SRVKEYSPACE_SERVEDFROM +DESCRIPTOR.message_types_by_name['KeyRange'] = _KEYRANGE +DESCRIPTOR.message_types_by_name['TabletAlias'] = _TABLETALIAS +DESCRIPTOR.message_types_by_name['Tablet'] = _TABLET +DESCRIPTOR.message_types_by_name['Shard'] = _SHARD +DESCRIPTOR.message_types_by_name['Keyspace'] = _KEYSPACE +DESCRIPTOR.message_types_by_name['ShardReplication'] = _SHARDREPLICATION +DESCRIPTOR.message_types_by_name['EndPoint'] = _ENDPOINT +DESCRIPTOR.message_types_by_name['EndPoints'] = _ENDPOINTS +DESCRIPTOR.message_types_by_name['SrvShard'] = _SRVSHARD +DESCRIPTOR.message_types_by_name['ShardReference'] = _SHARDREFERENCE +DESCRIPTOR.message_types_by_name['SrvKeyspace'] = _SRVKEYSPACE +DESCRIPTOR.enum_types_by_name['KeyspaceIdType'] = _KEYSPACEIDTYPE +DESCRIPTOR.enum_types_by_name['TabletType'] = _TABLETTYPE + +KeyRange = _reflection.GeneratedProtocolMessageType('KeyRange', (_message.Message,), dict( + DESCRIPTOR = _KEYRANGE, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.KeyRange) + )) +_sym_db.RegisterMessage(KeyRange) + +TabletAlias = _reflection.GeneratedProtocolMessageType('TabletAlias', (_message.Message,), dict( + DESCRIPTOR = _TABLETALIAS, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.TabletAlias) + )) +_sym_db.RegisterMessage(TabletAlias) + +Tablet = _reflection.GeneratedProtocolMessageType('Tablet', (_message.Message,), dict( + + PortmapEntry = _reflection.GeneratedProtocolMessageType('PortmapEntry', (_message.Message,), dict( + DESCRIPTOR = _TABLET_PORTMAPENTRY, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.Tablet.PortmapEntry) + )) + , + + TagsEntry = _reflection.GeneratedProtocolMessageType('TagsEntry', (_message.Message,), dict( + DESCRIPTOR = _TABLET_TAGSENTRY, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.Tablet.TagsEntry) + )) + , + + HealthMapEntry = _reflection.GeneratedProtocolMessageType('HealthMapEntry', (_message.Message,), dict( + DESCRIPTOR = _TABLET_HEALTHMAPENTRY, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.Tablet.HealthMapEntry) + )) + , + DESCRIPTOR = _TABLET, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.Tablet) + )) +_sym_db.RegisterMessage(Tablet) +_sym_db.RegisterMessage(Tablet.PortmapEntry) +_sym_db.RegisterMessage(Tablet.TagsEntry) +_sym_db.RegisterMessage(Tablet.HealthMapEntry) + +Shard = _reflection.GeneratedProtocolMessageType('Shard', (_message.Message,), dict( + + ShardServedType = _reflection.GeneratedProtocolMessageType('ShardServedType', (_message.Message,), dict( + DESCRIPTOR = _SHARD_SHARDSERVEDTYPE, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.Shard.ShardServedType) + )) + , + + SourceShard = _reflection.GeneratedProtocolMessageType('SourceShard', (_message.Message,), dict( + DESCRIPTOR = _SHARD_SOURCESHARD, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.Shard.SourceShard) + )) + , + + TabletControl = _reflection.GeneratedProtocolMessageType('TabletControl', (_message.Message,), dict( + DESCRIPTOR = _SHARD_TABLETCONTROL, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.Shard.TabletControl) + )) + , + DESCRIPTOR = _SHARD, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.Shard) + )) +_sym_db.RegisterMessage(Shard) +_sym_db.RegisterMessage(Shard.ShardServedType) +_sym_db.RegisterMessage(Shard.SourceShard) +_sym_db.RegisterMessage(Shard.TabletControl) + +Keyspace = _reflection.GeneratedProtocolMessageType('Keyspace', (_message.Message,), dict( + + KeyspaceServedFrom = _reflection.GeneratedProtocolMessageType('KeyspaceServedFrom', (_message.Message,), dict( + DESCRIPTOR = _KEYSPACE_KEYSPACESERVEDFROM, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.Keyspace.KeyspaceServedFrom) + )) + , + DESCRIPTOR = _KEYSPACE, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.Keyspace) + )) +_sym_db.RegisterMessage(Keyspace) +_sym_db.RegisterMessage(Keyspace.KeyspaceServedFrom) + +ShardReplication = _reflection.GeneratedProtocolMessageType('ShardReplication', (_message.Message,), dict( + + ReplicationLink = _reflection.GeneratedProtocolMessageType('ReplicationLink', (_message.Message,), dict( + DESCRIPTOR = _SHARDREPLICATION_REPLICATIONLINK, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.ShardReplication.ReplicationLink) + )) + , + DESCRIPTOR = _SHARDREPLICATION, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.ShardReplication) + )) +_sym_db.RegisterMessage(ShardReplication) +_sym_db.RegisterMessage(ShardReplication.ReplicationLink) + +EndPoint = _reflection.GeneratedProtocolMessageType('EndPoint', (_message.Message,), dict( + + PortmapEntry = _reflection.GeneratedProtocolMessageType('PortmapEntry', (_message.Message,), dict( + DESCRIPTOR = _ENDPOINT_PORTMAPENTRY, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.EndPoint.PortmapEntry) + )) + , + + HealthMapEntry = _reflection.GeneratedProtocolMessageType('HealthMapEntry', (_message.Message,), dict( + DESCRIPTOR = _ENDPOINT_HEALTHMAPENTRY, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.EndPoint.HealthMapEntry) + )) + , + DESCRIPTOR = _ENDPOINT, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.EndPoint) + )) +_sym_db.RegisterMessage(EndPoint) +_sym_db.RegisterMessage(EndPoint.PortmapEntry) +_sym_db.RegisterMessage(EndPoint.HealthMapEntry) + +EndPoints = _reflection.GeneratedProtocolMessageType('EndPoints', (_message.Message,), dict( + DESCRIPTOR = _ENDPOINTS, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.EndPoints) + )) +_sym_db.RegisterMessage(EndPoints) + +SrvShard = _reflection.GeneratedProtocolMessageType('SrvShard', (_message.Message,), dict( + DESCRIPTOR = _SRVSHARD, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.SrvShard) + )) +_sym_db.RegisterMessage(SrvShard) + +ShardReference = _reflection.GeneratedProtocolMessageType('ShardReference', (_message.Message,), dict( + DESCRIPTOR = _SHARDREFERENCE, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.ShardReference) + )) +_sym_db.RegisterMessage(ShardReference) + +SrvKeyspace = _reflection.GeneratedProtocolMessageType('SrvKeyspace', (_message.Message,), dict( + + KeyspacePartition = _reflection.GeneratedProtocolMessageType('KeyspacePartition', (_message.Message,), dict( + DESCRIPTOR = _SRVKEYSPACE_KEYSPACEPARTITION, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.SrvKeyspace.KeyspacePartition) + )) + , + + ServedFrom = _reflection.GeneratedProtocolMessageType('ServedFrom', (_message.Message,), dict( + DESCRIPTOR = _SRVKEYSPACE_SERVEDFROM, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.SrvKeyspace.ServedFrom) + )) + , + DESCRIPTOR = _SRVKEYSPACE, + __module__ = 'topodata_pb2' + # @@protoc_insertion_point(class_scope:topodata.SrvKeyspace) + )) +_sym_db.RegisterMessage(SrvKeyspace) +_sym_db.RegisterMessage(SrvKeyspace.KeyspacePartition) +_sym_db.RegisterMessage(SrvKeyspace.ServedFrom) + + +_TABLETTYPE.has_options = True +_TABLETTYPE._options = _descriptor._ParseOptions(descriptor_pb2.EnumOptions(), _b('\020\001')) +_TABLET_PORTMAPENTRY.has_options = True +_TABLET_PORTMAPENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_TABLET_TAGSENTRY.has_options = True +_TABLET_TAGSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_TABLET_HEALTHMAPENTRY.has_options = True +_TABLET_HEALTHMAPENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_ENDPOINT_PORTMAPENTRY.has_options = True +_ENDPOINT_PORTMAPENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_ENDPOINT_HEALTHMAPENTRY.has_options = True +_ENDPOINT_HEALTHMAPENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +# @@protoc_insertion_point(module_scope) diff --git a/py/vtctl/vtctldata_pb2.py b/py/vtproto/vtctldata_pb2.py similarity index 100% rename from py/vtctl/vtctldata_pb2.py rename to py/vtproto/vtctldata_pb2.py diff --git a/py/vtctl/vtctlservice_pb2.py b/py/vtproto/vtctlservice_pb2.py similarity index 100% rename from py/vtctl/vtctlservice_pb2.py rename to py/vtproto/vtctlservice_pb2.py diff --git a/py/vtproto/vtgate_pb2.py b/py/vtproto/vtgate_pb2.py new file mode 100644 index 0000000000..7a954d158e --- /dev/null +++ b/py/vtproto/vtgate_pb2.py @@ -0,0 +1,2271 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vtgate.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() + + +import query_pb2 as query__pb2 +import topodata_pb2 as topodata__pb2 +import vtrpc_pb2 as vtrpc__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='vtgate.proto', + package='vtgate', + syntax='proto3', + serialized_pb=_b('\n\x0cvtgate.proto\x12\x06vtgate\x1a\x0bquery.proto\x1a\x0etopodata.proto\x1a\x0bvtrpc.proto\"\x9e\x01\n\x07Session\x12\x16\n\x0ein_transaction\x18\x01 \x01(\x08\x12\x34\n\x0eshard_sessions\x18\x02 \x03(\x0b\x32\x1c.vtgate.Session.ShardSession\x1a\x45\n\x0cShardSession\x12\x1d\n\x06target\x18\x01 \x01(\x0b\x32\r.query.Target\x12\x16\n\x0etransaction_id\x18\x02 \x01(\x03\"\xbe\x01\n\x0e\x45xecuteRequest\x12\"\n\tcaller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\x12 \n\x05query\x18\x03 \x01(\x0b\x32\x11.query.BoundQuery\x12(\n\nTabletType\x18\x04 \x01(\x0e\x32\x14.topodata.TabletType\x12\x1a\n\x12not_in_transaction\x18\x05 \x01(\x08\"w\n\x0f\x45xecuteResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\x12\"\n\x06result\x18\x03 \x01(\x0b\x32\x12.query.QueryResult\"\xe6\x01\n\x14\x45xecuteShardsRequest\x12\"\n\tcaller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\x12 \n\x05query\x18\x03 \x01(\x0b\x32\x11.query.BoundQuery\x12\x10\n\x08keyspace\x18\x04 \x01(\t\x12\x0e\n\x06shards\x18\x05 \x03(\t\x12(\n\nTabletType\x18\x06 \x01(\x0e\x32\x14.topodata.TabletType\x12\x1a\n\x12not_in_transaction\x18\x07 \x01(\x08\"}\n\x15\x45xecuteShardsResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\x12\"\n\x06result\x18\x03 \x01(\x0b\x32\x12.query.QueryResult\"\xf1\x01\n\x19\x45xecuteKeyspaceIdsRequest\x12\"\n\tcaller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\x12 \n\x05query\x18\x03 \x01(\x0b\x32\x11.query.BoundQuery\x12\x10\n\x08keyspace\x18\x04 \x01(\t\x12\x14\n\x0ckeyspace_ids\x18\x05 \x03(\x0c\x12(\n\nTabletType\x18\x06 \x01(\x0e\x32\x14.topodata.TabletType\x12\x1a\n\x12not_in_transaction\x18\x07 \x01(\x08\"\x82\x01\n\x1a\x45xecuteKeyspaceIdsResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\x12\"\n\x06result\x18\x03 \x01(\x0b\x32\x12.query.QueryResult\"\x81\x02\n\x17\x45xecuteKeyRangesRequest\x12\"\n\tcaller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\x12 \n\x05query\x18\x03 \x01(\x0b\x32\x11.query.BoundQuery\x12\x10\n\x08keyspace\x18\x04 \x01(\t\x12&\n\nkey_ranges\x18\x05 \x03(\x0b\x32\x12.topodata.KeyRange\x12(\n\nTabletType\x18\x06 \x01(\x0e\x32\x14.topodata.TabletType\x12\x1a\n\x12not_in_transaction\x18\x07 \x01(\x08\"\x80\x01\n\x18\x45xecuteKeyRangesResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\x12\"\n\x06result\x18\x03 \x01(\x0b\x32\x12.query.QueryResult\"\xbc\x04\n\x17\x45xecuteEntityIdsRequest\x12\"\n\tcaller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\x12 \n\x05query\x18\x03 \x01(\x0b\x32\x11.query.BoundQuery\x12\x10\n\x08keyspace\x18\x04 \x01(\t\x12\x1a\n\x12\x65ntity_column_name\x18\x05 \x01(\t\x12\x45\n\x13\x65ntity_keyspace_ids\x18\x06 \x03(\x0b\x32(.vtgate.ExecuteEntityIdsRequest.EntityId\x12(\n\nTabletType\x18\x07 \x01(\x0e\x32\x14.topodata.TabletType\x12\x1a\n\x12not_in_transaction\x18\x08 \x01(\x08\x1a\xfd\x01\n\x08\x45ntityId\x12?\n\x08xid_type\x18\x01 \x01(\x0e\x32-.vtgate.ExecuteEntityIdsRequest.EntityId.Type\x12\x11\n\txid_bytes\x18\x02 \x01(\x0c\x12\x0f\n\x07xid_int\x18\x03 \x01(\x03\x12\x10\n\x08xid_uint\x18\x04 \x01(\x04\x12\x11\n\txid_float\x18\x05 \x01(\x01\x12\x13\n\x0bkeyspace_id\x18\x06 \x01(\x0c\"R\n\x04Type\x12\r\n\tTYPE_NULL\x10\x00\x12\x0e\n\nTYPE_BYTES\x10\x01\x12\x0c\n\x08TYPE_INT\x10\x02\x12\r\n\tTYPE_UINT\x10\x03\x12\x0e\n\nTYPE_FLOAT\x10\x04\"\x80\x01\n\x18\x45xecuteEntityIdsResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\x12\"\n\x06result\x18\x03 \x01(\x0b\x32\x12.query.QueryResult\"U\n\x0f\x42oundShardQuery\x12 \n\x05query\x18\x01 \x01(\x0b\x32\x11.query.BoundQuery\x12\x10\n\x08keyspace\x18\x02 \x01(\t\x12\x0e\n\x06shards\x18\x03 \x03(\t\"\xb5\x01\n\x19\x45xecuteBatchShardsRequest\x12\"\n\tcaller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\x12(\n\x07queries\x18\x03 \x03(\x0b\x32\x17.vtgate.BoundShardQuery\x12(\n\nTabletType\x18\x06 \x01(\x0e\x32\x14.topodata.TabletType\"\x83\x01\n\x1a\x45xecuteBatchShardsResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\x12#\n\x07results\x18\x03 \x03(\x0b\x32\x12.query.QueryResult\"`\n\x14\x42oundKeyspaceIdQuery\x12 \n\x05query\x18\x01 \x01(\x0b\x32\x11.query.BoundQuery\x12\x10\n\x08keyspace\x18\x02 \x01(\t\x12\x14\n\x0ckeyspace_ids\x18\x03 \x03(\x0c\"\xbf\x01\n\x1e\x45xecuteBatchKeyspaceIdsRequest\x12\"\n\tcaller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\x12-\n\x07queries\x18\x03 \x03(\x0b\x32\x1c.vtgate.BoundKeyspaceIdQuery\x12(\n\nTabletType\x18\x04 \x01(\x0e\x32\x14.topodata.TabletType\"\x88\x01\n\x1f\x45xecuteBatchKeyspaceIdsResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\x12#\n\x07results\x18\x03 \x03(\x0b\x32\x12.query.QueryResult\"\x86\x01\n\x14StreamExecuteRequest\x12\"\n\tcaller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12 \n\x05query\x18\x02 \x01(\x0b\x32\x11.query.BoundQuery\x12(\n\nTabletType\x18\x03 \x01(\x0e\x32\x14.topodata.TabletType\"[\n\x15StreamExecuteResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12\"\n\x06result\x18\x02 \x01(\x0b\x32\x12.query.QueryResult\"\xae\x01\n\x1aStreamExecuteShardsRequest\x12\"\n\tcaller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12 \n\x05query\x18\x02 \x01(\x0b\x32\x11.query.BoundQuery\x12\x10\n\x08keyspace\x18\x03 \x01(\t\x12\x0e\n\x06shards\x18\x04 \x03(\t\x12(\n\nTabletType\x18\x05 \x01(\x0e\x32\x14.topodata.TabletType\"a\n\x1bStreamExecuteShardsResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12\"\n\x06result\x18\x02 \x01(\x0b\x32\x12.query.QueryResult\"\xb9\x01\n\x1fStreamExecuteKeyspaceIdsRequest\x12\"\n\tcaller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12 \n\x05query\x18\x02 \x01(\x0b\x32\x11.query.BoundQuery\x12\x10\n\x08keyspace\x18\x03 \x01(\t\x12\x14\n\x0ckeyspace_ids\x18\x04 \x03(\x0c\x12(\n\nTabletType\x18\x05 \x01(\x0e\x32\x14.topodata.TabletType\"f\n StreamExecuteKeyspaceIdsResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12\"\n\x06result\x18\x02 \x01(\x0b\x32\x12.query.QueryResult\"\xc9\x01\n\x1dStreamExecuteKeyRangesRequest\x12\"\n\tcaller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12 \n\x05query\x18\x02 \x01(\x0b\x32\x11.query.BoundQuery\x12\x10\n\x08keyspace\x18\x03 \x01(\t\x12&\n\nkey_ranges\x18\x04 \x03(\x0b\x32\x12.topodata.KeyRange\x12(\n\nTabletType\x18\x05 \x01(\x0e\x32\x14.topodata.TabletType\"d\n\x1eStreamExecuteKeyRangesResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12\"\n\x06result\x18\x02 \x01(\x0b\x32\x12.query.QueryResult\"2\n\x0c\x42\x65ginRequest\x12\"\n\tcaller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\"Q\n\rBeginResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\"U\n\rCommitRequest\x12\"\n\tcaller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\"0\n\x0e\x43ommitResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\"W\n\x0fRollbackRequest\x12\"\n\tcaller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12 \n\x07session\x18\x02 \x01(\x0b\x32\x0f.vtgate.Session\"2\n\x10RollbackResponse\x12\x1e\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x0f.vtrpc.RPCError\"\x80\x01\n\x11SplitQueryRequest\x12\"\n\tcaller_id\x18\x01 \x01(\x0b\x32\x0f.vtrpc.CallerID\x12\x10\n\x08keyspace\x18\x02 \x01(\t\x12 \n\x05query\x18\x03 \x01(\x0b\x32\x11.query.BoundQuery\x12\x13\n\x0bsplit_count\x18\x04 \x01(\x03\"\xf2\x02\n\x12SplitQueryResponse\x12/\n\x06splits\x18\x01 \x03(\x0b\x32\x1f.vtgate.SplitQueryResponse.Part\x1aH\n\x0cKeyRangePart\x12\x10\n\x08keyspace\x18\x01 \x01(\t\x12&\n\nkey_ranges\x18\x02 \x03(\x0b\x32\x12.topodata.KeyRange\x1a-\n\tShardPart\x12\x10\n\x08keyspace\x18\x01 \x01(\t\x12\x0e\n\x06shards\x18\x02 \x03(\t\x1a\xb1\x01\n\x04Part\x12 \n\x05query\x18\x01 \x01(\x0b\x32\x11.query.BoundQuery\x12?\n\x0ekey_range_part\x18\x02 \x01(\x0b\x32\'.vtgate.SplitQueryResponse.KeyRangePart\x12\x38\n\nshard_part\x18\x03 \x01(\x0b\x32$.vtgate.SplitQueryResponse.ShardPart\x12\x0c\n\x04size\x18\x04 \x01(\x03\x62\x06proto3') + , + dependencies=[query__pb2.DESCRIPTOR,topodata__pb2.DESCRIPTOR,vtrpc__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + +_EXECUTEENTITYIDSREQUEST_ENTITYID_TYPE = _descriptor.EnumDescriptor( + name='Type', + full_name='vtgate.ExecuteEntityIdsRequest.EntityId.Type', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='TYPE_NULL', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_BYTES', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_INT', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_UINT', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_FLOAT', index=4, number=4, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=2160, + serialized_end=2242, +) +_sym_db.RegisterEnumDescriptor(_EXECUTEENTITYIDSREQUEST_ENTITYID_TYPE) + + +_SESSION_SHARDSESSION = _descriptor.Descriptor( + name='ShardSession', + full_name='vtgate.Session.ShardSession', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='target', full_name='vtgate.Session.ShardSession.target', 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='transaction_id', full_name='vtgate.Session.ShardSession.transaction_id', index=1, + number=2, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=156, + serialized_end=225, +) + +_SESSION = _descriptor.Descriptor( + name='Session', + full_name='vtgate.Session', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='in_transaction', full_name='vtgate.Session.in_transaction', index=0, + number=1, 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), + _descriptor.FieldDescriptor( + name='shard_sessions', full_name='vtgate.Session.shard_sessions', 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), + ], + extensions=[ + ], + nested_types=[_SESSION_SHARDSESSION, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=67, + serialized_end=225, +) + + +_EXECUTEREQUEST = _descriptor.Descriptor( + name='ExecuteRequest', + full_name='vtgate.ExecuteRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='vtgate.ExecuteRequest.caller_id', 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='session', full_name='vtgate.ExecuteRequest.session', 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='query', full_name='vtgate.ExecuteRequest.query', 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='TabletType', full_name='vtgate.ExecuteRequest.TabletType', index=3, + number=4, 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='not_in_transaction', full_name='vtgate.ExecuteRequest.not_in_transaction', index=4, + number=5, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=228, + serialized_end=418, +) + + +_EXECUTERESPONSE = _descriptor.Descriptor( + name='ExecuteResponse', + full_name='vtgate.ExecuteResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='vtgate.ExecuteResponse.error', 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='session', full_name='vtgate.ExecuteResponse.session', 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='result', full_name='vtgate.ExecuteResponse.result', 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=420, + serialized_end=539, +) + + +_EXECUTESHARDSREQUEST = _descriptor.Descriptor( + name='ExecuteShardsRequest', + full_name='vtgate.ExecuteShardsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='vtgate.ExecuteShardsRequest.caller_id', 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='session', full_name='vtgate.ExecuteShardsRequest.session', 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='query', full_name='vtgate.ExecuteShardsRequest.query', 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='keyspace', full_name='vtgate.ExecuteShardsRequest.keyspace', 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), + _descriptor.FieldDescriptor( + name='shards', full_name='vtgate.ExecuteShardsRequest.shards', index=4, + number=5, type=9, cpp_type=9, 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='TabletType', full_name='vtgate.ExecuteShardsRequest.TabletType', index=5, + 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='not_in_transaction', full_name='vtgate.ExecuteShardsRequest.not_in_transaction', index=6, + number=7, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=542, + serialized_end=772, +) + + +_EXECUTESHARDSRESPONSE = _descriptor.Descriptor( + name='ExecuteShardsResponse', + full_name='vtgate.ExecuteShardsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='vtgate.ExecuteShardsResponse.error', 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='session', full_name='vtgate.ExecuteShardsResponse.session', 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='result', full_name='vtgate.ExecuteShardsResponse.result', 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=774, + serialized_end=899, +) + + +_EXECUTEKEYSPACEIDSREQUEST = _descriptor.Descriptor( + name='ExecuteKeyspaceIdsRequest', + full_name='vtgate.ExecuteKeyspaceIdsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='vtgate.ExecuteKeyspaceIdsRequest.caller_id', 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='session', full_name='vtgate.ExecuteKeyspaceIdsRequest.session', 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='query', full_name='vtgate.ExecuteKeyspaceIdsRequest.query', 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='keyspace', full_name='vtgate.ExecuteKeyspaceIdsRequest.keyspace', 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), + _descriptor.FieldDescriptor( + name='keyspace_ids', full_name='vtgate.ExecuteKeyspaceIdsRequest.keyspace_ids', index=4, + number=5, type=12, cpp_type=9, 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='TabletType', full_name='vtgate.ExecuteKeyspaceIdsRequest.TabletType', index=5, + 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='not_in_transaction', full_name='vtgate.ExecuteKeyspaceIdsRequest.not_in_transaction', index=6, + number=7, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=902, + serialized_end=1143, +) + + +_EXECUTEKEYSPACEIDSRESPONSE = _descriptor.Descriptor( + name='ExecuteKeyspaceIdsResponse', + full_name='vtgate.ExecuteKeyspaceIdsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='vtgate.ExecuteKeyspaceIdsResponse.error', 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='session', full_name='vtgate.ExecuteKeyspaceIdsResponse.session', 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='result', full_name='vtgate.ExecuteKeyspaceIdsResponse.result', 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=1146, + serialized_end=1276, +) + + +_EXECUTEKEYRANGESREQUEST = _descriptor.Descriptor( + name='ExecuteKeyRangesRequest', + full_name='vtgate.ExecuteKeyRangesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='vtgate.ExecuteKeyRangesRequest.caller_id', 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='session', full_name='vtgate.ExecuteKeyRangesRequest.session', 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='query', full_name='vtgate.ExecuteKeyRangesRequest.query', 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='keyspace', full_name='vtgate.ExecuteKeyRangesRequest.keyspace', 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), + _descriptor.FieldDescriptor( + name='key_ranges', full_name='vtgate.ExecuteKeyRangesRequest.key_ranges', index=4, + number=5, 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='TabletType', full_name='vtgate.ExecuteKeyRangesRequest.TabletType', index=5, + 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='not_in_transaction', full_name='vtgate.ExecuteKeyRangesRequest.not_in_transaction', index=6, + number=7, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1279, + serialized_end=1536, +) + + +_EXECUTEKEYRANGESRESPONSE = _descriptor.Descriptor( + name='ExecuteKeyRangesResponse', + full_name='vtgate.ExecuteKeyRangesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='vtgate.ExecuteKeyRangesResponse.error', 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='session', full_name='vtgate.ExecuteKeyRangesResponse.session', 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='result', full_name='vtgate.ExecuteKeyRangesResponse.result', 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=1539, + serialized_end=1667, +) + + +_EXECUTEENTITYIDSREQUEST_ENTITYID = _descriptor.Descriptor( + name='EntityId', + full_name='vtgate.ExecuteEntityIdsRequest.EntityId', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='xid_type', full_name='vtgate.ExecuteEntityIdsRequest.EntityId.xid_type', index=0, + number=1, 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='xid_bytes', full_name='vtgate.ExecuteEntityIdsRequest.EntityId.xid_bytes', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='xid_int', full_name='vtgate.ExecuteEntityIdsRequest.EntityId.xid_int', index=2, + number=3, type=3, cpp_type=2, 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='xid_uint', full_name='vtgate.ExecuteEntityIdsRequest.EntityId.xid_uint', index=3, + number=4, type=4, cpp_type=4, 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='xid_float', full_name='vtgate.ExecuteEntityIdsRequest.EntityId.xid_float', index=4, + number=5, type=1, cpp_type=5, 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='keyspace_id', full_name='vtgate.ExecuteEntityIdsRequest.EntityId.keyspace_id', index=5, + number=6, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _EXECUTEENTITYIDSREQUEST_ENTITYID_TYPE, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1989, + serialized_end=2242, +) + +_EXECUTEENTITYIDSREQUEST = _descriptor.Descriptor( + name='ExecuteEntityIdsRequest', + full_name='vtgate.ExecuteEntityIdsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='vtgate.ExecuteEntityIdsRequest.caller_id', 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='session', full_name='vtgate.ExecuteEntityIdsRequest.session', 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='query', full_name='vtgate.ExecuteEntityIdsRequest.query', 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='keyspace', full_name='vtgate.ExecuteEntityIdsRequest.keyspace', 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), + _descriptor.FieldDescriptor( + name='entity_column_name', full_name='vtgate.ExecuteEntityIdsRequest.entity_column_name', index=4, + number=5, 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='entity_keyspace_ids', full_name='vtgate.ExecuteEntityIdsRequest.entity_keyspace_ids', index=5, + number=6, 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='TabletType', full_name='vtgate.ExecuteEntityIdsRequest.TabletType', index=6, + number=7, 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='not_in_transaction', full_name='vtgate.ExecuteEntityIdsRequest.not_in_transaction', index=7, + number=8, 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=[_EXECUTEENTITYIDSREQUEST_ENTITYID, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1670, + serialized_end=2242, +) + + +_EXECUTEENTITYIDSRESPONSE = _descriptor.Descriptor( + name='ExecuteEntityIdsResponse', + full_name='vtgate.ExecuteEntityIdsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='vtgate.ExecuteEntityIdsResponse.error', 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='session', full_name='vtgate.ExecuteEntityIdsResponse.session', 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='result', full_name='vtgate.ExecuteEntityIdsResponse.result', 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=2245, + serialized_end=2373, +) + + +_BOUNDSHARDQUERY = _descriptor.Descriptor( + name='BoundShardQuery', + full_name='vtgate.BoundShardQuery', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='query', full_name='vtgate.BoundShardQuery.query', 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='keyspace', full_name='vtgate.BoundShardQuery.keyspace', 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='shards', full_name='vtgate.BoundShardQuery.shards', index=2, + number=3, type=9, cpp_type=9, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2375, + serialized_end=2460, +) + + +_EXECUTEBATCHSHARDSREQUEST = _descriptor.Descriptor( + name='ExecuteBatchShardsRequest', + full_name='vtgate.ExecuteBatchShardsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='vtgate.ExecuteBatchShardsRequest.caller_id', 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='session', full_name='vtgate.ExecuteBatchShardsRequest.session', 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='queries', full_name='vtgate.ExecuteBatchShardsRequest.queries', 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='TabletType', full_name='vtgate.ExecuteBatchShardsRequest.TabletType', index=3, + 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2463, + serialized_end=2644, +) + + +_EXECUTEBATCHSHARDSRESPONSE = _descriptor.Descriptor( + name='ExecuteBatchShardsResponse', + full_name='vtgate.ExecuteBatchShardsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='vtgate.ExecuteBatchShardsResponse.error', 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='session', full_name='vtgate.ExecuteBatchShardsResponse.session', 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='results', full_name='vtgate.ExecuteBatchShardsResponse.results', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2647, + serialized_end=2778, +) + + +_BOUNDKEYSPACEIDQUERY = _descriptor.Descriptor( + name='BoundKeyspaceIdQuery', + full_name='vtgate.BoundKeyspaceIdQuery', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='query', full_name='vtgate.BoundKeyspaceIdQuery.query', 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='keyspace', full_name='vtgate.BoundKeyspaceIdQuery.keyspace', 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='keyspace_ids', full_name='vtgate.BoundKeyspaceIdQuery.keyspace_ids', index=2, + number=3, type=12, cpp_type=9, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2780, + serialized_end=2876, +) + + +_EXECUTEBATCHKEYSPACEIDSREQUEST = _descriptor.Descriptor( + name='ExecuteBatchKeyspaceIdsRequest', + full_name='vtgate.ExecuteBatchKeyspaceIdsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='vtgate.ExecuteBatchKeyspaceIdsRequest.caller_id', 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='session', full_name='vtgate.ExecuteBatchKeyspaceIdsRequest.session', 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='queries', full_name='vtgate.ExecuteBatchKeyspaceIdsRequest.queries', 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='TabletType', full_name='vtgate.ExecuteBatchKeyspaceIdsRequest.TabletType', index=3, + number=4, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2879, + serialized_end=3070, +) + + +_EXECUTEBATCHKEYSPACEIDSRESPONSE = _descriptor.Descriptor( + name='ExecuteBatchKeyspaceIdsResponse', + full_name='vtgate.ExecuteBatchKeyspaceIdsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='vtgate.ExecuteBatchKeyspaceIdsResponse.error', 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='session', full_name='vtgate.ExecuteBatchKeyspaceIdsResponse.session', 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='results', full_name='vtgate.ExecuteBatchKeyspaceIdsResponse.results', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3073, + serialized_end=3209, +) + + +_STREAMEXECUTEREQUEST = _descriptor.Descriptor( + name='StreamExecuteRequest', + full_name='vtgate.StreamExecuteRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='vtgate.StreamExecuteRequest.caller_id', 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='query', full_name='vtgate.StreamExecuteRequest.query', 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='TabletType', full_name='vtgate.StreamExecuteRequest.TabletType', index=2, + number=3, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3212, + serialized_end=3346, +) + + +_STREAMEXECUTERESPONSE = _descriptor.Descriptor( + name='StreamExecuteResponse', + full_name='vtgate.StreamExecuteResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='vtgate.StreamExecuteResponse.error', 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='result', full_name='vtgate.StreamExecuteResponse.result', 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=3348, + serialized_end=3439, +) + + +_STREAMEXECUTESHARDSREQUEST = _descriptor.Descriptor( + name='StreamExecuteShardsRequest', + full_name='vtgate.StreamExecuteShardsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='vtgate.StreamExecuteShardsRequest.caller_id', 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='query', full_name='vtgate.StreamExecuteShardsRequest.query', 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='keyspace', full_name='vtgate.StreamExecuteShardsRequest.keyspace', 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='shards', full_name='vtgate.StreamExecuteShardsRequest.shards', index=3, + number=4, type=9, cpp_type=9, 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='TabletType', full_name='vtgate.StreamExecuteShardsRequest.TabletType', index=4, + number=5, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3442, + serialized_end=3616, +) + + +_STREAMEXECUTESHARDSRESPONSE = _descriptor.Descriptor( + name='StreamExecuteShardsResponse', + full_name='vtgate.StreamExecuteShardsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='vtgate.StreamExecuteShardsResponse.error', 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='result', full_name='vtgate.StreamExecuteShardsResponse.result', 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=3618, + serialized_end=3715, +) + + +_STREAMEXECUTEKEYSPACEIDSREQUEST = _descriptor.Descriptor( + name='StreamExecuteKeyspaceIdsRequest', + full_name='vtgate.StreamExecuteKeyspaceIdsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='vtgate.StreamExecuteKeyspaceIdsRequest.caller_id', 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='query', full_name='vtgate.StreamExecuteKeyspaceIdsRequest.query', 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='keyspace', full_name='vtgate.StreamExecuteKeyspaceIdsRequest.keyspace', 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='keyspace_ids', full_name='vtgate.StreamExecuteKeyspaceIdsRequest.keyspace_ids', index=3, + number=4, type=12, cpp_type=9, 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='TabletType', full_name='vtgate.StreamExecuteKeyspaceIdsRequest.TabletType', index=4, + number=5, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3718, + serialized_end=3903, +) + + +_STREAMEXECUTEKEYSPACEIDSRESPONSE = _descriptor.Descriptor( + name='StreamExecuteKeyspaceIdsResponse', + full_name='vtgate.StreamExecuteKeyspaceIdsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='vtgate.StreamExecuteKeyspaceIdsResponse.error', 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='result', full_name='vtgate.StreamExecuteKeyspaceIdsResponse.result', 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=3905, + serialized_end=4007, +) + + +_STREAMEXECUTEKEYRANGESREQUEST = _descriptor.Descriptor( + name='StreamExecuteKeyRangesRequest', + full_name='vtgate.StreamExecuteKeyRangesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='vtgate.StreamExecuteKeyRangesRequest.caller_id', 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='query', full_name='vtgate.StreamExecuteKeyRangesRequest.query', 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='keyspace', full_name='vtgate.StreamExecuteKeyRangesRequest.keyspace', 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='key_ranges', full_name='vtgate.StreamExecuteKeyRangesRequest.key_ranges', index=3, + number=4, 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='TabletType', full_name='vtgate.StreamExecuteKeyRangesRequest.TabletType', index=4, + number=5, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4010, + serialized_end=4211, +) + + +_STREAMEXECUTEKEYRANGESRESPONSE = _descriptor.Descriptor( + name='StreamExecuteKeyRangesResponse', + full_name='vtgate.StreamExecuteKeyRangesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='vtgate.StreamExecuteKeyRangesResponse.error', 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='result', full_name='vtgate.StreamExecuteKeyRangesResponse.result', 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=4213, + serialized_end=4313, +) + + +_BEGINREQUEST = _descriptor.Descriptor( + name='BeginRequest', + full_name='vtgate.BeginRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='vtgate.BeginRequest.caller_id', 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=4315, + serialized_end=4365, +) + + +_BEGINRESPONSE = _descriptor.Descriptor( + name='BeginResponse', + full_name='vtgate.BeginResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='vtgate.BeginResponse.error', 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='session', full_name='vtgate.BeginResponse.session', 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=4367, + serialized_end=4448, +) + + +_COMMITREQUEST = _descriptor.Descriptor( + name='CommitRequest', + full_name='vtgate.CommitRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='vtgate.CommitRequest.caller_id', 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='session', full_name='vtgate.CommitRequest.session', 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=4450, + serialized_end=4535, +) + + +_COMMITRESPONSE = _descriptor.Descriptor( + name='CommitResponse', + full_name='vtgate.CommitResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='vtgate.CommitResponse.error', 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=4537, + serialized_end=4585, +) + + +_ROLLBACKREQUEST = _descriptor.Descriptor( + name='RollbackRequest', + full_name='vtgate.RollbackRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='vtgate.RollbackRequest.caller_id', 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='session', full_name='vtgate.RollbackRequest.session', 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=4587, + serialized_end=4674, +) + + +_ROLLBACKRESPONSE = _descriptor.Descriptor( + name='RollbackResponse', + full_name='vtgate.RollbackResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='vtgate.RollbackResponse.error', 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=4676, + serialized_end=4726, +) + + +_SPLITQUERYREQUEST = _descriptor.Descriptor( + name='SplitQueryRequest', + full_name='vtgate.SplitQueryRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='vtgate.SplitQueryRequest.caller_id', 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='keyspace', full_name='vtgate.SplitQueryRequest.keyspace', 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='query', full_name='vtgate.SplitQueryRequest.query', 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='split_count', full_name='vtgate.SplitQueryRequest.split_count', index=3, + number=4, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4729, + serialized_end=4857, +) + + +_SPLITQUERYRESPONSE_KEYRANGEPART = _descriptor.Descriptor( + name='KeyRangePart', + full_name='vtgate.SplitQueryResponse.KeyRangePart', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='keyspace', full_name='vtgate.SplitQueryResponse.KeyRangePart.keyspace', 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='key_ranges', full_name='vtgate.SplitQueryResponse.KeyRangePart.key_ranges', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4931, + serialized_end=5003, +) + +_SPLITQUERYRESPONSE_SHARDPART = _descriptor.Descriptor( + name='ShardPart', + full_name='vtgate.SplitQueryResponse.ShardPart', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='keyspace', full_name='vtgate.SplitQueryResponse.ShardPart.keyspace', 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='shards', full_name='vtgate.SplitQueryResponse.ShardPart.shards', index=1, + number=2, type=9, cpp_type=9, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5005, + serialized_end=5050, +) + +_SPLITQUERYRESPONSE_PART = _descriptor.Descriptor( + name='Part', + full_name='vtgate.SplitQueryResponse.Part', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='query', full_name='vtgate.SplitQueryResponse.Part.query', 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='key_range_part', full_name='vtgate.SplitQueryResponse.Part.key_range_part', 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='shard_part', full_name='vtgate.SplitQueryResponse.Part.shard_part', 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='size', full_name='vtgate.SplitQueryResponse.Part.size', index=3, + number=4, type=3, cpp_type=2, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5053, + serialized_end=5230, +) + +_SPLITQUERYRESPONSE = _descriptor.Descriptor( + name='SplitQueryResponse', + full_name='vtgate.SplitQueryResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='splits', full_name='vtgate.SplitQueryResponse.splits', 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), + ], + extensions=[ + ], + nested_types=[_SPLITQUERYRESPONSE_KEYRANGEPART, _SPLITQUERYRESPONSE_SHARDPART, _SPLITQUERYRESPONSE_PART, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4860, + serialized_end=5230, +) + +_SESSION_SHARDSESSION.fields_by_name['target'].message_type = query__pb2._TARGET +_SESSION_SHARDSESSION.containing_type = _SESSION +_SESSION.fields_by_name['shard_sessions'].message_type = _SESSION_SHARDSESSION +_EXECUTEREQUEST.fields_by_name['caller_id'].message_type = vtrpc__pb2._CALLERID +_EXECUTEREQUEST.fields_by_name['session'].message_type = _SESSION +_EXECUTEREQUEST.fields_by_name['query'].message_type = query__pb2._BOUNDQUERY +_EXECUTEREQUEST.fields_by_name['TabletType'].enum_type = topodata__pb2._TABLETTYPE +_EXECUTERESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_EXECUTERESPONSE.fields_by_name['session'].message_type = _SESSION +_EXECUTERESPONSE.fields_by_name['result'].message_type = query__pb2._QUERYRESULT +_EXECUTESHARDSREQUEST.fields_by_name['caller_id'].message_type = vtrpc__pb2._CALLERID +_EXECUTESHARDSREQUEST.fields_by_name['session'].message_type = _SESSION +_EXECUTESHARDSREQUEST.fields_by_name['query'].message_type = query__pb2._BOUNDQUERY +_EXECUTESHARDSREQUEST.fields_by_name['TabletType'].enum_type = topodata__pb2._TABLETTYPE +_EXECUTESHARDSRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_EXECUTESHARDSRESPONSE.fields_by_name['session'].message_type = _SESSION +_EXECUTESHARDSRESPONSE.fields_by_name['result'].message_type = query__pb2._QUERYRESULT +_EXECUTEKEYSPACEIDSREQUEST.fields_by_name['caller_id'].message_type = vtrpc__pb2._CALLERID +_EXECUTEKEYSPACEIDSREQUEST.fields_by_name['session'].message_type = _SESSION +_EXECUTEKEYSPACEIDSREQUEST.fields_by_name['query'].message_type = query__pb2._BOUNDQUERY +_EXECUTEKEYSPACEIDSREQUEST.fields_by_name['TabletType'].enum_type = topodata__pb2._TABLETTYPE +_EXECUTEKEYSPACEIDSRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_EXECUTEKEYSPACEIDSRESPONSE.fields_by_name['session'].message_type = _SESSION +_EXECUTEKEYSPACEIDSRESPONSE.fields_by_name['result'].message_type = query__pb2._QUERYRESULT +_EXECUTEKEYRANGESREQUEST.fields_by_name['caller_id'].message_type = vtrpc__pb2._CALLERID +_EXECUTEKEYRANGESREQUEST.fields_by_name['session'].message_type = _SESSION +_EXECUTEKEYRANGESREQUEST.fields_by_name['query'].message_type = query__pb2._BOUNDQUERY +_EXECUTEKEYRANGESREQUEST.fields_by_name['key_ranges'].message_type = topodata__pb2._KEYRANGE +_EXECUTEKEYRANGESREQUEST.fields_by_name['TabletType'].enum_type = topodata__pb2._TABLETTYPE +_EXECUTEKEYRANGESRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_EXECUTEKEYRANGESRESPONSE.fields_by_name['session'].message_type = _SESSION +_EXECUTEKEYRANGESRESPONSE.fields_by_name['result'].message_type = query__pb2._QUERYRESULT +_EXECUTEENTITYIDSREQUEST_ENTITYID.fields_by_name['xid_type'].enum_type = _EXECUTEENTITYIDSREQUEST_ENTITYID_TYPE +_EXECUTEENTITYIDSREQUEST_ENTITYID.containing_type = _EXECUTEENTITYIDSREQUEST +_EXECUTEENTITYIDSREQUEST_ENTITYID_TYPE.containing_type = _EXECUTEENTITYIDSREQUEST_ENTITYID +_EXECUTEENTITYIDSREQUEST.fields_by_name['caller_id'].message_type = vtrpc__pb2._CALLERID +_EXECUTEENTITYIDSREQUEST.fields_by_name['session'].message_type = _SESSION +_EXECUTEENTITYIDSREQUEST.fields_by_name['query'].message_type = query__pb2._BOUNDQUERY +_EXECUTEENTITYIDSREQUEST.fields_by_name['entity_keyspace_ids'].message_type = _EXECUTEENTITYIDSREQUEST_ENTITYID +_EXECUTEENTITYIDSREQUEST.fields_by_name['TabletType'].enum_type = topodata__pb2._TABLETTYPE +_EXECUTEENTITYIDSRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_EXECUTEENTITYIDSRESPONSE.fields_by_name['session'].message_type = _SESSION +_EXECUTEENTITYIDSRESPONSE.fields_by_name['result'].message_type = query__pb2._QUERYRESULT +_BOUNDSHARDQUERY.fields_by_name['query'].message_type = query__pb2._BOUNDQUERY +_EXECUTEBATCHSHARDSREQUEST.fields_by_name['caller_id'].message_type = vtrpc__pb2._CALLERID +_EXECUTEBATCHSHARDSREQUEST.fields_by_name['session'].message_type = _SESSION +_EXECUTEBATCHSHARDSREQUEST.fields_by_name['queries'].message_type = _BOUNDSHARDQUERY +_EXECUTEBATCHSHARDSREQUEST.fields_by_name['TabletType'].enum_type = topodata__pb2._TABLETTYPE +_EXECUTEBATCHSHARDSRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_EXECUTEBATCHSHARDSRESPONSE.fields_by_name['session'].message_type = _SESSION +_EXECUTEBATCHSHARDSRESPONSE.fields_by_name['results'].message_type = query__pb2._QUERYRESULT +_BOUNDKEYSPACEIDQUERY.fields_by_name['query'].message_type = query__pb2._BOUNDQUERY +_EXECUTEBATCHKEYSPACEIDSREQUEST.fields_by_name['caller_id'].message_type = vtrpc__pb2._CALLERID +_EXECUTEBATCHKEYSPACEIDSREQUEST.fields_by_name['session'].message_type = _SESSION +_EXECUTEBATCHKEYSPACEIDSREQUEST.fields_by_name['queries'].message_type = _BOUNDKEYSPACEIDQUERY +_EXECUTEBATCHKEYSPACEIDSREQUEST.fields_by_name['TabletType'].enum_type = topodata__pb2._TABLETTYPE +_EXECUTEBATCHKEYSPACEIDSRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_EXECUTEBATCHKEYSPACEIDSRESPONSE.fields_by_name['session'].message_type = _SESSION +_EXECUTEBATCHKEYSPACEIDSRESPONSE.fields_by_name['results'].message_type = query__pb2._QUERYRESULT +_STREAMEXECUTEREQUEST.fields_by_name['caller_id'].message_type = vtrpc__pb2._CALLERID +_STREAMEXECUTEREQUEST.fields_by_name['query'].message_type = query__pb2._BOUNDQUERY +_STREAMEXECUTEREQUEST.fields_by_name['TabletType'].enum_type = topodata__pb2._TABLETTYPE +_STREAMEXECUTERESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_STREAMEXECUTERESPONSE.fields_by_name['result'].message_type = query__pb2._QUERYRESULT +_STREAMEXECUTESHARDSREQUEST.fields_by_name['caller_id'].message_type = vtrpc__pb2._CALLERID +_STREAMEXECUTESHARDSREQUEST.fields_by_name['query'].message_type = query__pb2._BOUNDQUERY +_STREAMEXECUTESHARDSREQUEST.fields_by_name['TabletType'].enum_type = topodata__pb2._TABLETTYPE +_STREAMEXECUTESHARDSRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_STREAMEXECUTESHARDSRESPONSE.fields_by_name['result'].message_type = query__pb2._QUERYRESULT +_STREAMEXECUTEKEYSPACEIDSREQUEST.fields_by_name['caller_id'].message_type = vtrpc__pb2._CALLERID +_STREAMEXECUTEKEYSPACEIDSREQUEST.fields_by_name['query'].message_type = query__pb2._BOUNDQUERY +_STREAMEXECUTEKEYSPACEIDSREQUEST.fields_by_name['TabletType'].enum_type = topodata__pb2._TABLETTYPE +_STREAMEXECUTEKEYSPACEIDSRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_STREAMEXECUTEKEYSPACEIDSRESPONSE.fields_by_name['result'].message_type = query__pb2._QUERYRESULT +_STREAMEXECUTEKEYRANGESREQUEST.fields_by_name['caller_id'].message_type = vtrpc__pb2._CALLERID +_STREAMEXECUTEKEYRANGESREQUEST.fields_by_name['query'].message_type = query__pb2._BOUNDQUERY +_STREAMEXECUTEKEYRANGESREQUEST.fields_by_name['key_ranges'].message_type = topodata__pb2._KEYRANGE +_STREAMEXECUTEKEYRANGESREQUEST.fields_by_name['TabletType'].enum_type = topodata__pb2._TABLETTYPE +_STREAMEXECUTEKEYRANGESRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_STREAMEXECUTEKEYRANGESRESPONSE.fields_by_name['result'].message_type = query__pb2._QUERYRESULT +_BEGINREQUEST.fields_by_name['caller_id'].message_type = vtrpc__pb2._CALLERID +_BEGINRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_BEGINRESPONSE.fields_by_name['session'].message_type = _SESSION +_COMMITREQUEST.fields_by_name['caller_id'].message_type = vtrpc__pb2._CALLERID +_COMMITREQUEST.fields_by_name['session'].message_type = _SESSION +_COMMITRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_ROLLBACKREQUEST.fields_by_name['caller_id'].message_type = vtrpc__pb2._CALLERID +_ROLLBACKREQUEST.fields_by_name['session'].message_type = _SESSION +_ROLLBACKRESPONSE.fields_by_name['error'].message_type = vtrpc__pb2._RPCERROR +_SPLITQUERYREQUEST.fields_by_name['caller_id'].message_type = vtrpc__pb2._CALLERID +_SPLITQUERYREQUEST.fields_by_name['query'].message_type = query__pb2._BOUNDQUERY +_SPLITQUERYRESPONSE_KEYRANGEPART.fields_by_name['key_ranges'].message_type = topodata__pb2._KEYRANGE +_SPLITQUERYRESPONSE_KEYRANGEPART.containing_type = _SPLITQUERYRESPONSE +_SPLITQUERYRESPONSE_SHARDPART.containing_type = _SPLITQUERYRESPONSE +_SPLITQUERYRESPONSE_PART.fields_by_name['query'].message_type = query__pb2._BOUNDQUERY +_SPLITQUERYRESPONSE_PART.fields_by_name['key_range_part'].message_type = _SPLITQUERYRESPONSE_KEYRANGEPART +_SPLITQUERYRESPONSE_PART.fields_by_name['shard_part'].message_type = _SPLITQUERYRESPONSE_SHARDPART +_SPLITQUERYRESPONSE_PART.containing_type = _SPLITQUERYRESPONSE +_SPLITQUERYRESPONSE.fields_by_name['splits'].message_type = _SPLITQUERYRESPONSE_PART +DESCRIPTOR.message_types_by_name['Session'] = _SESSION +DESCRIPTOR.message_types_by_name['ExecuteRequest'] = _EXECUTEREQUEST +DESCRIPTOR.message_types_by_name['ExecuteResponse'] = _EXECUTERESPONSE +DESCRIPTOR.message_types_by_name['ExecuteShardsRequest'] = _EXECUTESHARDSREQUEST +DESCRIPTOR.message_types_by_name['ExecuteShardsResponse'] = _EXECUTESHARDSRESPONSE +DESCRIPTOR.message_types_by_name['ExecuteKeyspaceIdsRequest'] = _EXECUTEKEYSPACEIDSREQUEST +DESCRIPTOR.message_types_by_name['ExecuteKeyspaceIdsResponse'] = _EXECUTEKEYSPACEIDSRESPONSE +DESCRIPTOR.message_types_by_name['ExecuteKeyRangesRequest'] = _EXECUTEKEYRANGESREQUEST +DESCRIPTOR.message_types_by_name['ExecuteKeyRangesResponse'] = _EXECUTEKEYRANGESRESPONSE +DESCRIPTOR.message_types_by_name['ExecuteEntityIdsRequest'] = _EXECUTEENTITYIDSREQUEST +DESCRIPTOR.message_types_by_name['ExecuteEntityIdsResponse'] = _EXECUTEENTITYIDSRESPONSE +DESCRIPTOR.message_types_by_name['BoundShardQuery'] = _BOUNDSHARDQUERY +DESCRIPTOR.message_types_by_name['ExecuteBatchShardsRequest'] = _EXECUTEBATCHSHARDSREQUEST +DESCRIPTOR.message_types_by_name['ExecuteBatchShardsResponse'] = _EXECUTEBATCHSHARDSRESPONSE +DESCRIPTOR.message_types_by_name['BoundKeyspaceIdQuery'] = _BOUNDKEYSPACEIDQUERY +DESCRIPTOR.message_types_by_name['ExecuteBatchKeyspaceIdsRequest'] = _EXECUTEBATCHKEYSPACEIDSREQUEST +DESCRIPTOR.message_types_by_name['ExecuteBatchKeyspaceIdsResponse'] = _EXECUTEBATCHKEYSPACEIDSRESPONSE +DESCRIPTOR.message_types_by_name['StreamExecuteRequest'] = _STREAMEXECUTEREQUEST +DESCRIPTOR.message_types_by_name['StreamExecuteResponse'] = _STREAMEXECUTERESPONSE +DESCRIPTOR.message_types_by_name['StreamExecuteShardsRequest'] = _STREAMEXECUTESHARDSREQUEST +DESCRIPTOR.message_types_by_name['StreamExecuteShardsResponse'] = _STREAMEXECUTESHARDSRESPONSE +DESCRIPTOR.message_types_by_name['StreamExecuteKeyspaceIdsRequest'] = _STREAMEXECUTEKEYSPACEIDSREQUEST +DESCRIPTOR.message_types_by_name['StreamExecuteKeyspaceIdsResponse'] = _STREAMEXECUTEKEYSPACEIDSRESPONSE +DESCRIPTOR.message_types_by_name['StreamExecuteKeyRangesRequest'] = _STREAMEXECUTEKEYRANGESREQUEST +DESCRIPTOR.message_types_by_name['StreamExecuteKeyRangesResponse'] = _STREAMEXECUTEKEYRANGESRESPONSE +DESCRIPTOR.message_types_by_name['BeginRequest'] = _BEGINREQUEST +DESCRIPTOR.message_types_by_name['BeginResponse'] = _BEGINRESPONSE +DESCRIPTOR.message_types_by_name['CommitRequest'] = _COMMITREQUEST +DESCRIPTOR.message_types_by_name['CommitResponse'] = _COMMITRESPONSE +DESCRIPTOR.message_types_by_name['RollbackRequest'] = _ROLLBACKREQUEST +DESCRIPTOR.message_types_by_name['RollbackResponse'] = _ROLLBACKRESPONSE +DESCRIPTOR.message_types_by_name['SplitQueryRequest'] = _SPLITQUERYREQUEST +DESCRIPTOR.message_types_by_name['SplitQueryResponse'] = _SPLITQUERYRESPONSE + +Session = _reflection.GeneratedProtocolMessageType('Session', (_message.Message,), dict( + + ShardSession = _reflection.GeneratedProtocolMessageType('ShardSession', (_message.Message,), dict( + DESCRIPTOR = _SESSION_SHARDSESSION, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.Session.ShardSession) + )) + , + DESCRIPTOR = _SESSION, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.Session) + )) +_sym_db.RegisterMessage(Session) +_sym_db.RegisterMessage(Session.ShardSession) + +ExecuteRequest = _reflection.GeneratedProtocolMessageType('ExecuteRequest', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEREQUEST, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.ExecuteRequest) + )) +_sym_db.RegisterMessage(ExecuteRequest) + +ExecuteResponse = _reflection.GeneratedProtocolMessageType('ExecuteResponse', (_message.Message,), dict( + DESCRIPTOR = _EXECUTERESPONSE, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.ExecuteResponse) + )) +_sym_db.RegisterMessage(ExecuteResponse) + +ExecuteShardsRequest = _reflection.GeneratedProtocolMessageType('ExecuteShardsRequest', (_message.Message,), dict( + DESCRIPTOR = _EXECUTESHARDSREQUEST, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.ExecuteShardsRequest) + )) +_sym_db.RegisterMessage(ExecuteShardsRequest) + +ExecuteShardsResponse = _reflection.GeneratedProtocolMessageType('ExecuteShardsResponse', (_message.Message,), dict( + DESCRIPTOR = _EXECUTESHARDSRESPONSE, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.ExecuteShardsResponse) + )) +_sym_db.RegisterMessage(ExecuteShardsResponse) + +ExecuteKeyspaceIdsRequest = _reflection.GeneratedProtocolMessageType('ExecuteKeyspaceIdsRequest', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEKEYSPACEIDSREQUEST, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.ExecuteKeyspaceIdsRequest) + )) +_sym_db.RegisterMessage(ExecuteKeyspaceIdsRequest) + +ExecuteKeyspaceIdsResponse = _reflection.GeneratedProtocolMessageType('ExecuteKeyspaceIdsResponse', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEKEYSPACEIDSRESPONSE, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.ExecuteKeyspaceIdsResponse) + )) +_sym_db.RegisterMessage(ExecuteKeyspaceIdsResponse) + +ExecuteKeyRangesRequest = _reflection.GeneratedProtocolMessageType('ExecuteKeyRangesRequest', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEKEYRANGESREQUEST, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.ExecuteKeyRangesRequest) + )) +_sym_db.RegisterMessage(ExecuteKeyRangesRequest) + +ExecuteKeyRangesResponse = _reflection.GeneratedProtocolMessageType('ExecuteKeyRangesResponse', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEKEYRANGESRESPONSE, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.ExecuteKeyRangesResponse) + )) +_sym_db.RegisterMessage(ExecuteKeyRangesResponse) + +ExecuteEntityIdsRequest = _reflection.GeneratedProtocolMessageType('ExecuteEntityIdsRequest', (_message.Message,), dict( + + EntityId = _reflection.GeneratedProtocolMessageType('EntityId', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEENTITYIDSREQUEST_ENTITYID, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.ExecuteEntityIdsRequest.EntityId) + )) + , + DESCRIPTOR = _EXECUTEENTITYIDSREQUEST, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.ExecuteEntityIdsRequest) + )) +_sym_db.RegisterMessage(ExecuteEntityIdsRequest) +_sym_db.RegisterMessage(ExecuteEntityIdsRequest.EntityId) + +ExecuteEntityIdsResponse = _reflection.GeneratedProtocolMessageType('ExecuteEntityIdsResponse', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEENTITYIDSRESPONSE, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.ExecuteEntityIdsResponse) + )) +_sym_db.RegisterMessage(ExecuteEntityIdsResponse) + +BoundShardQuery = _reflection.GeneratedProtocolMessageType('BoundShardQuery', (_message.Message,), dict( + DESCRIPTOR = _BOUNDSHARDQUERY, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.BoundShardQuery) + )) +_sym_db.RegisterMessage(BoundShardQuery) + +ExecuteBatchShardsRequest = _reflection.GeneratedProtocolMessageType('ExecuteBatchShardsRequest', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEBATCHSHARDSREQUEST, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.ExecuteBatchShardsRequest) + )) +_sym_db.RegisterMessage(ExecuteBatchShardsRequest) + +ExecuteBatchShardsResponse = _reflection.GeneratedProtocolMessageType('ExecuteBatchShardsResponse', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEBATCHSHARDSRESPONSE, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.ExecuteBatchShardsResponse) + )) +_sym_db.RegisterMessage(ExecuteBatchShardsResponse) + +BoundKeyspaceIdQuery = _reflection.GeneratedProtocolMessageType('BoundKeyspaceIdQuery', (_message.Message,), dict( + DESCRIPTOR = _BOUNDKEYSPACEIDQUERY, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.BoundKeyspaceIdQuery) + )) +_sym_db.RegisterMessage(BoundKeyspaceIdQuery) + +ExecuteBatchKeyspaceIdsRequest = _reflection.GeneratedProtocolMessageType('ExecuteBatchKeyspaceIdsRequest', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEBATCHKEYSPACEIDSREQUEST, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.ExecuteBatchKeyspaceIdsRequest) + )) +_sym_db.RegisterMessage(ExecuteBatchKeyspaceIdsRequest) + +ExecuteBatchKeyspaceIdsResponse = _reflection.GeneratedProtocolMessageType('ExecuteBatchKeyspaceIdsResponse', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEBATCHKEYSPACEIDSRESPONSE, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.ExecuteBatchKeyspaceIdsResponse) + )) +_sym_db.RegisterMessage(ExecuteBatchKeyspaceIdsResponse) + +StreamExecuteRequest = _reflection.GeneratedProtocolMessageType('StreamExecuteRequest', (_message.Message,), dict( + DESCRIPTOR = _STREAMEXECUTEREQUEST, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.StreamExecuteRequest) + )) +_sym_db.RegisterMessage(StreamExecuteRequest) + +StreamExecuteResponse = _reflection.GeneratedProtocolMessageType('StreamExecuteResponse', (_message.Message,), dict( + DESCRIPTOR = _STREAMEXECUTERESPONSE, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.StreamExecuteResponse) + )) +_sym_db.RegisterMessage(StreamExecuteResponse) + +StreamExecuteShardsRequest = _reflection.GeneratedProtocolMessageType('StreamExecuteShardsRequest', (_message.Message,), dict( + DESCRIPTOR = _STREAMEXECUTESHARDSREQUEST, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.StreamExecuteShardsRequest) + )) +_sym_db.RegisterMessage(StreamExecuteShardsRequest) + +StreamExecuteShardsResponse = _reflection.GeneratedProtocolMessageType('StreamExecuteShardsResponse', (_message.Message,), dict( + DESCRIPTOR = _STREAMEXECUTESHARDSRESPONSE, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.StreamExecuteShardsResponse) + )) +_sym_db.RegisterMessage(StreamExecuteShardsResponse) + +StreamExecuteKeyspaceIdsRequest = _reflection.GeneratedProtocolMessageType('StreamExecuteKeyspaceIdsRequest', (_message.Message,), dict( + DESCRIPTOR = _STREAMEXECUTEKEYSPACEIDSREQUEST, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.StreamExecuteKeyspaceIdsRequest) + )) +_sym_db.RegisterMessage(StreamExecuteKeyspaceIdsRequest) + +StreamExecuteKeyspaceIdsResponse = _reflection.GeneratedProtocolMessageType('StreamExecuteKeyspaceIdsResponse', (_message.Message,), dict( + DESCRIPTOR = _STREAMEXECUTEKEYSPACEIDSRESPONSE, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.StreamExecuteKeyspaceIdsResponse) + )) +_sym_db.RegisterMessage(StreamExecuteKeyspaceIdsResponse) + +StreamExecuteKeyRangesRequest = _reflection.GeneratedProtocolMessageType('StreamExecuteKeyRangesRequest', (_message.Message,), dict( + DESCRIPTOR = _STREAMEXECUTEKEYRANGESREQUEST, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.StreamExecuteKeyRangesRequest) + )) +_sym_db.RegisterMessage(StreamExecuteKeyRangesRequest) + +StreamExecuteKeyRangesResponse = _reflection.GeneratedProtocolMessageType('StreamExecuteKeyRangesResponse', (_message.Message,), dict( + DESCRIPTOR = _STREAMEXECUTEKEYRANGESRESPONSE, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.StreamExecuteKeyRangesResponse) + )) +_sym_db.RegisterMessage(StreamExecuteKeyRangesResponse) + +BeginRequest = _reflection.GeneratedProtocolMessageType('BeginRequest', (_message.Message,), dict( + DESCRIPTOR = _BEGINREQUEST, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.BeginRequest) + )) +_sym_db.RegisterMessage(BeginRequest) + +BeginResponse = _reflection.GeneratedProtocolMessageType('BeginResponse', (_message.Message,), dict( + DESCRIPTOR = _BEGINRESPONSE, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.BeginResponse) + )) +_sym_db.RegisterMessage(BeginResponse) + +CommitRequest = _reflection.GeneratedProtocolMessageType('CommitRequest', (_message.Message,), dict( + DESCRIPTOR = _COMMITREQUEST, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.CommitRequest) + )) +_sym_db.RegisterMessage(CommitRequest) + +CommitResponse = _reflection.GeneratedProtocolMessageType('CommitResponse', (_message.Message,), dict( + DESCRIPTOR = _COMMITRESPONSE, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.CommitResponse) + )) +_sym_db.RegisterMessage(CommitResponse) + +RollbackRequest = _reflection.GeneratedProtocolMessageType('RollbackRequest', (_message.Message,), dict( + DESCRIPTOR = _ROLLBACKREQUEST, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.RollbackRequest) + )) +_sym_db.RegisterMessage(RollbackRequest) + +RollbackResponse = _reflection.GeneratedProtocolMessageType('RollbackResponse', (_message.Message,), dict( + DESCRIPTOR = _ROLLBACKRESPONSE, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.RollbackResponse) + )) +_sym_db.RegisterMessage(RollbackResponse) + +SplitQueryRequest = _reflection.GeneratedProtocolMessageType('SplitQueryRequest', (_message.Message,), dict( + DESCRIPTOR = _SPLITQUERYREQUEST, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.SplitQueryRequest) + )) +_sym_db.RegisterMessage(SplitQueryRequest) + +SplitQueryResponse = _reflection.GeneratedProtocolMessageType('SplitQueryResponse', (_message.Message,), dict( + + KeyRangePart = _reflection.GeneratedProtocolMessageType('KeyRangePart', (_message.Message,), dict( + DESCRIPTOR = _SPLITQUERYRESPONSE_KEYRANGEPART, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.SplitQueryResponse.KeyRangePart) + )) + , + + ShardPart = _reflection.GeneratedProtocolMessageType('ShardPart', (_message.Message,), dict( + DESCRIPTOR = _SPLITQUERYRESPONSE_SHARDPART, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.SplitQueryResponse.ShardPart) + )) + , + + Part = _reflection.GeneratedProtocolMessageType('Part', (_message.Message,), dict( + DESCRIPTOR = _SPLITQUERYRESPONSE_PART, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.SplitQueryResponse.Part) + )) + , + DESCRIPTOR = _SPLITQUERYRESPONSE, + __module__ = 'vtgate_pb2' + # @@protoc_insertion_point(class_scope:vtgate.SplitQueryResponse) + )) +_sym_db.RegisterMessage(SplitQueryResponse) +_sym_db.RegisterMessage(SplitQueryResponse.KeyRangePart) +_sym_db.RegisterMessage(SplitQueryResponse.ShardPart) +_sym_db.RegisterMessage(SplitQueryResponse.Part) + + +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +# @@protoc_insertion_point(module_scope) diff --git a/py/vtproto/vtgateservice_pb2.py b/py/vtproto/vtgateservice_pb2.py new file mode 100644 index 0000000000..be50ae849e --- /dev/null +++ b/py/vtproto/vtgateservice_pb2.py @@ -0,0 +1,358 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vtgateservice.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() + + +import vtgate_pb2 as vtgate__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='vtgateservice.proto', + package='vtgateservice', + syntax='proto3', + serialized_pb=_b('\n\x13vtgateservice.proto\x12\rvtgateservice\x1a\x0cvtgate.proto2\x85\n\n\x06Vitess\x12<\n\x07\x45xecute\x12\x16.vtgate.ExecuteRequest\x1a\x17.vtgate.ExecuteResponse\"\x00\x12N\n\rExecuteShards\x12\x1c.vtgate.ExecuteShardsRequest\x1a\x1d.vtgate.ExecuteShardsResponse\"\x00\x12]\n\x12\x45xecuteKeyspaceIds\x12!.vtgate.ExecuteKeyspaceIdsRequest\x1a\".vtgate.ExecuteKeyspaceIdsResponse\"\x00\x12W\n\x10\x45xecuteKeyRanges\x12\x1f.vtgate.ExecuteKeyRangesRequest\x1a .vtgate.ExecuteKeyRangesResponse\"\x00\x12W\n\x10\x45xecuteEntityIds\x12\x1f.vtgate.ExecuteEntityIdsRequest\x1a .vtgate.ExecuteEntityIdsResponse\"\x00\x12]\n\x12\x45xecuteBatchShards\x12!.vtgate.ExecuteBatchShardsRequest\x1a\".vtgate.ExecuteBatchShardsResponse\"\x00\x12l\n\x17\x45xecuteBatchKeyspaceIds\x12&.vtgate.ExecuteBatchKeyspaceIdsRequest\x1a\'.vtgate.ExecuteBatchKeyspaceIdsResponse\"\x00\x12P\n\rStreamExecute\x12\x1c.vtgate.StreamExecuteRequest\x1a\x1d.vtgate.StreamExecuteResponse\"\x00\x30\x01\x12\x62\n\x13StreamExecuteShards\x12\".vtgate.StreamExecuteShardsRequest\x1a#.vtgate.StreamExecuteShardsResponse\"\x00\x30\x01\x12q\n\x18StreamExecuteKeyspaceIds\x12\'.vtgate.StreamExecuteKeyspaceIdsRequest\x1a(.vtgate.StreamExecuteKeyspaceIdsResponse\"\x00\x30\x01\x12k\n\x16StreamExecuteKeyRanges\x12%.vtgate.StreamExecuteKeyRangesRequest\x1a&.vtgate.StreamExecuteKeyRangesResponse\"\x00\x30\x01\x12\x36\n\x05\x42\x65gin\x12\x14.vtgate.BeginRequest\x1a\x15.vtgate.BeginResponse\"\x00\x12\x39\n\x06\x43ommit\x12\x15.vtgate.CommitRequest\x1a\x16.vtgate.CommitResponse\"\x00\x12?\n\x08Rollback\x12\x17.vtgate.RollbackRequest\x1a\x18.vtgate.RollbackResponse\"\x00\x12\x45\n\nSplitQuery\x12\x19.vtgate.SplitQueryRequest\x1a\x1a.vtgate.SplitQueryResponse\"\x00\x62\x06proto3') + , + dependencies=[vtgate__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + + + +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +class EarlyAdopterVitessServicer(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def Execute(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def ExecuteShards(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def ExecuteKeyspaceIds(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def ExecuteKeyRanges(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def ExecuteEntityIds(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def ExecuteBatchShards(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def ExecuteBatchKeyspaceIds(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def StreamExecute(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def StreamExecuteShards(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def StreamExecuteKeyspaceIds(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def StreamExecuteKeyRanges(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def Begin(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def Commit(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def Rollback(self, request, context): + raise NotImplementedError() + @abc.abstractmethod + def SplitQuery(self, request, context): + raise NotImplementedError() +class EarlyAdopterVitessServer(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def start(self): + raise NotImplementedError() + @abc.abstractmethod + def stop(self): + raise NotImplementedError() +class EarlyAdopterVitessStub(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def Execute(self, request): + raise NotImplementedError() + Execute.async = None + @abc.abstractmethod + def ExecuteShards(self, request): + raise NotImplementedError() + ExecuteShards.async = None + @abc.abstractmethod + def ExecuteKeyspaceIds(self, request): + raise NotImplementedError() + ExecuteKeyspaceIds.async = None + @abc.abstractmethod + def ExecuteKeyRanges(self, request): + raise NotImplementedError() + ExecuteKeyRanges.async = None + @abc.abstractmethod + def ExecuteEntityIds(self, request): + raise NotImplementedError() + ExecuteEntityIds.async = None + @abc.abstractmethod + def ExecuteBatchShards(self, request): + raise NotImplementedError() + ExecuteBatchShards.async = None + @abc.abstractmethod + def ExecuteBatchKeyspaceIds(self, request): + raise NotImplementedError() + ExecuteBatchKeyspaceIds.async = None + @abc.abstractmethod + def StreamExecute(self, request): + raise NotImplementedError() + StreamExecute.async = None + @abc.abstractmethod + def StreamExecuteShards(self, request): + raise NotImplementedError() + StreamExecuteShards.async = None + @abc.abstractmethod + def StreamExecuteKeyspaceIds(self, request): + raise NotImplementedError() + StreamExecuteKeyspaceIds.async = None + @abc.abstractmethod + def StreamExecuteKeyRanges(self, request): + raise NotImplementedError() + StreamExecuteKeyRanges.async = None + @abc.abstractmethod + def Begin(self, request): + raise NotImplementedError() + Begin.async = None + @abc.abstractmethod + def Commit(self, request): + raise NotImplementedError() + Commit.async = None + @abc.abstractmethod + def Rollback(self, request): + raise NotImplementedError() + Rollback.async = None + @abc.abstractmethod + def SplitQuery(self, request): + raise NotImplementedError() + SplitQuery.async = None +def early_adopter_create_Vitess_server(servicer, port, private_key=None, certificate_chain=None): + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + method_service_descriptions = { + "Begin": utilities.unary_unary_service_description( + servicer.Begin, + vtgate_pb2.BeginRequest.FromString, + vtgate_pb2.BeginResponse.SerializeToString, + ), + "Commit": utilities.unary_unary_service_description( + servicer.Commit, + vtgate_pb2.CommitRequest.FromString, + vtgate_pb2.CommitResponse.SerializeToString, + ), + "Execute": utilities.unary_unary_service_description( + servicer.Execute, + vtgate_pb2.ExecuteRequest.FromString, + vtgate_pb2.ExecuteResponse.SerializeToString, + ), + "ExecuteBatchKeyspaceIds": utilities.unary_unary_service_description( + servicer.ExecuteBatchKeyspaceIds, + vtgate_pb2.ExecuteBatchKeyspaceIdsRequest.FromString, + vtgate_pb2.ExecuteBatchKeyspaceIdsResponse.SerializeToString, + ), + "ExecuteBatchShards": utilities.unary_unary_service_description( + servicer.ExecuteBatchShards, + vtgate_pb2.ExecuteBatchShardsRequest.FromString, + vtgate_pb2.ExecuteBatchShardsResponse.SerializeToString, + ), + "ExecuteEntityIds": utilities.unary_unary_service_description( + servicer.ExecuteEntityIds, + vtgate_pb2.ExecuteEntityIdsRequest.FromString, + vtgate_pb2.ExecuteEntityIdsResponse.SerializeToString, + ), + "ExecuteKeyRanges": utilities.unary_unary_service_description( + servicer.ExecuteKeyRanges, + vtgate_pb2.ExecuteKeyRangesRequest.FromString, + vtgate_pb2.ExecuteKeyRangesResponse.SerializeToString, + ), + "ExecuteKeyspaceIds": utilities.unary_unary_service_description( + servicer.ExecuteKeyspaceIds, + vtgate_pb2.ExecuteKeyspaceIdsRequest.FromString, + vtgate_pb2.ExecuteKeyspaceIdsResponse.SerializeToString, + ), + "ExecuteShards": utilities.unary_unary_service_description( + servicer.ExecuteShards, + vtgate_pb2.ExecuteShardsRequest.FromString, + vtgate_pb2.ExecuteShardsResponse.SerializeToString, + ), + "Rollback": utilities.unary_unary_service_description( + servicer.Rollback, + vtgate_pb2.RollbackRequest.FromString, + vtgate_pb2.RollbackResponse.SerializeToString, + ), + "SplitQuery": utilities.unary_unary_service_description( + servicer.SplitQuery, + vtgate_pb2.SplitQueryRequest.FromString, + vtgate_pb2.SplitQueryResponse.SerializeToString, + ), + "StreamExecute": utilities.unary_stream_service_description( + servicer.StreamExecute, + vtgate_pb2.StreamExecuteRequest.FromString, + vtgate_pb2.StreamExecuteResponse.SerializeToString, + ), + "StreamExecuteKeyRanges": utilities.unary_stream_service_description( + servicer.StreamExecuteKeyRanges, + vtgate_pb2.StreamExecuteKeyRangesRequest.FromString, + vtgate_pb2.StreamExecuteKeyRangesResponse.SerializeToString, + ), + "StreamExecuteKeyspaceIds": utilities.unary_stream_service_description( + servicer.StreamExecuteKeyspaceIds, + vtgate_pb2.StreamExecuteKeyspaceIdsRequest.FromString, + vtgate_pb2.StreamExecuteKeyspaceIdsResponse.SerializeToString, + ), + "StreamExecuteShards": utilities.unary_stream_service_description( + servicer.StreamExecuteShards, + vtgate_pb2.StreamExecuteShardsRequest.FromString, + vtgate_pb2.StreamExecuteShardsResponse.SerializeToString, + ), + } + return implementations.server("vtgateservice.Vitess", method_service_descriptions, port, private_key=private_key, certificate_chain=certificate_chain) +def early_adopter_create_Vitess_stub(host, port, metadata_transformer=None, secure=False, root_certificates=None, private_key=None, certificate_chain=None, server_host_override=None): + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + import vtgate_pb2 + method_invocation_descriptions = { + "Begin": utilities.unary_unary_invocation_description( + vtgate_pb2.BeginRequest.SerializeToString, + vtgate_pb2.BeginResponse.FromString, + ), + "Commit": utilities.unary_unary_invocation_description( + vtgate_pb2.CommitRequest.SerializeToString, + vtgate_pb2.CommitResponse.FromString, + ), + "Execute": utilities.unary_unary_invocation_description( + vtgate_pb2.ExecuteRequest.SerializeToString, + vtgate_pb2.ExecuteResponse.FromString, + ), + "ExecuteBatchKeyspaceIds": utilities.unary_unary_invocation_description( + vtgate_pb2.ExecuteBatchKeyspaceIdsRequest.SerializeToString, + vtgate_pb2.ExecuteBatchKeyspaceIdsResponse.FromString, + ), + "ExecuteBatchShards": utilities.unary_unary_invocation_description( + vtgate_pb2.ExecuteBatchShardsRequest.SerializeToString, + vtgate_pb2.ExecuteBatchShardsResponse.FromString, + ), + "ExecuteEntityIds": utilities.unary_unary_invocation_description( + vtgate_pb2.ExecuteEntityIdsRequest.SerializeToString, + vtgate_pb2.ExecuteEntityIdsResponse.FromString, + ), + "ExecuteKeyRanges": utilities.unary_unary_invocation_description( + vtgate_pb2.ExecuteKeyRangesRequest.SerializeToString, + vtgate_pb2.ExecuteKeyRangesResponse.FromString, + ), + "ExecuteKeyspaceIds": utilities.unary_unary_invocation_description( + vtgate_pb2.ExecuteKeyspaceIdsRequest.SerializeToString, + vtgate_pb2.ExecuteKeyspaceIdsResponse.FromString, + ), + "ExecuteShards": utilities.unary_unary_invocation_description( + vtgate_pb2.ExecuteShardsRequest.SerializeToString, + vtgate_pb2.ExecuteShardsResponse.FromString, + ), + "Rollback": utilities.unary_unary_invocation_description( + vtgate_pb2.RollbackRequest.SerializeToString, + vtgate_pb2.RollbackResponse.FromString, + ), + "SplitQuery": utilities.unary_unary_invocation_description( + vtgate_pb2.SplitQueryRequest.SerializeToString, + vtgate_pb2.SplitQueryResponse.FromString, + ), + "StreamExecute": utilities.unary_stream_invocation_description( + vtgate_pb2.StreamExecuteRequest.SerializeToString, + vtgate_pb2.StreamExecuteResponse.FromString, + ), + "StreamExecuteKeyRanges": utilities.unary_stream_invocation_description( + vtgate_pb2.StreamExecuteKeyRangesRequest.SerializeToString, + vtgate_pb2.StreamExecuteKeyRangesResponse.FromString, + ), + "StreamExecuteKeyspaceIds": utilities.unary_stream_invocation_description( + vtgate_pb2.StreamExecuteKeyspaceIdsRequest.SerializeToString, + vtgate_pb2.StreamExecuteKeyspaceIdsResponse.FromString, + ), + "StreamExecuteShards": utilities.unary_stream_invocation_description( + vtgate_pb2.StreamExecuteShardsRequest.SerializeToString, + vtgate_pb2.StreamExecuteShardsResponse.FromString, + ), + } + return implementations.stub("vtgateservice.Vitess", method_invocation_descriptions, host, port, metadata_transformer=metadata_transformer, secure=secure, root_certificates=root_certificates, private_key=private_key, certificate_chain=certificate_chain, server_host_override=server_host_override) +# @@protoc_insertion_point(module_scope) diff --git a/py/vtproto/vtrpc_pb2.py b/py/vtproto/vtrpc_pb2.py new file mode 100644 index 0000000000..68de12e43b --- /dev/null +++ b/py/vtproto/vtrpc_pb2.py @@ -0,0 +1,175 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vtrpc.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper +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() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='vtrpc.proto', + package='vtrpc', + syntax='proto3', + serialized_pb=_b('\n\x0bvtrpc.proto\x12\x05vtrpc\"F\n\x08\x43\x61llerID\x12\x11\n\tprincipal\x18\x01 \x01(\t\x12\x11\n\tcomponent\x18\x02 \x01(\t\x12\x14\n\x0csubcomponent\x18\x03 \x01(\t\";\n\x08RPCError\x12\x1e\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x10.vtrpc.ErrorCode\x12\x0f\n\x07message\x18\x02 \x01(\t*n\n\tErrorCode\x12\x0b\n\x07NoError\x10\x00\x12\x10\n\x0bTabletError\x10\xe8\x07\x12\x17\n\x12UnknownTabletError\x10\xcf\x0f\x12\x10\n\x0bVtgateError\x10\xd0\x0f\x12\x17\n\x12UnknownVtgateError\x10\xb7\x17\x62\x06proto3') +) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +_ERRORCODE = _descriptor.EnumDescriptor( + name='ErrorCode', + full_name='vtrpc.ErrorCode', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='NoError', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TabletError', index=1, number=1000, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UnknownTabletError', index=2, number=1999, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VtgateError', index=3, number=2000, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UnknownVtgateError', index=4, number=2999, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=155, + serialized_end=265, +) +_sym_db.RegisterEnumDescriptor(_ERRORCODE) + +ErrorCode = enum_type_wrapper.EnumTypeWrapper(_ERRORCODE) +NoError = 0 +TabletError = 1000 +UnknownTabletError = 1999 +VtgateError = 2000 +UnknownVtgateError = 2999 + + + +_CALLERID = _descriptor.Descriptor( + name='CallerID', + full_name='vtrpc.CallerID', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='principal', full_name='vtrpc.CallerID.principal', 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='component', full_name='vtrpc.CallerID.component', 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='subcomponent', full_name='vtrpc.CallerID.subcomponent', 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=22, + serialized_end=92, +) + + +_RPCERROR = _descriptor.Descriptor( + name='RPCError', + full_name='vtrpc.RPCError', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='vtrpc.RPCError.code', index=0, + number=1, 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='message', full_name='vtrpc.RPCError.message', 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=94, + serialized_end=153, +) + +_RPCERROR.fields_by_name['code'].enum_type = _ERRORCODE +DESCRIPTOR.message_types_by_name['CallerID'] = _CALLERID +DESCRIPTOR.message_types_by_name['RPCError'] = _RPCERROR +DESCRIPTOR.enum_types_by_name['ErrorCode'] = _ERRORCODE + +CallerID = _reflection.GeneratedProtocolMessageType('CallerID', (_message.Message,), dict( + DESCRIPTOR = _CALLERID, + __module__ = 'vtrpc_pb2' + # @@protoc_insertion_point(class_scope:vtrpc.CallerID) + )) +_sym_db.RegisterMessage(CallerID) + +RPCError = _reflection.GeneratedProtocolMessageType('RPCError', (_message.Message,), dict( + DESCRIPTOR = _RPCERROR, + __module__ = 'vtrpc_pb2' + # @@protoc_insertion_point(class_scope:vtrpc.RPCError) + )) +_sym_db.RegisterMessage(RPCError) + + +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +# @@protoc_insertion_point(module_scope) diff --git a/py/vtproto/vtworkerdata_pb2.py b/py/vtproto/vtworkerdata_pb2.py new file mode 100644 index 0000000000..50eaf0f897 --- /dev/null +++ b/py/vtproto/vtworkerdata_pb2.py @@ -0,0 +1,114 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vtworkerdata.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() + + +import logutil_pb2 as logutil__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='vtworkerdata.proto', + package='vtworkerdata', + syntax='proto3', + serialized_pb=_b('\n\x12vtworkerdata.proto\x12\x0cvtworkerdata\x1a\rlogutil.proto\"-\n\x1d\x45xecuteVtworkerCommandRequest\x12\x0c\n\x04\x61rgs\x18\x01 \x03(\t\"?\n\x1e\x45xecuteVtworkerCommandResponse\x12\x1d\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x0e.logutil.Eventb\x06proto3') + , + dependencies=[logutil__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + + +_EXECUTEVTWORKERCOMMANDREQUEST = _descriptor.Descriptor( + name='ExecuteVtworkerCommandRequest', + full_name='vtworkerdata.ExecuteVtworkerCommandRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='args', full_name='vtworkerdata.ExecuteVtworkerCommandRequest.args', index=0, + number=1, type=9, cpp_type=9, 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=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=51, + serialized_end=96, +) + + +_EXECUTEVTWORKERCOMMANDRESPONSE = _descriptor.Descriptor( + name='ExecuteVtworkerCommandResponse', + full_name='vtworkerdata.ExecuteVtworkerCommandResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='event', full_name='vtworkerdata.ExecuteVtworkerCommandResponse.event', 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=98, + serialized_end=161, +) + +_EXECUTEVTWORKERCOMMANDRESPONSE.fields_by_name['event'].message_type = logutil__pb2._EVENT +DESCRIPTOR.message_types_by_name['ExecuteVtworkerCommandRequest'] = _EXECUTEVTWORKERCOMMANDREQUEST +DESCRIPTOR.message_types_by_name['ExecuteVtworkerCommandResponse'] = _EXECUTEVTWORKERCOMMANDRESPONSE + +ExecuteVtworkerCommandRequest = _reflection.GeneratedProtocolMessageType('ExecuteVtworkerCommandRequest', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEVTWORKERCOMMANDREQUEST, + __module__ = 'vtworkerdata_pb2' + # @@protoc_insertion_point(class_scope:vtworkerdata.ExecuteVtworkerCommandRequest) + )) +_sym_db.RegisterMessage(ExecuteVtworkerCommandRequest) + +ExecuteVtworkerCommandResponse = _reflection.GeneratedProtocolMessageType('ExecuteVtworkerCommandResponse', (_message.Message,), dict( + DESCRIPTOR = _EXECUTEVTWORKERCOMMANDRESPONSE, + __module__ = 'vtworkerdata_pb2' + # @@protoc_insertion_point(class_scope:vtworkerdata.ExecuteVtworkerCommandResponse) + )) +_sym_db.RegisterMessage(ExecuteVtworkerCommandResponse) + + +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +# @@protoc_insertion_point(module_scope) diff --git a/py/vtproto/vtworkerservice_pb2.py b/py/vtproto/vtworkerservice_pb2.py new file mode 100644 index 0000000000..2720b90e90 --- /dev/null +++ b/py/vtproto/vtworkerservice_pb2.py @@ -0,0 +1,78 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vtworkerservice.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() + + +import vtworkerdata_pb2 as vtworkerdata__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='vtworkerservice.proto', + package='vtworkerservice', + syntax='proto3', + serialized_pb=_b('\n\x15vtworkerservice.proto\x12\x0fvtworkerservice\x1a\x12vtworkerdata.proto2\x83\x01\n\x08Vtworker\x12w\n\x16\x45xecuteVtworkerCommand\x12+.vtworkerdata.ExecuteVtworkerCommandRequest\x1a,.vtworkerdata.ExecuteVtworkerCommandResponse\"\x00\x30\x01\x62\x06proto3') + , + dependencies=[vtworkerdata__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + + + +import abc +from grpc.early_adopter import implementations +from grpc.framework.alpha import utilities +class EarlyAdopterVtworkerServicer(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def ExecuteVtworkerCommand(self, request, context): + raise NotImplementedError() +class EarlyAdopterVtworkerServer(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def start(self): + raise NotImplementedError() + @abc.abstractmethod + def stop(self): + raise NotImplementedError() +class EarlyAdopterVtworkerStub(object): + """""" + __metaclass__ = abc.ABCMeta + @abc.abstractmethod + def ExecuteVtworkerCommand(self, request): + raise NotImplementedError() + ExecuteVtworkerCommand.async = None +def early_adopter_create_Vtworker_server(servicer, port, private_key=None, certificate_chain=None): + import vtworkerdata_pb2 + import vtworkerdata_pb2 + method_service_descriptions = { + "ExecuteVtworkerCommand": utilities.unary_stream_service_description( + servicer.ExecuteVtworkerCommand, + vtworkerdata_pb2.ExecuteVtworkerCommandRequest.FromString, + vtworkerdata_pb2.ExecuteVtworkerCommandResponse.SerializeToString, + ), + } + return implementations.server("vtworkerservice.Vtworker", method_service_descriptions, port, private_key=private_key, certificate_chain=certificate_chain) +def early_adopter_create_Vtworker_stub(host, port, metadata_transformer=None, secure=False, root_certificates=None, private_key=None, certificate_chain=None, server_host_override=None): + import vtworkerdata_pb2 + import vtworkerdata_pb2 + method_invocation_descriptions = { + "ExecuteVtworkerCommand": utilities.unary_stream_invocation_description( + vtworkerdata_pb2.ExecuteVtworkerCommandRequest.SerializeToString, + vtworkerdata_pb2.ExecuteVtworkerCommandResponse.FromString, + ), + } + return implementations.stub("vtworkerservice.Vtworker", method_invocation_descriptions, host, port, metadata_transformer=metadata_transformer, secure=secure, root_certificates=root_certificates, private_key=private_key, certificate_chain=certificate_chain, server_host_override=server_host_override) +# @@protoc_insertion_point(module_scope) diff --git a/test/binlog.py b/test/binlog.py index 8a2c9bc11d..8391d50f20 100755 --- a/test/binlog.py +++ b/test/binlog.py @@ -18,7 +18,7 @@ import utils from mysql_flavor import mysql_flavor from vtdb import keyrange_constants -from vtdb import update_stream_service +from vtdb import update_stream src_master = tablet.Tablet() src_replica = tablet.Tablet() @@ -146,8 +146,8 @@ def tearDownModule(): def _get_update_stream(tblt): - return update_stream_service.UpdateStreamConnection('localhost:%u' % - tblt.port, 30) + protocol, endpoint = tblt.update_stream_python_endpoint() + return update_stream.connect(protocol, endpoint, 30) class TestBinlog(unittest.TestCase): @@ -168,13 +168,9 @@ class TestBinlog(unittest.TestCase): # Wait for it to replicate. stream = _get_update_stream(dst_replica) - stream.dial() - data = stream.stream_start(start_position) - while data: - if data['Category'] == 'POS': + for stream_event in stream.stream_update(start_position): + if stream_event.category == update_stream.StreamEvent.POS: break - data = stream.stream_next() - stream.close() # Check the value. data = dst_master.mquery("vt_test_keyspace", @@ -202,16 +198,13 @@ class TestBinlog(unittest.TestCase): # Look for it using update stream to see if binlog streamer can talk to # dst_replica, which now has binlog_checksum enabled. stream = _get_update_stream(dst_replica) - stream.dial() - data = stream.stream_start(start_position) found = False - while data: - if data['Category'] == 'POS': + for stream_event in stream.stream_update(start_position): + if stream_event.category == update_stream.StreamEvent.POS: break - if data['Sql'] == sql: + if stream_event.sql == sql: found = True break - data = stream.stream_next() stream.close() self.assertEqual(found, True, 'expected query not found in update stream') @@ -233,16 +226,13 @@ class TestBinlog(unittest.TestCase): # Look for it using update stream to see if binlog streamer can talk to # dst_replica, which now has binlog_checksum disabled. stream = _get_update_stream(dst_replica) - stream.dial() - data = stream.stream_start(start_position) found = False - while data: - if data['Category'] == 'POS': + for stream_event in stream.stream_update(start_position): + if stream_event.category == update_stream.StreamEvent.POS: break - if data['Sql'] == sql: + if stream_event.sql == sql: found = True break - data = stream.stream_next() stream.close() self.assertEqual(found, True, 'expected query not found in update stream') diff --git a/test/gorpc_protocols_flavor.py b/test/gorpc_protocols_flavor.py index 899f3e7d4b..cd0bfeb227 100644 --- a/test/gorpc_protocols_flavor.py +++ b/test/gorpc_protocols_flavor.py @@ -8,6 +8,9 @@ class GoRpcProtocolsFlavor(protocols_flavor.ProtocolsFlavor): def binlog_player_protocol(self): return 'gorpc' + def binlog_player_python_protocol(self): + return 'gorpc' + def vtctl_client_protocol(self): return 'gorpc' diff --git a/test/grpc_protocols_flavor.py b/test/grpc_protocols_flavor.py index 34d942cab0..cfeb7ca05a 100644 --- a/test/grpc_protocols_flavor.py +++ b/test/grpc_protocols_flavor.py @@ -9,6 +9,9 @@ class GRpcProtocolsFlavor(protocols_flavor.ProtocolsFlavor): def binlog_player_protocol(self): return 'grpc' + def binlog_player_python_protocol(self): + return 'grpc' + def vtctl_client_protocol(self): return 'grpc' diff --git a/test/protocols_flavor.py b/test/protocols_flavor.py index c04479306c..950f770f4e 100644 --- a/test/protocols_flavor.py +++ b/test/protocols_flavor.py @@ -6,7 +6,13 @@ class ProtocolsFlavor(object): """Base class for protocols""" def binlog_player_protocol(self): - """Returns the name of the binlog player protocol to use.""" + """Returns the name of the binlog player protocol to use + between vttablets, in go.""" + raise NotImplementedError('Not implemented in the base class') + + def binlog_player_python_protocol(self): + """Returns the name of the binlog player protocol to use + for python connections to update_stream service.""" raise NotImplementedError('Not implemented in the base class') def vtctl_client_protocol(self): diff --git a/test/tablet.py b/test/tablet.py index 47ff85cac4..5ad80eb38b 100644 --- a/test/tablet.py +++ b/test/tablet.py @@ -94,6 +94,17 @@ class Tablet(object): self.zk_tablet_path = ( '/zk/test_%s/vt/tablets/%010d' % (self.cell, self.tablet_uid)) + def update_stream_python_endpoint(self): + protocol = protocols_flavor().binlog_player_python_protocol() + port = self.port + if protocol == "gorpc": + from vtdb import gorpc_update_stream + elif protocol == "grpc": + # import the grpc update stream client implementation, change the port + from vtdb import grpc_update_stream + port = self.grpc_port + return (protocol, 'localhost:%u' % port) + def mysqlctl(self, cmd, extra_my_cnf=None, with_ports=False, verbose=False): extra_env = {} all_extra_my_cnf = get_all_extra_my_cnf(extra_my_cnf) diff --git a/test/update_stream.py b/test/update_stream.py index d4d662714d..544625e399 100755 --- a/test/update_stream.py +++ b/test/update_stream.py @@ -19,7 +19,7 @@ import tablet import utils from vtdb import dbexceptions from vtdb import topology -from vtdb import update_stream_service +from vtdb import update_stream from vtdb import vtclient from zk import zkocc from mysql_flavor import mysql_flavor @@ -151,11 +151,12 @@ class TestUpdateStream(unittest.TestCase): self.vtgate_client.close() def _get_master_stream_conn(self): - return update_stream_service.UpdateStreamConnection(master_host, 30) + protocol, endpoint = master_tablet.update_stream_python_endpoint() + return update_stream.connect(protocol, endpoint, 30) def _get_replica_stream_conn(self): - return update_stream_service.UpdateStreamConnection('localhost:%u' % - replica_tablet.port, 30) + protocol, endpoint = replica_tablet.update_stream_python_endpoint() + return update_stream.connect(protocol, endpoint, 30) def _test_service_disabled(self): start_position = _get_repl_current_position() @@ -164,18 +165,14 @@ class TestUpdateStream(unittest.TestCase): self._exec_vt_txn(['delete from vt_insert_test']) utils.run_vtctl(['ChangeSlaveType', replica_tablet.tablet_alias, 'spare']) utils.wait_for_tablet_type(replica_tablet.tablet_alias, 'spare') - replica_conn = self._get_replica_stream_conn() logging.debug('dialing replica update stream service') - replica_conn.dial() + replica_conn = self._get_replica_stream_conn() try: - data = replica_conn.stream_start(start_position) + for stream_event in replica_conn.stream_update(start_position): + break except Exception, e: logging.debug(str(e)) - if str(e) == 'update stream service is not enabled': - logging.debug('Test Service Disabled: Pass') - else: - self.fail( - 'Test Service Disabled: Fail - did not throw the correct exception') + self.assertIn('update stream service is not enabled', str(e)) v = utils.get_vars(replica_tablet.port) if v['UpdateStreamState'] != 'Disabled': @@ -198,13 +195,10 @@ class TestUpdateStream(unittest.TestCase): thd.daemon = True thd.start() replica_conn = self._get_replica_stream_conn() - replica_conn.dial() try: - data = replica_conn.stream_start(start_position) - for i in xrange(10): - data = replica_conn.stream_next() - if data['Category'] == 'DML' and utils.options.verbose == 2: + for stream_event in replica_conn.stream_update(start_position): + if stream_event.category == update_stream.StreamEvent.DML: logging.debug('Test Service Enabled: Pass') break except Exception, e: @@ -222,19 +216,19 @@ class TestUpdateStream(unittest.TestCase): logging.debug('Testing enable -> disable switch starting @ %s', start_position) replica_conn = self._get_replica_stream_conn() - replica_conn.dial() - disabled_err = False + first = True txn_count = 0 try: - data = replica_conn.stream_start(start_position) - utils.run_vtctl(['ChangeSlaveType', replica_tablet.tablet_alias, 'spare']) - utils.wait_for_tablet_type(replica_tablet.tablet_alias, 'spare', 30) - while data: - data = replica_conn.stream_next() - if data is not None and data['Category'] == 'POS': - txn_count += 1 - logging.debug('Test Service Switch: FAIL') - return + for stream_event in replica_conn.stream_update(start_position): + if first: + utils.run_vtctl(['ChangeSlaveType', replica_tablet.tablet_alias, 'spare']) + utils.wait_for_tablet_type(replica_tablet.tablet_alias, 'spare', 30) + first = False + else: + if stream_event.category == update_stream.StreamEvent.POS: + txn_count += 1 + logging.debug('Test Service Switch: FAIL') + return except dbexceptions.DatabaseError, e: self.assertEqual( 'Fatal Service Error: Disconnecting because the Update Stream ' @@ -246,27 +240,24 @@ class TestUpdateStream(unittest.TestCase): self.fail("Update stream returned error '%s'" % str(e)) logging.debug('Streamed %d transactions before exiting', txn_count) - def _vtdb_conn(self, host): - conn = vtclient.VtOCCConnection(self.vtgate_client, 'test_keyspace', '0', - 'master', 30) - conn.connect() - return conn - def _exec_vt_txn(self, query_list=None): if not query_list: return - vtdb_conn = self._vtdb_conn('localhost:%u' % master_tablet.port) + vtdb_conn = vtclient.VtOCCConnection(self.vtgate_client, + 'test_keyspace', '0', 'master', 30) + vtdb_conn.connect() vtdb_cursor = vtdb_conn.cursor() vtdb_conn.begin() for q in query_list: vtdb_cursor.execute(q, {}) vtdb_conn.commit() - # The function below checks the parity of streams received - # from master and replica for the same writes. Also tests - # transactions are retrieved properly. def test_stream_parity(self): - timeout = 30#s + """test_stream_parity checks the parity of streams received + from master and replica for the same writes. Also tests + transactions are retrieved properly. + """ + timeout = 30 while True: master_start_position = _get_master_current_position() replica_start_position = _get_repl_current_position() @@ -285,25 +276,17 @@ class TestUpdateStream(unittest.TestCase): self._exec_vt_txn(['delete from vt_a']) self._exec_vt_txn(['delete from vt_b']) master_conn = self._get_master_stream_conn() - master_conn.dial() master_events = [] - data = master_conn.stream_start(master_start_position) - master_events.append(data) - for i in xrange(21): - data = master_conn.stream_next() - master_events.append(data) - if data['Category'] == 'POS': + for stream_event in master_conn.stream_update(master_start_position): + master_events.append(stream_event) + if stream_event.category == update_stream.StreamEvent.POS: master_txn_count += 1 break replica_events = [] replica_conn = self._get_replica_stream_conn() - replica_conn.dial() - data = replica_conn.stream_start(replica_start_position) - replica_events.append(data) - for i in xrange(21): - data = replica_conn.stream_next() - replica_events.append(data) - if data['Category'] == 'POS': + for stream_event in replica_conn.stream_update(replica_start_position): + replica_events.append(stream_event) + if stream_event.category == update_stream.StreamEvent.POS: replica_txn_count += 1 break if len(master_events) != len(replica_events): @@ -311,8 +294,8 @@ class TestUpdateStream(unittest.TestCase): 'Test Failed - # of records mismatch, master %s replica %s', master_events, replica_events) for master_val, replica_val in zip(master_events, replica_events): - master_data = master_val - replica_data = replica_val + master_data = master_val.__dict__ + replica_data = replica_val.__dict__ self.assertEqual( master_data, replica_data, "Test failed, data mismatch - master '%s' and replica position '%s'" % @@ -324,28 +307,26 @@ class TestUpdateStream(unittest.TestCase): start_position = master_start_position logging.debug('test_ddl: starting @ %s', start_position) master_conn = self._get_master_stream_conn() - master_conn.dial() - data = master_conn.stream_start(start_position) - self.assertEqual(data['Sql'], _create_vt_insert_test, - "DDL didn't match original") + for stream_event in master_conn.stream_update(start_position): + self.assertEqual(stream_event.sql, _create_vt_insert_test, + "DDL didn't match original") + return + self.fail("didn't get right sql") def test_set_insert_id(self): start_position = _get_master_current_position() self._exec_vt_txn(['SET INSERT_ID=1000000'] + self._populate_vt_insert_test) logging.debug('test_set_insert_id: starting @ %s', start_position) master_conn = self._get_master_stream_conn() - master_conn.dial() - data = master_conn.stream_start(start_position) expected_id = 1000000 - while data: - if data['Category'] == 'POS': + for stream_event in master_conn.stream_update(start_position): + if stream_event.category == update_stream.StreamEvent.POS: break - self.assertEqual(data['Fields'][0], 'id') - self.assertEqual(data['PkRows'][0][0], expected_id) + self.assertEqual(stream_event.fields[0], 'id') + self.assertEqual(stream_event.rows[0][0], expected_id) expected_id += 1 - data = master_conn.stream_next() if expected_id != 1000004: - self.fail("did not get my foru values!") + self.fail("did not get my four values!") def test_database_filter(self): start_position = _get_master_current_position() @@ -353,18 +334,15 @@ class TestUpdateStream(unittest.TestCase): self._exec_vt_txn(self._populate_vt_insert_test) logging.debug('test_database_filter: starting @ %s', start_position) master_conn = self._get_master_stream_conn() - master_conn.dial() - data = master_conn.stream_start(start_position) - while data: - if data['Category'] == 'POS': + for stream_event in master_conn.stream_update(start_position): + if stream_event.category == update_stream.StreamEvent.POS: break self.assertNotEqual( - data['Category'], 'DDL', + stream_event.category, update_stream.StreamEvent.DDL, "query using other_database wasn't filted out") - data = master_conn.stream_next() - # This tests the service switch from disable -> enable -> disable def test_service_switch(self): + """tests the service switch from disable -> enable -> disable""" self._test_service_disabled() self._test_service_enabled() # The above tests leaves the service in disabled state, hence enabling it. @@ -378,19 +356,18 @@ class TestUpdateStream(unittest.TestCase): self._exec_vt_txn(self._populate_vt_a(15)) self._exec_vt_txn(['delete from vt_a']) master_conn = self._get_master_stream_conn() - master_conn.dial() - data = master_conn.stream_start(start_position) master_txn_count = 0 logs_correct = False - while master_txn_count <= 2: - data = master_conn.stream_next() - if data['Category'] == 'POS': + for stream_event in master_conn.stream_update(start_position): + if stream_event.category == update_stream.StreamEvent.POS: master_txn_count += 1 - position = mysql_flavor().position_append(position, data['GTIDField']) + position = mysql_flavor().position_append(position, stream_event.position) if mysql_flavor().position_after(position, start_position): logs_correct = True logging.debug('Log rotation correctly interpreted') break + if master_txn_count == 2: + self.fail("ran out of logs") if not logs_correct: self.fail("Flush logs didn't get properly interpreted") diff --git a/test/utils.py b/test/utils.py index da813f4a1f..e6a87ced87 100644 --- a/test/utils.py +++ b/test/utils.py @@ -593,7 +593,7 @@ def run_vtctl(clargs, auto_log=False, expect_fail=False, return result, "" elif mode == VTCTL_RPC: logging.debug("vtctl: %s", " ".join(clargs)) - result = vtctld_connection.execute_vtctl_command(clargs, info_to_debug=True, action_timeout=120) + result = vtctl_client.execute_vtctl_command(vtctld_connection, clargs, info_to_debug=True, action_timeout=120) return result, "" raise Exception('Unknown mode: %s', mode)