/* * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2.0, * as published by the Free Software Foundation. * * This program is also distributed with certain software (including * but not limited to OpenSSL) that is licensed under separate terms, * as designated in a particular file or component or in included license * documentation. The authors of MySQL hereby grant you an additional * permission to link the program and your derivative works with the * separately licensed software that they have included with MySQL. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License, version 2.0, for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ // tell protobuf 3.0 to use protobuf 2.x rules syntax = "proto2"; // ifdef PROTOBUF_LITE: option optimize_for = LITE_RUNTIME; package Mysqlx.Sql; option java_package = "com.mysql.cj.x.protobuf"; import "mysqlx.proto"; import "mysqlx_datatypes.proto"; // style-guide: // // see https://developers.google.com/protocol-buffers/docs/style // // message CamelCaseMsg { // enum CamelCaseEnum { // FIRST_VALUE = 1; // } // required CamelCaseEnum some_enum = 1; // } // message GalaxyStmtExecute { optional string namespace = 3 [ default = "sql" ]; optional bytes stmt = 1; optional bytes stmt_digest = 12; optional bytes hint = 13; optional bool chunk_result = 14 [default = false]; optional bool feed_back = 16 [default = false]; repeated Mysqlx.Datatypes.Any args = 2; optional bool compact_metadata = 4 [ default = false ]; // Galaxy Store optional string db_name = 5; repeated Mysqlx.Datatypes.SessionVariable session_variables = 6; optional string encoding = 7; optional int32 token = 8; optional bool reset_error = 9; optional uint64 snapshot_seq = 10; optional uint64 commit_seq = 11; optional bool use_cts_transaction = 15; option (client_message_id) = GALAXY_STMT_EXECUTE; // comment_out_if PROTOBUF_LITE } message TokenOffer { optional int32 token = 1 [ default = -1]; option (client_message_id) = TOKEN_OFFER; // comment_out_if PROTOBUF_LITE }