/* * 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; option java_package = "com.mysql.cj.x.protobuf"; import "mysqlx.proto"; // style-guide: // // see https://developers.google.com/protocol-buffers/docs/style // // message CamelCaseMsg { // enum CamelCaseEnum { // FIRST_VALUE = 1; // } // required CamelCaseEnum some_enum = 1; // } // // IDs of messages that can be sent from client to the server // // .. note:: // this message is never sent on the wire. It is only used to let ``protoc`` // // * generate constants // * check for uniqueness // Client send GetTSO message to Server message GetTSO { required bytes leader_name = 1; required int32 batch_count = 2; option (client_message_id) = GET_TSO; // comment_out_if PROTOBUF_LITE } message ResultTSO { required int32 error_no = 1; required uint64 ts = 2; option (server_message_id) = RESULT_TSO; // comment_out_if PROTOBUF_LITE }