Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright (c) 2015, 2017, 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.
*
* Without limiting anything contained in the foregoing, this file, which is
* part of MySQL Connector/J, is also subject to the Universal FOSS Exception,
* version 1.0, a copy of which can be found at
* http://oss.oracle.com/licenses/universal-foss-exception.
*
* 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
*/
package com.mysql.cj.x.protobuf;
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mysqlx_sql.proto
public final class MysqlxSql {
private MysqlxSql() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface StmtExecuteOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Sql.StmtExecute)
com.google.protobuf.MessageOrBuilder {
/**
* optional string namespace = 3 [default = "sql"];
*/
boolean hasNamespace();
/**
* optional string namespace = 3 [default = "sql"];
*/
java.lang.String getNamespace();
/**
* optional string namespace = 3 [default = "sql"];
*/
com.google.protobuf.ByteString
getNamespaceBytes();
/**
* required bytes stmt = 1;
*/
boolean hasStmt();
/**
* required bytes stmt = 1;
*/
com.google.protobuf.ByteString getStmt();
/**
* repeated .Mysqlx.Datatypes.Any args = 2;
*/
java.util.List
getArgsList();
/**
* repeated .Mysqlx.Datatypes.Any args = 2;
*/
com.mysql.cj.x.protobuf.MysqlxDatatypes.Any getArgs(int index);
/**
* repeated .Mysqlx.Datatypes.Any args = 2;
*/
int getArgsCount();
/**
* repeated .Mysqlx.Datatypes.Any args = 2;
*/
java.util.List
getArgsOrBuilderList();
/**
* repeated .Mysqlx.Datatypes.Any args = 2;
*/
com.mysql.cj.x.protobuf.MysqlxDatatypes.AnyOrBuilder getArgsOrBuilder(
int index);
/**
* optional bool compact_metadata = 4 [default = false];
*/
boolean hasCompactMetadata();
/**
* optional bool compact_metadata = 4 [default = false];
*/
boolean getCompactMetadata();
}
/**
* Protobuf type {@code Mysqlx.Sql.StmtExecute}
*
*
* execute a statement in the given namespace
* .. uml::
* client -> server: StmtExecute
* ... zero or more Resultsets ...
* server --> client: StmtExecuteOk
* Notices:
* This message may generate a notice containing WARNINGs generated by its execution.
* This message may generate a notice containing INFO messages generated by its execution.
* :param namespace: namespace of the statement to be executed
* :param stmt: statement that shall be executed.
* :param args: values for wildcard replacements
* :param compact_metadata: send only type information for :protobuf:msg:`Mysqlx.Resultset::ColumnMetadata`, skipping names and others
* :returns:
* * zero or one :protobuf:msg:`Mysqlx.Resultset::` followed by :protobuf:msg:`Mysqlx.Sql::StmtExecuteOk`
*
*/
public static final class StmtExecute extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Mysqlx.Sql.StmtExecute)
StmtExecuteOrBuilder {
// Use StmtExecute.newBuilder() to construct.
private StmtExecute(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StmtExecute(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StmtExecute defaultInstance;
public static StmtExecute getDefaultInstance() {
return defaultInstance;
}
public StmtExecute getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StmtExecute(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000002;
stmt_ = input.readBytes();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
args_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
args_.add(input.readMessage(com.mysql.cj.x.protobuf.MysqlxDatatypes.Any.PARSER, extensionRegistry));
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
namespace_ = bs;
break;
}
case 32: {
bitField0_ |= 0x00000004;
compactMetadata_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
args_ = java.util.Collections.unmodifiableList(args_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxSql.internal_static_Mysqlx_Sql_StmtExecute_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxSql.internal_static_Mysqlx_Sql_StmtExecute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxSql.StmtExecute.class, com.mysql.cj.x.protobuf.MysqlxSql.StmtExecute.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public StmtExecute parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StmtExecute(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int NAMESPACE_FIELD_NUMBER = 3;
private java.lang.Object namespace_;
/**
* optional string namespace = 3 [default = "sql"];
*/
public boolean hasNamespace() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string namespace = 3 [default = "sql"];
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
namespace_ = s;
}
return s;
}
}
/**
* optional string namespace = 3 [default = "sql"];
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STMT_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString stmt_;
/**
* required bytes stmt = 1;
*/
public boolean hasStmt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bytes stmt = 1;
*/
public com.google.protobuf.ByteString getStmt() {
return stmt_;
}
public static final int ARGS_FIELD_NUMBER = 2;
private java.util.List args_;
/**
* repeated .Mysqlx.Datatypes.Any args = 2;
*/
public java.util.List getArgsList() {
return args_;
}
/**
* repeated .Mysqlx.Datatypes.Any args = 2;
*/
public java.util.List
getArgsOrBuilderList() {
return args_;
}
/**
* repeated .Mysqlx.Datatypes.Any args = 2;
*/
public int getArgsCount() {
return args_.size();
}
/**
* repeated .Mysqlx.Datatypes.Any args = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.Any getArgs(int index) {
return args_.get(index);
}
/**
* repeated .Mysqlx.Datatypes.Any args = 2;
*/
public com.mysql.cj.x.protobuf.MysqlxDatatypes.AnyOrBuilder getArgsOrBuilder(
int index) {
return args_.get(index);
}
public static final int COMPACT_METADATA_FIELD_NUMBER = 4;
private boolean compactMetadata_;
/**
* optional bool compact_metadata = 4 [default = false];
*/
public boolean hasCompactMetadata() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bool compact_metadata = 4 [default = false];
*/
public boolean getCompactMetadata() {
return compactMetadata_;
}
private void initFields() {
namespace_ = "sql";
stmt_ = com.google.protobuf.ByteString.EMPTY;
args_ = java.util.Collections.emptyList();
compactMetadata_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasStmt()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getArgsCount(); i++) {
if (!getArgs(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(1, stmt_);
}
for (int i = 0; i < args_.size(); i++) {
output.writeMessage(2, args_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(3, getNamespaceBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(4, compactMetadata_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, stmt_);
}
for (int i = 0; i < args_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, args_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getNamespaceBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, compactMetadata_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.mysql.cj.x.protobuf.MysqlxSql.StmtExecute parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxSql.StmtExecute parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxSql.StmtExecute parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxSql.StmtExecute parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxSql.StmtExecute parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.mysql.cj.x.protobuf.MysqlxSql.StmtExecute parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxSql.StmtExecute parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.mysql.cj.x.protobuf.MysqlxSql.StmtExecute parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxSql.StmtExecute parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.mysql.cj.x.protobuf.MysqlxSql.StmtExecute parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxSql.StmtExecute prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Mysqlx.Sql.StmtExecute}
*
*
* execute a statement in the given namespace
* .. uml::
* client -> server: StmtExecute
* ... zero or more Resultsets ...
* server --> client: StmtExecuteOk
* Notices:
* This message may generate a notice containing WARNINGs generated by its execution.
* This message may generate a notice containing INFO messages generated by its execution.
* :param namespace: namespace of the statement to be executed
* :param stmt: statement that shall be executed.
* :param args: values for wildcard replacements
* :param compact_metadata: send only type information for :protobuf:msg:`Mysqlx.Resultset::ColumnMetadata`, skipping names and others
* :returns:
* * zero or one :protobuf:msg:`Mysqlx.Resultset::` followed by :protobuf:msg:`Mysqlx.Sql::StmtExecuteOk`
*