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, 2022, Oracle and/or its affiliates.
*
* 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_crud.proto
@SuppressWarnings({ "deprecation" })
public final class MysqlxCrud {
private MysqlxCrud() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
**
*DataModel to use for filters, names, ...
*
*
* Protobuf enum {@code Mysqlx.Crud.DataModel}
*/
public enum DataModel
implements com.google.protobuf.ProtocolMessageEnum {
/**
* DOCUMENT = 1;
*/
DOCUMENT(1),
/**
* TABLE = 2;
*/
TABLE(2),
;
/**
* DOCUMENT = 1;
*/
public static final int DOCUMENT_VALUE = 1;
/**
* TABLE = 2;
*/
public static final int TABLE_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DataModel valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static DataModel forNumber(int value) {
switch (value) {
case 1: return DOCUMENT;
case 2: return TABLE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DataModel> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DataModel findValueByNumber(int number) {
return DataModel.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.getDescriptor().getEnumTypes().get(0);
}
private static final DataModel[] VALUES = values();
public static DataModel valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private DataModel(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Mysqlx.Crud.DataModel)
}
/**
*
**
*ViewAlgorithm defines how MySQL Server processes the view
*
** the text of a statement that refers to the view and the view
*definition are merged
*
*
* MERGE = 2;
*/
MERGE(2),
/**
*
** the view are retrieved into a temporary table
*
*
* TEMPTABLE = 3;
*/
TEMPTABLE(3),
;
/**
*
** MySQL chooses which algorithm to use
*
*
* UNDEFINED = 1;
*/
public static final int UNDEFINED_VALUE = 1;
/**
*
** the text of a statement that refers to the view and the view
*definition are merged
*
*
* MERGE = 2;
*/
public static final int MERGE_VALUE = 2;
/**
*
** the view are retrieved into a temporary table
*
*
* TEMPTABLE = 3;
*/
public static final int TEMPTABLE_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ViewAlgorithm valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ViewAlgorithm forNumber(int value) {
switch (value) {
case 1: return UNDEFINED;
case 2: return MERGE;
case 3: return TEMPTABLE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ViewAlgorithm> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ViewAlgorithm findValueByNumber(int number) {
return ViewAlgorithm.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.getDescriptor().getEnumTypes().get(1);
}
private static final ViewAlgorithm[] VALUES = values();
public static ViewAlgorithm valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private ViewAlgorithm(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Mysqlx.Crud.ViewAlgorithm)
}
/**
*
**
*ViewSqlSecurity defines the security context in which the view is going to be
*executed; this means that VIEW can be executed with current user permissions or
*with permissions of the user who defined the VIEW
*
** use permissions of the user who defined the VIEW
*
*
* DEFINER = 2;
*/
DEFINER(2),
;
/**
*
** use current user permissions
*
*
* INVOKER = 1;
*/
public static final int INVOKER_VALUE = 1;
/**
*
** use permissions of the user who defined the VIEW
*
*
* DEFINER = 2;
*/
public static final int DEFINER_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ViewSqlSecurity valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ViewSqlSecurity forNumber(int value) {
switch (value) {
case 1: return INVOKER;
case 2: return DEFINER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ViewSqlSecurity> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ViewSqlSecurity findValueByNumber(int number) {
return ViewSqlSecurity.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.getDescriptor().getEnumTypes().get(2);
}
private static final ViewSqlSecurity[] VALUES = values();
public static ViewSqlSecurity valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private ViewSqlSecurity(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Mysqlx.Crud.ViewSqlSecurity)
}
/**
*
**
*ViewCheckOption limits the write operations done on a `VIEW`
*(`INSERT`, `UPDATE`, `DELETE`) to rows in which the `WHERE` clause is `TRUE`
*
** the expression identifying an element from the source data,
*which can include a column identifier or any expression
*
*
* required .Mysqlx.Expr.Expr source = 1;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getSourceOrBuilder() {
return source_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : source_;
}
public static final int ALIAS_FIELD_NUMBER = 2;
private volatile java.lang.Object alias_;
/**
*
** optional alias. Required for DOCUMENTs (clients may use
*the source string as default)
*
*
* optional string alias = 2;
* @return Whether the alias field is set.
*/
@java.lang.Override
public boolean hasAlias() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
** optional alias. Required for DOCUMENTs (clients may use
*the source string as default)
*
*
* optional string alias = 2;
* @return The alias.
*/
@java.lang.Override
public java.lang.String getAlias() {
java.lang.Object ref = alias_;
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()) {
alias_ = s;
}
return s;
}
}
/**
*
** optional alias. Required for DOCUMENTs (clients may use
*the source string as default)
*
*
* optional string alias = 2;
* @return The bytes for alias.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAliasBytes() {
java.lang.Object ref = alias_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
alias_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasSource()) {
memoizedIsInitialized = 0;
return false;
}
if (!getSource().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getSource());
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alias_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSource());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alias_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxCrud.Projection)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxCrud.Projection other = (com.mysql.cj.x.protobuf.MysqlxCrud.Projection) obj;
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (!getSource()
.equals(other.getSource())) return false;
}
if (hasAlias() != other.hasAlias()) return false;
if (hasAlias()) {
if (!getAlias()
.equals(other.getAlias())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
if (hasAlias()) {
hash = (37 * hash) + ALIAS_FIELD_NUMBER;
hash = (53 * hash) + getAlias().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection 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.MysqlxCrud.Projection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection 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.MysqlxCrud.Projection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxCrud.Projection prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Mysqlx.Crud.Projection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Projection)
com.mysql.cj.x.protobuf.MysqlxCrud.ProjectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Projection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Projection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxCrud.Projection.class, com.mysql.cj.x.protobuf.MysqlxCrud.Projection.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxCrud.Projection.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSourceFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (sourceBuilder_ == null) {
source_ = null;
} else {
sourceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
alias_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Projection_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Projection getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxCrud.Projection.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Projection build() {
com.mysql.cj.x.protobuf.MysqlxCrud.Projection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Projection buildPartial() {
com.mysql.cj.x.protobuf.MysqlxCrud.Projection result = new com.mysql.cj.x.protobuf.MysqlxCrud.Projection(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (sourceBuilder_ == null) {
result.source_ = source_;
} else {
result.source_ = sourceBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.alias_ = alias_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.mysql.cj.x.protobuf.MysqlxCrud.Projection) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.Projection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.Projection other) {
if (other == com.mysql.cj.x.protobuf.MysqlxCrud.Projection.getDefaultInstance()) return this;
if (other.hasSource()) {
mergeSource(other.getSource());
}
if (other.hasAlias()) {
bitField0_ |= 0x00000002;
alias_ = other.alias_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasSource()) {
return false;
}
if (!getSource().isInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getSourceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
alias_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.mysql.cj.x.protobuf.MysqlxExpr.Expr source_;
private com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder> sourceBuilder_;
/**
*
** the expression identifying an element from the source data,
*which can include a column identifier or any expression
*
*
* required .Mysqlx.Expr.Expr source = 1;
* @return Whether the source field is set.
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
** the expression identifying an element from the source data,
*which can include a column identifier or any expression
*
** optional alias. Required for DOCUMENTs (clients may use
*the source string as default)
*
*
* optional string alias = 2;
* @return Whether the alias field is set.
*/
public boolean hasAlias() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
** optional alias. Required for DOCUMENTs (clients may use
*the source string as default)
*
*
* optional string alias = 2;
* @return The alias.
*/
public java.lang.String getAlias() {
java.lang.Object ref = alias_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
alias_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
** optional alias. Required for DOCUMENTs (clients may use
*the source string as default)
*
*
* optional string alias = 2;
* @return The bytes for alias.
*/
public com.google.protobuf.ByteString
getAliasBytes() {
java.lang.Object ref = alias_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
alias_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
** optional alias. Required for DOCUMENTs (clients may use
*the source string as default)
*
*
* optional string alias = 2;
* @param value The alias to set.
* @return This builder for chaining.
*/
public Builder setAlias(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
alias_ = value;
onChanged();
return this;
}
/**
*
** optional alias. Required for DOCUMENTs (clients may use
*the source string as default)
*
*
* optional string alias = 2;
* @return This builder for chaining.
*/
public Builder clearAlias() {
bitField0_ = (bitField0_ & ~0x00000002);
alias_ = getDefaultInstance().getAlias();
onChanged();
return this;
}
/**
*
** optional alias. Required for DOCUMENTs (clients may use
*the source string as default)
*
*
* optional string alias = 2;
* @param value The bytes for alias to set.
* @return This builder for chaining.
*/
public Builder setAliasBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
alias_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Mysqlx.Crud.Projection)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Crud.Projection)
private static final com.mysql.cj.x.protobuf.MysqlxCrud.Projection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.Projection();
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Projection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Projection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CollectionOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Collection)
com.google.protobuf.MessageOrBuilder {
/**
* required string name = 1;
* @return Whether the name field is set.
*/
boolean hasName();
/**
* required string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
* required string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional string schema = 2;
* @return Whether the schema field is set.
*/
boolean hasSchema();
/**
* optional string schema = 2;
* @return The schema.
*/
java.lang.String getSchema();
/**
* optional string schema = 2;
* @return The bytes for schema.
*/
com.google.protobuf.ByteString
getSchemaBytes();
}
/**
* Protobuf type {@code Mysqlx.Crud.Collection}
*/
public static final class Collection extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Crud.Collection)
CollectionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Collection.newBuilder() to construct.
private Collection(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Collection() {
name_ = "";
schema_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Collection();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Collection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Collection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxCrud.Collection.class, com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* required string name = 1;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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()) {
name_ = s;
}
return s;
}
}
/**
* required string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCHEMA_FIELD_NUMBER = 2;
private volatile java.lang.Object schema_;
/**
* optional string schema = 2;
* @return Whether the schema field is set.
*/
@java.lang.Override
public boolean hasSchema() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string schema = 2;
* @return The schema.
*/
@java.lang.Override
public java.lang.String getSchema() {
java.lang.Object ref = schema_;
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()) {
schema_ = s;
}
return s;
}
}
/**
* optional string schema = 2;
* @return The bytes for schema.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSchemaBytes() {
java.lang.Object ref = schema_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schema_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schema_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schema_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxCrud.Collection)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxCrud.Collection other = (com.mysql.cj.x.protobuf.MysqlxCrud.Collection) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasSchema() != other.hasSchema()) return false;
if (hasSchema()) {
if (!getSchema()
.equals(other.getSchema())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasSchema()) {
hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getSchema().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection 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.MysqlxCrud.Collection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection 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.MysqlxCrud.Collection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxCrud.Collection prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Mysqlx.Crud.Collection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Collection)
com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Collection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Collection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxCrud.Collection.class, com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxCrud.Collection.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
schema_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Collection_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Collection getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxCrud.Collection.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Collection build() {
com.mysql.cj.x.protobuf.MysqlxCrud.Collection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Collection buildPartial() {
com.mysql.cj.x.protobuf.MysqlxCrud.Collection result = new com.mysql.cj.x.protobuf.MysqlxCrud.Collection(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.schema_ = schema_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.mysql.cj.x.protobuf.MysqlxCrud.Collection) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.Collection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.Collection other) {
if (other == com.mysql.cj.x.protobuf.MysqlxCrud.Collection.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasSchema()) {
bitField0_ |= 0x00000002;
schema_ = other.schema_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
schema_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* required string name = 1;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* required string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* required string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object schema_ = "";
/**
* optional string schema = 2;
* @return Whether the schema field is set.
*/
public boolean hasSchema() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string schema = 2;
* @return The schema.
*/
public java.lang.String getSchema() {
java.lang.Object ref = schema_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
schema_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string schema = 2;
* @return The bytes for schema.
*/
public com.google.protobuf.ByteString
getSchemaBytes() {
java.lang.Object ref = schema_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schema_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string schema = 2;
* @param value The schema to set.
* @return This builder for chaining.
*/
public Builder setSchema(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schema_ = value;
onChanged();
return this;
}
/**
* optional string schema = 2;
* @return This builder for chaining.
*/
public Builder clearSchema() {
bitField0_ = (bitField0_ & ~0x00000002);
schema_ = getDefaultInstance().getSchema();
onChanged();
return this;
}
/**
* optional string schema = 2;
* @param value The bytes for schema to set.
* @return This builder for chaining.
*/
public Builder setSchemaBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schema_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Mysqlx.Crud.Collection)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Crud.Collection)
private static final com.mysql.cj.x.protobuf.MysqlxCrud.Collection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.Collection();
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Collection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Collection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LimitOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Limit)
com.google.protobuf.MessageOrBuilder {
/**
*
** maximum rows to filter
*
*
* required uint64 row_count = 1;
* @return Whether the rowCount field is set.
*/
boolean hasRowCount();
/**
*
** maximum rows to filter
*
*
* required uint64 row_count = 1;
* @return The rowCount.
*/
long getRowCount();
/**
*
** maximum rows to skip before applying the row_count
*
*
* optional uint64 offset = 2;
* @return Whether the offset field is set.
*/
boolean hasOffset();
/**
*
** maximum rows to skip before applying the row_count
*
*
* optional uint64 offset = 2;
* @return The offset.
*/
long getOffset();
}
/**
* Protobuf type {@code Mysqlx.Crud.Limit}
*/
public static final class Limit extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Crud.Limit)
LimitOrBuilder {
private static final long serialVersionUID = 0L;
// Use Limit.newBuilder() to construct.
private Limit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Limit() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Limit();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Limit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Limit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxCrud.Limit.class, com.mysql.cj.x.protobuf.MysqlxCrud.Limit.Builder.class);
}
private int bitField0_;
public static final int ROW_COUNT_FIELD_NUMBER = 1;
private long rowCount_;
/**
*
** maximum rows to filter
*
*
* required uint64 row_count = 1;
* @return Whether the rowCount field is set.
*/
@java.lang.Override
public boolean hasRowCount() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
** maximum rows to filter
*
*
* required uint64 row_count = 1;
* @return The rowCount.
*/
@java.lang.Override
public long getRowCount() {
return rowCount_;
}
public static final int OFFSET_FIELD_NUMBER = 2;
private long offset_;
/**
*
** maximum rows to skip before applying the row_count
*
*
* optional uint64 offset = 2;
* @return Whether the offset field is set.
*/
@java.lang.Override
public boolean hasOffset() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
** maximum rows to skip before applying the row_count
*
*
* optional uint64 offset = 2;
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasRowCount()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeUInt64(1, rowCount_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt64(2, offset_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, rowCount_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, offset_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxCrud.Limit)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxCrud.Limit other = (com.mysql.cj.x.protobuf.MysqlxCrud.Limit) obj;
if (hasRowCount() != other.hasRowCount()) return false;
if (hasRowCount()) {
if (getRowCount()
!= other.getRowCount()) return false;
}
if (hasOffset() != other.hasOffset()) return false;
if (hasOffset()) {
if (getOffset()
!= other.getOffset()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRowCount()) {
hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRowCount());
}
if (hasOffset()) {
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOffset());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit 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.MysqlxCrud.Limit parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit 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.MysqlxCrud.Limit parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxCrud.Limit prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Mysqlx.Crud.Limit}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Limit)
com.mysql.cj.x.protobuf.MysqlxCrud.LimitOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Limit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Limit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxCrud.Limit.class, com.mysql.cj.x.protobuf.MysqlxCrud.Limit.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxCrud.Limit.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
rowCount_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
offset_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Limit_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Limit getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxCrud.Limit.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Limit build() {
com.mysql.cj.x.protobuf.MysqlxCrud.Limit result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Limit buildPartial() {
com.mysql.cj.x.protobuf.MysqlxCrud.Limit result = new com.mysql.cj.x.protobuf.MysqlxCrud.Limit(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.rowCount_ = rowCount_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.offset_ = offset_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.mysql.cj.x.protobuf.MysqlxCrud.Limit) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.Limit)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.Limit other) {
if (other == com.mysql.cj.x.protobuf.MysqlxCrud.Limit.getDefaultInstance()) return this;
if (other.hasRowCount()) {
setRowCount(other.getRowCount());
}
if (other.hasOffset()) {
setOffset(other.getOffset());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasRowCount()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
rowCount_ = input.readUInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
offset_ = input.readUInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long rowCount_ ;
/**
*
** maximum rows to filter
*
*
* required uint64 row_count = 1;
* @return Whether the rowCount field is set.
*/
@java.lang.Override
public boolean hasRowCount() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
** maximum rows to filter
*
*
* required uint64 row_count = 1;
* @return The rowCount.
*/
@java.lang.Override
public long getRowCount() {
return rowCount_;
}
/**
*
** maximum rows to filter
*
*
* required uint64 row_count = 1;
* @param value The rowCount to set.
* @return This builder for chaining.
*/
public Builder setRowCount(long value) {
bitField0_ |= 0x00000001;
rowCount_ = value;
onChanged();
return this;
}
/**
*
** maximum rows to filter
*
*
* required uint64 row_count = 1;
* @return This builder for chaining.
*/
public Builder clearRowCount() {
bitField0_ = (bitField0_ & ~0x00000001);
rowCount_ = 0L;
onChanged();
return this;
}
private long offset_ ;
/**
*
** maximum rows to skip before applying the row_count
*
*
* optional uint64 offset = 2;
* @return Whether the offset field is set.
*/
@java.lang.Override
public boolean hasOffset() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
** maximum rows to skip before applying the row_count
*
*
* optional uint64 offset = 2;
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
/**
*
** maximum rows to skip before applying the row_count
*
*
* optional uint64 offset = 2;
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(long value) {
bitField0_ |= 0x00000002;
offset_ = value;
onChanged();
return this;
}
/**
*
** maximum rows to skip before applying the row_count
*
*
* optional uint64 offset = 2;
* @return This builder for chaining.
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000002);
offset_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Mysqlx.Crud.Limit)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Crud.Limit)
private static final com.mysql.cj.x.protobuf.MysqlxCrud.Limit DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.Limit();
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Limit parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Limit getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LimitExprOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Crud.LimitExpr)
com.google.protobuf.MessageOrBuilder {
/**
*
** maximum rows to filter
*
*
* required .Mysqlx.Expr.Expr row_count = 1;
* @return Whether the rowCount field is set.
*/
boolean hasRowCount();
/**
*
**
*LimitExpr, in comparison to Limit, is able to specify that row_count and
*offset are placeholders.
*This message support expressions of following types Expr/literal/UINT,
*Expr/PLACEHOLDER.
*
*
* Protobuf type {@code Mysqlx.Crud.LimitExpr}
*/
public static final class LimitExpr extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Crud.LimitExpr)
LimitExprOrBuilder {
private static final long serialVersionUID = 0L;
// Use LimitExpr.newBuilder() to construct.
private LimitExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private LimitExpr() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LimitExpr();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_LimitExpr_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_LimitExpr_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.class, com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.Builder.class);
}
private int bitField0_;
public static final int ROW_COUNT_FIELD_NUMBER = 1;
private com.mysql.cj.x.protobuf.MysqlxExpr.Expr rowCount_;
/**
*
** maximum rows to filter
*
*
* required .Mysqlx.Expr.Expr row_count = 1;
* @return Whether the rowCount field is set.
*/
@java.lang.Override
public boolean hasRowCount() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
** maximum rows to skip before applying the row_count
*
*
* optional .Mysqlx.Expr.Expr offset = 2;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getOffsetOrBuilder() {
return offset_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : offset_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasRowCount()) {
memoizedIsInitialized = 0;
return false;
}
if (!getRowCount().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (hasOffset()) {
if (!getOffset().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getRowCount());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getOffset());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRowCount());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOffset());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr other = (com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr) obj;
if (hasRowCount() != other.hasRowCount()) return false;
if (hasRowCount()) {
if (!getRowCount()
.equals(other.getRowCount())) return false;
}
if (hasOffset() != other.hasOffset()) return false;
if (hasOffset()) {
if (!getOffset()
.equals(other.getOffset())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRowCount()) {
hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getRowCount().hashCode();
}
if (hasOffset()) {
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getOffset().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr 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.MysqlxCrud.LimitExpr parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr 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.MysqlxCrud.LimitExpr parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
*LimitExpr, in comparison to Limit, is able to specify that row_count and
*offset are placeholders.
*This message support expressions of following types Expr/literal/UINT,
*Expr/PLACEHOLDER.
*
*
* Protobuf type {@code Mysqlx.Crud.LimitExpr}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Crud.LimitExpr)
com.mysql.cj.x.protobuf.MysqlxCrud.LimitExprOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_LimitExpr_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_LimitExpr_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.class, com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRowCountFieldBuilder();
getOffsetFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (rowCountBuilder_ == null) {
rowCount_ = null;
} else {
rowCountBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (offsetBuilder_ == null) {
offset_ = null;
} else {
offsetBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_LimitExpr_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr build() {
com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr buildPartial() {
com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr result = new com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (rowCountBuilder_ == null) {
result.rowCount_ = rowCount_;
} else {
result.rowCount_ = rowCountBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (offsetBuilder_ == null) {
result.offset_ = offset_;
} else {
result.offset_ = offsetBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr other) {
if (other == com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.getDefaultInstance()) return this;
if (other.hasRowCount()) {
mergeRowCount(other.getRowCount());
}
if (other.hasOffset()) {
mergeOffset(other.getOffset());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasRowCount()) {
return false;
}
if (!getRowCount().isInitialized()) {
return false;
}
if (hasOffset()) {
if (!getOffset().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getRowCountFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getOffsetFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.mysql.cj.x.protobuf.MysqlxExpr.Expr rowCount_;
private com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder> rowCountBuilder_;
/**
*
** maximum rows to filter
*
*
* required .Mysqlx.Expr.Expr row_count = 1;
* @return Whether the rowCount field is set.
*/
public boolean hasRowCount() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
** maximum rows to skip before applying the row_count
*
*
* optional .Mysqlx.Expr.Expr offset = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>
getOffsetFieldBuilder() {
if (offsetBuilder_ == null) {
offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>(
getOffset(),
getParentForChildren(),
isClean());
offset_ = null;
}
return offsetBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Mysqlx.Crud.LimitExpr)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Crud.LimitExpr)
private static final com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr();
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LimitExpr parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OrderOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Order)
com.google.protobuf.MessageOrBuilder {
/**
* required .Mysqlx.Expr.Expr expr = 1;
* @return Whether the expr field is set.
*/
boolean hasExpr();
/**
* required .Mysqlx.Expr.Expr expr = 1;
* @return The expr.
*/
com.mysql.cj.x.protobuf.MysqlxExpr.Expr getExpr();
/**
* required .Mysqlx.Expr.Expr expr = 1;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getExprOrBuilder();
/**
* optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC];
* @return Whether the direction field is set.
*/
boolean hasDirection();
/**
* optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC];
* @return The direction.
*/
com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction getDirection();
}
/**
*
**
*Sort order
*
*
* Protobuf type {@code Mysqlx.Crud.Order}
*/
public static final class Order extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Crud.Order)
OrderOrBuilder {
private static final long serialVersionUID = 0L;
// Use Order.newBuilder() to construct.
private Order(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Order() {
direction_ = 1;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Order();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Order_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Order_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxCrud.Order.class, com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder.class);
}
/**
* Protobuf enum {@code Mysqlx.Crud.Order.Direction}
*/
public enum Direction
implements com.google.protobuf.ProtocolMessageEnum {
/**
* ASC = 1;
*/
ASC(1),
/**
* DESC = 2;
*/
DESC(2),
;
/**
* ASC = 1;
*/
public static final int ASC_VALUE = 1;
/**
* DESC = 2;
*/
public static final int DESC_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Direction valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Direction forNumber(int value) {
switch (value) {
case 1: return ASC;
case 2: return DESC;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Direction> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Direction findValueByNumber(int number) {
return Direction.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.Order.getDescriptor().getEnumTypes().get(0);
}
private static final Direction[] VALUES = values();
public static Direction valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Direction(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Mysqlx.Crud.Order.Direction)
}
private int bitField0_;
public static final int EXPR_FIELD_NUMBER = 1;
private com.mysql.cj.x.protobuf.MysqlxExpr.Expr expr_;
/**
* required .Mysqlx.Expr.Expr expr = 1;
* @return Whether the expr field is set.
*/
@java.lang.Override
public boolean hasExpr() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .Mysqlx.Expr.Expr expr = 1;
* @return The expr.
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getExpr() {
return expr_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : expr_;
}
/**
* required .Mysqlx.Expr.Expr expr = 1;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getExprOrBuilder() {
return expr_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : expr_;
}
public static final int DIRECTION_FIELD_NUMBER = 2;
private int direction_;
/**
* optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC];
* @return Whether the direction field is set.
*/
@java.lang.Override public boolean hasDirection() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC];
* @return The direction.
*/
@java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction getDirection() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction result = com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction.valueOf(direction_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction.ASC : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasExpr()) {
memoizedIsInitialized = 0;
return false;
}
if (!getExpr().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getExpr());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeEnum(2, direction_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getExpr());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, direction_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxCrud.Order)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxCrud.Order other = (com.mysql.cj.x.protobuf.MysqlxCrud.Order) obj;
if (hasExpr() != other.hasExpr()) return false;
if (hasExpr()) {
if (!getExpr()
.equals(other.getExpr())) return false;
}
if (hasDirection() != other.hasDirection()) return false;
if (hasDirection()) {
if (direction_ != other.direction_) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasExpr()) {
hash = (37 * hash) + EXPR_FIELD_NUMBER;
hash = (53 * hash) + getExpr().hashCode();
}
if (hasDirection()) {
hash = (37 * hash) + DIRECTION_FIELD_NUMBER;
hash = (53 * hash) + direction_;
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Order 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.MysqlxCrud.Order parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Order 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.MysqlxCrud.Order parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxCrud.Order prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
*Sort order
*
*
* Protobuf type {@code Mysqlx.Crud.Order}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Order)
com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Order_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Order_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxCrud.Order.class, com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxCrud.Order.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getExprFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (exprBuilder_ == null) {
expr_ = null;
} else {
exprBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
direction_ = 1;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Order_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Order getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxCrud.Order.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Order build() {
com.mysql.cj.x.protobuf.MysqlxCrud.Order result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Order buildPartial() {
com.mysql.cj.x.protobuf.MysqlxCrud.Order result = new com.mysql.cj.x.protobuf.MysqlxCrud.Order(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (exprBuilder_ == null) {
result.expr_ = expr_;
} else {
result.expr_ = exprBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.direction_ = direction_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.mysql.cj.x.protobuf.MysqlxCrud.Order) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.Order)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.Order other) {
if (other == com.mysql.cj.x.protobuf.MysqlxCrud.Order.getDefaultInstance()) return this;
if (other.hasExpr()) {
mergeExpr(other.getExpr());
}
if (other.hasDirection()) {
setDirection(other.getDirection());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasExpr()) {
return false;
}
if (!getExpr().isInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getExprFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
int tmpRaw = input.readEnum();
com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction tmpValue =
com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(2, tmpRaw);
} else {
direction_ = tmpRaw;
bitField0_ |= 0x00000002;
}
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.mysql.cj.x.protobuf.MysqlxExpr.Expr expr_;
private com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder> exprBuilder_;
/**
* required .Mysqlx.Expr.Expr expr = 1;
* @return Whether the expr field is set.
*/
public boolean hasExpr() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .Mysqlx.Expr.Expr expr = 1;
* @return The expr.
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getExpr() {
if (exprBuilder_ == null) {
return expr_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : expr_;
} else {
return exprBuilder_.getMessage();
}
}
/**
* required .Mysqlx.Expr.Expr expr = 1;
*/
public Builder setExpr(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
if (exprBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expr_ = value;
onChanged();
} else {
exprBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Mysqlx.Expr.Expr expr = 1;
*/
public Builder setExpr(
com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
if (exprBuilder_ == null) {
expr_ = builderForValue.build();
onChanged();
} else {
exprBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Mysqlx.Expr.Expr expr = 1;
*/
public Builder mergeExpr(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
if (exprBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
expr_ != null &&
expr_ != com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance()) {
expr_ =
com.mysql.cj.x.protobuf.MysqlxExpr.Expr.newBuilder(expr_).mergeFrom(value).buildPartial();
} else {
expr_ = value;
}
onChanged();
} else {
exprBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Mysqlx.Expr.Expr expr = 1;
*/
public Builder clearExpr() {
if (exprBuilder_ == null) {
expr_ = null;
onChanged();
} else {
exprBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .Mysqlx.Expr.Expr expr = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getExprBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getExprFieldBuilder().getBuilder();
}
/**
* required .Mysqlx.Expr.Expr expr = 1;
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getExprOrBuilder() {
if (exprBuilder_ != null) {
return exprBuilder_.getMessageOrBuilder();
} else {
return expr_ == null ?
com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : expr_;
}
}
/**
* required .Mysqlx.Expr.Expr expr = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>
getExprFieldBuilder() {
if (exprBuilder_ == null) {
exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>(
getExpr(),
getParentForChildren(),
isClean());
expr_ = null;
}
return exprBuilder_;
}
private int direction_ = 1;
/**
* optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC];
* @return Whether the direction field is set.
*/
@java.lang.Override public boolean hasDirection() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC];
* @return The direction.
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction getDirection() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction result = com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction.valueOf(direction_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction.ASC : result;
}
/**
* optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC];
* @param value The direction to set.
* @return This builder for chaining.
*/
public Builder setDirection(com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
direction_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC];
* @return This builder for chaining.
*/
public Builder clearDirection() {
bitField0_ = (bitField0_ & ~0x00000002);
direction_ = 1;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Mysqlx.Crud.Order)
}
// @@protoc_insertion_point(class_scope:Mysqlx.Crud.Order)
private static final com.mysql.cj.x.protobuf.MysqlxCrud.Order DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.Order();
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Order getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Order parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Order getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateOperationOrBuilder extends
// @@protoc_insertion_point(interface_extends:Mysqlx.Crud.UpdateOperation)
com.google.protobuf.MessageOrBuilder {
/**
*
** specification of the value to be updated
*- if data_model is TABLE, a column name may be specified and also
*a document path, if the column has type JSON
*- if data_model is DOCUMENT, only document paths are allowed
*@note in both cases, schema and table must be not set
*
*
* required .Mysqlx.Expr.ColumnIdentifier source = 1;
* @return Whether the source field is set.
*/
boolean hasSource();
/**
*
** specification of the value to be updated
*- if data_model is TABLE, a column name may be specified and also
*a document path, if the column has type JSON
*- if data_model is DOCUMENT, only document paths are allowed
*@note in both cases, schema and table must be not set
*
** specification of the value to be updated
*- if data_model is TABLE, a column name may be specified and also
*a document path, if the column has type JSON
*- if data_model is DOCUMENT, only document paths are allowed
*@note in both cases, schema and table must be not set
*
** an expression to be computed as the new value for the operation
*
*
* optional .Mysqlx.Expr.Expr value = 3;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
*
** an expression to be computed as the new value for the operation
*
*
* optional .Mysqlx.Expr.Expr value = 3;
* @return The value.
*/
com.mysql.cj.x.protobuf.MysqlxExpr.Expr getValue();
/**
*
** an expression to be computed as the new value for the operation
*
*
* optional .Mysqlx.Expr.Expr value = 3;
*/
com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code Mysqlx.Crud.UpdateOperation}
*/
public static final class UpdateOperation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Crud.UpdateOperation)
UpdateOperationOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateOperation.newBuilder() to construct.
private UpdateOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private UpdateOperation() {
operation_ = 1;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateOperation();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_UpdateOperation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_UpdateOperation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.class, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.Builder.class);
}
/**
* Protobuf enum {@code Mysqlx.Crud.UpdateOperation.UpdateType}
*/
public enum UpdateType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
** only allowed for TABLE
*
*
* SET = 1;
*/
SET(1),
/**
*
** no value (removes the identified path from a object or array)
*
*
* ITEM_REMOVE = 2;
*/
ITEM_REMOVE(2),
/**
*
** sets the new value on the identified path
*
*
* ITEM_SET = 3;
*/
ITEM_SET(3),
/**
*
** replaces a value if the path exists
*
*
* ITEM_REPLACE = 4;
*/
ITEM_REPLACE(4),
/**
*
** source and value must be documents
*
*
* ITEM_MERGE = 5;
*/
ITEM_MERGE(5),
/**
*
** insert the value in the array at the index identified in the source path
*
*
* ARRAY_INSERT = 6;
*/
ARRAY_INSERT(6),
/**
*
** append the value on the array at the identified path
*
*
* ARRAY_APPEND = 7;
*/
ARRAY_APPEND(7),
/**
*
** merge JSON object value with the provided patch expression
*
*
* MERGE_PATCH = 8;
*/
MERGE_PATCH(8),
;
/**
*
** only allowed for TABLE
*
*
* SET = 1;
*/
public static final int SET_VALUE = 1;
/**
*
** no value (removes the identified path from a object or array)
*
*
* ITEM_REMOVE = 2;
*/
public static final int ITEM_REMOVE_VALUE = 2;
/**
*
** sets the new value on the identified path
*
*
* ITEM_SET = 3;
*/
public static final int ITEM_SET_VALUE = 3;
/**
*
** replaces a value if the path exists
*
*
* ITEM_REPLACE = 4;
*/
public static final int ITEM_REPLACE_VALUE = 4;
/**
*
** source and value must be documents
*
*
* ITEM_MERGE = 5;
*/
public static final int ITEM_MERGE_VALUE = 5;
/**
*
** insert the value in the array at the index identified in the source path
*
*
* ARRAY_INSERT = 6;
*/
public static final int ARRAY_INSERT_VALUE = 6;
/**
*
** append the value on the array at the identified path
*
*
* ARRAY_APPEND = 7;
*/
public static final int ARRAY_APPEND_VALUE = 7;
/**
*
** merge JSON object value with the provided patch expression
*
*
* MERGE_PATCH = 8;
*/
public static final int MERGE_PATCH_VALUE = 8;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static UpdateType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static UpdateType forNumber(int value) {
switch (value) {
case 1: return SET;
case 2: return ITEM_REMOVE;
case 3: return ITEM_SET;
case 4: return ITEM_REPLACE;
case 5: return ITEM_MERGE;
case 6: return ARRAY_INSERT;
case 7: return ARRAY_APPEND;
case 8: return MERGE_PATCH;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
UpdateType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public UpdateType findValueByNumber(int number) {
return UpdateType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.getDescriptor().getEnumTypes().get(0);
}
private static final UpdateType[] VALUES = values();
public static UpdateType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private UpdateType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Mysqlx.Crud.UpdateOperation.UpdateType)
}
private int bitField0_;
public static final int SOURCE_FIELD_NUMBER = 1;
private com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier source_;
/**
*
** specification of the value to be updated
*- if data_model is TABLE, a column name may be specified and also
*a document path, if the column has type JSON
*- if data_model is DOCUMENT, only document paths are allowed
*@note in both cases, schema and table must be not set
*
*
* required .Mysqlx.Expr.ColumnIdentifier source = 1;
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
** specification of the value to be updated
*- if data_model is TABLE, a column name may be specified and also
*a document path, if the column has type JSON
*- if data_model is DOCUMENT, only document paths are allowed
*@note in both cases, schema and table must be not set
*
** specification of the value to be updated
*- if data_model is TABLE, a column name may be specified and also
*a document path, if the column has type JSON
*- if data_model is DOCUMENT, only document paths are allowed
*@note in both cases, schema and table must be not set
*
*
* required .Mysqlx.Expr.ColumnIdentifier source = 1;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifierOrBuilder getSourceOrBuilder() {
return source_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance() : source_;
}
public static final int OPERATION_FIELD_NUMBER = 2;
private int operation_;
/**
*
** the type of operation to be performed
*
*
* required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2;
* @return Whether the operation field is set.
*/
@java.lang.Override public boolean hasOperation() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
** the type of operation to be performed
*
*
* required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2;
* @return The operation.
*/
@java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.UpdateType getOperation() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.UpdateType result = com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.UpdateType.valueOf(operation_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.UpdateType.SET : result;
}
public static final int VALUE_FIELD_NUMBER = 3;
private com.mysql.cj.x.protobuf.MysqlxExpr.Expr value_;
/**
*
** an expression to be computed as the new value for the operation
*
*
* optional .Mysqlx.Expr.Expr value = 3;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
** an expression to be computed as the new value for the operation
*
*
* optional .Mysqlx.Expr.Expr value = 3;
* @return The value.
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getValue() {
return value_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : value_;
}
/**
*
** an expression to be computed as the new value for the operation
*
*
* optional .Mysqlx.Expr.Expr value = 3;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getValueOrBuilder() {
return value_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasSource()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasOperation()) {
memoizedIsInitialized = 0;
return false;
}
if (!getSource().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (hasValue()) {
if (!getValue().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getSource());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeEnum(2, operation_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getValue());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSource());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, operation_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getValue());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation other = (com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation) obj;
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (!getSource()
.equals(other.getSource())) return false;
}
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (operation_ != other.operation_) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
if (hasOperation()) {
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + operation_;
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation 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.MysqlxCrud.UpdateOperation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation 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.MysqlxCrud.UpdateOperation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Mysqlx.Crud.UpdateOperation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Crud.UpdateOperation)
com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_UpdateOperation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_UpdateOperation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.class, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSourceFieldBuilder();
getValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (sourceBuilder_ == null) {
source_ = null;
} else {
sourceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
operation_ = 1;
bitField0_ = (bitField0_ & ~0x00000002);
if (valueBuilder_ == null) {
value_ = null;
} else {
valueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_UpdateOperation_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation build() {
com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation buildPartial() {
com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation result = new com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (sourceBuilder_ == null) {
result.source_ = source_;
} else {
result.source_ = sourceBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.operation_ = operation_;
if (((from_bitField0_ & 0x00000004) != 0)) {
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation other) {
if (other == com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.getDefaultInstance()) return this;
if (other.hasSource()) {
mergeSource(other.getSource());
}
if (other.hasOperation()) {
setOperation(other.getOperation());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasSource()) {
return false;
}
if (!hasOperation()) {
return false;
}
if (!getSource().isInitialized()) {
return false;
}
if (hasValue()) {
if (!getValue().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getSourceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
int tmpRaw = input.readEnum();
com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.UpdateType tmpValue =
com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.UpdateType.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(2, tmpRaw);
} else {
operation_ = tmpRaw;
bitField0_ |= 0x00000002;
}
break;
} // case 16
case 26: {
input.readMessage(
getValueFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier source_;
private com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier, com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifierOrBuilder> sourceBuilder_;
/**
*
** specification of the value to be updated
*- if data_model is TABLE, a column name may be specified and also
*a document path, if the column has type JSON
*- if data_model is DOCUMENT, only document paths are allowed
*@note in both cases, schema and table must be not set
*
*
* required .Mysqlx.Expr.ColumnIdentifier source = 1;
* @return Whether the source field is set.
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
** specification of the value to be updated
*- if data_model is TABLE, a column name may be specified and also
*a document path, if the column has type JSON
*- if data_model is DOCUMENT, only document paths are allowed
*@note in both cases, schema and table must be not set
*
** specification of the value to be updated
*- if data_model is TABLE, a column name may be specified and also
*a document path, if the column has type JSON
*- if data_model is DOCUMENT, only document paths are allowed
*@note in both cases, schema and table must be not set
*
** specification of the value to be updated
*- if data_model is TABLE, a column name may be specified and also
*a document path, if the column has type JSON
*- if data_model is DOCUMENT, only document paths are allowed
*@note in both cases, schema and table must be not set
*
** specification of the value to be updated
*- if data_model is TABLE, a column name may be specified and also
*a document path, if the column has type JSON
*- if data_model is DOCUMENT, only document paths are allowed
*@note in both cases, schema and table must be not set
*
** specification of the value to be updated
*- if data_model is TABLE, a column name may be specified and also
*a document path, if the column has type JSON
*- if data_model is DOCUMENT, only document paths are allowed
*@note in both cases, schema and table must be not set
*
** specification of the value to be updated
*- if data_model is TABLE, a column name may be specified and also
*a document path, if the column has type JSON
*- if data_model is DOCUMENT, only document paths are allowed
*@note in both cases, schema and table must be not set
*
** specification of the value to be updated
*- if data_model is TABLE, a column name may be specified and also
*a document path, if the column has type JSON
*- if data_model is DOCUMENT, only document paths are allowed
*@note in both cases, schema and table must be not set
*
** specification of the value to be updated
*- if data_model is TABLE, a column name may be specified and also
*a document path, if the column has type JSON
*- if data_model is DOCUMENT, only document paths are allowed
*@note in both cases, schema and table must be not set
*
** an expression to be computed as the new value for the operation
*
*
* optional .Mysqlx.Expr.Expr value = 3;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
** an expression to be computed as the new value for the operation
*
*
* optional .Mysqlx.Expr.Expr value = 3;
* @return The value.
*/
public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getValue() {
if (valueBuilder_ == null) {
return value_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
*
** an expression to be computed as the new value for the operation
*
*
* optional .Mysqlx.Expr.Expr value = 3;
*/
public Builder setValue(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
** an expression to be computed as the new value for the operation
*
**
*Find Documents/Rows in a Collection/Table
*@startuml
*client -> server: Find
*... one or more Resultset ...
*@enduml
*@returns @ref Mysqlx::Resultset
*
*
* Protobuf type {@code Mysqlx.Crud.Find}
*/
public static final class Find extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Mysqlx.Crud.Find)
FindOrBuilder {
private static final long serialVersionUID = 0L;
// Use Find.newBuilder() to construct.
private Find(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Find() {
dataModel_ = 1;
projection_ = java.util.Collections.emptyList();
args_ = java.util.Collections.emptyList();
order_ = java.util.Collections.emptyList();
grouping_ = java.util.Collections.emptyList();
locking_ = 1;
lockingOptions_ = 1;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Find();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Find_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Find_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxCrud.Find.class, com.mysql.cj.x.protobuf.MysqlxCrud.Find.Builder.class);
}
/**
* Protobuf enum {@code Mysqlx.Crud.Find.RowLock}
*/
public enum RowLock
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
** Lock matching rows against updates
*
*
* SHARED_LOCK = 1;
*/
SHARED_LOCK(1),
/**
*
** Lock matching rows so no other transaction can read or write to it
*
*
* SHARED_LOCK = 1;
*/
public static final int SHARED_LOCK_VALUE = 1;
/**
*
** Lock matching rows so no other transaction can read or write to it
*
*
* EXCLUSIVE_LOCK = 2;
*/
public static final int EXCLUSIVE_LOCK_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RowLock valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static RowLock forNumber(int value) {
switch (value) {
case 1: return SHARED_LOCK;
case 2: return EXCLUSIVE_LOCK;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
RowLock> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public RowLock findValueByNumber(int number) {
return RowLock.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.Find.getDescriptor().getEnumTypes().get(0);
}
private static final RowLock[] VALUES = values();
public static RowLock valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private RowLock(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Mysqlx.Crud.Find.RowLock)
}
/**
* Protobuf enum {@code Mysqlx.Crud.Find.RowLockOptions}
*/
public enum RowLockOptions
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
** Do not wait to acquire row lock, fail with an error
*if a requested row is locked
*
*
* NOWAIT = 1;
*/
NOWAIT(1),
/**
*
** Do not wait to acquire a row lock,
*remove locked rows from the result set
*
*
* SKIP_LOCKED = 2;
*/
SKIP_LOCKED(2),
;
/**
*
** Do not wait to acquire row lock, fail with an error
*if a requested row is locked
*
*
* NOWAIT = 1;
*/
public static final int NOWAIT_VALUE = 1;
/**
*
** Do not wait to acquire a row lock,
*remove locked rows from the result set
*
*
* SKIP_LOCKED = 2;
*/
public static final int SKIP_LOCKED_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RowLockOptions valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static RowLockOptions forNumber(int value) {
switch (value) {
case 1: return NOWAIT;
case 2: return SKIP_LOCKED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
RowLockOptions> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public RowLockOptions findValueByNumber(int number) {
return RowLockOptions.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.Find.getDescriptor().getEnumTypes().get(1);
}
private static final RowLockOptions[] VALUES = values();
public static RowLockOptions valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private RowLockOptions(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Mysqlx.Crud.Find.RowLockOptions)
}
private int bitField0_;
public static final int COLLECTION_FIELD_NUMBER = 2;
private com.mysql.cj.x.protobuf.MysqlxCrud.Collection collection_;
/**
*
** collection in which to find
*
*
* required .Mysqlx.Crud.Collection collection = 2;
* @return Whether the collection field is set.
*/
@java.lang.Override
public boolean hasCollection() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
** numbers of rows that shall be skipped and returned
*(user can set one of: limit, limit_expr)
*
*
* optional .Mysqlx.Crud.Limit limit = 6;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.LimitOrBuilder getLimitOrBuilder() {
return limit_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Limit.getDefaultInstance() : limit_;
}
public static final int ORDER_FIELD_NUMBER = 7;
private java.util.List order_;
/**
*
** sort-order in which the rows/document shall be returned in
*
*
* repeated .Mysqlx.Crud.Order order = 7;
*/
@java.lang.Override
public java.util.List getOrderList() {
return order_;
}
/**
*
** sort-order in which the rows/document shall be returned in
*
*
* repeated .Mysqlx.Crud.Order order = 7;
*/
@java.lang.Override
public java.util.List
getOrderOrBuilderList() {
return order_;
}
/**
*
** sort-order in which the rows/document shall be returned in
*
*
* repeated .Mysqlx.Crud.Order order = 7;
*/
@java.lang.Override
public int getOrderCount() {
return order_.size();
}
/**
*
** sort-order in which the rows/document shall be returned in
*
*
* repeated .Mysqlx.Crud.Order order = 7;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Order getOrder(int index) {
return order_.get(index);
}
/**
*
** sort-order in which the rows/document shall be returned in
*
*
* repeated .Mysqlx.Crud.Order order = 7;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder getOrderOrBuilder(
int index) {
return order_.get(index);
}
public static final int GROUPING_FIELD_NUMBER = 8;
private java.util.List grouping_;
/**
*
** column expression list for aggregation (GROUP BY)
*
** numbers of rows that shall be skipped and returned
*(user can set one of: limit, limit_expr)
*
*
* optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExprOrBuilder getLimitExprOrBuilder() {
return limitExpr_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.getDefaultInstance() : limitExpr_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasCollection()) {
memoizedIsInitialized = 0;
return false;
}
if (!getCollection().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getProjectionCount(); i++) {
if (!getProjection(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getArgsCount(); i++) {
if (!getArgs(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasCriteria()) {
if (!getCriteria().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasLimit()) {
if (!getLimit().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getOrderCount(); i++) {
if (!getOrder(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getGroupingCount(); i++) {
if (!getGrouping(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasGroupingCriteria()) {
if (!getGroupingCriteria().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasLimitExpr()) {
if (!getLimitExpr().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getCollection());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeEnum(3, dataModel_);
}
for (int i = 0; i < projection_.size(); i++) {
output.writeMessage(4, projection_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getCriteria());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getLimit());
}
for (int i = 0; i < order_.size(); i++) {
output.writeMessage(7, order_.get(i));
}
for (int i = 0; i < grouping_.size(); i++) {
output.writeMessage(8, grouping_.get(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(9, getGroupingCriteria());
}
for (int i = 0; i < args_.size(); i++) {
output.writeMessage(11, args_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeEnum(12, locking_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeEnum(13, lockingOptions_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(14, getLimitExpr());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCollection());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, dataModel_);
}
for (int i = 0; i < projection_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, projection_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getCriteria());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getLimit());
}
for (int i = 0; i < order_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, order_.get(i));
}
for (int i = 0; i < grouping_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, grouping_.get(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getGroupingCriteria());
}
for (int i = 0; i < args_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, args_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(12, locking_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(13, lockingOptions_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getLimitExpr());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.mysql.cj.x.protobuf.MysqlxCrud.Find)) {
return super.equals(obj);
}
com.mysql.cj.x.protobuf.MysqlxCrud.Find other = (com.mysql.cj.x.protobuf.MysqlxCrud.Find) obj;
if (hasCollection() != other.hasCollection()) return false;
if (hasCollection()) {
if (!getCollection()
.equals(other.getCollection())) return false;
}
if (hasDataModel() != other.hasDataModel()) return false;
if (hasDataModel()) {
if (dataModel_ != other.dataModel_) return false;
}
if (!getProjectionList()
.equals(other.getProjectionList())) return false;
if (!getArgsList()
.equals(other.getArgsList())) return false;
if (hasCriteria() != other.hasCriteria()) return false;
if (hasCriteria()) {
if (!getCriteria()
.equals(other.getCriteria())) return false;
}
if (hasLimit() != other.hasLimit()) return false;
if (hasLimit()) {
if (!getLimit()
.equals(other.getLimit())) return false;
}
if (!getOrderList()
.equals(other.getOrderList())) return false;
if (!getGroupingList()
.equals(other.getGroupingList())) return false;
if (hasGroupingCriteria() != other.hasGroupingCriteria()) return false;
if (hasGroupingCriteria()) {
if (!getGroupingCriteria()
.equals(other.getGroupingCriteria())) return false;
}
if (hasLocking() != other.hasLocking()) return false;
if (hasLocking()) {
if (locking_ != other.locking_) return false;
}
if (hasLockingOptions() != other.hasLockingOptions()) return false;
if (hasLockingOptions()) {
if (lockingOptions_ != other.lockingOptions_) return false;
}
if (hasLimitExpr() != other.hasLimitExpr()) return false;
if (hasLimitExpr()) {
if (!getLimitExpr()
.equals(other.getLimitExpr())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCollection()) {
hash = (37 * hash) + COLLECTION_FIELD_NUMBER;
hash = (53 * hash) + getCollection().hashCode();
}
if (hasDataModel()) {
hash = (37 * hash) + DATA_MODEL_FIELD_NUMBER;
hash = (53 * hash) + dataModel_;
}
if (getProjectionCount() > 0) {
hash = (37 * hash) + PROJECTION_FIELD_NUMBER;
hash = (53 * hash) + getProjectionList().hashCode();
}
if (getArgsCount() > 0) {
hash = (37 * hash) + ARGS_FIELD_NUMBER;
hash = (53 * hash) + getArgsList().hashCode();
}
if (hasCriteria()) {
hash = (37 * hash) + CRITERIA_FIELD_NUMBER;
hash = (53 * hash) + getCriteria().hashCode();
}
if (hasLimit()) {
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getLimit().hashCode();
}
if (getOrderCount() > 0) {
hash = (37 * hash) + ORDER_FIELD_NUMBER;
hash = (53 * hash) + getOrderList().hashCode();
}
if (getGroupingCount() > 0) {
hash = (37 * hash) + GROUPING_FIELD_NUMBER;
hash = (53 * hash) + getGroupingList().hashCode();
}
if (hasGroupingCriteria()) {
hash = (37 * hash) + GROUPING_CRITERIA_FIELD_NUMBER;
hash = (53 * hash) + getGroupingCriteria().hashCode();
}
if (hasLocking()) {
hash = (37 * hash) + LOCKING_FIELD_NUMBER;
hash = (53 * hash) + locking_;
}
if (hasLockingOptions()) {
hash = (37 * hash) + LOCKING_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + lockingOptions_;
}
if (hasLimitExpr()) {
hash = (37 * hash) + LIMIT_EXPR_FIELD_NUMBER;
hash = (53 * hash) + getLimitExpr().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Find parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Find parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Find parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Find 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.MysqlxCrud.Find parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Find 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.MysqlxCrud.Find parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Find parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Find parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Find parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Find parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.mysql.cj.x.protobuf.MysqlxCrud.Find parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxCrud.Find prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
*Find Documents/Rows in a Collection/Table
*@startuml
*client -> server: Find
*... one or more Resultset ...
*@enduml
*@returns @ref Mysqlx::Resultset
*
*
* Protobuf type {@code Mysqlx.Crud.Find}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Find)
com.mysql.cj.x.protobuf.MysqlxCrud.FindOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Find_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Find_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.mysql.cj.x.protobuf.MysqlxCrud.Find.class, com.mysql.cj.x.protobuf.MysqlxCrud.Find.Builder.class);
}
// Construct using com.mysql.cj.x.protobuf.MysqlxCrud.Find.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCollectionFieldBuilder();
getProjectionFieldBuilder();
getArgsFieldBuilder();
getCriteriaFieldBuilder();
getLimitFieldBuilder();
getOrderFieldBuilder();
getGroupingFieldBuilder();
getGroupingCriteriaFieldBuilder();
getLimitExprFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (collectionBuilder_ == null) {
collection_ = null;
} else {
collectionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
dataModel_ = 1;
bitField0_ = (bitField0_ & ~0x00000002);
if (projectionBuilder_ == null) {
projection_ = java.util.Collections.emptyList();
} else {
projection_ = null;
projectionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (argsBuilder_ == null) {
args_ = java.util.Collections.emptyList();
} else {
args_ = null;
argsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (criteriaBuilder_ == null) {
criteria_ = null;
} else {
criteriaBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (limitBuilder_ == null) {
limit_ = null;
} else {
limitBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (orderBuilder_ == null) {
order_ = java.util.Collections.emptyList();
} else {
order_ = null;
orderBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (groupingBuilder_ == null) {
grouping_ = java.util.Collections.emptyList();
} else {
grouping_ = null;
groupingBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
if (groupingCriteriaBuilder_ == null) {
groupingCriteria_ = null;
} else {
groupingCriteriaBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
locking_ = 1;
bitField0_ = (bitField0_ & ~0x00000200);
lockingOptions_ = 1;
bitField0_ = (bitField0_ & ~0x00000400);
if (limitExprBuilder_ == null) {
limitExpr_ = null;
} else {
limitExprBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Find_descriptor;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Find getDefaultInstanceForType() {
return com.mysql.cj.x.protobuf.MysqlxCrud.Find.getDefaultInstance();
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Find build() {
com.mysql.cj.x.protobuf.MysqlxCrud.Find result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Find buildPartial() {
com.mysql.cj.x.protobuf.MysqlxCrud.Find result = new com.mysql.cj.x.protobuf.MysqlxCrud.Find(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (collectionBuilder_ == null) {
result.collection_ = collection_;
} else {
result.collection_ = collectionBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.dataModel_ = dataModel_;
if (projectionBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
projection_ = java.util.Collections.unmodifiableList(projection_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.projection_ = projection_;
} else {
result.projection_ = projectionBuilder_.build();
}
if (argsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
args_ = java.util.Collections.unmodifiableList(args_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.args_ = args_;
} else {
result.args_ = argsBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
if (criteriaBuilder_ == null) {
result.criteria_ = criteria_;
} else {
result.criteria_ = criteriaBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
if (limitBuilder_ == null) {
result.limit_ = limit_;
} else {
result.limit_ = limitBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (orderBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
order_ = java.util.Collections.unmodifiableList(order_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.order_ = order_;
} else {
result.order_ = orderBuilder_.build();
}
if (groupingBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
grouping_ = java.util.Collections.unmodifiableList(grouping_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.grouping_ = grouping_;
} else {
result.grouping_ = groupingBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) != 0)) {
if (groupingCriteriaBuilder_ == null) {
result.groupingCriteria_ = groupingCriteria_;
} else {
result.groupingCriteria_ = groupingCriteriaBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.locking_ = locking_;
if (((from_bitField0_ & 0x00000400) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.lockingOptions_ = lockingOptions_;
if (((from_bitField0_ & 0x00000800) != 0)) {
if (limitExprBuilder_ == null) {
result.limitExpr_ = limitExpr_;
} else {
result.limitExpr_ = limitExprBuilder_.build();
}
to_bitField0_ |= 0x00000080;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.mysql.cj.x.protobuf.MysqlxCrud.Find) {
return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.Find)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.Find other) {
if (other == com.mysql.cj.x.protobuf.MysqlxCrud.Find.getDefaultInstance()) return this;
if (other.hasCollection()) {
mergeCollection(other.getCollection());
}
if (other.hasDataModel()) {
setDataModel(other.getDataModel());
}
if (projectionBuilder_ == null) {
if (!other.projection_.isEmpty()) {
if (projection_.isEmpty()) {
projection_ = other.projection_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureProjectionIsMutable();
projection_.addAll(other.projection_);
}
onChanged();
}
} else {
if (!other.projection_.isEmpty()) {
if (projectionBuilder_.isEmpty()) {
projectionBuilder_.dispose();
projectionBuilder_ = null;
projection_ = other.projection_;
bitField0_ = (bitField0_ & ~0x00000004);
projectionBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getProjectionFieldBuilder() : null;
} else {
projectionBuilder_.addAllMessages(other.projection_);
}
}
}
if (argsBuilder_ == null) {
if (!other.args_.isEmpty()) {
if (args_.isEmpty()) {
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureArgsIsMutable();
args_.addAll(other.args_);
}
onChanged();
}
} else {
if (!other.args_.isEmpty()) {
if (argsBuilder_.isEmpty()) {
argsBuilder_.dispose();
argsBuilder_ = null;
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000008);
argsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getArgsFieldBuilder() : null;
} else {
argsBuilder_.addAllMessages(other.args_);
}
}
}
if (other.hasCriteria()) {
mergeCriteria(other.getCriteria());
}
if (other.hasLimit()) {
mergeLimit(other.getLimit());
}
if (orderBuilder_ == null) {
if (!other.order_.isEmpty()) {
if (order_.isEmpty()) {
order_ = other.order_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureOrderIsMutable();
order_.addAll(other.order_);
}
onChanged();
}
} else {
if (!other.order_.isEmpty()) {
if (orderBuilder_.isEmpty()) {
orderBuilder_.dispose();
orderBuilder_ = null;
order_ = other.order_;
bitField0_ = (bitField0_ & ~0x00000040);
orderBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOrderFieldBuilder() : null;
} else {
orderBuilder_.addAllMessages(other.order_);
}
}
}
if (groupingBuilder_ == null) {
if (!other.grouping_.isEmpty()) {
if (grouping_.isEmpty()) {
grouping_ = other.grouping_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureGroupingIsMutable();
grouping_.addAll(other.grouping_);
}
onChanged();
}
} else {
if (!other.grouping_.isEmpty()) {
if (groupingBuilder_.isEmpty()) {
groupingBuilder_.dispose();
groupingBuilder_ = null;
grouping_ = other.grouping_;
bitField0_ = (bitField0_ & ~0x00000080);
groupingBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGroupingFieldBuilder() : null;
} else {
groupingBuilder_.addAllMessages(other.grouping_);
}
}
}
if (other.hasGroupingCriteria()) {
mergeGroupingCriteria(other.getGroupingCriteria());
}
if (other.hasLocking()) {
setLocking(other.getLocking());
}
if (other.hasLockingOptions()) {
setLockingOptions(other.getLockingOptions());
}
if (other.hasLimitExpr()) {
mergeLimitExpr(other.getLimitExpr());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasCollection()) {
return false;
}
if (!getCollection().isInitialized()) {
return false;
}
for (int i = 0; i < getProjectionCount(); i++) {
if (!getProjection(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getArgsCount(); i++) {
if (!getArgs(i).isInitialized()) {
return false;
}
}
if (hasCriteria()) {
if (!getCriteria().isInitialized()) {
return false;
}
}
if (hasLimit()) {
if (!getLimit().isInitialized()) {
return false;
}
}
for (int i = 0; i < getOrderCount(); i++) {
if (!getOrder(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getGroupingCount(); i++) {
if (!getGrouping(i).isInitialized()) {
return false;
}
}
if (hasGroupingCriteria()) {
if (!getGroupingCriteria().isInitialized()) {
return false;
}
}
if (hasLimitExpr()) {
if (!getLimitExpr().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 18: {
input.readMessage(
getCollectionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 18
case 24: {
int tmpRaw = input.readEnum();
com.mysql.cj.x.protobuf.MysqlxCrud.DataModel tmpValue =
com.mysql.cj.x.protobuf.MysqlxCrud.DataModel.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(3, tmpRaw);
} else {
dataModel_ = tmpRaw;
bitField0_ |= 0x00000002;
}
break;
} // case 24
case 34: {
com.mysql.cj.x.protobuf.MysqlxCrud.Projection m =
input.readMessage(
com.mysql.cj.x.protobuf.MysqlxCrud.Projection.PARSER,
extensionRegistry);
if (projectionBuilder_ == null) {
ensureProjectionIsMutable();
projection_.add(m);
} else {
projectionBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
input.readMessage(
getCriteriaFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getLimitFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
com.mysql.cj.x.protobuf.MysqlxCrud.Order m =
input.readMessage(
com.mysql.cj.x.protobuf.MysqlxCrud.Order.PARSER,
extensionRegistry);
if (orderBuilder_ == null) {
ensureOrderIsMutable();
order_.add(m);
} else {
orderBuilder_.addMessage(m);
}
break;
} // case 58
case 66: {
com.mysql.cj.x.protobuf.MysqlxExpr.Expr m =
input.readMessage(
com.mysql.cj.x.protobuf.MysqlxExpr.Expr.PARSER,
extensionRegistry);
if (groupingBuilder_ == null) {
ensureGroupingIsMutable();
grouping_.add(m);
} else {
groupingBuilder_.addMessage(m);
}
break;
} // case 66
case 74: {
input.readMessage(
getGroupingCriteriaFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 74
case 90: {
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar m =
input.readMessage(
com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.PARSER,
extensionRegistry);
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.add(m);
} else {
argsBuilder_.addMessage(m);
}
break;
} // case 90
case 96: {
int tmpRaw = input.readEnum();
com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLock tmpValue =
com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLock.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(12, tmpRaw);
} else {
locking_ = tmpRaw;
bitField0_ |= 0x00000200;
}
break;
} // case 96
case 104: {
int tmpRaw = input.readEnum();
com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLockOptions tmpValue =
com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLockOptions.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(13, tmpRaw);
} else {
lockingOptions_ = tmpRaw;
bitField0_ |= 0x00000400;
}
break;
} // case 104
case 114: {
input.readMessage(
getLimitExprFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000800;
break;
} // case 114
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.mysql.cj.x.protobuf.MysqlxCrud.Collection collection_;
private com.google.protobuf.SingleFieldBuilderV3<
com.mysql.cj.x.protobuf.MysqlxCrud.Collection, com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder> collectionBuilder_;
/**
*
** collection in which to find
*
*
* required .Mysqlx.Crud.Collection collection = 2;
* @return Whether the collection field is set.
*/
public boolean hasCollection() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
** limits the number of rows to match
*(user can set one of: limit, limit_expr)
*
*
* optional .Mysqlx.Crud.Limit limit = 5;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.LimitOrBuilder getLimitOrBuilder() {
return limit_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Limit.getDefaultInstance() : limit_;
}
public static final int ORDER_FIELD_NUMBER = 6;
private java.util.List order_;
/**
*
** specifies order of matched rows
*
*
* repeated .Mysqlx.Crud.Order order = 6;
*/
@java.lang.Override
public java.util.List getOrderList() {
return order_;
}
/**
*
** specifies order of matched rows
*
*
* repeated .Mysqlx.Crud.Order order = 6;
*/
@java.lang.Override
public java.util.List
getOrderOrBuilderList() {
return order_;
}
/**
*
** specifies order of matched rows
*
*
* repeated .Mysqlx.Crud.Order order = 6;
*/
@java.lang.Override
public int getOrderCount() {
return order_.size();
}
/**
*
** specifies order of matched rows
*
*
* repeated .Mysqlx.Crud.Order order = 6;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Order getOrder(int index) {
return order_.get(index);
}
/**
*
** specifies order of matched rows
*
*
* repeated .Mysqlx.Crud.Order order = 6;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder getOrderOrBuilder(
int index) {
return order_.get(index);
}
public static final int OPERATION_FIELD_NUMBER = 7;
private java.util.List operation_;
/**
*
** list of operations to be applied.
*Valid operations will depend on the data_model
*
** limits the number of rows to match
*(user can set one of: limit, limit_expr)
*
*
* optional .Mysqlx.Crud.Limit limit = 4;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.LimitOrBuilder getLimitOrBuilder() {
return limit_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Limit.getDefaultInstance() : limit_;
}
public static final int ORDER_FIELD_NUMBER = 5;
private java.util.List order_;
/**
*
** specifies order of matched rows
*
*
* repeated .Mysqlx.Crud.Order order = 5;
*/
@java.lang.Override
public java.util.List getOrderList() {
return order_;
}
/**
*
** specifies order of matched rows
*
*
* repeated .Mysqlx.Crud.Order order = 5;
*/
@java.lang.Override
public java.util.List
getOrderOrBuilderList() {
return order_;
}
/**
*
** specifies order of matched rows
*
*
* repeated .Mysqlx.Crud.Order order = 5;
*/
@java.lang.Override
public int getOrderCount() {
return order_.size();
}
/**
*
** specifies order of matched rows
*
*
* repeated .Mysqlx.Crud.Order order = 5;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.Order getOrder(int index) {
return order_.get(index);
}
/**
*
** specifies order of matched rows
*
*
* repeated .Mysqlx.Crud.Order order = 5;
*/
@java.lang.Override
public com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder getOrderOrBuilder(
int index) {
return order_.get(index);
}
public static final int ARGS_FIELD_NUMBER = 6;
private java.util.List args_;
/**
*
** values for parameters used in filter expression
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @return A list containing the column.
*/
java.util.List
getColumnList();
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @return The count of column.
*/
int getColumnCount();
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param index The index of the element to return.
* @return The column at the given index.
*/
java.lang.String getColumn(int index);
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param index The index of the value to return.
* @return The bytes of the column at the given index.
*/
com.google.protobuf.ByteString
getColumnBytes(int index);
/**
*
** Mysqlx.Crud.Find message from which the SELECT statement
*is going to be build
*
*
* required .Mysqlx.Crud.Find stmt = 7;
* @return Whether the stmt field is set.
*/
boolean hasStmt();
/**
*
** Mysqlx.Crud.Find message from which the SELECT statement
*is going to be build
*
** user name of the definer, if the value isn't set then the definer
*is current user
*
*
* optional string definer = 2;
* @return The bytes for definer.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefinerBytes() {
java.lang.Object ref = definer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
definer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ALGORITHM_FIELD_NUMBER = 3;
private int algorithm_;
/**
*
** defines how MySQL Server processes the view
*
*
* optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3 [default = UNDEFINED];
* @return Whether the algorithm field is set.
*/
@java.lang.Override public boolean hasAlgorithm() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
** defines how MySQL Server processes the view
*
*
* optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3 [default = UNDEFINED];
* @return The algorithm.
*/
@java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm getAlgorithm() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm.valueOf(algorithm_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm.UNDEFINED : result;
}
public static final int SECURITY_FIELD_NUMBER = 4;
private int security_;
/**
*
** defines the security context in which the view is going be executed
*
*
* optional .Mysqlx.Crud.ViewSqlSecurity security = 4 [default = DEFINER];
* @return Whether the security field is set.
*/
@java.lang.Override public boolean hasSecurity() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
** defines the security context in which the view is going be executed
*
*
* optional .Mysqlx.Crud.ViewSqlSecurity security = 4 [default = DEFINER];
* @return The security.
*/
@java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity getSecurity() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity.valueOf(security_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity.DEFINER : result;
}
public static final int CHECK_FIELD_NUMBER = 5;
private int check_;
/**
*
** limits the write operations done on a VIEW
*
*
* optional .Mysqlx.Crud.ViewCheckOption check = 5;
* @return Whether the check field is set.
*/
@java.lang.Override public boolean hasCheck() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
** limits the write operations done on a VIEW
*
*
* optional .Mysqlx.Crud.ViewCheckOption check = 5;
* @return The check.
*/
@java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption getCheck() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption.valueOf(check_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption.LOCAL : result;
}
public static final int COLUMN_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList column_;
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @return A list containing the column.
*/
public com.google.protobuf.ProtocolStringList
getColumnList() {
return column_;
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @return The count of column.
*/
public int getColumnCount() {
return column_.size();
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param index The index of the element to return.
* @return The column at the given index.
*/
public java.lang.String getColumn(int index) {
return column_.get(index);
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param index The index of the value to return.
* @return The bytes of the column at the given index.
*/
public com.google.protobuf.ByteString
getColumnBytes(int index) {
return column_.getByteString(index);
}
public static final int STMT_FIELD_NUMBER = 7;
private com.mysql.cj.x.protobuf.MysqlxCrud.Find stmt_;
/**
*
** Mysqlx.Crud.Find message from which the SELECT statement
*is going to be build
*
*
* required .Mysqlx.Crud.Find stmt = 7;
* @return Whether the stmt field is set.
*/
@java.lang.Override
public boolean hasStmt() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
** Mysqlx.Crud.Find message from which the SELECT statement
*is going to be build
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @return A list containing the column.
*/
public com.google.protobuf.ProtocolStringList
getColumnList() {
return column_.getUnmodifiableView();
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @return The count of column.
*/
public int getColumnCount() {
return column_.size();
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param index The index of the element to return.
* @return The column at the given index.
*/
public java.lang.String getColumn(int index) {
return column_.get(index);
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param index The index of the value to return.
* @return The bytes of the column at the given index.
*/
public com.google.protobuf.ByteString
getColumnBytes(int index) {
return column_.getByteString(index);
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param index The index to set the value at.
* @param value The column to set.
* @return This builder for chaining.
*/
public Builder setColumn(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnIsMutable();
column_.set(index, value);
onChanged();
return this;
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param value The column to add.
* @return This builder for chaining.
*/
public Builder addColumn(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnIsMutable();
column_.add(value);
onChanged();
return this;
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param values The column to add.
* @return This builder for chaining.
*/
public Builder addAllColumn(
java.lang.Iterable values) {
ensureColumnIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, column_);
onChanged();
return this;
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @return A list containing the column.
*/
java.util.List
getColumnList();
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @return The count of column.
*/
int getColumnCount();
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param index The index of the element to return.
* @return The column at the given index.
*/
java.lang.String getColumn(int index);
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param index The index of the value to return.
* @return The bytes of the column at the given index.
*/
com.google.protobuf.ByteString
getColumnBytes(int index);
/**
*
** Mysqlx.Crud.Find message from which the SELECT statement
*is going to be build
*
*
* optional .Mysqlx.Crud.Find stmt = 7;
* @return Whether the stmt field is set.
*/
boolean hasStmt();
/**
*
** Mysqlx.Crud.Find message from which the SELECT statement
*is going to be build
*
** user name of the definer,
*if the value isn't set then the definer is current user
*
*
* optional string definer = 2;
* @return The bytes for definer.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefinerBytes() {
java.lang.Object ref = definer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
definer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ALGORITHM_FIELD_NUMBER = 3;
private int algorithm_;
/**
*
** defined how MySQL Server processes the view
*
*
* optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3;
* @return Whether the algorithm field is set.
*/
@java.lang.Override public boolean hasAlgorithm() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
** defined how MySQL Server processes the view
*
*
* optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3;
* @return The algorithm.
*/
@java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm getAlgorithm() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm.valueOf(algorithm_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm.UNDEFINED : result;
}
public static final int SECURITY_FIELD_NUMBER = 4;
private int security_;
/**
*
** defines the security context in which the view is going be executed
*
*
* optional .Mysqlx.Crud.ViewSqlSecurity security = 4;
* @return Whether the security field is set.
*/
@java.lang.Override public boolean hasSecurity() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
** defines the security context in which the view is going be executed
*
*
* optional .Mysqlx.Crud.ViewSqlSecurity security = 4;
* @return The security.
*/
@java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity getSecurity() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity.valueOf(security_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity.INVOKER : result;
}
public static final int CHECK_FIELD_NUMBER = 5;
private int check_;
/**
*
** limits the write operations done on a VIEW
*
*
* optional .Mysqlx.Crud.ViewCheckOption check = 5;
* @return Whether the check field is set.
*/
@java.lang.Override public boolean hasCheck() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
** limits the write operations done on a VIEW
*
*
* optional .Mysqlx.Crud.ViewCheckOption check = 5;
* @return The check.
*/
@java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption getCheck() {
@SuppressWarnings("deprecation")
com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption.valueOf(check_);
return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption.LOCAL : result;
}
public static final int COLUMN_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList column_;
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @return A list containing the column.
*/
public com.google.protobuf.ProtocolStringList
getColumnList() {
return column_;
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @return The count of column.
*/
public int getColumnCount() {
return column_.size();
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param index The index of the element to return.
* @return The column at the given index.
*/
public java.lang.String getColumn(int index) {
return column_.get(index);
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param index The index of the value to return.
* @return The bytes of the column at the given index.
*/
public com.google.protobuf.ByteString
getColumnBytes(int index) {
return column_.getByteString(index);
}
public static final int STMT_FIELD_NUMBER = 7;
private com.mysql.cj.x.protobuf.MysqlxCrud.Find stmt_;
/**
*
** Mysqlx.Crud.Find message from which the SELECT statement
*is going to be build
*
*
* optional .Mysqlx.Crud.Find stmt = 7;
* @return Whether the stmt field is set.
*/
@java.lang.Override
public boolean hasStmt() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
** Mysqlx.Crud.Find message from which the SELECT statement
*is going to be build
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @return A list containing the column.
*/
public com.google.protobuf.ProtocolStringList
getColumnList() {
return column_.getUnmodifiableView();
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @return The count of column.
*/
public int getColumnCount() {
return column_.size();
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param index The index of the element to return.
* @return The column at the given index.
*/
public java.lang.String getColumn(int index) {
return column_.get(index);
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param index The index of the value to return.
* @return The bytes of the column at the given index.
*/
public com.google.protobuf.ByteString
getColumnBytes(int index) {
return column_.getByteString(index);
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param index The index to set the value at.
* @param value The column to set.
* @return This builder for chaining.
*/
public Builder setColumn(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnIsMutable();
column_.set(index, value);
onChanged();
return this;
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param value The column to add.
* @return This builder for chaining.
*/
public Builder addColumn(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnIsMutable();
column_.add(value);
onChanged();
return this;
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*
*
* repeated string column = 6;
* @param values The column to add.
* @return This builder for chaining.
*/
public Builder addAllColumn(
java.lang.Iterable values) {
ensureColumnIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, column_);
onChanged();
return this;
}
/**
*
** defines the list of aliases for column names specified in `stmt`
*