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.unknownFields);
+ 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 {
+ com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ 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
+ *
+ *
+ * required .Mysqlx.Expr.ColumnIdentifier source = 1;
+ * @return The source.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier getSource() {
+ if (sourceBuilder_ == null) {
+ return source_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance() : source_;
+ } else {
+ return sourceBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ ** 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;
+ */
+ public Builder setSource(com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier value) {
+ if (sourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ onChanged();
+ } else {
+ sourceBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ ** 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;
+ */
+ public Builder setSource(
+ com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.Builder builderForValue) {
+ if (sourceBuilder_ == null) {
+ source_ = builderForValue.build();
+ onChanged();
+ } else {
+ sourceBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ ** 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;
+ */
+ public Builder mergeSource(com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier value) {
+ if (sourceBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ source_ != null &&
+ source_ != com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance()) {
+ source_ =
+ com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.newBuilder(source_).mergeFrom(value).buildPartial();
+ } else {
+ source_ = value;
+ }
+ onChanged();
+ } else {
+ sourceBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ ** 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;
+ */
+ public Builder clearSource() {
+ if (sourceBuilder_ == null) {
+ source_ = null;
+ onChanged();
+ } else {
+ sourceBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ /**
+ *
+ ** 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;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.Builder getSourceBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getSourceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ ** 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;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifierOrBuilder getSourceOrBuilder() {
+ if (sourceBuilder_ != null) {
+ return sourceBuilder_.getMessageOrBuilder();
+ } else {
+ return source_ == null ?
+ com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance() : 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;
+ */
+ 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>
+ getSourceFieldBuilder() {
+ if (sourceBuilder_ == null) {
+ sourceBuilder_ = new 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>(
+ getSource(),
+ getParentForChildren(),
+ isClean());
+ source_ = null;
+ }
+ return sourceBuilder_;
+ }
+
+ private int operation_ = 1;
+ /**
+ *
+ ** the type of operation to be performed
+ *
+ *
+ * required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2;
+ * @return Whether the operation field is set.
+ */
+ public boolean hasOperation() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ ** the type of operation to be performed
+ *
+ *
+ * required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2;
+ * @return The operation.
+ */
+ 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;
+ }
+ /**
+ *
+ ** the type of operation to be performed
+ *
+ *
+ * required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2;
+ * @param value The operation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOperation(com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.UpdateType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ operation_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ ** the type of operation to be performed
+ *
+ *
+ * required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearOperation() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ operation_ = 1;
+ onChanged();
+ return this;
+ }
+
+ private com.mysql.cj.x.protobuf.MysqlxExpr.Expr value_;
+ 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> valueBuilder_;
+ /**
+ *
+ ** 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
+ *
+ *
+ * optional .Mysqlx.Expr.Expr value = 3;
+ */
+ public Builder setValue(
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
+ if (valueBuilder_ == null) {
+ value_ = builderForValue.build();
+ onChanged();
+ } else {
+ valueBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ return this;
+ }
+ /**
+ *
+ ** an expression to be computed as the new value for the operation
+ *
+ *
+ * optional .Mysqlx.Expr.Expr value = 3;
+ */
+ public Builder mergeValue(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
+ if (valueBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0) &&
+ value_ != null &&
+ value_ != com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance()) {
+ value_ =
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr.newBuilder(value_).mergeFrom(value).buildPartial();
+ } else {
+ value_ = value;
+ }
+ onChanged();
+ } else {
+ valueBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ return this;
+ }
+ /**
+ *
+ ** an expression to be computed as the new value for the operation
+ *
+ *
+ * optional .Mysqlx.Expr.Expr value = 3;
+ */
+ public Builder clearValue() {
+ if (valueBuilder_ == null) {
+ value_ = null;
+ onChanged();
+ } else {
+ valueBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000004);
+ return this;
+ }
+ /**
+ *
+ ** an expression to be computed as the new value for the operation
+ *
+ *
+ * optional .Mysqlx.Expr.Expr value = 3;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getValueBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getValueFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ ** an expression to be computed as the new value for the operation
+ *
+ *
+ * optional .Mysqlx.Expr.Expr value = 3;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getValueOrBuilder() {
+ if (valueBuilder_ != null) {
+ return valueBuilder_.getMessageOrBuilder();
+ } else {
+ 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;
+ */
+ 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>
+ getValueFieldBuilder() {
+ if (valueBuilder_ == null) {
+ valueBuilder_ = 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>(
+ getValue(),
+ getParentForChildren(),
+ isClean());
+ value_ = null;
+ }
+ return valueBuilder_;
+ }
+ @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.UpdateOperation)
+ }
+
+ // @@protoc_insertion_point(class_scope:Mysqlx.Crud.UpdateOperation)
+ private static final com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation();
+ }
+
+ public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public UpdateOperation parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new UpdateOperation(input, extensionRegistry);
+ }
+ };
+
+ 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.UpdateOperation getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface FindOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Find)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ ** collection in which to find
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 2;
+ * @return Whether the collection field is set.
+ */
+ boolean hasCollection();
+ /**
+ *
+ ** collection in which to find
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 2;
+ * @return The collection.
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.Collection getCollection();
+ /**
+ *
+ ** collection in which to find
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 2;
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder();
+
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 3;
+ * @return Whether the dataModel field is set.
+ */
+ boolean hasDataModel();
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 3;
+ * @return The dataModel.
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.DataModel getDataModel();
+
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ java.util.List
+ getProjectionList();
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.Projection getProjection(int index);
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ int getProjectionCount();
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ java.util.List extends com.mysql.cj.x.protobuf.MysqlxCrud.ProjectionOrBuilder>
+ getProjectionOrBuilderList();
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.ProjectionOrBuilder getProjectionOrBuilder(
+ int index);
+
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ java.util.List
+ getArgsList();
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index);
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ int getArgsCount();
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ java.util.List extends com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder>
+ getArgsOrBuilderList();
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder(
+ int index);
+
+ /**
+ *
+ ** filter criteria
+ *
+ *
+ * optional .Mysqlx.Expr.Expr criteria = 5;
+ * @return Whether the criteria field is set.
+ */
+ boolean hasCriteria();
+ /**
+ *
+ ** filter criteria
+ *
+ *
+ * optional .Mysqlx.Expr.Expr criteria = 5;
+ * @return The criteria.
+ */
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr getCriteria();
+ /**
+ *
+ ** filter criteria
+ *
+ *
+ * optional .Mysqlx.Expr.Expr criteria = 5;
+ */
+ com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getCriteriaOrBuilder();
+
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.Limit limit = 6;
+ * @return Whether the limit field is set.
+ */
+ boolean hasLimit();
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.Limit limit = 6;
+ * @return The limit.
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.Limit getLimit();
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.Limit limit = 6;
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.LimitOrBuilder getLimitOrBuilder();
+
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ java.util.List
+ getOrderList();
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.Order getOrder(int index);
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ int getOrderCount();
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ java.util.List extends com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder>
+ getOrderOrBuilderList();
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder getOrderOrBuilder(
+ int index);
+
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ java.util.List
+ getGroupingList();
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr getGrouping(int index);
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ int getGroupingCount();
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ java.util.List extends com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>
+ getGroupingOrBuilderList();
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getGroupingOrBuilder(
+ int index);
+
+ /**
+ *
+ ** filter criteria for aggregated groups
+ *
+ *
+ * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
+ * @return Whether the groupingCriteria field is set.
+ */
+ boolean hasGroupingCriteria();
+ /**
+ *
+ ** filter criteria for aggregated groups
+ *
+ *
+ * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
+ * @return The groupingCriteria.
+ */
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr getGroupingCriteria();
+ /**
+ *
+ ** filter criteria for aggregated groups
+ *
+ *
+ * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
+ */
+ com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getGroupingCriteriaOrBuilder();
+
+ /**
+ *
+ ** perform row locking on matches
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLock locking = 12;
+ * @return Whether the locking field is set.
+ */
+ boolean hasLocking();
+ /**
+ *
+ ** perform row locking on matches
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLock locking = 12;
+ * @return The locking.
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLock getLocking();
+
+ /**
+ *
+ ** additional options how to handle locked rows
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLockOptions locking_options = 13;
+ * @return Whether the lockingOptions field is set.
+ */
+ boolean hasLockingOptions();
+ /**
+ *
+ ** additional options how to handle locked rows
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLockOptions locking_options = 13;
+ * @return The lockingOptions.
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLockOptions getLockingOptions();
+
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
+ * @return Whether the limitExpr field is set.
+ */
+ boolean hasLimitExpr();
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
+ * @return The limitExpr.
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr getLimitExpr();
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.LimitExprOrBuilder getLimitExprOrBuilder();
+ }
+ /**
+ *
+ **
+ *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;
+ }
+ private Find(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 18: {
+ com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ subBuilder = collection_.toBuilder();
+ }
+ collection_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxCrud.Collection.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(collection_);
+ collection_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ case 24: {
+ int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
+ com.mysql.cj.x.protobuf.MysqlxCrud.DataModel value = com.mysql.cj.x.protobuf.MysqlxCrud.DataModel.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(3, rawValue);
+ } else {
+ bitField0_ |= 0x00000002;
+ dataModel_ = rawValue;
+ }
+ break;
+ }
+ case 34: {
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+ projection_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ projection_.add(
+ input.readMessage(com.mysql.cj.x.protobuf.MysqlxCrud.Projection.PARSER, extensionRegistry));
+ break;
+ }
+ case 42: {
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000004) != 0)) {
+ subBuilder = criteria_.toBuilder();
+ }
+ criteria_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(criteria_);
+ criteria_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000004;
+ break;
+ }
+ case 50: {
+ com.mysql.cj.x.protobuf.MysqlxCrud.Limit.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000008) != 0)) {
+ subBuilder = limit_.toBuilder();
+ }
+ limit_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxCrud.Limit.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(limit_);
+ limit_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000008;
+ break;
+ }
+ case 58: {
+ if (!((mutable_bitField0_ & 0x00000040) != 0)) {
+ order_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000040;
+ }
+ order_.add(
+ input.readMessage(com.mysql.cj.x.protobuf.MysqlxCrud.Order.PARSER, extensionRegistry));
+ break;
+ }
+ case 66: {
+ if (!((mutable_bitField0_ & 0x00000080) != 0)) {
+ grouping_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000080;
+ }
+ grouping_.add(
+ input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.PARSER, extensionRegistry));
+ break;
+ }
+ case 74: {
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000010) != 0)) {
+ subBuilder = groupingCriteria_.toBuilder();
+ }
+ groupingCriteria_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(groupingCriteria_);
+ groupingCriteria_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000010;
+ break;
+ }
+ case 90: {
+ if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+ args_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000008;
+ }
+ args_.add(
+ input.readMessage(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.PARSER, extensionRegistry));
+ break;
+ }
+ case 96: {
+ int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
+ com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLock value = com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLock.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(12, rawValue);
+ } else {
+ bitField0_ |= 0x00000020;
+ locking_ = rawValue;
+ }
+ break;
+ }
+ case 104: {
+ int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
+ com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLockOptions value = com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLockOptions.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(13, rawValue);
+ } else {
+ bitField0_ |= 0x00000040;
+ lockingOptions_ = rawValue;
+ }
+ break;
+ }
+ case 114: {
+ com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000080) != 0)) {
+ subBuilder = limitExpr_.toBuilder();
+ }
+ limitExpr_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(limitExpr_);
+ limitExpr_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000080;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000004) != 0)) {
+ projection_ = java.util.Collections.unmodifiableList(projection_);
+ }
+ if (((mutable_bitField0_ & 0x00000040) != 0)) {
+ order_ = java.util.Collections.unmodifiableList(order_);
+ }
+ if (((mutable_bitField0_ & 0x00000080) != 0)) {
+ grouping_ = java.util.Collections.unmodifiableList(grouping_);
+ }
+ if (((mutable_bitField0_ & 0x00000008) != 0)) {
+ args_ = java.util.Collections.unmodifiableList(args_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.mysql.cj.x.protobuf.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
+ *
+ *
+ * EXCLUSIVE_LOCK = 2;
+ */
+ EXCLUSIVE_LOCK(2),
+ ;
+
+ /**
+ *
+ ** Lock matching rows against updates
+ *
+ *
+ * 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.
+ */
+ public boolean hasCollection() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ ** collection in which to find
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 2;
+ * @return The collection.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Collection getCollection() {
+ return collection_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Collection.getDefaultInstance() : collection_;
+ }
+ /**
+ *
+ ** collection in which to find
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 2;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder() {
+ return collection_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Collection.getDefaultInstance() : collection_;
+ }
+
+ public static final int DATA_MODEL_FIELD_NUMBER = 3;
+ private int dataModel_;
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 3;
+ * @return Whether the dataModel field is set.
+ */
+ public boolean hasDataModel() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 3;
+ * @return The dataModel.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.DataModel getDataModel() {
+ @SuppressWarnings("deprecation")
+ com.mysql.cj.x.protobuf.MysqlxCrud.DataModel result = com.mysql.cj.x.protobuf.MysqlxCrud.DataModel.valueOf(dataModel_);
+ return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.DataModel.DOCUMENT : result;
+ }
+
+ public static final int PROJECTION_FIELD_NUMBER = 4;
+ private java.util.List projection_;
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public java.util.List getProjectionList() {
+ return projection_;
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxCrud.ProjectionOrBuilder>
+ getProjectionOrBuilderList() {
+ return projection_;
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public int getProjectionCount() {
+ return projection_.size();
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Projection getProjection(int index) {
+ return projection_.get(index);
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.ProjectionOrBuilder getProjectionOrBuilder(
+ int index) {
+ return projection_.get(index);
+ }
+
+ public static final int ARGS_FIELD_NUMBER = 11;
+ private java.util.List args_;
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public java.util.List getArgsList() {
+ return args_;
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder>
+ getArgsOrBuilderList() {
+ return args_;
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public int getArgsCount() {
+ return args_.size();
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index) {
+ return args_.get(index);
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder(
+ int index) {
+ return args_.get(index);
+ }
+
+ public static final int CRITERIA_FIELD_NUMBER = 5;
+ private com.mysql.cj.x.protobuf.MysqlxExpr.Expr criteria_;
+ /**
+ *
+ ** filter criteria
+ *
+ *
+ * optional .Mysqlx.Expr.Expr criteria = 5;
+ * @return Whether the criteria field is set.
+ */
+ public boolean hasCriteria() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ ** filter criteria
+ *
+ *
+ * optional .Mysqlx.Expr.Expr criteria = 5;
+ * @return The criteria.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getCriteria() {
+ return criteria_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : criteria_;
+ }
+ /**
+ *
+ ** filter criteria
+ *
+ *
+ * optional .Mysqlx.Expr.Expr criteria = 5;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getCriteriaOrBuilder() {
+ return criteria_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : criteria_;
+ }
+
+ public static final int LIMIT_FIELD_NUMBER = 6;
+ private com.mysql.cj.x.protobuf.MysqlxCrud.Limit limit_;
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.Limit limit = 6;
+ * @return Whether the limit field is set.
+ */
+ public boolean hasLimit() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.Limit limit = 6;
+ * @return The limit.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Limit getLimit() {
+ return limit_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Limit.getDefaultInstance() : limit_;
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.Limit limit = 6;
+ */
+ 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;
+ */
+ public java.util.List getOrderList() {
+ return order_;
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder>
+ getOrderOrBuilderList() {
+ return order_;
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public int getOrderCount() {
+ return order_.size();
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ 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;
+ */
+ 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)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public java.util.List getGroupingList() {
+ return grouping_;
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>
+ getGroupingOrBuilderList() {
+ return grouping_;
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public int getGroupingCount() {
+ return grouping_.size();
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getGrouping(int index) {
+ return grouping_.get(index);
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getGroupingOrBuilder(
+ int index) {
+ return grouping_.get(index);
+ }
+
+ public static final int GROUPING_CRITERIA_FIELD_NUMBER = 9;
+ private com.mysql.cj.x.protobuf.MysqlxExpr.Expr groupingCriteria_;
+ /**
+ *
+ ** filter criteria for aggregated groups
+ *
+ *
+ * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
+ * @return Whether the groupingCriteria field is set.
+ */
+ public boolean hasGroupingCriteria() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ ** filter criteria for aggregated groups
+ *
+ *
+ * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
+ * @return The groupingCriteria.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getGroupingCriteria() {
+ return groupingCriteria_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : groupingCriteria_;
+ }
+ /**
+ *
+ ** filter criteria for aggregated groups
+ *
+ *
+ * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getGroupingCriteriaOrBuilder() {
+ return groupingCriteria_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : groupingCriteria_;
+ }
+
+ public static final int LOCKING_FIELD_NUMBER = 12;
+ private int locking_;
+ /**
+ *
+ ** perform row locking on matches
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLock locking = 12;
+ * @return Whether the locking field is set.
+ */
+ public boolean hasLocking() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ ** perform row locking on matches
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLock locking = 12;
+ * @return The locking.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLock getLocking() {
+ @SuppressWarnings("deprecation")
+ com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLock result = com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLock.valueOf(locking_);
+ return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLock.SHARED_LOCK : result;
+ }
+
+ public static final int LOCKING_OPTIONS_FIELD_NUMBER = 13;
+ private int lockingOptions_;
+ /**
+ *
+ ** additional options how to handle locked rows
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLockOptions locking_options = 13;
+ * @return Whether the lockingOptions field is set.
+ */
+ public boolean hasLockingOptions() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ *
+ ** additional options how to handle locked rows
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLockOptions locking_options = 13;
+ * @return The lockingOptions.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLockOptions getLockingOptions() {
+ @SuppressWarnings("deprecation")
+ com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLockOptions result = com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLockOptions.valueOf(lockingOptions_);
+ return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLockOptions.NOWAIT : result;
+ }
+
+ public static final int LIMIT_EXPR_FIELD_NUMBER = 14;
+ private com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr limitExpr_;
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
+ * @return Whether the limitExpr field is set.
+ */
+ public boolean hasLimitExpr() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
+ * @return The limitExpr.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr getLimitExpr() {
+ return limitExpr_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.getDefaultInstance() : limitExpr_;
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
+ */
+ 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());
+ }
+ unknownFields.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 += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ projectionBuilder_.clear();
+ }
+ if (argsBuilder_ == null) {
+ args_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ argsBuilder_.clear();
+ }
+ 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();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ } else {
+ orderBuilder_.clear();
+ }
+ if (groupingBuilder_ == null) {
+ grouping_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ } else {
+ groupingBuilder_.clear();
+ }
+ 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.unknownFields);
+ 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 {
+ com.mysql.cj.x.protobuf.MysqlxCrud.Find parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.mysql.cj.x.protobuf.MysqlxCrud.Find) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ 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);
+ }
+ /**
+ *
+ ** collection in which to find
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 2;
+ * @return The collection.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Collection getCollection() {
+ if (collectionBuilder_ == null) {
+ return collection_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Collection.getDefaultInstance() : collection_;
+ } else {
+ return collectionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ ** collection in which to find
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 2;
+ */
+ public Builder setCollection(com.mysql.cj.x.protobuf.MysqlxCrud.Collection value) {
+ if (collectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ collection_ = value;
+ onChanged();
+ } else {
+ collectionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ ** collection in which to find
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 2;
+ */
+ public Builder setCollection(
+ com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder builderForValue) {
+ if (collectionBuilder_ == null) {
+ collection_ = builderForValue.build();
+ onChanged();
+ } else {
+ collectionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ ** collection in which to find
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 2;
+ */
+ public Builder mergeCollection(com.mysql.cj.x.protobuf.MysqlxCrud.Collection value) {
+ if (collectionBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ collection_ != null &&
+ collection_ != com.mysql.cj.x.protobuf.MysqlxCrud.Collection.getDefaultInstance()) {
+ collection_ =
+ com.mysql.cj.x.protobuf.MysqlxCrud.Collection.newBuilder(collection_).mergeFrom(value).buildPartial();
+ } else {
+ collection_ = value;
+ }
+ onChanged();
+ } else {
+ collectionBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ ** collection in which to find
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 2;
+ */
+ public Builder clearCollection() {
+ if (collectionBuilder_ == null) {
+ collection_ = null;
+ onChanged();
+ } else {
+ collectionBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ /**
+ *
+ ** collection in which to find
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 2;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder getCollectionBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getCollectionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ ** collection in which to find
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 2;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder() {
+ if (collectionBuilder_ != null) {
+ return collectionBuilder_.getMessageOrBuilder();
+ } else {
+ return collection_ == null ?
+ com.mysql.cj.x.protobuf.MysqlxCrud.Collection.getDefaultInstance() : collection_;
+ }
+ }
+ /**
+ *
+ ** collection in which to find
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 2;
+ */
+ 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>
+ getCollectionFieldBuilder() {
+ if (collectionBuilder_ == null) {
+ collectionBuilder_ = new 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>(
+ getCollection(),
+ getParentForChildren(),
+ isClean());
+ collection_ = null;
+ }
+ return collectionBuilder_;
+ }
+
+ private int dataModel_ = 1;
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 3;
+ * @return Whether the dataModel field is set.
+ */
+ public boolean hasDataModel() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 3;
+ * @return The dataModel.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.DataModel getDataModel() {
+ @SuppressWarnings("deprecation")
+ com.mysql.cj.x.protobuf.MysqlxCrud.DataModel result = com.mysql.cj.x.protobuf.MysqlxCrud.DataModel.valueOf(dataModel_);
+ return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.DataModel.DOCUMENT : result;
+ }
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 3;
+ * @param value The dataModel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDataModel(com.mysql.cj.x.protobuf.MysqlxCrud.DataModel value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ dataModel_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearDataModel() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ dataModel_ = 1;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List projection_ =
+ java.util.Collections.emptyList();
+ private void ensureProjectionIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ projection_ = new java.util.ArrayList(projection_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.Projection, com.mysql.cj.x.protobuf.MysqlxCrud.Projection.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.ProjectionOrBuilder> projectionBuilder_;
+
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public java.util.List getProjectionList() {
+ if (projectionBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(projection_);
+ } else {
+ return projectionBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public int getProjectionCount() {
+ if (projectionBuilder_ == null) {
+ return projection_.size();
+ } else {
+ return projectionBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Projection getProjection(int index) {
+ if (projectionBuilder_ == null) {
+ return projection_.get(index);
+ } else {
+ return projectionBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public Builder setProjection(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Projection value) {
+ if (projectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProjectionIsMutable();
+ projection_.set(index, value);
+ onChanged();
+ } else {
+ projectionBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public Builder setProjection(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Projection.Builder builderForValue) {
+ if (projectionBuilder_ == null) {
+ ensureProjectionIsMutable();
+ projection_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ projectionBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public Builder addProjection(com.mysql.cj.x.protobuf.MysqlxCrud.Projection value) {
+ if (projectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProjectionIsMutable();
+ projection_.add(value);
+ onChanged();
+ } else {
+ projectionBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public Builder addProjection(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Projection value) {
+ if (projectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProjectionIsMutable();
+ projection_.add(index, value);
+ onChanged();
+ } else {
+ projectionBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public Builder addProjection(
+ com.mysql.cj.x.protobuf.MysqlxCrud.Projection.Builder builderForValue) {
+ if (projectionBuilder_ == null) {
+ ensureProjectionIsMutable();
+ projection_.add(builderForValue.build());
+ onChanged();
+ } else {
+ projectionBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public Builder addProjection(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Projection.Builder builderForValue) {
+ if (projectionBuilder_ == null) {
+ ensureProjectionIsMutable();
+ projection_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ projectionBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public Builder addAllProjection(
+ java.lang.Iterable extends com.mysql.cj.x.protobuf.MysqlxCrud.Projection> values) {
+ if (projectionBuilder_ == null) {
+ ensureProjectionIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, projection_);
+ onChanged();
+ } else {
+ projectionBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public Builder clearProjection() {
+ if (projectionBuilder_ == null) {
+ projection_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ projectionBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public Builder removeProjection(int index) {
+ if (projectionBuilder_ == null) {
+ ensureProjectionIsMutable();
+ projection_.remove(index);
+ onChanged();
+ } else {
+ projectionBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Projection.Builder getProjectionBuilder(
+ int index) {
+ return getProjectionFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.ProjectionOrBuilder getProjectionOrBuilder(
+ int index) {
+ if (projectionBuilder_ == null) {
+ return projection_.get(index); } else {
+ return projectionBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxCrud.ProjectionOrBuilder>
+ getProjectionOrBuilderList() {
+ if (projectionBuilder_ != null) {
+ return projectionBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(projection_);
+ }
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Projection.Builder addProjectionBuilder() {
+ return getProjectionFieldBuilder().addBuilder(
+ com.mysql.cj.x.protobuf.MysqlxCrud.Projection.getDefaultInstance());
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Projection.Builder addProjectionBuilder(
+ int index) {
+ return getProjectionFieldBuilder().addBuilder(
+ index, com.mysql.cj.x.protobuf.MysqlxCrud.Projection.getDefaultInstance());
+ }
+ /**
+ *
+ ** list of column projections that shall be returned
+ *
+ *
+ * repeated .Mysqlx.Crud.Projection projection = 4;
+ */
+ public java.util.List
+ getProjectionBuilderList() {
+ return getProjectionFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.Projection, com.mysql.cj.x.protobuf.MysqlxCrud.Projection.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.ProjectionOrBuilder>
+ getProjectionFieldBuilder() {
+ if (projectionBuilder_ == null) {
+ projectionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.Projection, com.mysql.cj.x.protobuf.MysqlxCrud.Projection.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.ProjectionOrBuilder>(
+ projection_,
+ ((bitField0_ & 0x00000004) != 0),
+ getParentForChildren(),
+ isClean());
+ projection_ = null;
+ }
+ return projectionBuilder_;
+ }
+
+ private java.util.List args_ =
+ java.util.Collections.emptyList();
+ private void ensureArgsIsMutable() {
+ if (!((bitField0_ & 0x00000008) != 0)) {
+ args_ = new java.util.ArrayList(args_);
+ bitField0_ |= 0x00000008;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder> argsBuilder_;
+
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public java.util.List getArgsList() {
+ if (argsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(args_);
+ } else {
+ return argsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public int getArgsCount() {
+ if (argsBuilder_ == null) {
+ return args_.size();
+ } else {
+ return argsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index) {
+ if (argsBuilder_ == null) {
+ return args_.get(index);
+ } else {
+ return argsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public Builder setArgs(
+ int index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar value) {
+ if (argsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArgsIsMutable();
+ args_.set(index, value);
+ onChanged();
+ } else {
+ argsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public Builder setArgs(
+ int index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder builderForValue) {
+ if (argsBuilder_ == null) {
+ ensureArgsIsMutable();
+ args_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ argsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public Builder addArgs(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar value) {
+ if (argsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArgsIsMutable();
+ args_.add(value);
+ onChanged();
+ } else {
+ argsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public Builder addArgs(
+ int index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar value) {
+ if (argsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArgsIsMutable();
+ args_.add(index, value);
+ onChanged();
+ } else {
+ argsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public Builder addArgs(
+ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder builderForValue) {
+ if (argsBuilder_ == null) {
+ ensureArgsIsMutable();
+ args_.add(builderForValue.build());
+ onChanged();
+ } else {
+ argsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public Builder addArgs(
+ int index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder builderForValue) {
+ if (argsBuilder_ == null) {
+ ensureArgsIsMutable();
+ args_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ argsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public Builder addAllArgs(
+ java.lang.Iterable extends com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar> values) {
+ if (argsBuilder_ == null) {
+ ensureArgsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, args_);
+ onChanged();
+ } else {
+ argsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public Builder clearArgs() {
+ if (argsBuilder_ == null) {
+ args_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ argsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public Builder removeArgs(int index) {
+ if (argsBuilder_ == null) {
+ ensureArgsIsMutable();
+ args_.remove(index);
+ onChanged();
+ } else {
+ argsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder getArgsBuilder(
+ int index) {
+ return getArgsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder(
+ int index) {
+ if (argsBuilder_ == null) {
+ return args_.get(index); } else {
+ return argsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder>
+ getArgsOrBuilderList() {
+ if (argsBuilder_ != null) {
+ return argsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(args_);
+ }
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder addArgsBuilder() {
+ return getArgsFieldBuilder().addBuilder(
+ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance());
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder addArgsBuilder(
+ int index) {
+ return getArgsFieldBuilder().addBuilder(
+ index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance());
+ }
+ /**
+ *
+ ** values for parameters used in filter expression
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 11;
+ */
+ public java.util.List
+ getArgsBuilderList() {
+ return getArgsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder>
+ getArgsFieldBuilder() {
+ if (argsBuilder_ == null) {
+ argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder>(
+ args_,
+ ((bitField0_ & 0x00000008) != 0),
+ getParentForChildren(),
+ isClean());
+ args_ = null;
+ }
+ return argsBuilder_;
+ }
+
+ private com.mysql.cj.x.protobuf.MysqlxExpr.Expr criteria_;
+ 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> criteriaBuilder_;
+ /**
+ *
+ ** filter criteria
+ *
+ *
+ * optional .Mysqlx.Expr.Expr criteria = 5;
+ * @return Whether the criteria field is set.
+ */
+ public boolean hasCriteria() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ ** filter criteria
+ *
+ *
+ * optional .Mysqlx.Expr.Expr criteria = 5;
+ * @return The criteria.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getCriteria() {
+ if (criteriaBuilder_ == null) {
+ return criteria_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : criteria_;
+ } else {
+ return criteriaBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ ** filter criteria
+ *
+ *
+ * optional .Mysqlx.Expr.Expr criteria = 5;
+ */
+ public Builder setCriteria(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
+ if (criteriaBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ criteria_ = value;
+ onChanged();
+ } else {
+ criteriaBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ return this;
+ }
+ /**
+ *
+ ** filter criteria
+ *
+ *
+ * optional .Mysqlx.Expr.Expr criteria = 5;
+ */
+ public Builder setCriteria(
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
+ if (criteriaBuilder_ == null) {
+ criteria_ = builderForValue.build();
+ onChanged();
+ } else {
+ criteriaBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ return this;
+ }
+ /**
+ *
+ ** filter criteria
+ *
+ *
+ * optional .Mysqlx.Expr.Expr criteria = 5;
+ */
+ public Builder mergeCriteria(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
+ if (criteriaBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0) &&
+ criteria_ != null &&
+ criteria_ != com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance()) {
+ criteria_ =
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr.newBuilder(criteria_).mergeFrom(value).buildPartial();
+ } else {
+ criteria_ = value;
+ }
+ onChanged();
+ } else {
+ criteriaBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000010;
+ return this;
+ }
+ /**
+ *
+ ** filter criteria
+ *
+ *
+ * optional .Mysqlx.Expr.Expr criteria = 5;
+ */
+ public Builder clearCriteria() {
+ if (criteriaBuilder_ == null) {
+ criteria_ = null;
+ onChanged();
+ } else {
+ criteriaBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000010);
+ return this;
+ }
+ /**
+ *
+ ** filter criteria
+ *
+ *
+ * optional .Mysqlx.Expr.Expr criteria = 5;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getCriteriaBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getCriteriaFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ ** filter criteria
+ *
+ *
+ * optional .Mysqlx.Expr.Expr criteria = 5;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getCriteriaOrBuilder() {
+ if (criteriaBuilder_ != null) {
+ return criteriaBuilder_.getMessageOrBuilder();
+ } else {
+ return criteria_ == null ?
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : criteria_;
+ }
+ }
+ /**
+ *
+ ** filter criteria
+ *
+ *
+ * optional .Mysqlx.Expr.Expr criteria = 5;
+ */
+ 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>
+ getCriteriaFieldBuilder() {
+ if (criteriaBuilder_ == null) {
+ criteriaBuilder_ = 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>(
+ getCriteria(),
+ getParentForChildren(),
+ isClean());
+ criteria_ = null;
+ }
+ return criteriaBuilder_;
+ }
+
+ private com.mysql.cj.x.protobuf.MysqlxCrud.Limit limit_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.Limit, com.mysql.cj.x.protobuf.MysqlxCrud.Limit.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.LimitOrBuilder> limitBuilder_;
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.Limit limit = 6;
+ * @return Whether the limit field is set.
+ */
+ public boolean hasLimit() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.Limit limit = 6;
+ * @return The limit.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Limit getLimit() {
+ if (limitBuilder_ == null) {
+ return limit_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Limit.getDefaultInstance() : limit_;
+ } else {
+ return limitBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.Limit limit = 6;
+ */
+ public Builder setLimit(com.mysql.cj.x.protobuf.MysqlxCrud.Limit value) {
+ if (limitBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ limit_ = value;
+ onChanged();
+ } else {
+ limitBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ return this;
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.Limit limit = 6;
+ */
+ public Builder setLimit(
+ com.mysql.cj.x.protobuf.MysqlxCrud.Limit.Builder builderForValue) {
+ if (limitBuilder_ == null) {
+ limit_ = builderForValue.build();
+ onChanged();
+ } else {
+ limitBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ return this;
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.Limit limit = 6;
+ */
+ public Builder mergeLimit(com.mysql.cj.x.protobuf.MysqlxCrud.Limit value) {
+ if (limitBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0) &&
+ limit_ != null &&
+ limit_ != com.mysql.cj.x.protobuf.MysqlxCrud.Limit.getDefaultInstance()) {
+ limit_ =
+ com.mysql.cj.x.protobuf.MysqlxCrud.Limit.newBuilder(limit_).mergeFrom(value).buildPartial();
+ } else {
+ limit_ = value;
+ }
+ onChanged();
+ } else {
+ limitBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000020;
+ return this;
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.Limit limit = 6;
+ */
+ public Builder clearLimit() {
+ if (limitBuilder_ == null) {
+ limit_ = null;
+ onChanged();
+ } else {
+ limitBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000020);
+ return this;
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.Limit limit = 6;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Limit.Builder getLimitBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getLimitFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.Limit limit = 6;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.LimitOrBuilder getLimitOrBuilder() {
+ if (limitBuilder_ != null) {
+ return limitBuilder_.getMessageOrBuilder();
+ } else {
+ return limit_ == null ?
+ com.mysql.cj.x.protobuf.MysqlxCrud.Limit.getDefaultInstance() : limit_;
+ }
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.Limit limit = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.Limit, com.mysql.cj.x.protobuf.MysqlxCrud.Limit.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.LimitOrBuilder>
+ getLimitFieldBuilder() {
+ if (limitBuilder_ == null) {
+ limitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.Limit, com.mysql.cj.x.protobuf.MysqlxCrud.Limit.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.LimitOrBuilder>(
+ getLimit(),
+ getParentForChildren(),
+ isClean());
+ limit_ = null;
+ }
+ return limitBuilder_;
+ }
+
+ private java.util.List order_ =
+ java.util.Collections.emptyList();
+ private void ensureOrderIsMutable() {
+ if (!((bitField0_ & 0x00000040) != 0)) {
+ order_ = new java.util.ArrayList(order_);
+ bitField0_ |= 0x00000040;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.Order, com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder> orderBuilder_;
+
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public java.util.List getOrderList() {
+ if (orderBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(order_);
+ } else {
+ return orderBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public int getOrderCount() {
+ if (orderBuilder_ == null) {
+ return order_.size();
+ } else {
+ return orderBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Order getOrder(int index) {
+ if (orderBuilder_ == null) {
+ return order_.get(index);
+ } else {
+ return orderBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public Builder setOrder(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Order value) {
+ if (orderBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOrderIsMutable();
+ order_.set(index, value);
+ onChanged();
+ } else {
+ orderBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public Builder setOrder(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder builderForValue) {
+ if (orderBuilder_ == null) {
+ ensureOrderIsMutable();
+ order_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ orderBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public Builder addOrder(com.mysql.cj.x.protobuf.MysqlxCrud.Order value) {
+ if (orderBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOrderIsMutable();
+ order_.add(value);
+ onChanged();
+ } else {
+ orderBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public Builder addOrder(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Order value) {
+ if (orderBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOrderIsMutable();
+ order_.add(index, value);
+ onChanged();
+ } else {
+ orderBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public Builder addOrder(
+ com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder builderForValue) {
+ if (orderBuilder_ == null) {
+ ensureOrderIsMutable();
+ order_.add(builderForValue.build());
+ onChanged();
+ } else {
+ orderBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public Builder addOrder(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder builderForValue) {
+ if (orderBuilder_ == null) {
+ ensureOrderIsMutable();
+ order_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ orderBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public Builder addAllOrder(
+ java.lang.Iterable extends com.mysql.cj.x.protobuf.MysqlxCrud.Order> values) {
+ if (orderBuilder_ == null) {
+ ensureOrderIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, order_);
+ onChanged();
+ } else {
+ orderBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public Builder clearOrder() {
+ if (orderBuilder_ == null) {
+ order_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ } else {
+ orderBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public Builder removeOrder(int index) {
+ if (orderBuilder_ == null) {
+ ensureOrderIsMutable();
+ order_.remove(index);
+ onChanged();
+ } else {
+ orderBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder getOrderBuilder(
+ int index) {
+ return getOrderFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder getOrderOrBuilder(
+ int index) {
+ if (orderBuilder_ == null) {
+ return order_.get(index); } else {
+ return orderBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder>
+ getOrderOrBuilderList() {
+ if (orderBuilder_ != null) {
+ return orderBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(order_);
+ }
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder addOrderBuilder() {
+ return getOrderFieldBuilder().addBuilder(
+ com.mysql.cj.x.protobuf.MysqlxCrud.Order.getDefaultInstance());
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder addOrderBuilder(
+ int index) {
+ return getOrderFieldBuilder().addBuilder(
+ index, com.mysql.cj.x.protobuf.MysqlxCrud.Order.getDefaultInstance());
+ }
+ /**
+ *
+ ** sort-order in which the rows/document shall be returned in
+ *
+ *
+ * repeated .Mysqlx.Crud.Order order = 7;
+ */
+ public java.util.List
+ getOrderBuilderList() {
+ return getOrderFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.Order, com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder>
+ getOrderFieldBuilder() {
+ if (orderBuilder_ == null) {
+ orderBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.Order, com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder>(
+ order_,
+ ((bitField0_ & 0x00000040) != 0),
+ getParentForChildren(),
+ isClean());
+ order_ = null;
+ }
+ return orderBuilder_;
+ }
+
+ private java.util.List grouping_ =
+ java.util.Collections.emptyList();
+ private void ensureGroupingIsMutable() {
+ if (!((bitField0_ & 0x00000080) != 0)) {
+ grouping_ = new java.util.ArrayList(grouping_);
+ bitField0_ |= 0x00000080;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder> groupingBuilder_;
+
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public java.util.List getGroupingList() {
+ if (groupingBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(grouping_);
+ } else {
+ return groupingBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public int getGroupingCount() {
+ if (groupingBuilder_ == null) {
+ return grouping_.size();
+ } else {
+ return groupingBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getGrouping(int index) {
+ if (groupingBuilder_ == null) {
+ return grouping_.get(index);
+ } else {
+ return groupingBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public Builder setGrouping(
+ int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
+ if (groupingBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroupingIsMutable();
+ grouping_.set(index, value);
+ onChanged();
+ } else {
+ groupingBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public Builder setGrouping(
+ int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
+ if (groupingBuilder_ == null) {
+ ensureGroupingIsMutable();
+ grouping_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ groupingBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public Builder addGrouping(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
+ if (groupingBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroupingIsMutable();
+ grouping_.add(value);
+ onChanged();
+ } else {
+ groupingBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public Builder addGrouping(
+ int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
+ if (groupingBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroupingIsMutable();
+ grouping_.add(index, value);
+ onChanged();
+ } else {
+ groupingBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public Builder addGrouping(
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
+ if (groupingBuilder_ == null) {
+ ensureGroupingIsMutable();
+ grouping_.add(builderForValue.build());
+ onChanged();
+ } else {
+ groupingBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public Builder addGrouping(
+ int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
+ if (groupingBuilder_ == null) {
+ ensureGroupingIsMutable();
+ grouping_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ groupingBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public Builder addAllGrouping(
+ java.lang.Iterable extends com.mysql.cj.x.protobuf.MysqlxExpr.Expr> values) {
+ if (groupingBuilder_ == null) {
+ ensureGroupingIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, grouping_);
+ onChanged();
+ } else {
+ groupingBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public Builder clearGrouping() {
+ if (groupingBuilder_ == null) {
+ grouping_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ } else {
+ groupingBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public Builder removeGrouping(int index) {
+ if (groupingBuilder_ == null) {
+ ensureGroupingIsMutable();
+ grouping_.remove(index);
+ onChanged();
+ } else {
+ groupingBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getGroupingBuilder(
+ int index) {
+ return getGroupingFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getGroupingOrBuilder(
+ int index) {
+ if (groupingBuilder_ == null) {
+ return grouping_.get(index); } else {
+ return groupingBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>
+ getGroupingOrBuilderList() {
+ if (groupingBuilder_ != null) {
+ return groupingBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(grouping_);
+ }
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder addGroupingBuilder() {
+ return getGroupingFieldBuilder().addBuilder(
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance());
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder addGroupingBuilder(
+ int index) {
+ return getGroupingFieldBuilder().addBuilder(
+ index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance());
+ }
+ /**
+ *
+ ** column expression list for aggregation (GROUP BY)
+ *
+ *
+ * repeated .Mysqlx.Expr.Expr grouping = 8;
+ */
+ public java.util.List
+ getGroupingBuilderList() {
+ return getGroupingFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>
+ getGroupingFieldBuilder() {
+ if (groupingBuilder_ == null) {
+ groupingBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>(
+ grouping_,
+ ((bitField0_ & 0x00000080) != 0),
+ getParentForChildren(),
+ isClean());
+ grouping_ = null;
+ }
+ return groupingBuilder_;
+ }
+
+ private com.mysql.cj.x.protobuf.MysqlxExpr.Expr groupingCriteria_;
+ 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> groupingCriteriaBuilder_;
+ /**
+ *
+ ** filter criteria for aggregated groups
+ *
+ *
+ * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
+ * @return Whether the groupingCriteria field is set.
+ */
+ public boolean hasGroupingCriteria() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ *
+ ** filter criteria for aggregated groups
+ *
+ *
+ * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
+ * @return The groupingCriteria.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getGroupingCriteria() {
+ if (groupingCriteriaBuilder_ == null) {
+ return groupingCriteria_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : groupingCriteria_;
+ } else {
+ return groupingCriteriaBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ ** filter criteria for aggregated groups
+ *
+ *
+ * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
+ */
+ public Builder setGroupingCriteria(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
+ if (groupingCriteriaBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ groupingCriteria_ = value;
+ onChanged();
+ } else {
+ groupingCriteriaBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000100;
+ return this;
+ }
+ /**
+ *
+ ** filter criteria for aggregated groups
+ *
+ *
+ * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
+ */
+ public Builder setGroupingCriteria(
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
+ if (groupingCriteriaBuilder_ == null) {
+ groupingCriteria_ = builderForValue.build();
+ onChanged();
+ } else {
+ groupingCriteriaBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000100;
+ return this;
+ }
+ /**
+ *
+ ** filter criteria for aggregated groups
+ *
+ *
+ * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
+ */
+ public Builder mergeGroupingCriteria(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
+ if (groupingCriteriaBuilder_ == null) {
+ if (((bitField0_ & 0x00000100) != 0) &&
+ groupingCriteria_ != null &&
+ groupingCriteria_ != com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance()) {
+ groupingCriteria_ =
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr.newBuilder(groupingCriteria_).mergeFrom(value).buildPartial();
+ } else {
+ groupingCriteria_ = value;
+ }
+ onChanged();
+ } else {
+ groupingCriteriaBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000100;
+ return this;
+ }
+ /**
+ *
+ ** filter criteria for aggregated groups
+ *
+ *
+ * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
+ */
+ public Builder clearGroupingCriteria() {
+ if (groupingCriteriaBuilder_ == null) {
+ groupingCriteria_ = null;
+ onChanged();
+ } else {
+ groupingCriteriaBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000100);
+ return this;
+ }
+ /**
+ *
+ ** filter criteria for aggregated groups
+ *
+ *
+ * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getGroupingCriteriaBuilder() {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return getGroupingCriteriaFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ ** filter criteria for aggregated groups
+ *
+ *
+ * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getGroupingCriteriaOrBuilder() {
+ if (groupingCriteriaBuilder_ != null) {
+ return groupingCriteriaBuilder_.getMessageOrBuilder();
+ } else {
+ return groupingCriteria_ == null ?
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : groupingCriteria_;
+ }
+ }
+ /**
+ *
+ ** filter criteria for aggregated groups
+ *
+ *
+ * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
+ */
+ 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>
+ getGroupingCriteriaFieldBuilder() {
+ if (groupingCriteriaBuilder_ == null) {
+ groupingCriteriaBuilder_ = 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>(
+ getGroupingCriteria(),
+ getParentForChildren(),
+ isClean());
+ groupingCriteria_ = null;
+ }
+ return groupingCriteriaBuilder_;
+ }
+
+ private int locking_ = 1;
+ /**
+ *
+ ** perform row locking on matches
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLock locking = 12;
+ * @return Whether the locking field is set.
+ */
+ public boolean hasLocking() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ *
+ ** perform row locking on matches
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLock locking = 12;
+ * @return The locking.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLock getLocking() {
+ @SuppressWarnings("deprecation")
+ com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLock result = com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLock.valueOf(locking_);
+ return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLock.SHARED_LOCK : result;
+ }
+ /**
+ *
+ ** perform row locking on matches
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLock locking = 12;
+ * @param value The locking to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLocking(com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLock value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000200;
+ locking_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ ** perform row locking on matches
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLock locking = 12;
+ * @return This builder for chaining.
+ */
+ public Builder clearLocking() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ locking_ = 1;
+ onChanged();
+ return this;
+ }
+
+ private int lockingOptions_ = 1;
+ /**
+ *
+ ** additional options how to handle locked rows
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLockOptions locking_options = 13;
+ * @return Whether the lockingOptions field is set.
+ */
+ public boolean hasLockingOptions() {
+ return ((bitField0_ & 0x00000400) != 0);
+ }
+ /**
+ *
+ ** additional options how to handle locked rows
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLockOptions locking_options = 13;
+ * @return The lockingOptions.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLockOptions getLockingOptions() {
+ @SuppressWarnings("deprecation")
+ com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLockOptions result = com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLockOptions.valueOf(lockingOptions_);
+ return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLockOptions.NOWAIT : result;
+ }
+ /**
+ *
+ ** additional options how to handle locked rows
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLockOptions locking_options = 13;
+ * @param value The lockingOptions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLockingOptions(com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLockOptions value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000400;
+ lockingOptions_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ ** additional options how to handle locked rows
+ *
+ *
+ * optional .Mysqlx.Crud.Find.RowLockOptions locking_options = 13;
+ * @return This builder for chaining.
+ */
+ public Builder clearLockingOptions() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ lockingOptions_ = 1;
+ onChanged();
+ return this;
+ }
+
+ private com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr limitExpr_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr, com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.LimitExprOrBuilder> limitExprBuilder_;
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
+ * @return Whether the limitExpr field is set.
+ */
+ public boolean hasLimitExpr() {
+ return ((bitField0_ & 0x00000800) != 0);
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
+ * @return The limitExpr.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr getLimitExpr() {
+ if (limitExprBuilder_ == null) {
+ return limitExpr_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.getDefaultInstance() : limitExpr_;
+ } else {
+ return limitExprBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
+ */
+ public Builder setLimitExpr(com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr value) {
+ if (limitExprBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ limitExpr_ = value;
+ onChanged();
+ } else {
+ limitExprBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000800;
+ return this;
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
+ */
+ public Builder setLimitExpr(
+ com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.Builder builderForValue) {
+ if (limitExprBuilder_ == null) {
+ limitExpr_ = builderForValue.build();
+ onChanged();
+ } else {
+ limitExprBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000800;
+ return this;
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
+ */
+ public Builder mergeLimitExpr(com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr value) {
+ if (limitExprBuilder_ == null) {
+ if (((bitField0_ & 0x00000800) != 0) &&
+ limitExpr_ != null &&
+ limitExpr_ != com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.getDefaultInstance()) {
+ limitExpr_ =
+ com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.newBuilder(limitExpr_).mergeFrom(value).buildPartial();
+ } else {
+ limitExpr_ = value;
+ }
+ onChanged();
+ } else {
+ limitExprBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000800;
+ return this;
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
+ */
+ public Builder clearLimitExpr() {
+ if (limitExprBuilder_ == null) {
+ limitExpr_ = null;
+ onChanged();
+ } else {
+ limitExprBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000800);
+ return this;
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.Builder getLimitExprBuilder() {
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return getLimitExprFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExprOrBuilder getLimitExprOrBuilder() {
+ if (limitExprBuilder_ != null) {
+ return limitExprBuilder_.getMessageOrBuilder();
+ } else {
+ return limitExpr_ == null ?
+ com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.getDefaultInstance() : limitExpr_;
+ }
+ }
+ /**
+ *
+ ** numbers of rows that shall be skipped and returned
+ *(user can set one of: limit, limit_expr)
+ *
+ *
+ * optional .Mysqlx.Crud.LimitExpr limit_expr = 14;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr, com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.LimitExprOrBuilder>
+ getLimitExprFieldBuilder() {
+ if (limitExprBuilder_ == null) {
+ limitExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr, com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.LimitExprOrBuilder>(
+ getLimitExpr(),
+ getParentForChildren(),
+ isClean());
+ limitExpr_ = null;
+ }
+ return limitExprBuilder_;
+ }
+ @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.Find)
+ }
+
+ // @@protoc_insertion_point(class_scope:Mysqlx.Crud.Find)
+ private static final com.mysql.cj.x.protobuf.MysqlxCrud.Find DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.Find();
+ }
+
+ public static com.mysql.cj.x.protobuf.MysqlxCrud.Find getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Find parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Find(input, extensionRegistry);
+ }
+ };
+
+ 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.Find getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface InsertOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Insert)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ ** collection to insert into
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 1;
+ * @return Whether the collection field is set.
+ */
+ boolean hasCollection();
+ /**
+ *
+ ** collection to insert into
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 1;
+ * @return The collection.
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.Collection getCollection();
+ /**
+ *
+ ** collection to insert into
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 1;
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder();
+
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 2;
+ * @return Whether the dataModel field is set.
+ */
+ boolean hasDataModel();
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 2;
+ * @return The dataModel.
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.DataModel getDataModel();
+
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ java.util.List
+ getProjectionList();
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.Column getProjection(int index);
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ int getProjectionCount();
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ java.util.List extends com.mysql.cj.x.protobuf.MysqlxCrud.ColumnOrBuilder>
+ getProjectionOrBuilderList();
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.ColumnOrBuilder getProjectionOrBuilder(
+ int index);
+
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ java.util.List
+ getRowList();
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow getRow(int index);
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ int getRowCount();
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ java.util.List extends com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder>
+ getRowOrBuilderList();
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder getRowOrBuilder(
+ int index);
+
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ java.util.List
+ getArgsList();
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index);
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ int getArgsCount();
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ java.util.List extends com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder>
+ getArgsOrBuilderList();
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder(
+ int index);
+
+ /**
+ *
+ ** true if this should be treated as an Upsert
+ *(that is, update on duplicate key)
+ *
+ *
+ * optional bool upsert = 6 [default = false];
+ * @return Whether the upsert field is set.
+ */
+ boolean hasUpsert();
+ /**
+ *
+ ** true if this should be treated as an Upsert
+ *(that is, update on duplicate key)
+ *
+ *
+ * optional bool upsert = 6 [default = false];
+ * @return The upsert.
+ */
+ boolean getUpsert();
+ }
+ /**
+ *
+ **
+ *Insert documents/rows into a collection/table
+ *@returns @ref Mysqlx::Resultset
+ *
+ *
+ * Protobuf type {@code Mysqlx.Crud.Insert}
+ */
+ public static final class Insert extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Mysqlx.Crud.Insert)
+ InsertOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Insert.newBuilder() to construct.
+ private Insert(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Insert() {
+ dataModel_ = 1;
+ projection_ = java.util.Collections.emptyList();
+ row_ = java.util.Collections.emptyList();
+ args_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Insert();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Insert(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ subBuilder = collection_.toBuilder();
+ }
+ collection_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxCrud.Collection.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(collection_);
+ collection_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ case 16: {
+ int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
+ com.mysql.cj.x.protobuf.MysqlxCrud.DataModel value = com.mysql.cj.x.protobuf.MysqlxCrud.DataModel.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(2, rawValue);
+ } else {
+ bitField0_ |= 0x00000002;
+ dataModel_ = rawValue;
+ }
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+ projection_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ projection_.add(
+ input.readMessage(com.mysql.cj.x.protobuf.MysqlxCrud.Column.PARSER, extensionRegistry));
+ break;
+ }
+ case 34: {
+ if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+ row_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000008;
+ }
+ row_.add(
+ input.readMessage(com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.PARSER, extensionRegistry));
+ break;
+ }
+ case 42: {
+ if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+ args_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000010;
+ }
+ args_.add(
+ input.readMessage(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.PARSER, extensionRegistry));
+ break;
+ }
+ case 48: {
+ bitField0_ |= 0x00000004;
+ upsert_ = input.readBool();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000004) != 0)) {
+ projection_ = java.util.Collections.unmodifiableList(projection_);
+ }
+ if (((mutable_bitField0_ & 0x00000008) != 0)) {
+ row_ = java.util.Collections.unmodifiableList(row_);
+ }
+ if (((mutable_bitField0_ & 0x00000010) != 0)) {
+ args_ = java.util.Collections.unmodifiableList(args_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.class, com.mysql.cj.x.protobuf.MysqlxCrud.Insert.Builder.class);
+ }
+
+ public interface TypedRowOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Insert.TypedRow)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ java.util.List
+ getFieldList();
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr getField(int index);
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ int getFieldCount();
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ java.util.List extends com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>
+ getFieldOrBuilderList();
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getFieldOrBuilder(
+ int index);
+ }
+ /**
+ *
+ ** set of fields to insert as a one row
+ *
+ *
+ * Protobuf type {@code Mysqlx.Crud.Insert.TypedRow}
+ */
+ public static final class TypedRow extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Mysqlx.Crud.Insert.TypedRow)
+ TypedRowOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TypedRow.newBuilder() to construct.
+ private TypedRow(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private TypedRow() {
+ field_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new TypedRow();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TypedRow(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ field_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ field_.add(
+ input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.PARSER, extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ field_ = java.util.Collections.unmodifiableList(field_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_TypedRow_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_TypedRow_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.class, com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.Builder.class);
+ }
+
+ public static final int FIELD_FIELD_NUMBER = 1;
+ private java.util.List field_;
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public java.util.List getFieldList() {
+ return field_;
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>
+ getFieldOrBuilderList() {
+ return field_;
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public int getFieldCount() {
+ return field_.size();
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getField(int index) {
+ return field_.get(index);
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getFieldOrBuilder(
+ int index) {
+ return field_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ for (int i = 0; i < getFieldCount(); i++) {
+ if (!getField(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < field_.size(); i++) {
+ output.writeMessage(1, field_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < field_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, field_.get(i));
+ }
+ size += unknownFields.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.Insert.TypedRow)) {
+ return super.equals(obj);
+ }
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow other = (com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow) obj;
+
+ if (!getFieldList()
+ .equals(other.getFieldList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getFieldCount() > 0) {
+ hash = (37 * hash) + FIELD_FIELD_NUMBER;
+ hash = (53 * hash) + getFieldList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow 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.Insert.TypedRow parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow 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.Insert.TypedRow parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow 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.Insert.TypedRow 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.Insert.TypedRow 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.Insert.TypedRow 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.Insert.TypedRow 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.Insert.TypedRow 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.Insert.TypedRow 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.Insert.TypedRow 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;
+ }
+ /**
+ *
+ ** set of fields to insert as a one row
+ *
+ *
+ * Protobuf type {@code Mysqlx.Crud.Insert.TypedRow}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Insert.TypedRow)
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_TypedRow_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_TypedRow_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.class, com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.Builder.class);
+ }
+
+ // Construct using com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getFieldFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (fieldBuilder_ == null) {
+ field_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ fieldBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_TypedRow_descriptor;
+ }
+
+ @java.lang.Override
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow getDefaultInstanceForType() {
+ return com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow build() {
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow buildPartial() {
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow result = new com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow(this);
+ int from_bitField0_ = bitField0_;
+ if (fieldBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ field_ = java.util.Collections.unmodifiableList(field_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.field_ = field_;
+ } else {
+ result.field_ = fieldBuilder_.build();
+ }
+ 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.Insert.TypedRow) {
+ return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow other) {
+ if (other == com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.getDefaultInstance()) return this;
+ if (fieldBuilder_ == null) {
+ if (!other.field_.isEmpty()) {
+ if (field_.isEmpty()) {
+ field_ = other.field_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureFieldIsMutable();
+ field_.addAll(other.field_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.field_.isEmpty()) {
+ if (fieldBuilder_.isEmpty()) {
+ fieldBuilder_.dispose();
+ fieldBuilder_ = null;
+ field_ = other.field_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ fieldBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getFieldFieldBuilder() : null;
+ } else {
+ fieldBuilder_.addAllMessages(other.field_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ for (int i = 0; i < getFieldCount(); i++) {
+ if (!getField(i).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 {
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List field_ =
+ java.util.Collections.emptyList();
+ private void ensureFieldIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ field_ = new java.util.ArrayList(field_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder> fieldBuilder_;
+
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public java.util.List getFieldList() {
+ if (fieldBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(field_);
+ } else {
+ return fieldBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public int getFieldCount() {
+ if (fieldBuilder_ == null) {
+ return field_.size();
+ } else {
+ return fieldBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getField(int index) {
+ if (fieldBuilder_ == null) {
+ return field_.get(index);
+ } else {
+ return fieldBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public Builder setField(
+ int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
+ if (fieldBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFieldIsMutable();
+ field_.set(index, value);
+ onChanged();
+ } else {
+ fieldBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public Builder setField(
+ int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
+ if (fieldBuilder_ == null) {
+ ensureFieldIsMutable();
+ field_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ fieldBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public Builder addField(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
+ if (fieldBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFieldIsMutable();
+ field_.add(value);
+ onChanged();
+ } else {
+ fieldBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public Builder addField(
+ int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {
+ if (fieldBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFieldIsMutable();
+ field_.add(index, value);
+ onChanged();
+ } else {
+ fieldBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public Builder addField(
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
+ if (fieldBuilder_ == null) {
+ ensureFieldIsMutable();
+ field_.add(builderForValue.build());
+ onChanged();
+ } else {
+ fieldBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public Builder addField(
+ int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
+ if (fieldBuilder_ == null) {
+ ensureFieldIsMutable();
+ field_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ fieldBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public Builder addAllField(
+ java.lang.Iterable extends com.mysql.cj.x.protobuf.MysqlxExpr.Expr> values) {
+ if (fieldBuilder_ == null) {
+ ensureFieldIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, field_);
+ onChanged();
+ } else {
+ fieldBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public Builder clearField() {
+ if (fieldBuilder_ == null) {
+ field_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ fieldBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public Builder removeField(int index) {
+ if (fieldBuilder_ == null) {
+ ensureFieldIsMutable();
+ field_.remove(index);
+ onChanged();
+ } else {
+ fieldBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getFieldBuilder(
+ int index) {
+ return getFieldFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getFieldOrBuilder(
+ int index) {
+ if (fieldBuilder_ == null) {
+ return field_.get(index); } else {
+ return fieldBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>
+ getFieldOrBuilderList() {
+ if (fieldBuilder_ != null) {
+ return fieldBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(field_);
+ }
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder addFieldBuilder() {
+ return getFieldFieldBuilder().addBuilder(
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance());
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder addFieldBuilder(
+ int index) {
+ return getFieldFieldBuilder().addBuilder(
+ index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance());
+ }
+ /**
+ * repeated .Mysqlx.Expr.Expr field = 1;
+ */
+ public java.util.List
+ getFieldBuilderList() {
+ return getFieldFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>
+ getFieldFieldBuilder() {
+ if (fieldBuilder_ == null) {
+ fieldBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>(
+ field_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ field_ = null;
+ }
+ return fieldBuilder_;
+ }
+ @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.Insert.TypedRow)
+ }
+
+ // @@protoc_insertion_point(class_scope:Mysqlx.Crud.Insert.TypedRow)
+ private static final com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow();
+ }
+
+ public static com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TypedRow parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new TypedRow(input, extensionRegistry);
+ }
+ };
+
+ 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.Insert.TypedRow getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private int bitField0_;
+ public static final int COLLECTION_FIELD_NUMBER = 1;
+ private com.mysql.cj.x.protobuf.MysqlxCrud.Collection collection_;
+ /**
+ *
+ ** collection to insert into
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 1;
+ * @return Whether the collection field is set.
+ */
+ public boolean hasCollection() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ ** collection to insert into
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 1;
+ * @return The collection.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Collection getCollection() {
+ return collection_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Collection.getDefaultInstance() : collection_;
+ }
+ /**
+ *
+ ** collection to insert into
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 1;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder() {
+ return collection_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Collection.getDefaultInstance() : collection_;
+ }
+
+ public static final int DATA_MODEL_FIELD_NUMBER = 2;
+ private int dataModel_;
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 2;
+ * @return Whether the dataModel field is set.
+ */
+ public boolean hasDataModel() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 2;
+ * @return The dataModel.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.DataModel getDataModel() {
+ @SuppressWarnings("deprecation")
+ com.mysql.cj.x.protobuf.MysqlxCrud.DataModel result = com.mysql.cj.x.protobuf.MysqlxCrud.DataModel.valueOf(dataModel_);
+ return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.DataModel.DOCUMENT : result;
+ }
+
+ public static final int PROJECTION_FIELD_NUMBER = 3;
+ private java.util.List projection_;
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public java.util.List getProjectionList() {
+ return projection_;
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxCrud.ColumnOrBuilder>
+ getProjectionOrBuilderList() {
+ return projection_;
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public int getProjectionCount() {
+ return projection_.size();
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Column getProjection(int index) {
+ return projection_.get(index);
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.ColumnOrBuilder getProjectionOrBuilder(
+ int index) {
+ return projection_.get(index);
+ }
+
+ public static final int ROW_FIELD_NUMBER = 4;
+ private java.util.List row_;
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public java.util.List getRowList() {
+ return row_;
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder>
+ getRowOrBuilderList() {
+ return row_;
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public int getRowCount() {
+ return row_.size();
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow getRow(int index) {
+ return row_.get(index);
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder getRowOrBuilder(
+ int index) {
+ return row_.get(index);
+ }
+
+ public static final int ARGS_FIELD_NUMBER = 5;
+ private java.util.List args_;
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public java.util.List getArgsList() {
+ return args_;
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder>
+ getArgsOrBuilderList() {
+ return args_;
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public int getArgsCount() {
+ return args_.size();
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index) {
+ return args_.get(index);
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder(
+ int index) {
+ return args_.get(index);
+ }
+
+ public static final int UPSERT_FIELD_NUMBER = 6;
+ private boolean upsert_;
+ /**
+ *
+ ** true if this should be treated as an Upsert
+ *(that is, update on duplicate key)
+ *
+ *
+ * optional bool upsert = 6 [default = false];
+ * @return Whether the upsert field is set.
+ */
+ public boolean hasUpsert() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ ** true if this should be treated as an Upsert
+ *(that is, update on duplicate key)
+ *
+ *
+ * optional bool upsert = 6 [default = false];
+ * @return The upsert.
+ */
+ public boolean getUpsert() {
+ return upsert_;
+ }
+
+ 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 < getRowCount(); i++) {
+ if (!getRow(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ for (int i = 0; i < getArgsCount(); i++) {
+ if (!getArgs(i).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, getCollection());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeEnum(2, dataModel_);
+ }
+ for (int i = 0; i < projection_.size(); i++) {
+ output.writeMessage(3, projection_.get(i));
+ }
+ for (int i = 0; i < row_.size(); i++) {
+ output.writeMessage(4, row_.get(i));
+ }
+ for (int i = 0; i < args_.size(); i++) {
+ output.writeMessage(5, args_.get(i));
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeBool(6, upsert_);
+ }
+ unknownFields.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, getCollection());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(2, dataModel_);
+ }
+ for (int i = 0; i < projection_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, projection_.get(i));
+ }
+ for (int i = 0; i < row_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, row_.get(i));
+ }
+ for (int i = 0; i < args_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, args_.get(i));
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(6, upsert_);
+ }
+ size += unknownFields.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.Insert)) {
+ return super.equals(obj);
+ }
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert other = (com.mysql.cj.x.protobuf.MysqlxCrud.Insert) 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 (!getRowList()
+ .equals(other.getRowList())) return false;
+ if (!getArgsList()
+ .equals(other.getArgsList())) return false;
+ if (hasUpsert() != other.hasUpsert()) return false;
+ if (hasUpsert()) {
+ if (getUpsert()
+ != other.getUpsert()) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) 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 (getRowCount() > 0) {
+ hash = (37 * hash) + ROW_FIELD_NUMBER;
+ hash = (53 * hash) + getRowList().hashCode();
+ }
+ if (getArgsCount() > 0) {
+ hash = (37 * hash) + ARGS_FIELD_NUMBER;
+ hash = (53 * hash) + getArgsList().hashCode();
+ }
+ if (hasUpsert()) {
+ hash = (37 * hash) + UPSERT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getUpsert());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.mysql.cj.x.protobuf.MysqlxCrud.Insert parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.mysql.cj.x.protobuf.MysqlxCrud.Insert 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.Insert parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.mysql.cj.x.protobuf.MysqlxCrud.Insert 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.Insert parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.mysql.cj.x.protobuf.MysqlxCrud.Insert 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.Insert 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.Insert 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.Insert 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.Insert 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.Insert 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.Insert 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.Insert 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;
+ }
+ /**
+ *
+ **
+ *Insert documents/rows into a collection/table
+ *@returns @ref Mysqlx::Resultset
+ *
+ *
+ * Protobuf type {@code Mysqlx.Crud.Insert}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Insert)
+ com.mysql.cj.x.protobuf.MysqlxCrud.InsertOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.class, com.mysql.cj.x.protobuf.MysqlxCrud.Insert.Builder.class);
+ }
+
+ // Construct using com.mysql.cj.x.protobuf.MysqlxCrud.Insert.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();
+ getRowFieldBuilder();
+ getArgsFieldBuilder();
+ }
+ }
+ @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();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ projectionBuilder_.clear();
+ }
+ if (rowBuilder_ == null) {
+ row_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ rowBuilder_.clear();
+ }
+ if (argsBuilder_ == null) {
+ args_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ } else {
+ argsBuilder_.clear();
+ }
+ upsert_ = false;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_descriptor;
+ }
+
+ @java.lang.Override
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Insert getDefaultInstanceForType() {
+ return com.mysql.cj.x.protobuf.MysqlxCrud.Insert.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Insert build() {
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Insert buildPartial() {
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert result = new com.mysql.cj.x.protobuf.MysqlxCrud.Insert(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 (rowBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
+ row_ = java.util.Collections.unmodifiableList(row_);
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
+ result.row_ = row_;
+ } else {
+ result.row_ = rowBuilder_.build();
+ }
+ if (argsBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)) {
+ args_ = java.util.Collections.unmodifiableList(args_);
+ bitField0_ = (bitField0_ & ~0x00000010);
+ }
+ result.args_ = args_;
+ } else {
+ result.args_ = argsBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.upsert_ = upsert_;
+ 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.Insert) {
+ return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.Insert)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.Insert other) {
+ if (other == com.mysql.cj.x.protobuf.MysqlxCrud.Insert.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 (rowBuilder_ == null) {
+ if (!other.row_.isEmpty()) {
+ if (row_.isEmpty()) {
+ row_ = other.row_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ ensureRowIsMutable();
+ row_.addAll(other.row_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.row_.isEmpty()) {
+ if (rowBuilder_.isEmpty()) {
+ rowBuilder_.dispose();
+ rowBuilder_ = null;
+ row_ = other.row_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ rowBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getRowFieldBuilder() : null;
+ } else {
+ rowBuilder_.addAllMessages(other.row_);
+ }
+ }
+ }
+ if (argsBuilder_ == null) {
+ if (!other.args_.isEmpty()) {
+ if (args_.isEmpty()) {
+ args_ = other.args_;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ } else {
+ ensureArgsIsMutable();
+ args_.addAll(other.args_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.args_.isEmpty()) {
+ if (argsBuilder_.isEmpty()) {
+ argsBuilder_.dispose();
+ argsBuilder_ = null;
+ args_ = other.args_;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ argsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getArgsFieldBuilder() : null;
+ } else {
+ argsBuilder_.addAllMessages(other.args_);
+ }
+ }
+ }
+ if (other.hasUpsert()) {
+ setUpsert(other.getUpsert());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ 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 < getRowCount(); i++) {
+ if (!getRow(i).isInitialized()) {
+ return false;
+ }
+ }
+ for (int i = 0; i < getArgsCount(); i++) {
+ if (!getArgs(i).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 {
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.mysql.cj.x.protobuf.MysqlxCrud.Insert) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ 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 to insert into
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 1;
+ * @return Whether the collection field is set.
+ */
+ public boolean hasCollection() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ ** collection to insert into
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 1;
+ * @return The collection.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Collection getCollection() {
+ if (collectionBuilder_ == null) {
+ return collection_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Collection.getDefaultInstance() : collection_;
+ } else {
+ return collectionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ ** collection to insert into
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 1;
+ */
+ public Builder setCollection(com.mysql.cj.x.protobuf.MysqlxCrud.Collection value) {
+ if (collectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ collection_ = value;
+ onChanged();
+ } else {
+ collectionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ ** collection to insert into
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 1;
+ */
+ public Builder setCollection(
+ com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder builderForValue) {
+ if (collectionBuilder_ == null) {
+ collection_ = builderForValue.build();
+ onChanged();
+ } else {
+ collectionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ ** collection to insert into
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 1;
+ */
+ public Builder mergeCollection(com.mysql.cj.x.protobuf.MysqlxCrud.Collection value) {
+ if (collectionBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ collection_ != null &&
+ collection_ != com.mysql.cj.x.protobuf.MysqlxCrud.Collection.getDefaultInstance()) {
+ collection_ =
+ com.mysql.cj.x.protobuf.MysqlxCrud.Collection.newBuilder(collection_).mergeFrom(value).buildPartial();
+ } else {
+ collection_ = value;
+ }
+ onChanged();
+ } else {
+ collectionBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ ** collection to insert into
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 1;
+ */
+ public Builder clearCollection() {
+ if (collectionBuilder_ == null) {
+ collection_ = null;
+ onChanged();
+ } else {
+ collectionBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ /**
+ *
+ ** collection to insert into
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 1;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder getCollectionBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getCollectionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ ** collection to insert into
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 1;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder() {
+ if (collectionBuilder_ != null) {
+ return collectionBuilder_.getMessageOrBuilder();
+ } else {
+ return collection_ == null ?
+ com.mysql.cj.x.protobuf.MysqlxCrud.Collection.getDefaultInstance() : collection_;
+ }
+ }
+ /**
+ *
+ ** collection to insert into
+ *
+ *
+ * required .Mysqlx.Crud.Collection collection = 1;
+ */
+ 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>
+ getCollectionFieldBuilder() {
+ if (collectionBuilder_ == null) {
+ collectionBuilder_ = new 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>(
+ getCollection(),
+ getParentForChildren(),
+ isClean());
+ collection_ = null;
+ }
+ return collectionBuilder_;
+ }
+
+ private int dataModel_ = 1;
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 2;
+ * @return Whether the dataModel field is set.
+ */
+ public boolean hasDataModel() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 2;
+ * @return The dataModel.
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.DataModel getDataModel() {
+ @SuppressWarnings("deprecation")
+ com.mysql.cj.x.protobuf.MysqlxCrud.DataModel result = com.mysql.cj.x.protobuf.MysqlxCrud.DataModel.valueOf(dataModel_);
+ return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.DataModel.DOCUMENT : result;
+ }
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 2;
+ * @param value The dataModel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDataModel(com.mysql.cj.x.protobuf.MysqlxCrud.DataModel value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ dataModel_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ ** data model that the operations refer to
+ *
+ *
+ * optional .Mysqlx.Crud.DataModel data_model = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearDataModel() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ dataModel_ = 1;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List projection_ =
+ java.util.Collections.emptyList();
+ private void ensureProjectionIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ projection_ = new java.util.ArrayList(projection_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.Column, com.mysql.cj.x.protobuf.MysqlxCrud.Column.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.ColumnOrBuilder> projectionBuilder_;
+
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public java.util.List getProjectionList() {
+ if (projectionBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(projection_);
+ } else {
+ return projectionBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public int getProjectionCount() {
+ if (projectionBuilder_ == null) {
+ return projection_.size();
+ } else {
+ return projectionBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Column getProjection(int index) {
+ if (projectionBuilder_ == null) {
+ return projection_.get(index);
+ } else {
+ return projectionBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public Builder setProjection(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Column value) {
+ if (projectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProjectionIsMutable();
+ projection_.set(index, value);
+ onChanged();
+ } else {
+ projectionBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public Builder setProjection(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Column.Builder builderForValue) {
+ if (projectionBuilder_ == null) {
+ ensureProjectionIsMutable();
+ projection_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ projectionBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public Builder addProjection(com.mysql.cj.x.protobuf.MysqlxCrud.Column value) {
+ if (projectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProjectionIsMutable();
+ projection_.add(value);
+ onChanged();
+ } else {
+ projectionBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public Builder addProjection(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Column value) {
+ if (projectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProjectionIsMutable();
+ projection_.add(index, value);
+ onChanged();
+ } else {
+ projectionBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public Builder addProjection(
+ com.mysql.cj.x.protobuf.MysqlxCrud.Column.Builder builderForValue) {
+ if (projectionBuilder_ == null) {
+ ensureProjectionIsMutable();
+ projection_.add(builderForValue.build());
+ onChanged();
+ } else {
+ projectionBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public Builder addProjection(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Column.Builder builderForValue) {
+ if (projectionBuilder_ == null) {
+ ensureProjectionIsMutable();
+ projection_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ projectionBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public Builder addAllProjection(
+ java.lang.Iterable extends com.mysql.cj.x.protobuf.MysqlxCrud.Column> values) {
+ if (projectionBuilder_ == null) {
+ ensureProjectionIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, projection_);
+ onChanged();
+ } else {
+ projectionBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public Builder clearProjection() {
+ if (projectionBuilder_ == null) {
+ projection_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ projectionBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public Builder removeProjection(int index) {
+ if (projectionBuilder_ == null) {
+ ensureProjectionIsMutable();
+ projection_.remove(index);
+ onChanged();
+ } else {
+ projectionBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Column.Builder getProjectionBuilder(
+ int index) {
+ return getProjectionFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.ColumnOrBuilder getProjectionOrBuilder(
+ int index) {
+ if (projectionBuilder_ == null) {
+ return projection_.get(index); } else {
+ return projectionBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxCrud.ColumnOrBuilder>
+ getProjectionOrBuilderList() {
+ if (projectionBuilder_ != null) {
+ return projectionBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(projection_);
+ }
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Column.Builder addProjectionBuilder() {
+ return getProjectionFieldBuilder().addBuilder(
+ com.mysql.cj.x.protobuf.MysqlxCrud.Column.getDefaultInstance());
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Column.Builder addProjectionBuilder(
+ int index) {
+ return getProjectionFieldBuilder().addBuilder(
+ index, com.mysql.cj.x.protobuf.MysqlxCrud.Column.getDefaultInstance());
+ }
+ /**
+ *
+ ** name of the columns to insert data into
+ *(empty if data_model is DOCUMENT)
+ *
+ *
+ * repeated .Mysqlx.Crud.Column projection = 3;
+ */
+ public java.util.List
+ getProjectionBuilderList() {
+ return getProjectionFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.Column, com.mysql.cj.x.protobuf.MysqlxCrud.Column.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.ColumnOrBuilder>
+ getProjectionFieldBuilder() {
+ if (projectionBuilder_ == null) {
+ projectionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.Column, com.mysql.cj.x.protobuf.MysqlxCrud.Column.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.ColumnOrBuilder>(
+ projection_,
+ ((bitField0_ & 0x00000004) != 0),
+ getParentForChildren(),
+ isClean());
+ projection_ = null;
+ }
+ return projectionBuilder_;
+ }
+
+ private java.util.List row_ =
+ java.util.Collections.emptyList();
+ private void ensureRowIsMutable() {
+ if (!((bitField0_ & 0x00000008) != 0)) {
+ row_ = new java.util.ArrayList(row_);
+ bitField0_ |= 0x00000008;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow, com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder> rowBuilder_;
+
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public java.util.List getRowList() {
+ if (rowBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(row_);
+ } else {
+ return rowBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public int getRowCount() {
+ if (rowBuilder_ == null) {
+ return row_.size();
+ } else {
+ return rowBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow getRow(int index) {
+ if (rowBuilder_ == null) {
+ return row_.get(index);
+ } else {
+ return rowBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public Builder setRow(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow value) {
+ if (rowBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRowIsMutable();
+ row_.set(index, value);
+ onChanged();
+ } else {
+ rowBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public Builder setRow(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.Builder builderForValue) {
+ if (rowBuilder_ == null) {
+ ensureRowIsMutable();
+ row_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ rowBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public Builder addRow(com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow value) {
+ if (rowBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRowIsMutable();
+ row_.add(value);
+ onChanged();
+ } else {
+ rowBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public Builder addRow(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow value) {
+ if (rowBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRowIsMutable();
+ row_.add(index, value);
+ onChanged();
+ } else {
+ rowBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public Builder addRow(
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.Builder builderForValue) {
+ if (rowBuilder_ == null) {
+ ensureRowIsMutable();
+ row_.add(builderForValue.build());
+ onChanged();
+ } else {
+ rowBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public Builder addRow(
+ int index, com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.Builder builderForValue) {
+ if (rowBuilder_ == null) {
+ ensureRowIsMutable();
+ row_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ rowBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public Builder addAllRow(
+ java.lang.Iterable extends com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow> values) {
+ if (rowBuilder_ == null) {
+ ensureRowIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, row_);
+ onChanged();
+ } else {
+ rowBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public Builder clearRow() {
+ if (rowBuilder_ == null) {
+ row_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ rowBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public Builder removeRow(int index) {
+ if (rowBuilder_ == null) {
+ ensureRowIsMutable();
+ row_.remove(index);
+ onChanged();
+ } else {
+ rowBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.Builder getRowBuilder(
+ int index) {
+ return getRowFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder getRowOrBuilder(
+ int index) {
+ if (rowBuilder_ == null) {
+ return row_.get(index); } else {
+ return rowBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder>
+ getRowOrBuilderList() {
+ if (rowBuilder_ != null) {
+ return rowBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(row_);
+ }
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.Builder addRowBuilder() {
+ return getRowFieldBuilder().addBuilder(
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.getDefaultInstance());
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.Builder addRowBuilder(
+ int index) {
+ return getRowFieldBuilder().addBuilder(
+ index, com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.getDefaultInstance());
+ }
+ /**
+ *
+ ** set of rows to insert into the collection/table (a single expression
+ *with a JSON document literal or an OBJECT expression)
+ *
+ *
+ * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
+ */
+ public java.util.List
+ getRowBuilderList() {
+ return getRowFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow, com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder>
+ getRowFieldBuilder() {
+ if (rowBuilder_ == null) {
+ rowBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow, com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder>(
+ row_,
+ ((bitField0_ & 0x00000008) != 0),
+ getParentForChildren(),
+ isClean());
+ row_ = null;
+ }
+ return rowBuilder_;
+ }
+
+ private java.util.List args_ =
+ java.util.Collections.emptyList();
+ private void ensureArgsIsMutable() {
+ if (!((bitField0_ & 0x00000010) != 0)) {
+ args_ = new java.util.ArrayList(args_);
+ bitField0_ |= 0x00000010;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder> argsBuilder_;
+
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public java.util.List getArgsList() {
+ if (argsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(args_);
+ } else {
+ return argsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public int getArgsCount() {
+ if (argsBuilder_ == null) {
+ return args_.size();
+ } else {
+ return argsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index) {
+ if (argsBuilder_ == null) {
+ return args_.get(index);
+ } else {
+ return argsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public Builder setArgs(
+ int index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar value) {
+ if (argsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArgsIsMutable();
+ args_.set(index, value);
+ onChanged();
+ } else {
+ argsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public Builder setArgs(
+ int index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder builderForValue) {
+ if (argsBuilder_ == null) {
+ ensureArgsIsMutable();
+ args_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ argsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public Builder addArgs(com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar value) {
+ if (argsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArgsIsMutable();
+ args_.add(value);
+ onChanged();
+ } else {
+ argsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public Builder addArgs(
+ int index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar value) {
+ if (argsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArgsIsMutable();
+ args_.add(index, value);
+ onChanged();
+ } else {
+ argsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public Builder addArgs(
+ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder builderForValue) {
+ if (argsBuilder_ == null) {
+ ensureArgsIsMutable();
+ args_.add(builderForValue.build());
+ onChanged();
+ } else {
+ argsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public Builder addArgs(
+ int index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder builderForValue) {
+ if (argsBuilder_ == null) {
+ ensureArgsIsMutable();
+ args_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ argsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public Builder addAllArgs(
+ java.lang.Iterable extends com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar> values) {
+ if (argsBuilder_ == null) {
+ ensureArgsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, args_);
+ onChanged();
+ } else {
+ argsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public Builder clearArgs() {
+ if (argsBuilder_ == null) {
+ args_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ } else {
+ argsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public Builder removeArgs(int index) {
+ if (argsBuilder_ == null) {
+ ensureArgsIsMutable();
+ args_.remove(index);
+ onChanged();
+ } else {
+ argsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder getArgsBuilder(
+ int index) {
+ return getArgsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder(
+ int index) {
+ if (argsBuilder_ == null) {
+ return args_.get(index); } else {
+ return argsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public java.util.List extends com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder>
+ getArgsOrBuilderList() {
+ if (argsBuilder_ != null) {
+ return argsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(args_);
+ }
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder addArgsBuilder() {
+ return getArgsFieldBuilder().addBuilder(
+ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance());
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder addArgsBuilder(
+ int index) {
+ return getArgsFieldBuilder().addBuilder(
+ index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance());
+ }
+ /**
+ *
+ ** values for parameters used in row expressions
+ *
+ *
+ * repeated .Mysqlx.Datatypes.Scalar args = 5;
+ */
+ public java.util.List
+ getArgsBuilderList() {
+ return getArgsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder>
+ getArgsFieldBuilder() {
+ if (argsBuilder_ == null) {
+ argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder, com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder>(
+ args_,
+ ((bitField0_ & 0x00000010) != 0),
+ getParentForChildren(),
+ isClean());
+ args_ = null;
+ }
+ return argsBuilder_;
+ }
+
+ private boolean upsert_ ;
+ /**
+ *
+ ** true if this should be treated as an Upsert
+ *(that is, update on duplicate key)
+ *
+ *
+ * optional bool upsert = 6 [default = false];
+ * @return Whether the upsert field is set.
+ */
+ public boolean hasUpsert() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ ** true if this should be treated as an Upsert
+ *(that is, update on duplicate key)
+ *
+ *
+ * optional bool upsert = 6 [default = false];
+ * @return The upsert.
+ */
+ public boolean getUpsert() {
+ return upsert_;
+ }
+ /**
+ *
+ ** true if this should be treated as an Upsert
+ *(that is, update on duplicate key)
+ *
+ *
+ * optional bool upsert = 6 [default = false];
+ * @param value The upsert to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUpsert(boolean value) {
+ bitField0_ |= 0x00000020;
+ upsert_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ ** true if this should be treated as an Upsert
+ *(that is, update on duplicate key)
+ *
+ *
+ * optional bool upsert = 6 [default = false];
+ * @return This builder for chaining.
+ */
+ public Builder clearUpsert() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ upsert_ = false;
+ 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.Insert)
+ }
+
+ // @@protoc_insertion_point(class_scope:Mysqlx.Crud.Insert)
+ private static final com.mysql.cj.x.protobuf.MysqlxCrud.Insert DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.Insert();
+ }
+
+ public static com.mysql.cj.x.protobuf.MysqlxCrud.Insert getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Insert parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Insert(input, extensionRegistry);
+ }
+ };
+
+ 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.Insert getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface UpdateOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Update)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *