All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mysql.cj.x.protobuf.MysqlxCrud Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta2
Show newest version
/*
 * Copyright (c) 2015, 2020, Oracle and/or its affiliates.
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License, version 2.0, as published by the
 * Free Software Foundation.
 *
 * This program is also distributed with certain software (including but not
 * limited to OpenSSL) that is licensed under separate terms, as designated in a
 * particular file or component or in included license documentation. The
 * authors of MySQL hereby grant you an additional permission to link the
 * program and your derivative works with the separately licensed software that
 * they have included with MySQL.
 *
 * Without limiting anything contained in the foregoing, this file, which is
 * part of MySQL Connector/J, is also subject to the Universal FOSS Exception,
 * version 1.0, a copy of which can be found at
 * http://oss.oracle.com/licenses/universal-foss-exception.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
 * for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
 */

package com.mysql.cj.x.protobuf;

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: mysqlx_crud.proto

@SuppressWarnings({ "deprecation" })
public final class MysqlxCrud {
  private MysqlxCrud() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * DataModel to use for filters, names, ...
   * 
* * Protobuf enum {@code Mysqlx.Crud.DataModel} */ public enum DataModel implements com.google.protobuf.ProtocolMessageEnum { /** * DOCUMENT = 1; */ DOCUMENT(1), /** * TABLE = 2; */ TABLE(2), ; /** * DOCUMENT = 1; */ public static final int DOCUMENT_VALUE = 1; /** * TABLE = 2; */ public static final int TABLE_VALUE = 2; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DataModel valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static DataModel forNumber(int value) { switch (value) { case 1: return DOCUMENT; case 2: return TABLE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< DataModel> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DataModel findValueByNumber(int number) { return DataModel.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.getDescriptor().getEnumTypes().get(0); } private static final DataModel[] VALUES = values(); public static DataModel valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private DataModel(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Mysqlx.Crud.DataModel) } /** *
   * ViewAlgorithm defines how MySQL Server processes the view
   * 
* * Protobuf enum {@code Mysqlx.Crud.ViewAlgorithm} */ public enum ViewAlgorithm implements com.google.protobuf.ProtocolMessageEnum { /** *
     * MySQL chooses which algorithm to use
     * 
* * UNDEFINED = 1; */ UNDEFINED(1), /** *
     * the text of a statement that refers to the view and the view definition are merged
     * 
* * MERGE = 2; */ MERGE(2), /** *
     * the view are retrieved into a temporary table
     * 
* * TEMPTABLE = 3; */ TEMPTABLE(3), ; /** *
     * MySQL chooses which algorithm to use
     * 
* * UNDEFINED = 1; */ public static final int UNDEFINED_VALUE = 1; /** *
     * the text of a statement that refers to the view and the view definition are merged
     * 
* * MERGE = 2; */ public static final int MERGE_VALUE = 2; /** *
     * the view are retrieved into a temporary table
     * 
* * TEMPTABLE = 3; */ public static final int TEMPTABLE_VALUE = 3; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ViewAlgorithm valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ViewAlgorithm forNumber(int value) { switch (value) { case 1: return UNDEFINED; case 2: return MERGE; case 3: return TEMPTABLE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ViewAlgorithm> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ViewAlgorithm findValueByNumber(int number) { return ViewAlgorithm.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.getDescriptor().getEnumTypes().get(1); } private static final ViewAlgorithm[] VALUES = values(); public static ViewAlgorithm valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private ViewAlgorithm(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Mysqlx.Crud.ViewAlgorithm) } /** *
   * ViewSqlSecurity defines the security context in which the view is going to be
   * executed, this means that VIEW can be executed with current user permissions or
   * with permissions of the uses who defined the VIEW
   * 
* * Protobuf enum {@code Mysqlx.Crud.ViewSqlSecurity} */ public enum ViewSqlSecurity implements com.google.protobuf.ProtocolMessageEnum { /** * INVOKER = 1; */ INVOKER(1), /** * DEFINER = 2; */ DEFINER(2), ; /** * INVOKER = 1; */ public static final int INVOKER_VALUE = 1; /** * DEFINER = 2; */ public static final int DEFINER_VALUE = 2; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ViewSqlSecurity valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ViewSqlSecurity forNumber(int value) { switch (value) { case 1: return INVOKER; case 2: return DEFINER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ViewSqlSecurity> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ViewSqlSecurity findValueByNumber(int number) { return ViewSqlSecurity.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.getDescriptor().getEnumTypes().get(2); } private static final ViewSqlSecurity[] VALUES = values(); public static ViewSqlSecurity valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private ViewSqlSecurity(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Mysqlx.Crud.ViewSqlSecurity) } /** *
   * ViewCheckOption limits the write operations done on a `VIEW`
   * (`INSERT`, `UPDATE`, `DELETE`) to rows in which the `WHERE` clause is `TRUE`
   * 
* * Protobuf enum {@code Mysqlx.Crud.ViewCheckOption} */ public enum ViewCheckOption implements com.google.protobuf.ProtocolMessageEnum { /** *
     * the view WHERE clause is checked, but no underlying views are checked
     * 
* * LOCAL = 1; */ LOCAL(1), /** *
     * the view WHERE clause is checked, then checking recurses to underlying views
     * 
* * CASCADED = 2; */ CASCADED(2), ; /** *
     * the view WHERE clause is checked, but no underlying views are checked
     * 
* * LOCAL = 1; */ public static final int LOCAL_VALUE = 1; /** *
     * the view WHERE clause is checked, then checking recurses to underlying views
     * 
* * CASCADED = 2; */ public static final int CASCADED_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 ViewCheckOption 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 ViewCheckOption forNumber(int value) { switch (value) { case 1: return LOCAL; case 2: return CASCADED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ViewCheckOption> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ViewCheckOption findValueByNumber(int number) { return ViewCheckOption.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.getDescriptor().getEnumTypes().get(3); } private static final ViewCheckOption[] VALUES = values(); public static ViewCheckOption 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 ViewCheckOption(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Mysqlx.Crud.ViewCheckOption) } public interface ColumnOrBuilder extends // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Column) com.google.protobuf.MessageOrBuilder { /** * optional string name = 1; * @return Whether the name field is set. */ boolean hasName(); /** * optional string name = 1; * @return The name. */ java.lang.String getName(); /** * optional string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * optional string alias = 2; * @return Whether the alias field is set. */ boolean hasAlias(); /** * optional string alias = 2; * @return The alias. */ java.lang.String getAlias(); /** * optional string alias = 2; * @return The bytes for alias. */ com.google.protobuf.ByteString getAliasBytes(); /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ java.util.List getDocumentPathList(); /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem getDocumentPath(int index); /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ int getDocumentPathCount(); /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ java.util.List getDocumentPathOrBuilderList(); /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItemOrBuilder getDocumentPathOrBuilder( int index); } /** *
   * column definition
   * 
* * Protobuf type {@code Mysqlx.Crud.Column} */ public static final class Column extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Mysqlx.Crud.Column) ColumnOrBuilder { private static final long serialVersionUID = 0L; // Use Column.newBuilder() to construct. private Column(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Column() { name_ = ""; alias_ = ""; documentPath_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Column(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Column( 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.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; alias_ = bs; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { documentPath_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } documentPath_.add( input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.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_ & 0x00000004) != 0)) { documentPath_ = java.util.Collections.unmodifiableList(documentPath_); } 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_Column_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Column_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.Column.class, com.mysql.cj.x.protobuf.MysqlxCrud.Column.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * optional string name = 1; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALIAS_FIELD_NUMBER = 2; private volatile java.lang.Object alias_; /** * optional string alias = 2; * @return Whether the alias field is set. */ public boolean hasAlias() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string alias = 2; * @return The alias. */ public java.lang.String getAlias() { java.lang.Object ref = alias_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { alias_ = s; } return s; } } /** * optional string alias = 2; * @return The bytes for alias. */ public com.google.protobuf.ByteString getAliasBytes() { java.lang.Object ref = alias_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alias_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOCUMENT_PATH_FIELD_NUMBER = 3; private java.util.List documentPath_; /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public java.util.List getDocumentPathList() { return documentPath_; } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public java.util.List getDocumentPathOrBuilderList() { return documentPath_; } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public int getDocumentPathCount() { return documentPath_.size(); } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem getDocumentPath(int index) { return documentPath_.get(index); } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItemOrBuilder getDocumentPathOrBuilder( int index) { return documentPath_.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 < getDocumentPathCount(); i++) { if (!getDocumentPath(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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alias_); } for (int i = 0; i < documentPath_.size(); i++) { output.writeMessage(3, documentPath_.get(i)); } 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.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alias_); } for (int i = 0; i < documentPath_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, documentPath_.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.Column)) { return super.equals(obj); } com.mysql.cj.x.protobuf.MysqlxCrud.Column other = (com.mysql.cj.x.protobuf.MysqlxCrud.Column) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasAlias() != other.hasAlias()) return false; if (hasAlias()) { if (!getAlias() .equals(other.getAlias())) return false; } if (!getDocumentPathList() .equals(other.getDocumentPathList())) 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 (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasAlias()) { hash = (37 * hash) + ALIAS_FIELD_NUMBER; hash = (53 * hash) + getAlias().hashCode(); } if (getDocumentPathCount() > 0) { hash = (37 * hash) + DOCUMENT_PATH_FIELD_NUMBER; hash = (53 * hash) + getDocumentPathList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.mysql.cj.x.protobuf.MysqlxCrud.Column parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Column 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.Column parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Column 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.Column parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Column 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.Column 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.Column 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.Column 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.Column 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.Column 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.Column 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.Column 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; } /** *
     * column definition
     * 
* * Protobuf type {@code Mysqlx.Crud.Column} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Column) com.mysql.cj.x.protobuf.MysqlxCrud.ColumnOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Column_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Column_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.Column.class, com.mysql.cj.x.protobuf.MysqlxCrud.Column.Builder.class); } // Construct using com.mysql.cj.x.protobuf.MysqlxCrud.Column.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDocumentPathFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); alias_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (documentPathBuilder_ == null) { documentPath_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { documentPathBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Column_descriptor; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Column getDefaultInstanceForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.Column.getDefaultInstance(); } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Column build() { com.mysql.cj.x.protobuf.MysqlxCrud.Column result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Column buildPartial() { com.mysql.cj.x.protobuf.MysqlxCrud.Column result = new com.mysql.cj.x.protobuf.MysqlxCrud.Column(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.alias_ = alias_; if (documentPathBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { documentPath_ = java.util.Collections.unmodifiableList(documentPath_); bitField0_ = (bitField0_ & ~0x00000004); } result.documentPath_ = documentPath_; } else { result.documentPath_ = documentPathBuilder_.build(); } 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.Column) { return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.Column)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.Column other) { if (other == com.mysql.cj.x.protobuf.MysqlxCrud.Column.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasAlias()) { bitField0_ |= 0x00000002; alias_ = other.alias_; onChanged(); } if (documentPathBuilder_ == null) { if (!other.documentPath_.isEmpty()) { if (documentPath_.isEmpty()) { documentPath_ = other.documentPath_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDocumentPathIsMutable(); documentPath_.addAll(other.documentPath_); } onChanged(); } } else { if (!other.documentPath_.isEmpty()) { if (documentPathBuilder_.isEmpty()) { documentPathBuilder_.dispose(); documentPathBuilder_ = null; documentPath_ = other.documentPath_; bitField0_ = (bitField0_ & ~0x00000004); documentPathBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDocumentPathFieldBuilder() : null; } else { documentPathBuilder_.addAllMessages(other.documentPath_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getDocumentPathCount(); i++) { if (!getDocumentPath(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.Column parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mysql.cj.x.protobuf.MysqlxCrud.Column) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * optional string name = 1; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * optional string name = 1; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private java.lang.Object alias_ = ""; /** * optional string alias = 2; * @return Whether the alias field is set. */ public boolean hasAlias() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string alias = 2; * @return The alias. */ public java.lang.String getAlias() { java.lang.Object ref = alias_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { alias_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string alias = 2; * @return The bytes for alias. */ public com.google.protobuf.ByteString getAliasBytes() { java.lang.Object ref = alias_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alias_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string alias = 2; * @param value The alias to set. * @return This builder for chaining. */ public Builder setAlias( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; alias_ = value; onChanged(); return this; } /** * optional string alias = 2; * @return This builder for chaining. */ public Builder clearAlias() { bitField0_ = (bitField0_ & ~0x00000002); alias_ = getDefaultInstance().getAlias(); onChanged(); return this; } /** * optional string alias = 2; * @param value The bytes for alias to set. * @return This builder for chaining. */ public Builder setAliasBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; alias_ = value; onChanged(); return this; } private java.util.List documentPath_ = java.util.Collections.emptyList(); private void ensureDocumentPathIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { documentPath_ = new java.util.ArrayList(documentPath_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItemOrBuilder> documentPathBuilder_; /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public java.util.List getDocumentPathList() { if (documentPathBuilder_ == null) { return java.util.Collections.unmodifiableList(documentPath_); } else { return documentPathBuilder_.getMessageList(); } } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public int getDocumentPathCount() { if (documentPathBuilder_ == null) { return documentPath_.size(); } else { return documentPathBuilder_.getCount(); } } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem getDocumentPath(int index) { if (documentPathBuilder_ == null) { return documentPath_.get(index); } else { return documentPathBuilder_.getMessage(index); } } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public Builder setDocumentPath( int index, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem value) { if (documentPathBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDocumentPathIsMutable(); documentPath_.set(index, value); onChanged(); } else { documentPathBuilder_.setMessage(index, value); } return this; } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public Builder setDocumentPath( int index, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder builderForValue) { if (documentPathBuilder_ == null) { ensureDocumentPathIsMutable(); documentPath_.set(index, builderForValue.build()); onChanged(); } else { documentPathBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public Builder addDocumentPath(com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem value) { if (documentPathBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDocumentPathIsMutable(); documentPath_.add(value); onChanged(); } else { documentPathBuilder_.addMessage(value); } return this; } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public Builder addDocumentPath( int index, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem value) { if (documentPathBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDocumentPathIsMutable(); documentPath_.add(index, value); onChanged(); } else { documentPathBuilder_.addMessage(index, value); } return this; } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public Builder addDocumentPath( com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder builderForValue) { if (documentPathBuilder_ == null) { ensureDocumentPathIsMutable(); documentPath_.add(builderForValue.build()); onChanged(); } else { documentPathBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public Builder addDocumentPath( int index, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder builderForValue) { if (documentPathBuilder_ == null) { ensureDocumentPathIsMutable(); documentPath_.add(index, builderForValue.build()); onChanged(); } else { documentPathBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public Builder addAllDocumentPath( java.lang.Iterable values) { if (documentPathBuilder_ == null) { ensureDocumentPathIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, documentPath_); onChanged(); } else { documentPathBuilder_.addAllMessages(values); } return this; } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public Builder clearDocumentPath() { if (documentPathBuilder_ == null) { documentPath_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { documentPathBuilder_.clear(); } return this; } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public Builder removeDocumentPath(int index) { if (documentPathBuilder_ == null) { ensureDocumentPathIsMutable(); documentPath_.remove(index); onChanged(); } else { documentPathBuilder_.remove(index); } return this; } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder getDocumentPathBuilder( int index) { return getDocumentPathFieldBuilder().getBuilder(index); } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItemOrBuilder getDocumentPathOrBuilder( int index) { if (documentPathBuilder_ == null) { return documentPath_.get(index); } else { return documentPathBuilder_.getMessageOrBuilder(index); } } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public java.util.List getDocumentPathOrBuilderList() { if (documentPathBuilder_ != null) { return documentPathBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(documentPath_); } } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder addDocumentPathBuilder() { return getDocumentPathFieldBuilder().addBuilder( com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.getDefaultInstance()); } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder addDocumentPathBuilder( int index) { return getDocumentPathFieldBuilder().addBuilder( index, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.getDefaultInstance()); } /** * repeated .Mysqlx.Expr.DocumentPathItem document_path = 3; */ public java.util.List getDocumentPathBuilderList() { return getDocumentPathFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItemOrBuilder> getDocumentPathFieldBuilder() { if (documentPathBuilder_ == null) { documentPathBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItem.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.DocumentPathItemOrBuilder>( documentPath_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); documentPath_ = null; } return documentPathBuilder_; } @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.Column) } // @@protoc_insertion_point(class_scope:Mysqlx.Crud.Column) private static final com.mysql.cj.x.protobuf.MysqlxCrud.Column DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.Column(); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Column getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Column parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Column(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.Column getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProjectionOrBuilder extends // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Projection) com.google.protobuf.MessageOrBuilder { /** * required .Mysqlx.Expr.Expr source = 1; * @return Whether the source field is set. */ boolean hasSource(); /** * required .Mysqlx.Expr.Expr source = 1; * @return The source. */ com.mysql.cj.x.protobuf.MysqlxExpr.Expr getSource(); /** * required .Mysqlx.Expr.Expr source = 1; */ com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getSourceOrBuilder(); /** * optional string alias = 2; * @return Whether the alias field is set. */ boolean hasAlias(); /** * optional string alias = 2; * @return The alias. */ java.lang.String getAlias(); /** * optional string alias = 2; * @return The bytes for alias. */ com.google.protobuf.ByteString getAliasBytes(); } /** *
   * a projection
   * :param source: the expression identifying an element from the source data
   *                which can include a column identifier or any expression
   * :param alias: optional alias. Required for DOCUMENTs (clients may use 
   *              the source string as default)
   * 
* * Protobuf type {@code Mysqlx.Crud.Projection} */ public static final class Projection extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Mysqlx.Crud.Projection) ProjectionOrBuilder { private static final long serialVersionUID = 0L; // Use Projection.newBuilder() to construct. private Projection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Projection() { alias_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Projection(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Projection( 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.MysqlxExpr.Expr.Builder subBuilder = null; if (((bitField0_ & 0x00000001) != 0)) { subBuilder = source_.toBuilder(); } source_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(source_); source_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; alias_ = bs; 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 { 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_Projection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Projection_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.Projection.class, com.mysql.cj.x.protobuf.MysqlxCrud.Projection.Builder.class); } private int bitField0_; public static final int SOURCE_FIELD_NUMBER = 1; private com.mysql.cj.x.protobuf.MysqlxExpr.Expr source_; /** * required .Mysqlx.Expr.Expr source = 1; * @return Whether the source field is set. */ public boolean hasSource() { return ((bitField0_ & 0x00000001) != 0); } /** * required .Mysqlx.Expr.Expr source = 1; * @return The source. */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getSource() { return source_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : source_; } /** * required .Mysqlx.Expr.Expr source = 1; */ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getSourceOrBuilder() { return source_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : source_; } public static final int ALIAS_FIELD_NUMBER = 2; private volatile java.lang.Object alias_; /** * optional string alias = 2; * @return Whether the alias field is set. */ public boolean hasAlias() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string alias = 2; * @return The alias. */ public java.lang.String getAlias() { java.lang.Object ref = alias_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { alias_ = s; } return s; } } /** * optional string alias = 2; * @return The bytes for alias. */ public com.google.protobuf.ByteString getAliasBytes() { java.lang.Object ref = alias_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alias_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasSource()) { memoizedIsInitialized = 0; return false; } if (!getSource().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSource()); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alias_); } 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, getSource()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alias_); } 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.Projection)) { return super.equals(obj); } com.mysql.cj.x.protobuf.MysqlxCrud.Projection other = (com.mysql.cj.x.protobuf.MysqlxCrud.Projection) obj; if (hasSource() != other.hasSource()) return false; if (hasSource()) { if (!getSource() .equals(other.getSource())) return false; } if (hasAlias() != other.hasAlias()) return false; if (hasAlias()) { if (!getAlias() .equals(other.getAlias())) return false; } if (!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 (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } if (hasAlias()) { hash = (37 * hash) + ALIAS_FIELD_NUMBER; hash = (53 * hash) + getAlias().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxCrud.Projection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * a projection
     * :param source: the expression identifying an element from the source data
     *                which can include a column identifier or any expression
     * :param alias: optional alias. Required for DOCUMENTs (clients may use 
     *              the source string as default)
     * 
* * Protobuf type {@code Mysqlx.Crud.Projection} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Projection) com.mysql.cj.x.protobuf.MysqlxCrud.ProjectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Projection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Projection_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.Projection.class, com.mysql.cj.x.protobuf.MysqlxCrud.Projection.Builder.class); } // Construct using com.mysql.cj.x.protobuf.MysqlxCrud.Projection.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSourceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (sourceBuilder_ == null) { source_ = null; } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); alias_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Projection_descriptor; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Projection getDefaultInstanceForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.Projection.getDefaultInstance(); } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Projection build() { com.mysql.cj.x.protobuf.MysqlxCrud.Projection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Projection buildPartial() { com.mysql.cj.x.protobuf.MysqlxCrud.Projection result = new com.mysql.cj.x.protobuf.MysqlxCrud.Projection(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (sourceBuilder_ == null) { result.source_ = source_; } else { result.source_ = sourceBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.alias_ = alias_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mysql.cj.x.protobuf.MysqlxCrud.Projection) { return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.Projection)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.Projection other) { if (other == com.mysql.cj.x.protobuf.MysqlxCrud.Projection.getDefaultInstance()) return this; if (other.hasSource()) { mergeSource(other.getSource()); } if (other.hasAlias()) { bitField0_ |= 0x00000002; alias_ = other.alias_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasSource()) { return false; } if (!getSource().isInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mysql.cj.x.protobuf.MysqlxCrud.Projection parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mysql.cj.x.protobuf.MysqlxCrud.Projection) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.mysql.cj.x.protobuf.MysqlxExpr.Expr source_; private com.google.protobuf.SingleFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder> sourceBuilder_; /** * required .Mysqlx.Expr.Expr source = 1; * @return Whether the source field is set. */ public boolean hasSource() { return ((bitField0_ & 0x00000001) != 0); } /** * required .Mysqlx.Expr.Expr source = 1; * @return The source. */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getSource() { if (sourceBuilder_ == null) { return source_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * required .Mysqlx.Expr.Expr source = 1; */ public Builder setSource(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { sourceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .Mysqlx.Expr.Expr source = 1; */ public Builder setSource( com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { sourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .Mysqlx.Expr.Expr source = 1; */ public Builder mergeSource(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) { if (sourceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && source_ != null && source_ != com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance()) { source_ = com.mysql.cj.x.protobuf.MysqlxExpr.Expr.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } onChanged(); } else { sourceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .Mysqlx.Expr.Expr source = 1; */ public Builder clearSource() { if (sourceBuilder_ == null) { source_ = null; onChanged(); } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Mysqlx.Expr.Expr source = 1; */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getSourceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * required .Mysqlx.Expr.Expr source = 1; */ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : source_; } } /** * required .Mysqlx.Expr.Expr source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = 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>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } private java.lang.Object alias_ = ""; /** * optional string alias = 2; * @return Whether the alias field is set. */ public boolean hasAlias() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string alias = 2; * @return The alias. */ public java.lang.String getAlias() { java.lang.Object ref = alias_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { alias_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string alias = 2; * @return The bytes for alias. */ public com.google.protobuf.ByteString getAliasBytes() { java.lang.Object ref = alias_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alias_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string alias = 2; * @param value The alias to set. * @return This builder for chaining. */ public Builder setAlias( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; alias_ = value; onChanged(); return this; } /** * optional string alias = 2; * @return This builder for chaining. */ public Builder clearAlias() { bitField0_ = (bitField0_ & ~0x00000002); alias_ = getDefaultInstance().getAlias(); onChanged(); return this; } /** * optional string alias = 2; * @param value The bytes for alias to set. * @return This builder for chaining. */ public Builder setAliasBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; alias_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Mysqlx.Crud.Projection) } // @@protoc_insertion_point(class_scope:Mysqlx.Crud.Projection) private static final com.mysql.cj.x.protobuf.MysqlxCrud.Projection DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.Projection(); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Projection getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Projection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Projection(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.Projection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CollectionOrBuilder extends // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Collection) com.google.protobuf.MessageOrBuilder { /** * required string name = 1; * @return Whether the name field is set. */ boolean hasName(); /** * required string name = 1; * @return The name. */ java.lang.String getName(); /** * required string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * optional string schema = 2; * @return Whether the schema field is set. */ boolean hasSchema(); /** * optional string schema = 2; * @return The schema. */ java.lang.String getSchema(); /** * optional string schema = 2; * @return The bytes for schema. */ com.google.protobuf.ByteString getSchemaBytes(); } /** *
   * collection
   * 
* * Protobuf type {@code Mysqlx.Crud.Collection} */ public static final class Collection extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Mysqlx.Crud.Collection) CollectionOrBuilder { private static final long serialVersionUID = 0L; // Use Collection.newBuilder() to construct. private Collection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Collection() { name_ = ""; schema_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Collection(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Collection( 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.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; schema_ = bs; 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 { 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_Collection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Collection_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.Collection.class, com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * required string name = 1; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** * required string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * required string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCHEMA_FIELD_NUMBER = 2; private volatile java.lang.Object schema_; /** * optional string schema = 2; * @return Whether the schema field is set. */ public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string schema = 2; * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { schema_ = s; } return s; } } /** * optional string schema = 2; * @return The bytes for schema. */ public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schema_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schema_); } 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.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schema_); } 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.Collection)) { return super.equals(obj); } com.mysql.cj.x.protobuf.MysqlxCrud.Collection other = (com.mysql.cj.x.protobuf.MysqlxCrud.Collection) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { if (!getSchema() .equals(other.getSchema())) return false; } if (!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 (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasSchema()) { hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxCrud.Collection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * collection
     * 
* * Protobuf type {@code Mysqlx.Crud.Collection} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Collection) com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Collection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Collection_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.Collection.class, com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder.class); } // Construct using com.mysql.cj.x.protobuf.MysqlxCrud.Collection.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); schema_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Collection_descriptor; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Collection getDefaultInstanceForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.Collection.getDefaultInstance(); } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Collection build() { com.mysql.cj.x.protobuf.MysqlxCrud.Collection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Collection buildPartial() { com.mysql.cj.x.protobuf.MysqlxCrud.Collection result = new com.mysql.cj.x.protobuf.MysqlxCrud.Collection(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.schema_ = schema_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mysql.cj.x.protobuf.MysqlxCrud.Collection) { return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.Collection)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.Collection other) { if (other == com.mysql.cj.x.protobuf.MysqlxCrud.Collection.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasSchema()) { bitField0_ |= 0x00000002; schema_ = other.schema_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasName()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mysql.cj.x.protobuf.MysqlxCrud.Collection parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mysql.cj.x.protobuf.MysqlxCrud.Collection) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * required string name = 1; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** * required string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required string name = 1; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private java.lang.Object schema_ = ""; /** * optional string schema = 2; * @return Whether the schema field is set. */ public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string schema = 2; * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { schema_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string schema = 2; * @return The bytes for schema. */ public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schema_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string schema = 2; * @param value The schema to set. * @return This builder for chaining. */ public Builder setSchema( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; schema_ = value; onChanged(); return this; } /** * optional string schema = 2; * @return This builder for chaining. */ public Builder clearSchema() { bitField0_ = (bitField0_ & ~0x00000002); schema_ = getDefaultInstance().getSchema(); onChanged(); return this; } /** * optional string schema = 2; * @param value The bytes for schema to set. * @return This builder for chaining. */ public Builder setSchemaBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; schema_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Mysqlx.Crud.Collection) } // @@protoc_insertion_point(class_scope:Mysqlx.Crud.Collection) private static final com.mysql.cj.x.protobuf.MysqlxCrud.Collection DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.Collection(); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Collection getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Collection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Collection(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.Collection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LimitOrBuilder extends // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Limit) com.google.protobuf.MessageOrBuilder { /** * required uint64 row_count = 1; * @return Whether the rowCount field is set. */ boolean hasRowCount(); /** * required uint64 row_count = 1; * @return The rowCount. */ long getRowCount(); /** * optional uint64 offset = 2; * @return Whether the offset field is set. */ boolean hasOffset(); /** * optional uint64 offset = 2; * @return The offset. */ long getOffset(); } /** *
   * limit
   * :param row_count: maximum rows to filter
   * :param offset: maximum rows to skip before applying the row_count
   * 
* * Protobuf type {@code Mysqlx.Crud.Limit} */ public static final class Limit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Mysqlx.Crud.Limit) LimitOrBuilder { private static final long serialVersionUID = 0L; // Use Limit.newBuilder() to construct. private Limit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Limit() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Limit(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Limit( 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 8: { bitField0_ |= 0x00000001; rowCount_ = input.readUInt64(); break; } case 16: { bitField0_ |= 0x00000002; offset_ = input.readUInt64(); 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 { 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_Limit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Limit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.Limit.class, com.mysql.cj.x.protobuf.MysqlxCrud.Limit.Builder.class); } private int bitField0_; public static final int ROW_COUNT_FIELD_NUMBER = 1; private long rowCount_; /** * required uint64 row_count = 1; * @return Whether the rowCount field is set. */ public boolean hasRowCount() { return ((bitField0_ & 0x00000001) != 0); } /** * required uint64 row_count = 1; * @return The rowCount. */ public long getRowCount() { return rowCount_; } public static final int OFFSET_FIELD_NUMBER = 2; private long offset_; /** * optional uint64 offset = 2; * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) != 0); } /** * optional uint64 offset = 2; * @return The offset. */ public long getOffset() { return offset_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasRowCount()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt64(1, rowCount_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt64(2, offset_); } 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 .computeUInt64Size(1, rowCount_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, offset_); } 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.Limit)) { return super.equals(obj); } com.mysql.cj.x.protobuf.MysqlxCrud.Limit other = (com.mysql.cj.x.protobuf.MysqlxCrud.Limit) obj; if (hasRowCount() != other.hasRowCount()) return false; if (hasRowCount()) { if (getRowCount() != other.getRowCount()) return false; } if (hasOffset() != other.hasOffset()) return false; if (hasOffset()) { if (getOffset() != other.getOffset()) return false; } if (!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 (hasRowCount()) { hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRowCount()); } if (hasOffset()) { hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOffset()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxCrud.Limit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * limit
     * :param row_count: maximum rows to filter
     * :param offset: maximum rows to skip before applying the row_count
     * 
* * Protobuf type {@code Mysqlx.Crud.Limit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Limit) com.mysql.cj.x.protobuf.MysqlxCrud.LimitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Limit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Limit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.Limit.class, com.mysql.cj.x.protobuf.MysqlxCrud.Limit.Builder.class); } // Construct using com.mysql.cj.x.protobuf.MysqlxCrud.Limit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); rowCount_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); offset_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Limit_descriptor; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Limit getDefaultInstanceForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.Limit.getDefaultInstance(); } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Limit build() { com.mysql.cj.x.protobuf.MysqlxCrud.Limit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Limit buildPartial() { com.mysql.cj.x.protobuf.MysqlxCrud.Limit result = new com.mysql.cj.x.protobuf.MysqlxCrud.Limit(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.rowCount_ = rowCount_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.offset_ = offset_; to_bitField0_ |= 0x00000002; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mysql.cj.x.protobuf.MysqlxCrud.Limit) { return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.Limit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.Limit other) { if (other == com.mysql.cj.x.protobuf.MysqlxCrud.Limit.getDefaultInstance()) return this; if (other.hasRowCount()) { setRowCount(other.getRowCount()); } if (other.hasOffset()) { setOffset(other.getOffset()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasRowCount()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mysql.cj.x.protobuf.MysqlxCrud.Limit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mysql.cj.x.protobuf.MysqlxCrud.Limit) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long rowCount_ ; /** * required uint64 row_count = 1; * @return Whether the rowCount field is set. */ public boolean hasRowCount() { return ((bitField0_ & 0x00000001) != 0); } /** * required uint64 row_count = 1; * @return The rowCount. */ public long getRowCount() { return rowCount_; } /** * required uint64 row_count = 1; * @param value The rowCount to set. * @return This builder for chaining. */ public Builder setRowCount(long value) { bitField0_ |= 0x00000001; rowCount_ = value; onChanged(); return this; } /** * required uint64 row_count = 1; * @return This builder for chaining. */ public Builder clearRowCount() { bitField0_ = (bitField0_ & ~0x00000001); rowCount_ = 0L; onChanged(); return this; } private long offset_ ; /** * optional uint64 offset = 2; * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) != 0); } /** * optional uint64 offset = 2; * @return The offset. */ public long getOffset() { return offset_; } /** * optional uint64 offset = 2; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { bitField0_ |= 0x00000002; offset_ = value; onChanged(); return this; } /** * optional uint64 offset = 2; * @return This builder for chaining. */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000002); offset_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Mysqlx.Crud.Limit) } // @@protoc_insertion_point(class_scope:Mysqlx.Crud.Limit) private static final com.mysql.cj.x.protobuf.MysqlxCrud.Limit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.Limit(); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Limit getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Limit parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Limit(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.Limit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LimitExprOrBuilder extends // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.LimitExpr) com.google.protobuf.MessageOrBuilder { /** * required .Mysqlx.Expr.Expr row_count = 1; * @return Whether the rowCount field is set. */ boolean hasRowCount(); /** * required .Mysqlx.Expr.Expr row_count = 1; * @return The rowCount. */ com.mysql.cj.x.protobuf.MysqlxExpr.Expr getRowCount(); /** * required .Mysqlx.Expr.Expr row_count = 1; */ com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getRowCountOrBuilder(); /** * optional .Mysqlx.Expr.Expr offset = 2; * @return Whether the offset field is set. */ boolean hasOffset(); /** * optional .Mysqlx.Expr.Expr offset = 2; * @return The offset. */ com.mysql.cj.x.protobuf.MysqlxExpr.Expr getOffset(); /** * optional .Mysqlx.Expr.Expr offset = 2; */ com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getOffsetOrBuilder(); } /** *
   * limit expression
   * LimitExpr in comparison to Limit, is able to specify that row_count and
   * offset are placeholders.
   * This message support expressions of following types Expr/literal/UINT,
   * Expr/PLACEHOLDER.
   * :param row_count: maximum rows to filter
   * :param offset: maximum rows to skip before applying the row_count
   * 
* * Protobuf type {@code Mysqlx.Crud.LimitExpr} */ public static final class LimitExpr extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Mysqlx.Crud.LimitExpr) LimitExprOrBuilder { private static final long serialVersionUID = 0L; // Use LimitExpr.newBuilder() to construct. private LimitExpr(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LimitExpr() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LimitExpr(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LimitExpr( 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.MysqlxExpr.Expr.Builder subBuilder = null; if (((bitField0_ & 0x00000001) != 0)) { subBuilder = rowCount_.toBuilder(); } rowCount_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rowCount_); rowCount_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder subBuilder = null; if (((bitField0_ & 0x00000002) != 0)) { subBuilder = offset_.toBuilder(); } offset_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(offset_); offset_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; 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 { 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_LimitExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_LimitExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.class, com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.Builder.class); } private int bitField0_; public static final int ROW_COUNT_FIELD_NUMBER = 1; private com.mysql.cj.x.protobuf.MysqlxExpr.Expr rowCount_; /** * required .Mysqlx.Expr.Expr row_count = 1; * @return Whether the rowCount field is set. */ public boolean hasRowCount() { return ((bitField0_ & 0x00000001) != 0); } /** * required .Mysqlx.Expr.Expr row_count = 1; * @return The rowCount. */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getRowCount() { return rowCount_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : rowCount_; } /** * required .Mysqlx.Expr.Expr row_count = 1; */ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getRowCountOrBuilder() { return rowCount_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : rowCount_; } public static final int OFFSET_FIELD_NUMBER = 2; private com.mysql.cj.x.protobuf.MysqlxExpr.Expr offset_; /** * optional .Mysqlx.Expr.Expr offset = 2; * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .Mysqlx.Expr.Expr offset = 2; * @return The offset. */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getOffset() { return offset_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : offset_; } /** * optional .Mysqlx.Expr.Expr offset = 2; */ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getOffsetOrBuilder() { return offset_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : offset_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasRowCount()) { memoizedIsInitialized = 0; return false; } if (!getRowCount().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasOffset()) { if (!getOffset().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRowCount()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getOffset()); } 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, getRowCount()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOffset()); } 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.LimitExpr)) { return super.equals(obj); } com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr other = (com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr) obj; if (hasRowCount() != other.hasRowCount()) return false; if (hasRowCount()) { if (!getRowCount() .equals(other.getRowCount())) return false; } if (hasOffset() != other.hasOffset()) return false; if (hasOffset()) { if (!getOffset() .equals(other.getOffset())) return false; } if (!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 (hasRowCount()) { hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; hash = (53 * hash) + getRowCount().hashCode(); } if (hasOffset()) { hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * limit expression
     * LimitExpr in comparison to Limit, is able to specify that row_count and
     * offset are placeholders.
     * This message support expressions of following types Expr/literal/UINT,
     * Expr/PLACEHOLDER.
     * :param row_count: maximum rows to filter
     * :param offset: maximum rows to skip before applying the row_count
     * 
* * Protobuf type {@code Mysqlx.Crud.LimitExpr} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.LimitExpr) com.mysql.cj.x.protobuf.MysqlxCrud.LimitExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_LimitExpr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_LimitExpr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.class, com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.Builder.class); } // Construct using com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRowCountFieldBuilder(); getOffsetFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (rowCountBuilder_ == null) { rowCount_ = null; } else { rowCountBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (offsetBuilder_ == null) { offset_ = null; } else { offsetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_LimitExpr_descriptor; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr getDefaultInstanceForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.getDefaultInstance(); } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr build() { com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr buildPartial() { com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr result = new com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (rowCountBuilder_ == null) { result.rowCount_ = rowCount_; } else { result.rowCount_ = rowCountBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { if (offsetBuilder_ == null) { result.offset_ = offset_; } else { result.offset_ = offsetBuilder_.build(); } to_bitField0_ |= 0x00000002; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr) { return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr other) { if (other == com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.getDefaultInstance()) return this; if (other.hasRowCount()) { mergeRowCount(other.getRowCount()); } if (other.hasOffset()) { mergeOffset(other.getOffset()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasRowCount()) { return false; } if (!getRowCount().isInitialized()) { return false; } if (hasOffset()) { if (!getOffset().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.mysql.cj.x.protobuf.MysqlxExpr.Expr rowCount_; private com.google.protobuf.SingleFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder> rowCountBuilder_; /** * required .Mysqlx.Expr.Expr row_count = 1; * @return Whether the rowCount field is set. */ public boolean hasRowCount() { return ((bitField0_ & 0x00000001) != 0); } /** * required .Mysqlx.Expr.Expr row_count = 1; * @return The rowCount. */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getRowCount() { if (rowCountBuilder_ == null) { return rowCount_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : rowCount_; } else { return rowCountBuilder_.getMessage(); } } /** * required .Mysqlx.Expr.Expr row_count = 1; */ public Builder setRowCount(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) { if (rowCountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rowCount_ = value; onChanged(); } else { rowCountBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .Mysqlx.Expr.Expr row_count = 1; */ public Builder setRowCount( com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) { if (rowCountBuilder_ == null) { rowCount_ = builderForValue.build(); onChanged(); } else { rowCountBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .Mysqlx.Expr.Expr row_count = 1; */ public Builder mergeRowCount(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) { if (rowCountBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && rowCount_ != null && rowCount_ != com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance()) { rowCount_ = com.mysql.cj.x.protobuf.MysqlxExpr.Expr.newBuilder(rowCount_).mergeFrom(value).buildPartial(); } else { rowCount_ = value; } onChanged(); } else { rowCountBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .Mysqlx.Expr.Expr row_count = 1; */ public Builder clearRowCount() { if (rowCountBuilder_ == null) { rowCount_ = null; onChanged(); } else { rowCountBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Mysqlx.Expr.Expr row_count = 1; */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getRowCountBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRowCountFieldBuilder().getBuilder(); } /** * required .Mysqlx.Expr.Expr row_count = 1; */ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getRowCountOrBuilder() { if (rowCountBuilder_ != null) { return rowCountBuilder_.getMessageOrBuilder(); } else { return rowCount_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : rowCount_; } } /** * required .Mysqlx.Expr.Expr row_count = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder> getRowCountFieldBuilder() { if (rowCountBuilder_ == null) { rowCountBuilder_ = 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>( getRowCount(), getParentForChildren(), isClean()); rowCount_ = null; } return rowCountBuilder_; } private com.mysql.cj.x.protobuf.MysqlxExpr.Expr offset_; 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> offsetBuilder_; /** * optional .Mysqlx.Expr.Expr offset = 2; * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .Mysqlx.Expr.Expr offset = 2; * @return The offset. */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getOffset() { if (offsetBuilder_ == null) { return offset_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : offset_; } else { return offsetBuilder_.getMessage(); } } /** * optional .Mysqlx.Expr.Expr offset = 2; */ public Builder setOffset(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) { if (offsetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } offset_ = value; onChanged(); } else { offsetBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .Mysqlx.Expr.Expr offset = 2; */ public Builder setOffset( com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) { if (offsetBuilder_ == null) { offset_ = builderForValue.build(); onChanged(); } else { offsetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .Mysqlx.Expr.Expr offset = 2; */ public Builder mergeOffset(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) { if (offsetBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && offset_ != null && offset_ != com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance()) { offset_ = com.mysql.cj.x.protobuf.MysqlxExpr.Expr.newBuilder(offset_).mergeFrom(value).buildPartial(); } else { offset_ = value; } onChanged(); } else { offsetBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .Mysqlx.Expr.Expr offset = 2; */ public Builder clearOffset() { if (offsetBuilder_ == null) { offset_ = null; onChanged(); } else { offsetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .Mysqlx.Expr.Expr offset = 2; */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getOffsetBuilder() { bitField0_ |= 0x00000002; onChanged(); return getOffsetFieldBuilder().getBuilder(); } /** * optional .Mysqlx.Expr.Expr offset = 2; */ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getOffsetOrBuilder() { if (offsetBuilder_ != null) { return offsetBuilder_.getMessageOrBuilder(); } else { return offset_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : offset_; } } /** * optional .Mysqlx.Expr.Expr offset = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder> getOffsetFieldBuilder() { if (offsetBuilder_ == null) { offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>( getOffset(), getParentForChildren(), isClean()); offset_ = null; } return offsetBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Mysqlx.Crud.LimitExpr) } // @@protoc_insertion_point(class_scope:Mysqlx.Crud.LimitExpr) private static final com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr(); } public static com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LimitExpr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LimitExpr(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.LimitExpr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OrderOrBuilder extends // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Order) com.google.protobuf.MessageOrBuilder { /** * required .Mysqlx.Expr.Expr expr = 1; * @return Whether the expr field is set. */ boolean hasExpr(); /** * required .Mysqlx.Expr.Expr expr = 1; * @return The expr. */ com.mysql.cj.x.protobuf.MysqlxExpr.Expr getExpr(); /** * required .Mysqlx.Expr.Expr expr = 1; */ com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getExprOrBuilder(); /** * optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC]; * @return Whether the direction field is set. */ boolean hasDirection(); /** * optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC]; * @return The direction. */ com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction getDirection(); } /** *
   * sort order
   * 
* * Protobuf type {@code Mysqlx.Crud.Order} */ public static final class Order extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Mysqlx.Crud.Order) OrderOrBuilder { private static final long serialVersionUID = 0L; // Use Order.newBuilder() to construct. private Order(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Order() { direction_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Order(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Order( 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.MysqlxExpr.Expr.Builder subBuilder = null; if (((bitField0_ & 0x00000001) != 0)) { subBuilder = expr_.toBuilder(); } expr_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expr_); expr_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction value = com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; direction_ = rawValue; } 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 { 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_Order_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Order_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.Order.class, com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder.class); } /** * Protobuf enum {@code Mysqlx.Crud.Order.Direction} */ public enum Direction implements com.google.protobuf.ProtocolMessageEnum { /** * ASC = 1; */ ASC(1), /** * DESC = 2; */ DESC(2), ; /** * ASC = 1; */ public static final int ASC_VALUE = 1; /** * DESC = 2; */ public static final int DESC_VALUE = 2; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Direction valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Direction forNumber(int value) { switch (value) { case 1: return ASC; case 2: return DESC; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Direction> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Direction findValueByNumber(int number) { return Direction.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.Order.getDescriptor().getEnumTypes().get(0); } private static final Direction[] VALUES = values(); public static Direction valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Direction(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Mysqlx.Crud.Order.Direction) } private int bitField0_; public static final int EXPR_FIELD_NUMBER = 1; private com.mysql.cj.x.protobuf.MysqlxExpr.Expr expr_; /** * required .Mysqlx.Expr.Expr expr = 1; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000001) != 0); } /** * required .Mysqlx.Expr.Expr expr = 1; * @return The expr. */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getExpr() { return expr_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : expr_; } /** * required .Mysqlx.Expr.Expr expr = 1; */ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getExprOrBuilder() { return expr_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : expr_; } public static final int DIRECTION_FIELD_NUMBER = 2; private int direction_; /** * optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC]; * @return Whether the direction field is set. */ public boolean hasDirection() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC]; * @return The direction. */ public com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction getDirection() { @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction result = com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction.valueOf(direction_); return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction.ASC : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasExpr()) { memoizedIsInitialized = 0; return false; } if (!getExpr().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getExpr()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, direction_); } 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, getExpr()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, direction_); } 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.Order)) { return super.equals(obj); } com.mysql.cj.x.protobuf.MysqlxCrud.Order other = (com.mysql.cj.x.protobuf.MysqlxCrud.Order) obj; if (hasExpr() != other.hasExpr()) return false; if (hasExpr()) { if (!getExpr() .equals(other.getExpr())) return false; } if (hasDirection() != other.hasDirection()) return false; if (hasDirection()) { if (direction_ != other.direction_) return false; } if (!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 (hasExpr()) { hash = (37 * hash) + EXPR_FIELD_NUMBER; hash = (53 * hash) + getExpr().hashCode(); } if (hasDirection()) { hash = (37 * hash) + DIRECTION_FIELD_NUMBER; hash = (53 * hash) + direction_; } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Order parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxCrud.Order prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * sort order
     * 
* * Protobuf type {@code Mysqlx.Crud.Order} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Order) com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Order_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Order_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.Order.class, com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder.class); } // Construct using com.mysql.cj.x.protobuf.MysqlxCrud.Order.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getExprFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (exprBuilder_ == null) { expr_ = null; } else { exprBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); direction_ = 1; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Order_descriptor; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Order getDefaultInstanceForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.Order.getDefaultInstance(); } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Order build() { com.mysql.cj.x.protobuf.MysqlxCrud.Order result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Order buildPartial() { com.mysql.cj.x.protobuf.MysqlxCrud.Order result = new com.mysql.cj.x.protobuf.MysqlxCrud.Order(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (exprBuilder_ == null) { result.expr_ = expr_; } else { result.expr_ = exprBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.direction_ = direction_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mysql.cj.x.protobuf.MysqlxCrud.Order) { return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.Order)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.Order other) { if (other == com.mysql.cj.x.protobuf.MysqlxCrud.Order.getDefaultInstance()) return this; if (other.hasExpr()) { mergeExpr(other.getExpr()); } if (other.hasDirection()) { setDirection(other.getDirection()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasExpr()) { return false; } if (!getExpr().isInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mysql.cj.x.protobuf.MysqlxCrud.Order parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mysql.cj.x.protobuf.MysqlxCrud.Order) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.mysql.cj.x.protobuf.MysqlxExpr.Expr expr_; private com.google.protobuf.SingleFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder> exprBuilder_; /** * required .Mysqlx.Expr.Expr expr = 1; * @return Whether the expr field is set. */ public boolean hasExpr() { return ((bitField0_ & 0x00000001) != 0); } /** * required .Mysqlx.Expr.Expr expr = 1; * @return The expr. */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getExpr() { if (exprBuilder_ == null) { return expr_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : expr_; } else { return exprBuilder_.getMessage(); } } /** * required .Mysqlx.Expr.Expr expr = 1; */ public Builder setExpr(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) { if (exprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { exprBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .Mysqlx.Expr.Expr expr = 1; */ public Builder setExpr( com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder builderForValue) { if (exprBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { exprBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .Mysqlx.Expr.Expr expr = 1; */ public Builder mergeExpr(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) { if (exprBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && expr_ != null && expr_ != com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance()) { expr_ = com.mysql.cj.x.protobuf.MysqlxExpr.Expr.newBuilder(expr_).mergeFrom(value).buildPartial(); } else { expr_ = value; } onChanged(); } else { exprBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .Mysqlx.Expr.Expr expr = 1; */ public Builder clearExpr() { if (exprBuilder_ == null) { expr_ = null; onChanged(); } else { exprBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Mysqlx.Expr.Expr expr = 1; */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getExprBuilder() { bitField0_ |= 0x00000001; onChanged(); return getExprFieldBuilder().getBuilder(); } /** * required .Mysqlx.Expr.Expr expr = 1; */ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getExprOrBuilder() { if (exprBuilder_ != null) { return exprBuilder_.getMessageOrBuilder(); } else { return expr_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : expr_; } } /** * required .Mysqlx.Expr.Expr expr = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder> getExprFieldBuilder() { if (exprBuilder_ == null) { exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxExpr.Expr, com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder>( getExpr(), getParentForChildren(), isClean()); expr_ = null; } return exprBuilder_; } private int direction_ = 1; /** * optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC]; * @return Whether the direction field is set. */ public boolean hasDirection() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC]; * @return The direction. */ public com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction getDirection() { @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction result = com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction.valueOf(direction_); return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction.ASC : result; } /** * optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC]; * @param value The direction to set. * @return This builder for chaining. */ public Builder setDirection(com.mysql.cj.x.protobuf.MysqlxCrud.Order.Direction value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; direction_ = value.getNumber(); onChanged(); return this; } /** * optional .Mysqlx.Crud.Order.Direction direction = 2 [default = ASC]; * @return This builder for chaining. */ public Builder clearDirection() { bitField0_ = (bitField0_ & ~0x00000002); direction_ = 1; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Mysqlx.Crud.Order) } // @@protoc_insertion_point(class_scope:Mysqlx.Crud.Order) private static final com.mysql.cj.x.protobuf.MysqlxCrud.Order DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.Order(); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Order getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Order parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Order(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.Order getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateOperationOrBuilder extends // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.UpdateOperation) com.google.protobuf.MessageOrBuilder { /** * required .Mysqlx.Expr.ColumnIdentifier source = 1; * @return Whether the source field is set. */ boolean hasSource(); /** * required .Mysqlx.Expr.ColumnIdentifier source = 1; * @return The source. */ com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier getSource(); /** * required .Mysqlx.Expr.ColumnIdentifier source = 1; */ com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifierOrBuilder getSourceOrBuilder(); /** * required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2; * @return Whether the operation field is set. */ boolean hasOperation(); /** * required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2; * @return The operation. */ com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.UpdateType getOperation(); /** * optional .Mysqlx.Expr.Expr value = 3; * @return Whether the value field is set. */ boolean hasValue(); /** * optional .Mysqlx.Expr.Expr value = 3; * @return The value. */ com.mysql.cj.x.protobuf.MysqlxExpr.Expr getValue(); /** * optional .Mysqlx.Expr.Expr value = 3; */ com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getValueOrBuilder(); } /** *
   * update operations
   * :param 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
   *      in both cases, schema and table must be not set
   * :param operation: the type of operation to be performed
   * :param value: an expression to be computed as the new value for the operation
   * 
* * Protobuf type {@code Mysqlx.Crud.UpdateOperation} */ public static final class UpdateOperation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Mysqlx.Crud.UpdateOperation) UpdateOperationOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateOperation.newBuilder() to construct. private UpdateOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateOperation() { operation_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateOperation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateOperation( 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.MysqlxExpr.ColumnIdentifier.Builder subBuilder = null; if (((bitField0_ & 0x00000001) != 0)) { subBuilder = source_.toBuilder(); } source_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(source_); source_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.UpdateType value = com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.UpdateType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; operation_ = rawValue; } break; } case 26: { com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder subBuilder = null; if (((bitField0_ & 0x00000004) != 0)) { subBuilder = value_.toBuilder(); } value_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxExpr.Expr.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(value_); value_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; 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 { 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_UpdateOperation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_UpdateOperation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.class, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.Builder.class); } /** * Protobuf enum {@code Mysqlx.Crud.UpdateOperation.UpdateType} */ public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { /** *
       * only allowed for TABLE
       * 
* * SET = 1; */ SET(1), /** *
       * no value (removes the identified path from a object or array)
       * 
* * ITEM_REMOVE = 2; */ ITEM_REMOVE(2), /** *
       * sets the new value on the identified path
       * 
* * ITEM_SET = 3; */ ITEM_SET(3), /** *
       * replaces a value if the path exists
       * 
* * ITEM_REPLACE = 4; */ ITEM_REPLACE(4), /** *
       * source and value must be documents
       * 
* * ITEM_MERGE = 5; */ ITEM_MERGE(5), /** *
       * insert the value in the array at the index identified in the source path
       * 
* * ARRAY_INSERT = 6; */ ARRAY_INSERT(6), /** *
       * append the value on the array at the identified path
       * 
* * ARRAY_APPEND = 7; */ ARRAY_APPEND(7), /** *
       * merge JSON object value with the provided patch expression
       * 
* * MERGE_PATCH = 8; */ MERGE_PATCH(8), ; /** *
       * only allowed for TABLE
       * 
* * SET = 1; */ public static final int SET_VALUE = 1; /** *
       * no value (removes the identified path from a object or array)
       * 
* * ITEM_REMOVE = 2; */ public static final int ITEM_REMOVE_VALUE = 2; /** *
       * sets the new value on the identified path
       * 
* * ITEM_SET = 3; */ public static final int ITEM_SET_VALUE = 3; /** *
       * replaces a value if the path exists
       * 
* * ITEM_REPLACE = 4; */ public static final int ITEM_REPLACE_VALUE = 4; /** *
       * source and value must be documents
       * 
* * ITEM_MERGE = 5; */ public static final int ITEM_MERGE_VALUE = 5; /** *
       * insert the value in the array at the index identified in the source path
       * 
* * ARRAY_INSERT = 6; */ public static final int ARRAY_INSERT_VALUE = 6; /** *
       * append the value on the array at the identified path
       * 
* * ARRAY_APPEND = 7; */ public static final int ARRAY_APPEND_VALUE = 7; /** *
       * merge JSON object value with the provided patch expression
       * 
* * MERGE_PATCH = 8; */ public static final int MERGE_PATCH_VALUE = 8; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static UpdateType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static UpdateType forNumber(int value) { switch (value) { case 1: return SET; case 2: return ITEM_REMOVE; case 3: return ITEM_SET; case 4: return ITEM_REPLACE; case 5: return ITEM_MERGE; case 6: return ARRAY_INSERT; case 7: return ARRAY_APPEND; case 8: return MERGE_PATCH; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< UpdateType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public UpdateType findValueByNumber(int number) { return UpdateType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.getDescriptor().getEnumTypes().get(0); } private static final UpdateType[] VALUES = values(); public static UpdateType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private UpdateType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Mysqlx.Crud.UpdateOperation.UpdateType) } private int bitField0_; public static final int SOURCE_FIELD_NUMBER = 1; private com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier source_; /** * required .Mysqlx.Expr.ColumnIdentifier source = 1; * @return Whether the source field is set. */ public boolean hasSource() { return ((bitField0_ & 0x00000001) != 0); } /** * required .Mysqlx.Expr.ColumnIdentifier source = 1; * @return The source. */ public com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier getSource() { return source_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance() : source_; } /** * required .Mysqlx.Expr.ColumnIdentifier source = 1; */ public com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifierOrBuilder getSourceOrBuilder() { return source_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance() : source_; } public static final int OPERATION_FIELD_NUMBER = 2; private int operation_; /** * required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2; * @return Whether the operation field is set. */ public boolean hasOperation() { return ((bitField0_ & 0x00000002) != 0); } /** * 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; } public static final int VALUE_FIELD_NUMBER = 3; private com.mysql.cj.x.protobuf.MysqlxExpr.Expr value_; /** * optional .Mysqlx.Expr.Expr value = 3; * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .Mysqlx.Expr.Expr value = 3; * @return The value. */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getValue() { return value_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : value_; } /** * optional .Mysqlx.Expr.Expr value = 3; */ public com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getValueOrBuilder() { return value_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : value_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasSource()) { memoizedIsInitialized = 0; return false; } if (!hasOperation()) { memoizedIsInitialized = 0; return false; } if (!getSource().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasValue()) { if (!getValue().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSource()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, operation_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getValue()); } 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, getSource()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, operation_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getValue()); } size += 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.UpdateOperation)) { return super.equals(obj); } com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation other = (com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation) obj; if (hasSource() != other.hasSource()) return false; if (hasSource()) { if (!getSource() .equals(other.getSource())) return false; } if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { if (operation_ != other.operation_) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (!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 (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } if (hasOperation()) { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + operation_; } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * update operations
     * :param 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
     *      in both cases, schema and table must be not set
     * :param operation: the type of operation to be performed
     * :param value: an expression to be computed as the new value for the operation
     * 
* * Protobuf type {@code Mysqlx.Crud.UpdateOperation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.UpdateOperation) com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_UpdateOperation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_UpdateOperation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.class, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.Builder.class); } // Construct using com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSourceFieldBuilder(); getValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (sourceBuilder_ == null) { source_ = null; } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); operation_ = 1; bitField0_ = (bitField0_ & ~0x00000002); if (valueBuilder_ == null) { value_ = null; } else { valueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_UpdateOperation_descriptor; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation getDefaultInstanceForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.getDefaultInstance(); } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation build() { com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation buildPartial() { com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation result = new com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (sourceBuilder_ == null) { result.source_ = source_; } else { result.source_ = sourceBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.operation_ = operation_; if (((from_bitField0_ & 0x00000004) != 0)) { if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation) { return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation other) { if (other == com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.getDefaultInstance()) return this; if (other.hasSource()) { mergeSource(other.getSource()); } if (other.hasOperation()) { setOperation(other.getOperation()); } if (other.hasValue()) { mergeValue(other.getValue()); } this.mergeUnknownFields(other.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_; /** * required .Mysqlx.Expr.ColumnIdentifier source = 1; * @return Whether the source field is set. */ public boolean hasSource() { return ((bitField0_ & 0x00000001) != 0); } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * required .Mysqlx.Expr.ColumnIdentifier source = 1; */ public Builder clearSource() { if (sourceBuilder_ == null) { source_ = null; onChanged(); } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Mysqlx.Expr.ColumnIdentifier source = 1; */ public com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier.Builder getSourceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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; /** * required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2; * @return Whether the operation field is set. */ public boolean hasOperation() { return ((bitField0_ & 0x00000002) != 0); } /** * 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; } /** * 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; } /** * 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_; /** * optional .Mysqlx.Expr.Expr value = 3; * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000004) != 0); } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * optional .Mysqlx.Expr.Expr value = 3; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { valueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .Mysqlx.Expr.Expr value = 3; */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getValueBuilder() { bitField0_ |= 0x00000004; onChanged(); return getValueFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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 { /** * required .Mysqlx.Crud.Collection collection = 2; * @return Whether the collection field is set. */ boolean hasCollection(); /** * required .Mysqlx.Crud.Collection collection = 2; * @return The collection. */ com.mysql.cj.x.protobuf.MysqlxCrud.Collection getCollection(); /** * required .Mysqlx.Crud.Collection collection = 2; */ com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder(); /** * optional .Mysqlx.Crud.DataModel data_model = 3; * @return Whether the dataModel field is set. */ boolean hasDataModel(); /** * optional .Mysqlx.Crud.DataModel data_model = 3; * @return The dataModel. */ com.mysql.cj.x.protobuf.MysqlxCrud.DataModel getDataModel(); /** * repeated .Mysqlx.Crud.Projection projection = 4; */ java.util.List getProjectionList(); /** * repeated .Mysqlx.Crud.Projection projection = 4; */ com.mysql.cj.x.protobuf.MysqlxCrud.Projection getProjection(int index); /** * repeated .Mysqlx.Crud.Projection projection = 4; */ int getProjectionCount(); /** * repeated .Mysqlx.Crud.Projection projection = 4; */ java.util.List getProjectionOrBuilderList(); /** * repeated .Mysqlx.Crud.Projection projection = 4; */ com.mysql.cj.x.protobuf.MysqlxCrud.ProjectionOrBuilder getProjectionOrBuilder( int index); /** * optional .Mysqlx.Expr.Expr criteria = 5; * @return Whether the criteria field is set. */ boolean hasCriteria(); /** * optional .Mysqlx.Expr.Expr criteria = 5; * @return The criteria. */ com.mysql.cj.x.protobuf.MysqlxExpr.Expr getCriteria(); /** * optional .Mysqlx.Expr.Expr criteria = 5; */ com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getCriteriaOrBuilder(); /** * repeated .Mysqlx.Datatypes.Scalar args = 11; */ java.util.List getArgsList(); /** * repeated .Mysqlx.Datatypes.Scalar args = 11; */ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index); /** * repeated .Mysqlx.Datatypes.Scalar args = 11; */ int getArgsCount(); /** * repeated .Mysqlx.Datatypes.Scalar args = 11; */ java.util.List getArgsOrBuilderList(); /** * repeated .Mysqlx.Datatypes.Scalar args = 11; */ com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder( int index); /** * repeated .Mysqlx.Crud.Order order = 7; */ java.util.List getOrderList(); /** * repeated .Mysqlx.Crud.Order order = 7; */ com.mysql.cj.x.protobuf.MysqlxCrud.Order getOrder(int index); /** * repeated .Mysqlx.Crud.Order order = 7; */ int getOrderCount(); /** * repeated .Mysqlx.Crud.Order order = 7; */ java.util.List getOrderOrBuilderList(); /** * repeated .Mysqlx.Crud.Order order = 7; */ com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder getOrderOrBuilder( int index); /** * repeated .Mysqlx.Expr.Expr grouping = 8; */ java.util.List getGroupingList(); /** * repeated .Mysqlx.Expr.Expr grouping = 8; */ com.mysql.cj.x.protobuf.MysqlxExpr.Expr getGrouping(int index); /** * repeated .Mysqlx.Expr.Expr grouping = 8; */ int getGroupingCount(); /** * repeated .Mysqlx.Expr.Expr grouping = 8; */ java.util.List getGroupingOrBuilderList(); /** * repeated .Mysqlx.Expr.Expr grouping = 8; */ com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getGroupingOrBuilder( int index); /** * optional .Mysqlx.Expr.Expr grouping_criteria = 9; * @return Whether the groupingCriteria field is set. */ boolean hasGroupingCriteria(); /** * optional .Mysqlx.Expr.Expr grouping_criteria = 9; * @return The groupingCriteria. */ com.mysql.cj.x.protobuf.MysqlxExpr.Expr getGroupingCriteria(); /** * optional .Mysqlx.Expr.Expr grouping_criteria = 9; */ com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getGroupingCriteriaOrBuilder(); /** * optional .Mysqlx.Crud.Find.RowLock locking = 12; * @return Whether the locking field is set. */ boolean hasLocking(); /** * optional .Mysqlx.Crud.Find.RowLock locking = 12; * @return The locking. */ com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLock getLocking(); /** * optional .Mysqlx.Crud.Find.RowLockOptions locking_options = 13; * @return Whether the lockingOptions field is set. */ boolean hasLockingOptions(); /** * optional .Mysqlx.Crud.Find.RowLockOptions locking_options = 13; * @return The lockingOptions. */ com.mysql.cj.x.protobuf.MysqlxCrud.Find.RowLockOptions getLockingOptions(); /** * optional .Mysqlx.Crud.Limit limit = 6; * @return Whether the limit field is set. */ boolean hasLimit(); /** * optional .Mysqlx.Crud.Limit limit = 6; * @return The limit. */ com.mysql.cj.x.protobuf.MysqlxCrud.Limit getLimit(); /** * optional .Mysqlx.Crud.Limit limit = 6; */ com.mysql.cj.x.protobuf.MysqlxCrud.LimitOrBuilder getLimitOrBuilder(); /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 14; * @return Whether the limitExpr field is set. */ boolean hasLimitExpr(); /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 14; * @return The limitExpr. */ com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr getLimitExpr(); /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 14; */ com.mysql.cj.x.protobuf.MysqlxCrud.LimitExprOrBuilder getLimitExprOrBuilder(); } /** *
   * Find Documents/Rows in a Collection/Table
   * .. uml::
   *   client -> server: Find
   *   ... one or more Resultset ...
   * :param collection: collection to insert into
   * :param data_model: datamodel that the operations refer to
   * :param projection: list of column projections that shall be returned
   * :param args: values for parameters used in filter expression
   * :param criteria: filter criteria
   * :param limit: numbers of rows that shall be skipped and returned (user can set one of: limit, limit_expr)
   * :param order: sort-order in which the rows/document shall be returned in
   * :param grouping: column expression list for aggregation (GROUP BY)
   * :param grouping_criteria: filter criteria for aggregated groups
   * :param locking: perform row locking on matches
   * :param locking_options: additional options how to handle locked rows
   * :param limit_expr: numbers of rows that shall be skipped and returned (user can set one of: limit, limit_expr)
   * :Returns: :protobuf:msg:`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_ & 0x00000040) != 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_ |= 0x00000040; break; } case 58: { if (!((mutable_bitField0_ & 0x00000020) != 0)) { order_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } order_.add( input.readMessage(com.mysql.cj.x.protobuf.MysqlxCrud.Order.PARSER, extensionRegistry)); break; } case 66: { if (!((mutable_bitField0_ & 0x00000040) != 0)) { grouping_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } 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_ & 0x00000008) != 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_ |= 0x00000008; break; } case 90: { 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 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_ |= 0x00000010; 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_ |= 0x00000020; 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_ & 0x00000020) != 0)) { order_ = java.util.Collections.unmodifiableList(order_); } if (((mutable_bitField0_ & 0x00000040) != 0)) { grouping_ = java.util.Collections.unmodifiableList(grouping_); } 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_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_; /** * required .Mysqlx.Crud.Collection collection = 2; * @return Whether the collection field is set. */ public boolean hasCollection() { return ((bitField0_ & 0x00000001) != 0); } /** * 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_; } /** * 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_; /** * optional .Mysqlx.Crud.DataModel data_model = 3; * @return Whether the dataModel field is set. */ public boolean hasDataModel() { return ((bitField0_ & 0x00000002) != 0); } /** * 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_; /** * repeated .Mysqlx.Crud.Projection projection = 4; */ public java.util.List getProjectionList() { return projection_; } /** * repeated .Mysqlx.Crud.Projection projection = 4; */ public java.util.List getProjectionOrBuilderList() { return projection_; } /** * repeated .Mysqlx.Crud.Projection projection = 4; */ public int getProjectionCount() { return projection_.size(); } /** * repeated .Mysqlx.Crud.Projection projection = 4; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Projection getProjection(int index) { return projection_.get(index); } /** * 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 CRITERIA_FIELD_NUMBER = 5; private com.mysql.cj.x.protobuf.MysqlxExpr.Expr criteria_; /** * optional .Mysqlx.Expr.Expr criteria = 5; * @return Whether the criteria field is set. */ public boolean hasCriteria() { return ((bitField0_ & 0x00000004) != 0); } /** * 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_; } /** * 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 ARGS_FIELD_NUMBER = 11; private java.util.List args_; /** * repeated .Mysqlx.Datatypes.Scalar args = 11; */ public java.util.List getArgsList() { return args_; } /** * repeated .Mysqlx.Datatypes.Scalar args = 11; */ public java.util.List getArgsOrBuilderList() { return args_; } /** * repeated .Mysqlx.Datatypes.Scalar args = 11; */ public int getArgsCount() { return args_.size(); } /** * repeated .Mysqlx.Datatypes.Scalar args = 11; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index) { return args_.get(index); } /** * 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 ORDER_FIELD_NUMBER = 7; private java.util.List order_; /** * repeated .Mysqlx.Crud.Order order = 7; */ public java.util.List getOrderList() { return order_; } /** * repeated .Mysqlx.Crud.Order order = 7; */ public java.util.List getOrderOrBuilderList() { return order_; } /** * repeated .Mysqlx.Crud.Order order = 7; */ public int getOrderCount() { return order_.size(); } /** * repeated .Mysqlx.Crud.Order order = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Order getOrder(int index) { return order_.get(index); } /** * 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_; /** * repeated .Mysqlx.Expr.Expr grouping = 8; */ public java.util.List getGroupingList() { return grouping_; } /** * repeated .Mysqlx.Expr.Expr grouping = 8; */ public java.util.List getGroupingOrBuilderList() { return grouping_; } /** * repeated .Mysqlx.Expr.Expr grouping = 8; */ public int getGroupingCount() { return grouping_.size(); } /** * repeated .Mysqlx.Expr.Expr grouping = 8; */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getGrouping(int index) { return grouping_.get(index); } /** * 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_; /** * optional .Mysqlx.Expr.Expr grouping_criteria = 9; * @return Whether the groupingCriteria field is set. */ public boolean hasGroupingCriteria() { return ((bitField0_ & 0x00000008) != 0); } /** * 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_; } /** * 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_; /** * optional .Mysqlx.Crud.Find.RowLock locking = 12; * @return Whether the locking field is set. */ public boolean hasLocking() { return ((bitField0_ & 0x00000010) != 0); } /** * 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_; /** * optional .Mysqlx.Crud.Find.RowLockOptions locking_options = 13; * @return Whether the lockingOptions field is set. */ public boolean hasLockingOptions() { return ((bitField0_ & 0x00000020) != 0); } /** * 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_FIELD_NUMBER = 6; private com.mysql.cj.x.protobuf.MysqlxCrud.Limit limit_; /** * optional .Mysqlx.Crud.Limit limit = 6; * @return Whether the limit field is set. */ public boolean hasLimit() { return ((bitField0_ & 0x00000040) != 0); } /** * 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_; } /** * 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 LIMIT_EXPR_FIELD_NUMBER = 14; private com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr limitExpr_; /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 14; * @return Whether the limitExpr field is set. */ public boolean hasLimitExpr() { return ((bitField0_ & 0x00000080) != 0); } /** * 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_; } /** * 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; } } if (hasCriteria()) { if (!getCriteria().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getArgsCount(); i++) { if (!getArgs(i).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 (hasLimit()) { if (!getLimit().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_ & 0x00000040) != 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_ & 0x00000008) != 0)) { output.writeMessage(9, getGroupingCriteria()); } for (int i = 0; i < args_.size(); i++) { output.writeMessage(11, args_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(12, locking_); } if (((bitField0_ & 0x00000020) != 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_ & 0x00000040) != 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_ & 0x00000008) != 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_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(12, locking_); } if (((bitField0_ & 0x00000020) != 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 (hasCriteria() != other.hasCriteria()) return false; if (hasCriteria()) { if (!getCriteria() .equals(other.getCriteria())) return false; } if (!getArgsList() .equals(other.getArgsList())) 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 (hasLimit() != other.hasLimit()) return false; if (hasLimit()) { if (!getLimit() .equals(other.getLimit())) 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 (hasCriteria()) { hash = (37 * hash) + CRITERIA_FIELD_NUMBER; hash = (53 * hash) + getCriteria().hashCode(); } if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().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 (hasLimit()) { hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit().hashCode(); } 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
     * .. uml::
     *   client -> server: Find
     *   ... one or more Resultset ...
     * :param collection: collection to insert into
     * :param data_model: datamodel that the operations refer to
     * :param projection: list of column projections that shall be returned
     * :param args: values for parameters used in filter expression
     * :param criteria: filter criteria
     * :param limit: numbers of rows that shall be skipped and returned (user can set one of: limit, limit_expr)
     * :param order: sort-order in which the rows/document shall be returned in
     * :param grouping: column expression list for aggregation (GROUP BY)
     * :param grouping_criteria: filter criteria for aggregated groups
     * :param locking: perform row locking on matches
     * :param locking_options: additional options how to handle locked rows
     * :param limit_expr: numbers of rows that shall be skipped and returned (user can set one of: limit, limit_expr)
     * :Returns: :protobuf:msg:`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(); getCriteriaFieldBuilder(); getArgsFieldBuilder(); getOrderFieldBuilder(); getGroupingFieldBuilder(); getGroupingCriteriaFieldBuilder(); getLimitFieldBuilder(); 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 (criteriaBuilder_ == null) { criteria_ = null; } else { criteriaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { argsBuilder_.clear(); } if (orderBuilder_ == null) { order_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { orderBuilder_.clear(); } if (groupingBuilder_ == null) { grouping_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { groupingBuilder_.clear(); } if (groupingCriteriaBuilder_ == null) { groupingCriteria_ = null; } else { groupingCriteriaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); locking_ = 1; bitField0_ = (bitField0_ & ~0x00000100); lockingOptions_ = 1; bitField0_ = (bitField0_ & ~0x00000200); if (limitBuilder_ == null) { limit_ = null; } else { limitBuilder_.clear(); } 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 (((from_bitField0_ & 0x00000008) != 0)) { if (criteriaBuilder_ == null) { result.criteria_ = criteria_; } else { result.criteria_ = criteriaBuilder_.build(); } to_bitField0_ |= 0x00000004; } 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 (orderBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { order_ = java.util.Collections.unmodifiableList(order_); bitField0_ = (bitField0_ & ~0x00000020); } result.order_ = order_; } else { result.order_ = orderBuilder_.build(); } if (groupingBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { grouping_ = java.util.Collections.unmodifiableList(grouping_); bitField0_ = (bitField0_ & ~0x00000040); } result.grouping_ = grouping_; } else { result.grouping_ = groupingBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { if (groupingCriteriaBuilder_ == null) { result.groupingCriteria_ = groupingCriteria_; } else { result.groupingCriteria_ = groupingCriteriaBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000100) != 0)) { to_bitField0_ |= 0x00000010; } result.locking_ = locking_; if (((from_bitField0_ & 0x00000200) != 0)) { to_bitField0_ |= 0x00000020; } result.lockingOptions_ = lockingOptions_; if (((from_bitField0_ & 0x00000400) != 0)) { if (limitBuilder_ == null) { result.limit_ = limit_; } else { result.limit_ = limitBuilder_.build(); } to_bitField0_ |= 0x00000040; } 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 (other.hasCriteria()) { mergeCriteria(other.getCriteria()); } 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 (orderBuilder_ == null) { if (!other.order_.isEmpty()) { if (order_.isEmpty()) { order_ = other.order_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureOrderIsMutable(); order_.addAll(other.order_); } onChanged(); } } else { if (!other.order_.isEmpty()) { if (orderBuilder_.isEmpty()) { orderBuilder_.dispose(); orderBuilder_ = null; order_ = other.order_; bitField0_ = (bitField0_ & ~0x00000020); 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_ & ~0x00000040); } else { ensureGroupingIsMutable(); grouping_.addAll(other.grouping_); } onChanged(); } } else { if (!other.grouping_.isEmpty()) { if (groupingBuilder_.isEmpty()) { groupingBuilder_.dispose(); groupingBuilder_ = null; grouping_ = other.grouping_; bitField0_ = (bitField0_ & ~0x00000040); 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.hasLimit()) { mergeLimit(other.getLimit()); } 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; } } if (hasCriteria()) { if (!getCriteria().isInitialized()) { return false; } } for (int i = 0; i < getArgsCount(); i++) { if (!getArgs(i).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 (hasLimit()) { if (!getLimit().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_; /** * required .Mysqlx.Crud.Collection collection = 2; * @return Whether the collection field is set. */ public boolean hasCollection() { return ((bitField0_ & 0x00000001) != 0); } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * required .Mysqlx.Crud.Collection collection = 2; */ public Builder clearCollection() { if (collectionBuilder_ == null) { collection_ = null; onChanged(); } else { collectionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Mysqlx.Crud.Collection collection = 2; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder getCollectionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCollectionFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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; /** * optional .Mysqlx.Crud.DataModel data_model = 3; * @return Whether the dataModel field is set. */ public boolean hasDataModel() { return ((bitField0_ & 0x00000002) != 0); } /** * 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; } /** * 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; } /** * 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_; /** * repeated .Mysqlx.Crud.Projection projection = 4; */ public java.util.List getProjectionList() { if (projectionBuilder_ == null) { return java.util.Collections.unmodifiableList(projection_); } else { return projectionBuilder_.getMessageList(); } } /** * repeated .Mysqlx.Crud.Projection projection = 4; */ public int getProjectionCount() { if (projectionBuilder_ == null) { return projection_.size(); } else { return projectionBuilder_.getCount(); } } /** * 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); } } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * repeated .Mysqlx.Crud.Projection projection = 4; */ public Builder addAllProjection( java.lang.Iterable values) { if (projectionBuilder_ == null) { ensureProjectionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, projection_); onChanged(); } else { projectionBuilder_.addAllMessages(values); } return this; } /** * 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; } /** * 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; } /** * repeated .Mysqlx.Crud.Projection projection = 4; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Projection.Builder getProjectionBuilder( int index) { return getProjectionFieldBuilder().getBuilder(index); } /** * 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); } } /** * repeated .Mysqlx.Crud.Projection projection = 4; */ public java.util.List getProjectionOrBuilderList() { if (projectionBuilder_ != null) { return projectionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(projection_); } } /** * 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()); } /** * 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()); } /** * 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 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_; /** * optional .Mysqlx.Expr.Expr criteria = 5; * @return Whether the criteria field is set. */ public boolean hasCriteria() { return ((bitField0_ & 0x00000008) != 0); } /** * 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(); } } /** * 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_ |= 0x00000008; return this; } /** * 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_ |= 0x00000008; return this; } /** * optional .Mysqlx.Expr.Expr criteria = 5; */ public Builder mergeCriteria(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) { if (criteriaBuilder_ == null) { if (((bitField0_ & 0x00000008) != 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_ |= 0x00000008; return this; } /** * optional .Mysqlx.Expr.Expr criteria = 5; */ public Builder clearCriteria() { if (criteriaBuilder_ == null) { criteria_ = null; onChanged(); } else { criteriaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .Mysqlx.Expr.Expr criteria = 5; */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getCriteriaBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCriteriaFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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 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_; /** * repeated .Mysqlx.Datatypes.Scalar args = 11; */ public java.util.List getArgsList() { if (argsBuilder_ == null) { return java.util.Collections.unmodifiableList(args_); } else { return argsBuilder_.getMessageList(); } } /** * repeated .Mysqlx.Datatypes.Scalar args = 11; */ public int getArgsCount() { if (argsBuilder_ == null) { return args_.size(); } else { return argsBuilder_.getCount(); } } /** * 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); } } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 11; */ public Builder addAllArgs( java.lang.Iterable values) { if (argsBuilder_ == null) { ensureArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, args_); onChanged(); } else { argsBuilder_.addAllMessages(values); } return this; } /** * repeated .Mysqlx.Datatypes.Scalar args = 11; */ public Builder clearArgs() { if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { argsBuilder_.clear(); } return this; } /** * 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 11; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** * 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); } } /** * repeated .Mysqlx.Datatypes.Scalar args = 11; */ public java.util.List getArgsOrBuilderList() { if (argsBuilder_ != null) { return argsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(args_); } } /** * 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()); } /** * 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()); } /** * 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_ & 0x00000010) != 0), getParentForChildren(), isClean()); args_ = null; } return argsBuilder_; } private java.util.List order_ = java.util.Collections.emptyList(); private void ensureOrderIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { order_ = new java.util.ArrayList(order_); bitField0_ |= 0x00000020; } } 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_; /** * repeated .Mysqlx.Crud.Order order = 7; */ public java.util.List getOrderList() { if (orderBuilder_ == null) { return java.util.Collections.unmodifiableList(order_); } else { return orderBuilder_.getMessageList(); } } /** * repeated .Mysqlx.Crud.Order order = 7; */ public int getOrderCount() { if (orderBuilder_ == null) { return order_.size(); } else { return orderBuilder_.getCount(); } } /** * 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); } } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * repeated .Mysqlx.Crud.Order order = 7; */ public Builder addAllOrder( java.lang.Iterable values) { if (orderBuilder_ == null) { ensureOrderIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, order_); onChanged(); } else { orderBuilder_.addAllMessages(values); } return this; } /** * repeated .Mysqlx.Crud.Order order = 7; */ public Builder clearOrder() { if (orderBuilder_ == null) { order_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { orderBuilder_.clear(); } return this; } /** * 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; } /** * repeated .Mysqlx.Crud.Order order = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder getOrderBuilder( int index) { return getOrderFieldBuilder().getBuilder(index); } /** * 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); } } /** * repeated .Mysqlx.Crud.Order order = 7; */ public java.util.List getOrderOrBuilderList() { if (orderBuilder_ != null) { return orderBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(order_); } } /** * 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()); } /** * 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()); } /** * 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_ & 0x00000020) != 0), getParentForChildren(), isClean()); order_ = null; } return orderBuilder_; } private java.util.List grouping_ = java.util.Collections.emptyList(); private void ensureGroupingIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { grouping_ = new java.util.ArrayList(grouping_); bitField0_ |= 0x00000040; } } 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_; /** * repeated .Mysqlx.Expr.Expr grouping = 8; */ public java.util.List getGroupingList() { if (groupingBuilder_ == null) { return java.util.Collections.unmodifiableList(grouping_); } else { return groupingBuilder_.getMessageList(); } } /** * repeated .Mysqlx.Expr.Expr grouping = 8; */ public int getGroupingCount() { if (groupingBuilder_ == null) { return grouping_.size(); } else { return groupingBuilder_.getCount(); } } /** * 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); } } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * repeated .Mysqlx.Expr.Expr grouping = 8; */ public Builder addAllGrouping( java.lang.Iterable values) { if (groupingBuilder_ == null) { ensureGroupingIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, grouping_); onChanged(); } else { groupingBuilder_.addAllMessages(values); } return this; } /** * repeated .Mysqlx.Expr.Expr grouping = 8; */ public Builder clearGrouping() { if (groupingBuilder_ == null) { grouping_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { groupingBuilder_.clear(); } return this; } /** * 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; } /** * repeated .Mysqlx.Expr.Expr grouping = 8; */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getGroupingBuilder( int index) { return getGroupingFieldBuilder().getBuilder(index); } /** * 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); } } /** * repeated .Mysqlx.Expr.Expr grouping = 8; */ public java.util.List getGroupingOrBuilderList() { if (groupingBuilder_ != null) { return groupingBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(grouping_); } } /** * 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()); } /** * 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()); } /** * 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_ & 0x00000040) != 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_; /** * optional .Mysqlx.Expr.Expr grouping_criteria = 9; * @return Whether the groupingCriteria field is set. */ public boolean hasGroupingCriteria() { return ((bitField0_ & 0x00000080) != 0); } /** * 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(); } } /** * 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_ |= 0x00000080; return this; } /** * 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_ |= 0x00000080; return this; } /** * optional .Mysqlx.Expr.Expr grouping_criteria = 9; */ public Builder mergeGroupingCriteria(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) { if (groupingCriteriaBuilder_ == null) { if (((bitField0_ & 0x00000080) != 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_ |= 0x00000080; return this; } /** * optional .Mysqlx.Expr.Expr grouping_criteria = 9; */ public Builder clearGroupingCriteria() { if (groupingCriteriaBuilder_ == null) { groupingCriteria_ = null; onChanged(); } else { groupingCriteriaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * optional .Mysqlx.Expr.Expr grouping_criteria = 9; */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getGroupingCriteriaBuilder() { bitField0_ |= 0x00000080; onChanged(); return getGroupingCriteriaFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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; /** * optional .Mysqlx.Crud.Find.RowLock locking = 12; * @return Whether the locking field is set. */ public boolean hasLocking() { return ((bitField0_ & 0x00000100) != 0); } /** * 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; } /** * 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_ |= 0x00000100; locking_ = value.getNumber(); onChanged(); return this; } /** * optional .Mysqlx.Crud.Find.RowLock locking = 12; * @return This builder for chaining. */ public Builder clearLocking() { bitField0_ = (bitField0_ & ~0x00000100); locking_ = 1; onChanged(); return this; } private int lockingOptions_ = 1; /** * optional .Mysqlx.Crud.Find.RowLockOptions locking_options = 13; * @return Whether the lockingOptions field is set. */ public boolean hasLockingOptions() { return ((bitField0_ & 0x00000200) != 0); } /** * 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; } /** * 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_ |= 0x00000200; lockingOptions_ = value.getNumber(); onChanged(); return this; } /** * optional .Mysqlx.Crud.Find.RowLockOptions locking_options = 13; * @return This builder for chaining. */ public Builder clearLockingOptions() { bitField0_ = (bitField0_ & ~0x00000200); lockingOptions_ = 1; onChanged(); return this; } 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_; /** * optional .Mysqlx.Crud.Limit limit = 6; * @return Whether the limit field is set. */ public boolean hasLimit() { return ((bitField0_ & 0x00000400) != 0); } /** * 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(); } } /** * 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_ |= 0x00000400; return this; } /** * 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_ |= 0x00000400; return this; } /** * optional .Mysqlx.Crud.Limit limit = 6; */ public Builder mergeLimit(com.mysql.cj.x.protobuf.MysqlxCrud.Limit value) { if (limitBuilder_ == null) { if (((bitField0_ & 0x00000400) != 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_ |= 0x00000400; return this; } /** * optional .Mysqlx.Crud.Limit limit = 6; */ public Builder clearLimit() { if (limitBuilder_ == null) { limit_ = null; onChanged(); } else { limitBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** * optional .Mysqlx.Crud.Limit limit = 6; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Limit.Builder getLimitBuilder() { bitField0_ |= 0x00000400; onChanged(); return getLimitFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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 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_; /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 14; * @return Whether the limitExpr field is set. */ public boolean hasLimitExpr() { return ((bitField0_ & 0x00000800) != 0); } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 14; */ public Builder clearLimitExpr() { if (limitExprBuilder_ == null) { limitExpr_ = null; onChanged(); } else { limitExprBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 14; */ public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.Builder getLimitExprBuilder() { bitField0_ |= 0x00000800; onChanged(); return getLimitExprFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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 { /** * required .Mysqlx.Crud.Collection collection = 1; * @return Whether the collection field is set. */ boolean hasCollection(); /** * required .Mysqlx.Crud.Collection collection = 1; * @return The collection. */ com.mysql.cj.x.protobuf.MysqlxCrud.Collection getCollection(); /** * required .Mysqlx.Crud.Collection collection = 1; */ com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder(); /** * optional .Mysqlx.Crud.DataModel data_model = 2; * @return Whether the dataModel field is set. */ boolean hasDataModel(); /** * optional .Mysqlx.Crud.DataModel data_model = 2; * @return The dataModel. */ com.mysql.cj.x.protobuf.MysqlxCrud.DataModel getDataModel(); /** * repeated .Mysqlx.Crud.Column projection = 3; */ java.util.List getProjectionList(); /** * repeated .Mysqlx.Crud.Column projection = 3; */ com.mysql.cj.x.protobuf.MysqlxCrud.Column getProjection(int index); /** * repeated .Mysqlx.Crud.Column projection = 3; */ int getProjectionCount(); /** * repeated .Mysqlx.Crud.Column projection = 3; */ java.util.List getProjectionOrBuilderList(); /** * repeated .Mysqlx.Crud.Column projection = 3; */ com.mysql.cj.x.protobuf.MysqlxCrud.ColumnOrBuilder getProjectionOrBuilder( int index); /** * repeated .Mysqlx.Crud.Insert.TypedRow row = 4; */ java.util.List getRowList(); /** * repeated .Mysqlx.Crud.Insert.TypedRow row = 4; */ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow getRow(int index); /** * repeated .Mysqlx.Crud.Insert.TypedRow row = 4; */ int getRowCount(); /** * repeated .Mysqlx.Crud.Insert.TypedRow row = 4; */ java.util.List getRowOrBuilderList(); /** * repeated .Mysqlx.Crud.Insert.TypedRow row = 4; */ com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder getRowOrBuilder( int index); /** * repeated .Mysqlx.Datatypes.Scalar args = 5; */ java.util.List getArgsList(); /** * repeated .Mysqlx.Datatypes.Scalar args = 5; */ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index); /** * repeated .Mysqlx.Datatypes.Scalar args = 5; */ int getArgsCount(); /** * repeated .Mysqlx.Datatypes.Scalar args = 5; */ java.util.List getArgsOrBuilderList(); /** * repeated .Mysqlx.Datatypes.Scalar args = 5; */ com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder( int index); /** * optional bool upsert = 6 [default = false]; * @return Whether the upsert field is set. */ boolean hasUpsert(); /** * optional bool upsert = 6 [default = false]; * @return The upsert. */ boolean getUpsert(); } /** *
   * Insert documents/rows into a collection/table
   * :param collection: collection to insert into
   * :param data_model: datamodel that the operations refer to
   * :param projection: name of the columns to insert data into (empty if data_model is DOCUMENT)
   * :param row: set of rows to insert into the collection/table (a single expression with a JSON document literal or an OBJECT expression)
   * :param args: values for parameters used in row expressions
   * :param upsert: true if this should be treated as an Upsert (that is, update on duplicate key)
   * :Returns: :protobuf:msg:`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 getFieldOrBuilderList(); /** * repeated .Mysqlx.Expr.Expr field = 1; */ com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getFieldOrBuilder( int index); } /** * 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 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; } /** * 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 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 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_; /** * required .Mysqlx.Crud.Collection collection = 1; * @return Whether the collection field is set. */ public boolean hasCollection() { return ((bitField0_ & 0x00000001) != 0); } /** * 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_; } /** * 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_; /** * optional .Mysqlx.Crud.DataModel data_model = 2; * @return Whether the dataModel field is set. */ public boolean hasDataModel() { return ((bitField0_ & 0x00000002) != 0); } /** * 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_; /** * repeated .Mysqlx.Crud.Column projection = 3; */ public java.util.List getProjectionList() { return projection_; } /** * repeated .Mysqlx.Crud.Column projection = 3; */ public java.util.List getProjectionOrBuilderList() { return projection_; } /** * repeated .Mysqlx.Crud.Column projection = 3; */ public int getProjectionCount() { return projection_.size(); } /** * repeated .Mysqlx.Crud.Column projection = 3; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Column getProjection(int index) { return projection_.get(index); } /** * 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_; /** * repeated .Mysqlx.Crud.Insert.TypedRow row = 4; */ public java.util.List getRowList() { return row_; } /** * repeated .Mysqlx.Crud.Insert.TypedRow row = 4; */ public java.util.List getRowOrBuilderList() { return row_; } /** * repeated .Mysqlx.Crud.Insert.TypedRow row = 4; */ public int getRowCount() { return row_.size(); } /** * repeated .Mysqlx.Crud.Insert.TypedRow row = 4; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow getRow(int index) { return row_.get(index); } /** * 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_; /** * repeated .Mysqlx.Datatypes.Scalar args = 5; */ public java.util.List getArgsList() { return args_; } /** * repeated .Mysqlx.Datatypes.Scalar args = 5; */ public java.util.List getArgsOrBuilderList() { return args_; } /** * repeated .Mysqlx.Datatypes.Scalar args = 5; */ public int getArgsCount() { return args_.size(); } /** * repeated .Mysqlx.Datatypes.Scalar args = 5; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index) { return args_.get(index); } /** * 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_; /** * optional bool upsert = 6 [default = false]; * @return Whether the upsert field is set. */ public boolean hasUpsert() { return ((bitField0_ & 0x00000004) != 0); } /** * 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
     * :param collection: collection to insert into
     * :param data_model: datamodel that the operations refer to
     * :param projection: name of the columns to insert data into (empty if data_model is DOCUMENT)
     * :param row: set of rows to insert into the collection/table (a single expression with a JSON document literal or an OBJECT expression)
     * :param args: values for parameters used in row expressions
     * :param upsert: true if this should be treated as an Upsert (that is, update on duplicate key)
     * :Returns: :protobuf:msg:`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_; /** * required .Mysqlx.Crud.Collection collection = 1; * @return Whether the collection field is set. */ public boolean hasCollection() { return ((bitField0_ & 0x00000001) != 0); } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * required .Mysqlx.Crud.Collection collection = 1; */ public Builder clearCollection() { if (collectionBuilder_ == null) { collection_ = null; onChanged(); } else { collectionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Mysqlx.Crud.Collection collection = 1; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder getCollectionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCollectionFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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; /** * optional .Mysqlx.Crud.DataModel data_model = 2; * @return Whether the dataModel field is set. */ public boolean hasDataModel() { return ((bitField0_ & 0x00000002) != 0); } /** * 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; } /** * 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; } /** * 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_; /** * repeated .Mysqlx.Crud.Column projection = 3; */ public java.util.List getProjectionList() { if (projectionBuilder_ == null) { return java.util.Collections.unmodifiableList(projection_); } else { return projectionBuilder_.getMessageList(); } } /** * repeated .Mysqlx.Crud.Column projection = 3; */ public int getProjectionCount() { if (projectionBuilder_ == null) { return projection_.size(); } else { return projectionBuilder_.getCount(); } } /** * 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); } } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * repeated .Mysqlx.Crud.Column projection = 3; */ public Builder addAllProjection( java.lang.Iterable values) { if (projectionBuilder_ == null) { ensureProjectionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, projection_); onChanged(); } else { projectionBuilder_.addAllMessages(values); } return this; } /** * 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; } /** * 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; } /** * repeated .Mysqlx.Crud.Column projection = 3; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Column.Builder getProjectionBuilder( int index) { return getProjectionFieldBuilder().getBuilder(index); } /** * 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); } } /** * repeated .Mysqlx.Crud.Column projection = 3; */ public java.util.List getProjectionOrBuilderList() { if (projectionBuilder_ != null) { return projectionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(projection_); } } /** * 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()); } /** * 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()); } /** * 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_; /** * 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(); } } /** * repeated .Mysqlx.Crud.Insert.TypedRow row = 4; */ public int getRowCount() { if (rowBuilder_ == null) { return row_.size(); } else { return rowBuilder_.getCount(); } } /** * 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); } } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * repeated .Mysqlx.Crud.Insert.TypedRow row = 4; */ public Builder addAllRow( java.lang.Iterable values) { if (rowBuilder_ == null) { ensureRowIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, row_); onChanged(); } else { rowBuilder_.addAllMessages(values); } return this; } /** * 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; } /** * 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; } /** * repeated .Mysqlx.Crud.Insert.TypedRow row = 4; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Insert.TypedRow.Builder getRowBuilder( int index) { return getRowFieldBuilder().getBuilder(index); } /** * 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); } } /** * repeated .Mysqlx.Crud.Insert.TypedRow row = 4; */ public java.util.List getRowOrBuilderList() { if (rowBuilder_ != null) { return rowBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(row_); } } /** * 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()); } /** * 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()); } /** * 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_; /** * repeated .Mysqlx.Datatypes.Scalar args = 5; */ public java.util.List getArgsList() { if (argsBuilder_ == null) { return java.util.Collections.unmodifiableList(args_); } else { return argsBuilder_.getMessageList(); } } /** * repeated .Mysqlx.Datatypes.Scalar args = 5; */ public int getArgsCount() { if (argsBuilder_ == null) { return args_.size(); } else { return argsBuilder_.getCount(); } } /** * 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); } } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 5; */ public Builder addAllArgs( java.lang.Iterable values) { if (argsBuilder_ == null) { ensureArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, args_); onChanged(); } else { argsBuilder_.addAllMessages(values); } return this; } /** * 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; } /** * 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 5; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** * 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); } } /** * repeated .Mysqlx.Datatypes.Scalar args = 5; */ public java.util.List getArgsOrBuilderList() { if (argsBuilder_ != null) { return argsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(args_); } } /** * 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()); } /** * 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()); } /** * 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_ ; /** * optional bool upsert = 6 [default = false]; * @return Whether the upsert field is set. */ public boolean hasUpsert() { return ((bitField0_ & 0x00000020) != 0); } /** * optional bool upsert = 6 [default = false]; * @return The upsert. */ public boolean getUpsert() { return upsert_; } /** * 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; } /** * 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 { /** * required .Mysqlx.Crud.Collection collection = 2; * @return Whether the collection field is set. */ boolean hasCollection(); /** * required .Mysqlx.Crud.Collection collection = 2; * @return The collection. */ com.mysql.cj.x.protobuf.MysqlxCrud.Collection getCollection(); /** * required .Mysqlx.Crud.Collection collection = 2; */ com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder(); /** * optional .Mysqlx.Crud.DataModel data_model = 3; * @return Whether the dataModel field is set. */ boolean hasDataModel(); /** * optional .Mysqlx.Crud.DataModel data_model = 3; * @return The dataModel. */ com.mysql.cj.x.protobuf.MysqlxCrud.DataModel getDataModel(); /** * optional .Mysqlx.Expr.Expr criteria = 4; * @return Whether the criteria field is set. */ boolean hasCriteria(); /** * optional .Mysqlx.Expr.Expr criteria = 4; * @return The criteria. */ com.mysql.cj.x.protobuf.MysqlxExpr.Expr getCriteria(); /** * optional .Mysqlx.Expr.Expr criteria = 4; */ com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getCriteriaOrBuilder(); /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ java.util.List getArgsList(); /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index); /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ int getArgsCount(); /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ java.util.List getArgsOrBuilderList(); /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder( int index); /** * repeated .Mysqlx.Crud.Order order = 6; */ java.util.List getOrderList(); /** * repeated .Mysqlx.Crud.Order order = 6; */ com.mysql.cj.x.protobuf.MysqlxCrud.Order getOrder(int index); /** * repeated .Mysqlx.Crud.Order order = 6; */ int getOrderCount(); /** * repeated .Mysqlx.Crud.Order order = 6; */ java.util.List getOrderOrBuilderList(); /** * repeated .Mysqlx.Crud.Order order = 6; */ com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder getOrderOrBuilder( int index); /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ java.util.List getOperationList(); /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation getOperation(int index); /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ int getOperationCount(); /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ java.util.List getOperationOrBuilderList(); /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperationOrBuilder getOperationOrBuilder( int index); /** * optional .Mysqlx.Crud.Limit limit = 5; * @return Whether the limit field is set. */ boolean hasLimit(); /** * optional .Mysqlx.Crud.Limit limit = 5; * @return The limit. */ com.mysql.cj.x.protobuf.MysqlxCrud.Limit getLimit(); /** * optional .Mysqlx.Crud.Limit limit = 5; */ com.mysql.cj.x.protobuf.MysqlxCrud.LimitOrBuilder getLimitOrBuilder(); /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 9; * @return Whether the limitExpr field is set. */ boolean hasLimitExpr(); /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 9; * @return The limitExpr. */ com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr getLimitExpr(); /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 9; */ com.mysql.cj.x.protobuf.MysqlxCrud.LimitExprOrBuilder getLimitExprOrBuilder(); } /** *
   * Update documents/rows in a collection/table
   * :param collection: collection to change
   * :param data_model: datamodel that the operations refer to
   * :param criteria: filter expression to match rows that the operations will apply on
   * :param args: values for parameters used in filter expression
   * :param limit: limits the number of rows to match (user can set one of: limit, limit_expr)
   * :param order: specifies order of matched rows
   * :param operation: list of operations to be applied. Valid operations will depend on the data_model.
   * :param limit_expr: limits the number of rows to match (user can set one of: limit, limit_expr)
   * :Returns: :protobuf:msg:`Mysqlx.Resultset::`
   * 
* * Protobuf type {@code Mysqlx.Crud.Update} */ public static final class Update extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Mysqlx.Crud.Update) UpdateOrBuilder { private static final long serialVersionUID = 0L; // Use Update.newBuilder() to construct. private Update(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Update() { dataModel_ = 1; args_ = java.util.Collections.emptyList(); order_ = java.util.Collections.emptyList(); operation_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Update(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Update( 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: { 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 42: { 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 50: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { order_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } order_.add( input.readMessage(com.mysql.cj.x.protobuf.MysqlxCrud.Order.PARSER, extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000020) != 0)) { operation_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } operation_.add( input.readMessage(com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.PARSER, extensionRegistry)); break; } case 66: { 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 74: { com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.Builder subBuilder = null; if (((bitField0_ & 0x00000010) != 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_ |= 0x00000010; 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_ & 0x00000010) != 0)) { order_ = java.util.Collections.unmodifiableList(order_); } if (((mutable_bitField0_ & 0x00000020) != 0)) { operation_ = java.util.Collections.unmodifiableList(operation_); } 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_Update_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Update_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.Update.class, com.mysql.cj.x.protobuf.MysqlxCrud.Update.Builder.class); } private int bitField0_; public static final int COLLECTION_FIELD_NUMBER = 2; private com.mysql.cj.x.protobuf.MysqlxCrud.Collection collection_; /** * required .Mysqlx.Crud.Collection collection = 2; * @return Whether the collection field is set. */ public boolean hasCollection() { return ((bitField0_ & 0x00000001) != 0); } /** * 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_; } /** * 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_; /** * optional .Mysqlx.Crud.DataModel data_model = 3; * @return Whether the dataModel field is set. */ public boolean hasDataModel() { return ((bitField0_ & 0x00000002) != 0); } /** * 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 CRITERIA_FIELD_NUMBER = 4; private com.mysql.cj.x.protobuf.MysqlxExpr.Expr criteria_; /** * optional .Mysqlx.Expr.Expr criteria = 4; * @return Whether the criteria field is set. */ public boolean hasCriteria() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .Mysqlx.Expr.Expr criteria = 4; * @return The criteria. */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getCriteria() { return criteria_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : criteria_; } /** * optional .Mysqlx.Expr.Expr criteria = 4; */ 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 ARGS_FIELD_NUMBER = 8; private java.util.List args_; /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public java.util.List getArgsList() { return args_; } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public java.util.List getArgsOrBuilderList() { return args_; } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public int getArgsCount() { return args_.size(); } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index) { return args_.get(index); } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder( int index) { return args_.get(index); } public static final int ORDER_FIELD_NUMBER = 6; private java.util.List order_; /** * repeated .Mysqlx.Crud.Order order = 6; */ public java.util.List getOrderList() { return order_; } /** * repeated .Mysqlx.Crud.Order order = 6; */ public java.util.List getOrderOrBuilderList() { return order_; } /** * repeated .Mysqlx.Crud.Order order = 6; */ public int getOrderCount() { return order_.size(); } /** * repeated .Mysqlx.Crud.Order order = 6; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Order getOrder(int index) { return order_.get(index); } /** * repeated .Mysqlx.Crud.Order order = 6; */ public com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder getOrderOrBuilder( int index) { return order_.get(index); } public static final int OPERATION_FIELD_NUMBER = 7; private java.util.List operation_; /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public java.util.List getOperationList() { return operation_; } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public java.util.List getOperationOrBuilderList() { return operation_; } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public int getOperationCount() { return operation_.size(); } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation getOperation(int index) { return operation_.get(index); } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperationOrBuilder getOperationOrBuilder( int index) { return operation_.get(index); } public static final int LIMIT_FIELD_NUMBER = 5; private com.mysql.cj.x.protobuf.MysqlxCrud.Limit limit_; /** * optional .Mysqlx.Crud.Limit limit = 5; * @return Whether the limit field is set. */ public boolean hasLimit() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .Mysqlx.Crud.Limit limit = 5; * @return The limit. */ public com.mysql.cj.x.protobuf.MysqlxCrud.Limit getLimit() { return limit_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Limit.getDefaultInstance() : limit_; } /** * optional .Mysqlx.Crud.Limit limit = 5; */ 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 LIMIT_EXPR_FIELD_NUMBER = 9; private com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr limitExpr_; /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 9; * @return Whether the limitExpr field is set. */ public boolean hasLimitExpr() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 9; * @return The limitExpr. */ public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr getLimitExpr() { return limitExpr_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.getDefaultInstance() : limitExpr_; } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 9; */ 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; } if (hasCriteria()) { if (!getCriteria().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getArgsCount(); i++) { if (!getArgs(i).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 < getOperationCount(); i++) { if (!getOperation(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLimit()) { if (!getLimit().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_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getCriteria()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(5, getLimit()); } for (int i = 0; i < order_.size(); i++) { output.writeMessage(6, order_.get(i)); } for (int i = 0; i < operation_.size(); i++) { output.writeMessage(7, operation_.get(i)); } for (int i = 0; i < args_.size(); i++) { output.writeMessage(8, args_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(9, 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_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getCriteria()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLimit()); } for (int i = 0; i < order_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, order_.get(i)); } for (int i = 0; i < operation_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, operation_.get(i)); } for (int i = 0; i < args_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, args_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, 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.Update)) { return super.equals(obj); } com.mysql.cj.x.protobuf.MysqlxCrud.Update other = (com.mysql.cj.x.protobuf.MysqlxCrud.Update) 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 (hasCriteria() != other.hasCriteria()) return false; if (hasCriteria()) { if (!getCriteria() .equals(other.getCriteria())) return false; } if (!getArgsList() .equals(other.getArgsList())) return false; if (!getOrderList() .equals(other.getOrderList())) return false; if (!getOperationList() .equals(other.getOperationList())) return false; if (hasLimit() != other.hasLimit()) return false; if (hasLimit()) { if (!getLimit() .equals(other.getLimit())) 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 (hasCriteria()) { hash = (37 * hash) + CRITERIA_FIELD_NUMBER; hash = (53 * hash) + getCriteria().hashCode(); } if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } if (getOrderCount() > 0) { hash = (37 * hash) + ORDER_FIELD_NUMBER; hash = (53 * hash) + getOrderList().hashCode(); } if (getOperationCount() > 0) { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperationList().hashCode(); } if (hasLimit()) { hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit().hashCode(); } 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.Update parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Update 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.Update parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Update 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.Update parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Update 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.Update 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.Update 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.Update 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.Update 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.Update 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.Update 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.Update 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; } /** *
     * Update documents/rows in a collection/table
     * :param collection: collection to change
     * :param data_model: datamodel that the operations refer to
     * :param criteria: filter expression to match rows that the operations will apply on
     * :param args: values for parameters used in filter expression
     * :param limit: limits the number of rows to match (user can set one of: limit, limit_expr)
     * :param order: specifies order of matched rows
     * :param operation: list of operations to be applied. Valid operations will depend on the data_model.
     * :param limit_expr: limits the number of rows to match (user can set one of: limit, limit_expr)
     * :Returns: :protobuf:msg:`Mysqlx.Resultset::`
     * 
* * Protobuf type {@code Mysqlx.Crud.Update} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Update) com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Update_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Update_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.Update.class, com.mysql.cj.x.protobuf.MysqlxCrud.Update.Builder.class); } // Construct using com.mysql.cj.x.protobuf.MysqlxCrud.Update.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(); getCriteriaFieldBuilder(); getArgsFieldBuilder(); getOrderFieldBuilder(); getOperationFieldBuilder(); getLimitFieldBuilder(); 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 (criteriaBuilder_ == null) { criteria_ = null; } else { criteriaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { argsBuilder_.clear(); } if (orderBuilder_ == null) { order_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { orderBuilder_.clear(); } if (operationBuilder_ == null) { operation_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { operationBuilder_.clear(); } if (limitBuilder_ == null) { limit_ = null; } else { limitBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (limitExprBuilder_ == null) { limitExpr_ = null; } else { limitExprBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Update_descriptor; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Update getDefaultInstanceForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.Update.getDefaultInstance(); } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Update build() { com.mysql.cj.x.protobuf.MysqlxCrud.Update result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Update buildPartial() { com.mysql.cj.x.protobuf.MysqlxCrud.Update result = new com.mysql.cj.x.protobuf.MysqlxCrud.Update(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 (((from_bitField0_ & 0x00000004) != 0)) { if (criteriaBuilder_ == null) { result.criteria_ = criteria_; } else { result.criteria_ = criteriaBuilder_.build(); } to_bitField0_ |= 0x00000004; } 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 (orderBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { order_ = java.util.Collections.unmodifiableList(order_); bitField0_ = (bitField0_ & ~0x00000010); } result.order_ = order_; } else { result.order_ = orderBuilder_.build(); } if (operationBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { operation_ = java.util.Collections.unmodifiableList(operation_); bitField0_ = (bitField0_ & ~0x00000020); } result.operation_ = operation_; } else { result.operation_ = operationBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { if (limitBuilder_ == null) { result.limit_ = limit_; } else { result.limit_ = limitBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { if (limitExprBuilder_ == null) { result.limitExpr_ = limitExpr_; } else { result.limitExpr_ = limitExprBuilder_.build(); } to_bitField0_ |= 0x00000010; } 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.Update) { return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.Update)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.Update other) { if (other == com.mysql.cj.x.protobuf.MysqlxCrud.Update.getDefaultInstance()) return this; if (other.hasCollection()) { mergeCollection(other.getCollection()); } if (other.hasDataModel()) { setDataModel(other.getDataModel()); } if (other.hasCriteria()) { mergeCriteria(other.getCriteria()); } 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 (orderBuilder_ == null) { if (!other.order_.isEmpty()) { if (order_.isEmpty()) { order_ = other.order_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureOrderIsMutable(); order_.addAll(other.order_); } onChanged(); } } else { if (!other.order_.isEmpty()) { if (orderBuilder_.isEmpty()) { orderBuilder_.dispose(); orderBuilder_ = null; order_ = other.order_; bitField0_ = (bitField0_ & ~0x00000010); orderBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOrderFieldBuilder() : null; } else { orderBuilder_.addAllMessages(other.order_); } } } if (operationBuilder_ == null) { if (!other.operation_.isEmpty()) { if (operation_.isEmpty()) { operation_ = other.operation_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureOperationIsMutable(); operation_.addAll(other.operation_); } onChanged(); } } else { if (!other.operation_.isEmpty()) { if (operationBuilder_.isEmpty()) { operationBuilder_.dispose(); operationBuilder_ = null; operation_ = other.operation_; bitField0_ = (bitField0_ & ~0x00000020); operationBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOperationFieldBuilder() : null; } else { operationBuilder_.addAllMessages(other.operation_); } } } if (other.hasLimit()) { mergeLimit(other.getLimit()); } 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; } if (hasCriteria()) { if (!getCriteria().isInitialized()) { return false; } } for (int i = 0; i < getArgsCount(); i++) { if (!getArgs(i).isInitialized()) { return false; } } for (int i = 0; i < getOrderCount(); i++) { if (!getOrder(i).isInitialized()) { return false; } } for (int i = 0; i < getOperationCount(); i++) { if (!getOperation(i).isInitialized()) { return false; } } if (hasLimit()) { if (!getLimit().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.Update parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mysql.cj.x.protobuf.MysqlxCrud.Update) 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_; /** * required .Mysqlx.Crud.Collection collection = 2; * @return Whether the collection field is set. */ public boolean hasCollection() { return ((bitField0_ & 0x00000001) != 0); } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * required .Mysqlx.Crud.Collection collection = 2; */ public Builder clearCollection() { if (collectionBuilder_ == null) { collection_ = null; onChanged(); } else { collectionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Mysqlx.Crud.Collection collection = 2; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder getCollectionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCollectionFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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; /** * optional .Mysqlx.Crud.DataModel data_model = 3; * @return Whether the dataModel field is set. */ public boolean hasDataModel() { return ((bitField0_ & 0x00000002) != 0); } /** * 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; } /** * 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; } /** * optional .Mysqlx.Crud.DataModel data_model = 3; * @return This builder for chaining. */ public Builder clearDataModel() { bitField0_ = (bitField0_ & ~0x00000002); dataModel_ = 1; onChanged(); return this; } 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_; /** * optional .Mysqlx.Expr.Expr criteria = 4; * @return Whether the criteria field is set. */ public boolean hasCriteria() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .Mysqlx.Expr.Expr criteria = 4; * @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(); } } /** * optional .Mysqlx.Expr.Expr criteria = 4; */ 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_ |= 0x00000004; return this; } /** * optional .Mysqlx.Expr.Expr criteria = 4; */ 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_ |= 0x00000004; return this; } /** * optional .Mysqlx.Expr.Expr criteria = 4; */ public Builder mergeCriteria(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) { if (criteriaBuilder_ == null) { if (((bitField0_ & 0x00000004) != 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_ |= 0x00000004; return this; } /** * optional .Mysqlx.Expr.Expr criteria = 4; */ public Builder clearCriteria() { if (criteriaBuilder_ == null) { criteria_ = null; onChanged(); } else { criteriaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .Mysqlx.Expr.Expr criteria = 4; */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getCriteriaBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCriteriaFieldBuilder().getBuilder(); } /** * optional .Mysqlx.Expr.Expr criteria = 4; */ 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_; } } /** * optional .Mysqlx.Expr.Expr criteria = 4; */ 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 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_; /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public java.util.List getArgsList() { if (argsBuilder_ == null) { return java.util.Collections.unmodifiableList(args_); } else { return argsBuilder_.getMessageList(); } } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public int getArgsCount() { if (argsBuilder_ == null) { return args_.size(); } else { return argsBuilder_.getCount(); } } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessage(index); } } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public Builder addAllArgs( java.lang.Iterable values) { if (argsBuilder_ == null) { ensureArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, args_); onChanged(); } else { argsBuilder_.addAllMessages(values); } return this; } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public Builder clearArgs() { if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { argsBuilder_.clear(); } return this; } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public Builder removeArgs(int index) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.remove(index); onChanged(); } else { argsBuilder_.remove(index); } return this; } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder( int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessageOrBuilder(index); } } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public java.util.List getArgsOrBuilderList() { if (argsBuilder_ != null) { return argsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(args_); } } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance()); } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance()); } /** * repeated .Mysqlx.Datatypes.Scalar args = 8; */ 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 java.util.List order_ = java.util.Collections.emptyList(); private void ensureOrderIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { order_ = new java.util.ArrayList(order_); bitField0_ |= 0x00000010; } } 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_; /** * repeated .Mysqlx.Crud.Order order = 6; */ public java.util.List getOrderList() { if (orderBuilder_ == null) { return java.util.Collections.unmodifiableList(order_); } else { return orderBuilder_.getMessageList(); } } /** * repeated .Mysqlx.Crud.Order order = 6; */ public int getOrderCount() { if (orderBuilder_ == null) { return order_.size(); } else { return orderBuilder_.getCount(); } } /** * repeated .Mysqlx.Crud.Order order = 6; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Order getOrder(int index) { if (orderBuilder_ == null) { return order_.get(index); } else { return orderBuilder_.getMessage(index); } } /** * repeated .Mysqlx.Crud.Order order = 6; */ 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; } /** * repeated .Mysqlx.Crud.Order order = 6; */ 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; } /** * repeated .Mysqlx.Crud.Order order = 6; */ 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; } /** * repeated .Mysqlx.Crud.Order order = 6; */ 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; } /** * repeated .Mysqlx.Crud.Order order = 6; */ 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; } /** * repeated .Mysqlx.Crud.Order order = 6; */ 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; } /** * repeated .Mysqlx.Crud.Order order = 6; */ public Builder addAllOrder( java.lang.Iterable values) { if (orderBuilder_ == null) { ensureOrderIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, order_); onChanged(); } else { orderBuilder_.addAllMessages(values); } return this; } /** * repeated .Mysqlx.Crud.Order order = 6; */ public Builder clearOrder() { if (orderBuilder_ == null) { order_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { orderBuilder_.clear(); } return this; } /** * repeated .Mysqlx.Crud.Order order = 6; */ public Builder removeOrder(int index) { if (orderBuilder_ == null) { ensureOrderIsMutable(); order_.remove(index); onChanged(); } else { orderBuilder_.remove(index); } return this; } /** * repeated .Mysqlx.Crud.Order order = 6; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder getOrderBuilder( int index) { return getOrderFieldBuilder().getBuilder(index); } /** * repeated .Mysqlx.Crud.Order order = 6; */ public com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder getOrderOrBuilder( int index) { if (orderBuilder_ == null) { return order_.get(index); } else { return orderBuilder_.getMessageOrBuilder(index); } } /** * repeated .Mysqlx.Crud.Order order = 6; */ public java.util.List getOrderOrBuilderList() { if (orderBuilder_ != null) { return orderBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(order_); } } /** * repeated .Mysqlx.Crud.Order order = 6; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder addOrderBuilder() { return getOrderFieldBuilder().addBuilder( com.mysql.cj.x.protobuf.MysqlxCrud.Order.getDefaultInstance()); } /** * repeated .Mysqlx.Crud.Order order = 6; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder addOrderBuilder( int index) { return getOrderFieldBuilder().addBuilder( index, com.mysql.cj.x.protobuf.MysqlxCrud.Order.getDefaultInstance()); } /** * repeated .Mysqlx.Crud.Order order = 6; */ 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_ & 0x00000010) != 0), getParentForChildren(), isClean()); order_ = null; } return orderBuilder_; } private java.util.List operation_ = java.util.Collections.emptyList(); private void ensureOperationIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { operation_ = new java.util.ArrayList(operation_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperationOrBuilder> operationBuilder_; /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public java.util.List getOperationList() { if (operationBuilder_ == null) { return java.util.Collections.unmodifiableList(operation_); } else { return operationBuilder_.getMessageList(); } } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public int getOperationCount() { if (operationBuilder_ == null) { return operation_.size(); } else { return operationBuilder_.getCount(); } } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation getOperation(int index) { if (operationBuilder_ == null) { return operation_.get(index); } else { return operationBuilder_.getMessage(index); } } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public Builder setOperation( int index, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationIsMutable(); operation_.set(index, value); onChanged(); } else { operationBuilder_.setMessage(index, value); } return this; } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public Builder setOperation( int index, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.Builder builderForValue) { if (operationBuilder_ == null) { ensureOperationIsMutable(); operation_.set(index, builderForValue.build()); onChanged(); } else { operationBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public Builder addOperation(com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationIsMutable(); operation_.add(value); onChanged(); } else { operationBuilder_.addMessage(value); } return this; } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public Builder addOperation( int index, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationIsMutable(); operation_.add(index, value); onChanged(); } else { operationBuilder_.addMessage(index, value); } return this; } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public Builder addOperation( com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.Builder builderForValue) { if (operationBuilder_ == null) { ensureOperationIsMutable(); operation_.add(builderForValue.build()); onChanged(); } else { operationBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public Builder addOperation( int index, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.Builder builderForValue) { if (operationBuilder_ == null) { ensureOperationIsMutable(); operation_.add(index, builderForValue.build()); onChanged(); } else { operationBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public Builder addAllOperation( java.lang.Iterable values) { if (operationBuilder_ == null) { ensureOperationIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, operation_); onChanged(); } else { operationBuilder_.addAllMessages(values); } return this; } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public Builder clearOperation() { if (operationBuilder_ == null) { operation_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { operationBuilder_.clear(); } return this; } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public Builder removeOperation(int index) { if (operationBuilder_ == null) { ensureOperationIsMutable(); operation_.remove(index); onChanged(); } else { operationBuilder_.remove(index); } return this; } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.Builder getOperationBuilder( int index) { return getOperationFieldBuilder().getBuilder(index); } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperationOrBuilder getOperationOrBuilder( int index) { if (operationBuilder_ == null) { return operation_.get(index); } else { return operationBuilder_.getMessageOrBuilder(index); } } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public java.util.List getOperationOrBuilderList() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(operation_); } } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.Builder addOperationBuilder() { return getOperationFieldBuilder().addBuilder( com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.getDefaultInstance()); } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.Builder addOperationBuilder( int index) { return getOperationFieldBuilder().addBuilder( index, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.getDefaultInstance()); } /** * repeated .Mysqlx.Crud.UpdateOperation operation = 7; */ public java.util.List getOperationBuilderList() { return getOperationFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { operationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperationOrBuilder>( operation_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); operation_ = null; } return operationBuilder_; } 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_; /** * optional .Mysqlx.Crud.Limit limit = 5; * @return Whether the limit field is set. */ public boolean hasLimit() { return ((bitField0_ & 0x00000040) != 0); } /** * optional .Mysqlx.Crud.Limit limit = 5; * @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(); } } /** * optional .Mysqlx.Crud.Limit limit = 5; */ 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_ |= 0x00000040; return this; } /** * optional .Mysqlx.Crud.Limit limit = 5; */ 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_ |= 0x00000040; return this; } /** * optional .Mysqlx.Crud.Limit limit = 5; */ public Builder mergeLimit(com.mysql.cj.x.protobuf.MysqlxCrud.Limit value) { if (limitBuilder_ == null) { if (((bitField0_ & 0x00000040) != 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_ |= 0x00000040; return this; } /** * optional .Mysqlx.Crud.Limit limit = 5; */ public Builder clearLimit() { if (limitBuilder_ == null) { limit_ = null; onChanged(); } else { limitBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * optional .Mysqlx.Crud.Limit limit = 5; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Limit.Builder getLimitBuilder() { bitField0_ |= 0x00000040; onChanged(); return getLimitFieldBuilder().getBuilder(); } /** * optional .Mysqlx.Crud.Limit limit = 5; */ 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_; } } /** * optional .Mysqlx.Crud.Limit limit = 5; */ 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 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_; /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 9; * @return Whether the limitExpr field is set. */ public boolean hasLimitExpr() { return ((bitField0_ & 0x00000080) != 0); } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 9; * @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(); } } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 9; */ 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_ |= 0x00000080; return this; } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 9; */ 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_ |= 0x00000080; return this; } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 9; */ public Builder mergeLimitExpr(com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr value) { if (limitExprBuilder_ == null) { if (((bitField0_ & 0x00000080) != 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_ |= 0x00000080; return this; } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 9; */ public Builder clearLimitExpr() { if (limitExprBuilder_ == null) { limitExpr_ = null; onChanged(); } else { limitExprBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 9; */ public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.Builder getLimitExprBuilder() { bitField0_ |= 0x00000080; onChanged(); return getLimitExprFieldBuilder().getBuilder(); } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 9; */ 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_; } } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 9; */ 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.Update) } // @@protoc_insertion_point(class_scope:Mysqlx.Crud.Update) private static final com.mysql.cj.x.protobuf.MysqlxCrud.Update DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.Update(); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Update getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Update parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Update(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.Update getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteOrBuilder extends // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Delete) com.google.protobuf.MessageOrBuilder { /** * required .Mysqlx.Crud.Collection collection = 1; * @return Whether the collection field is set. */ boolean hasCollection(); /** * required .Mysqlx.Crud.Collection collection = 1; * @return The collection. */ com.mysql.cj.x.protobuf.MysqlxCrud.Collection getCollection(); /** * required .Mysqlx.Crud.Collection collection = 1; */ com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder(); /** * optional .Mysqlx.Crud.DataModel data_model = 2; * @return Whether the dataModel field is set. */ boolean hasDataModel(); /** * optional .Mysqlx.Crud.DataModel data_model = 2; * @return The dataModel. */ com.mysql.cj.x.protobuf.MysqlxCrud.DataModel getDataModel(); /** * optional .Mysqlx.Expr.Expr criteria = 3; * @return Whether the criteria field is set. */ boolean hasCriteria(); /** * optional .Mysqlx.Expr.Expr criteria = 3; * @return The criteria. */ com.mysql.cj.x.protobuf.MysqlxExpr.Expr getCriteria(); /** * optional .Mysqlx.Expr.Expr criteria = 3; */ com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getCriteriaOrBuilder(); /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ java.util.List getArgsList(); /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index); /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ int getArgsCount(); /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ java.util.List getArgsOrBuilderList(); /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder( int index); /** * repeated .Mysqlx.Crud.Order order = 5; */ java.util.List getOrderList(); /** * repeated .Mysqlx.Crud.Order order = 5; */ com.mysql.cj.x.protobuf.MysqlxCrud.Order getOrder(int index); /** * repeated .Mysqlx.Crud.Order order = 5; */ int getOrderCount(); /** * repeated .Mysqlx.Crud.Order order = 5; */ java.util.List getOrderOrBuilderList(); /** * repeated .Mysqlx.Crud.Order order = 5; */ com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder getOrderOrBuilder( int index); /** * optional .Mysqlx.Crud.Limit limit = 4; * @return Whether the limit field is set. */ boolean hasLimit(); /** * optional .Mysqlx.Crud.Limit limit = 4; * @return The limit. */ com.mysql.cj.x.protobuf.MysqlxCrud.Limit getLimit(); /** * optional .Mysqlx.Crud.Limit limit = 4; */ com.mysql.cj.x.protobuf.MysqlxCrud.LimitOrBuilder getLimitOrBuilder(); /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 7; * @return Whether the limitExpr field is set. */ boolean hasLimitExpr(); /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 7; * @return The limitExpr. */ com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr getLimitExpr(); /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 7; */ com.mysql.cj.x.protobuf.MysqlxCrud.LimitExprOrBuilder getLimitExprOrBuilder(); } /** *
   * Delete documents/rows from a Collection/Table
   * :param collection: collection to change
   * :param data_model: datamodel that the operations refer to
   * :param criteria: filter expression to match rows that the operations will apply on
   * :param args: values for parameters used in filter expression
   * :param limit: limits the number of rows to match (user can set one of: limit, limit_expr)
   * :param order: specifies order of matched rows
   * :param limit_expr: limits the number of rows to match (user can set one of: limit, limit_expr)
   * :Returns: :protobuf:msg:`Mysqlx.Resultset::`
   * 
* * Protobuf type {@code Mysqlx.Crud.Delete} */ public static final class Delete extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Mysqlx.Crud.Delete) DeleteOrBuilder { private static final long serialVersionUID = 0L; // Use Delete.newBuilder() to construct. private Delete(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Delete() { dataModel_ = 1; args_ = java.util.Collections.emptyList(); order_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Delete(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Delete( 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: { 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 34: { 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 42: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { order_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } order_.add( input.readMessage(com.mysql.cj.x.protobuf.MysqlxCrud.Order.PARSER, extensionRegistry)); break; } case 50: { 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 58: { com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.Builder subBuilder = null; if (((bitField0_ & 0x00000010) != 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_ |= 0x00000010; 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_ & 0x00000010) != 0)) { order_ = java.util.Collections.unmodifiableList(order_); } 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_Delete_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Delete_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.Delete.class, com.mysql.cj.x.protobuf.MysqlxCrud.Delete.Builder.class); } private int bitField0_; public static final int COLLECTION_FIELD_NUMBER = 1; private com.mysql.cj.x.protobuf.MysqlxCrud.Collection collection_; /** * required .Mysqlx.Crud.Collection collection = 1; * @return Whether the collection field is set. */ public boolean hasCollection() { return ((bitField0_ & 0x00000001) != 0); } /** * 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_; } /** * 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_; /** * optional .Mysqlx.Crud.DataModel data_model = 2; * @return Whether the dataModel field is set. */ public boolean hasDataModel() { return ((bitField0_ & 0x00000002) != 0); } /** * 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 CRITERIA_FIELD_NUMBER = 3; private com.mysql.cj.x.protobuf.MysqlxExpr.Expr criteria_; /** * optional .Mysqlx.Expr.Expr criteria = 3; * @return Whether the criteria field is set. */ public boolean hasCriteria() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .Mysqlx.Expr.Expr criteria = 3; * @return The criteria. */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr getCriteria() { return criteria_ == null ? com.mysql.cj.x.protobuf.MysqlxExpr.Expr.getDefaultInstance() : criteria_; } /** * optional .Mysqlx.Expr.Expr criteria = 3; */ 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 ARGS_FIELD_NUMBER = 6; private java.util.List args_; /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public java.util.List getArgsList() { return args_; } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public java.util.List getArgsOrBuilderList() { return args_; } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public int getArgsCount() { return args_.size(); } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index) { return args_.get(index); } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder( int index) { return args_.get(index); } public static final int ORDER_FIELD_NUMBER = 5; private java.util.List order_; /** * repeated .Mysqlx.Crud.Order order = 5; */ public java.util.List getOrderList() { return order_; } /** * repeated .Mysqlx.Crud.Order order = 5; */ public java.util.List getOrderOrBuilderList() { return order_; } /** * repeated .Mysqlx.Crud.Order order = 5; */ public int getOrderCount() { return order_.size(); } /** * repeated .Mysqlx.Crud.Order order = 5; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Order getOrder(int index) { return order_.get(index); } /** * repeated .Mysqlx.Crud.Order order = 5; */ public com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder getOrderOrBuilder( int index) { return order_.get(index); } public static final int LIMIT_FIELD_NUMBER = 4; private com.mysql.cj.x.protobuf.MysqlxCrud.Limit limit_; /** * optional .Mysqlx.Crud.Limit limit = 4; * @return Whether the limit field is set. */ public boolean hasLimit() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .Mysqlx.Crud.Limit limit = 4; * @return The limit. */ public com.mysql.cj.x.protobuf.MysqlxCrud.Limit getLimit() { return limit_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Limit.getDefaultInstance() : limit_; } /** * optional .Mysqlx.Crud.Limit limit = 4; */ 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 LIMIT_EXPR_FIELD_NUMBER = 7; private com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr limitExpr_; /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 7; * @return Whether the limitExpr field is set. */ public boolean hasLimitExpr() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 7; * @return The limitExpr. */ public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr getLimitExpr() { return limitExpr_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.getDefaultInstance() : limitExpr_; } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 7; */ 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; } if (hasCriteria()) { if (!getCriteria().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getArgsCount(); i++) { if (!getArgs(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getOrderCount(); i++) { if (!getOrder(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLimit()) { if (!getLimit().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(1, getCollection()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, dataModel_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getCriteria()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getLimit()); } for (int i = 0; i < order_.size(); i++) { output.writeMessage(5, order_.get(i)); } for (int i = 0; i < args_.size(); i++) { output.writeMessage(6, args_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(7, 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(1, getCollection()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, dataModel_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCriteria()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLimit()); } for (int i = 0; i < order_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, order_.get(i)); } for (int i = 0; i < args_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, args_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, 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.Delete)) { return super.equals(obj); } com.mysql.cj.x.protobuf.MysqlxCrud.Delete other = (com.mysql.cj.x.protobuf.MysqlxCrud.Delete) 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 (hasCriteria() != other.hasCriteria()) return false; if (hasCriteria()) { if (!getCriteria() .equals(other.getCriteria())) return false; } if (!getArgsList() .equals(other.getArgsList())) return false; if (!getOrderList() .equals(other.getOrderList())) return false; if (hasLimit() != other.hasLimit()) return false; if (hasLimit()) { if (!getLimit() .equals(other.getLimit())) 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 (hasCriteria()) { hash = (37 * hash) + CRITERIA_FIELD_NUMBER; hash = (53 * hash) + getCriteria().hashCode(); } if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } if (getOrderCount() > 0) { hash = (37 * hash) + ORDER_FIELD_NUMBER; hash = (53 * hash) + getOrderList().hashCode(); } if (hasLimit()) { hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit().hashCode(); } 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.Delete parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Delete 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.Delete parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Delete 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.Delete parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Delete 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.Delete 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.Delete 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.Delete 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.Delete 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.Delete 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.Delete 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.Delete 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; } /** *
     * Delete documents/rows from a Collection/Table
     * :param collection: collection to change
     * :param data_model: datamodel that the operations refer to
     * :param criteria: filter expression to match rows that the operations will apply on
     * :param args: values for parameters used in filter expression
     * :param limit: limits the number of rows to match (user can set one of: limit, limit_expr)
     * :param order: specifies order of matched rows
     * :param limit_expr: limits the number of rows to match (user can set one of: limit, limit_expr)
     * :Returns: :protobuf:msg:`Mysqlx.Resultset::`
     * 
* * Protobuf type {@code Mysqlx.Crud.Delete} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Delete) com.mysql.cj.x.protobuf.MysqlxCrud.DeleteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Delete_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Delete_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.Delete.class, com.mysql.cj.x.protobuf.MysqlxCrud.Delete.Builder.class); } // Construct using com.mysql.cj.x.protobuf.MysqlxCrud.Delete.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(); getCriteriaFieldBuilder(); getArgsFieldBuilder(); getOrderFieldBuilder(); getLimitFieldBuilder(); 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 (criteriaBuilder_ == null) { criteria_ = null; } else { criteriaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { argsBuilder_.clear(); } if (orderBuilder_ == null) { order_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { orderBuilder_.clear(); } if (limitBuilder_ == null) { limit_ = null; } else { limitBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (limitExprBuilder_ == null) { limitExpr_ = null; } else { limitExprBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Delete_descriptor; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Delete getDefaultInstanceForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.Delete.getDefaultInstance(); } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Delete build() { com.mysql.cj.x.protobuf.MysqlxCrud.Delete result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.Delete buildPartial() { com.mysql.cj.x.protobuf.MysqlxCrud.Delete result = new com.mysql.cj.x.protobuf.MysqlxCrud.Delete(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 (((from_bitField0_ & 0x00000004) != 0)) { if (criteriaBuilder_ == null) { result.criteria_ = criteria_; } else { result.criteria_ = criteriaBuilder_.build(); } to_bitField0_ |= 0x00000004; } 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 (orderBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { order_ = java.util.Collections.unmodifiableList(order_); bitField0_ = (bitField0_ & ~0x00000010); } result.order_ = order_; } else { result.order_ = orderBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { if (limitBuilder_ == null) { result.limit_ = limit_; } else { result.limit_ = limitBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { if (limitExprBuilder_ == null) { result.limitExpr_ = limitExpr_; } else { result.limitExpr_ = limitExprBuilder_.build(); } to_bitField0_ |= 0x00000010; } 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.Delete) { return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.Delete)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.Delete other) { if (other == com.mysql.cj.x.protobuf.MysqlxCrud.Delete.getDefaultInstance()) return this; if (other.hasCollection()) { mergeCollection(other.getCollection()); } if (other.hasDataModel()) { setDataModel(other.getDataModel()); } if (other.hasCriteria()) { mergeCriteria(other.getCriteria()); } 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 (orderBuilder_ == null) { if (!other.order_.isEmpty()) { if (order_.isEmpty()) { order_ = other.order_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureOrderIsMutable(); order_.addAll(other.order_); } onChanged(); } } else { if (!other.order_.isEmpty()) { if (orderBuilder_.isEmpty()) { orderBuilder_.dispose(); orderBuilder_ = null; order_ = other.order_; bitField0_ = (bitField0_ & ~0x00000010); orderBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOrderFieldBuilder() : null; } else { orderBuilder_.addAllMessages(other.order_); } } } if (other.hasLimit()) { mergeLimit(other.getLimit()); } 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; } if (hasCriteria()) { if (!getCriteria().isInitialized()) { return false; } } for (int i = 0; i < getArgsCount(); i++) { if (!getArgs(i).isInitialized()) { return false; } } for (int i = 0; i < getOrderCount(); i++) { if (!getOrder(i).isInitialized()) { return false; } } if (hasLimit()) { if (!getLimit().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.Delete parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mysql.cj.x.protobuf.MysqlxCrud.Delete) 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_; /** * required .Mysqlx.Crud.Collection collection = 1; * @return Whether the collection field is set. */ public boolean hasCollection() { return ((bitField0_ & 0x00000001) != 0); } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * required .Mysqlx.Crud.Collection collection = 1; */ public Builder clearCollection() { if (collectionBuilder_ == null) { collection_ = null; onChanged(); } else { collectionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Mysqlx.Crud.Collection collection = 1; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder getCollectionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCollectionFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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; /** * optional .Mysqlx.Crud.DataModel data_model = 2; * @return Whether the dataModel field is set. */ public boolean hasDataModel() { return ((bitField0_ & 0x00000002) != 0); } /** * 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; } /** * 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; } /** * optional .Mysqlx.Crud.DataModel data_model = 2; * @return This builder for chaining. */ public Builder clearDataModel() { bitField0_ = (bitField0_ & ~0x00000002); dataModel_ = 1; onChanged(); return this; } 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_; /** * optional .Mysqlx.Expr.Expr criteria = 3; * @return Whether the criteria field is set. */ public boolean hasCriteria() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .Mysqlx.Expr.Expr criteria = 3; * @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(); } } /** * optional .Mysqlx.Expr.Expr criteria = 3; */ 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_ |= 0x00000004; return this; } /** * optional .Mysqlx.Expr.Expr criteria = 3; */ 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_ |= 0x00000004; return this; } /** * optional .Mysqlx.Expr.Expr criteria = 3; */ public Builder mergeCriteria(com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) { if (criteriaBuilder_ == null) { if (((bitField0_ & 0x00000004) != 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_ |= 0x00000004; return this; } /** * optional .Mysqlx.Expr.Expr criteria = 3; */ public Builder clearCriteria() { if (criteriaBuilder_ == null) { criteria_ = null; onChanged(); } else { criteriaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .Mysqlx.Expr.Expr criteria = 3; */ public com.mysql.cj.x.protobuf.MysqlxExpr.Expr.Builder getCriteriaBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCriteriaFieldBuilder().getBuilder(); } /** * optional .Mysqlx.Expr.Expr criteria = 3; */ 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_; } } /** * optional .Mysqlx.Expr.Expr criteria = 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> 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 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_; /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public java.util.List getArgsList() { if (argsBuilder_ == null) { return java.util.Collections.unmodifiableList(args_); } else { return argsBuilder_.getMessageList(); } } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public int getArgsCount() { if (argsBuilder_ == null) { return args_.size(); } else { return argsBuilder_.getCount(); } } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar getArgs(int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessage(index); } } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ 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; } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public Builder addAllArgs( java.lang.Iterable values) { if (argsBuilder_ == null) { ensureArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, args_); onChanged(); } else { argsBuilder_.addAllMessages(values); } return this; } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public Builder clearArgs() { if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { argsBuilder_.clear(); } return this; } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public Builder removeArgs(int index) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.remove(index); onChanged(); } else { argsBuilder_.remove(index); } return this; } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder( int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessageOrBuilder(index); } } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public java.util.List getArgsOrBuilderList() { if (argsBuilder_ != null) { return argsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(args_); } } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance()); } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ public com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.mysql.cj.x.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance()); } /** * repeated .Mysqlx.Datatypes.Scalar args = 6; */ 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 java.util.List order_ = java.util.Collections.emptyList(); private void ensureOrderIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { order_ = new java.util.ArrayList(order_); bitField0_ |= 0x00000010; } } 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_; /** * repeated .Mysqlx.Crud.Order order = 5; */ public java.util.List getOrderList() { if (orderBuilder_ == null) { return java.util.Collections.unmodifiableList(order_); } else { return orderBuilder_.getMessageList(); } } /** * repeated .Mysqlx.Crud.Order order = 5; */ public int getOrderCount() { if (orderBuilder_ == null) { return order_.size(); } else { return orderBuilder_.getCount(); } } /** * repeated .Mysqlx.Crud.Order order = 5; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Order getOrder(int index) { if (orderBuilder_ == null) { return order_.get(index); } else { return orderBuilder_.getMessage(index); } } /** * repeated .Mysqlx.Crud.Order order = 5; */ 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; } /** * repeated .Mysqlx.Crud.Order order = 5; */ 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; } /** * repeated .Mysqlx.Crud.Order order = 5; */ 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; } /** * repeated .Mysqlx.Crud.Order order = 5; */ 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; } /** * repeated .Mysqlx.Crud.Order order = 5; */ 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; } /** * repeated .Mysqlx.Crud.Order order = 5; */ 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; } /** * repeated .Mysqlx.Crud.Order order = 5; */ public Builder addAllOrder( java.lang.Iterable values) { if (orderBuilder_ == null) { ensureOrderIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, order_); onChanged(); } else { orderBuilder_.addAllMessages(values); } return this; } /** * repeated .Mysqlx.Crud.Order order = 5; */ public Builder clearOrder() { if (orderBuilder_ == null) { order_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { orderBuilder_.clear(); } return this; } /** * repeated .Mysqlx.Crud.Order order = 5; */ public Builder removeOrder(int index) { if (orderBuilder_ == null) { ensureOrderIsMutable(); order_.remove(index); onChanged(); } else { orderBuilder_.remove(index); } return this; } /** * repeated .Mysqlx.Crud.Order order = 5; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder getOrderBuilder( int index) { return getOrderFieldBuilder().getBuilder(index); } /** * repeated .Mysqlx.Crud.Order order = 5; */ public com.mysql.cj.x.protobuf.MysqlxCrud.OrderOrBuilder getOrderOrBuilder( int index) { if (orderBuilder_ == null) { return order_.get(index); } else { return orderBuilder_.getMessageOrBuilder(index); } } /** * repeated .Mysqlx.Crud.Order order = 5; */ public java.util.List getOrderOrBuilderList() { if (orderBuilder_ != null) { return orderBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(order_); } } /** * repeated .Mysqlx.Crud.Order order = 5; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder addOrderBuilder() { return getOrderFieldBuilder().addBuilder( com.mysql.cj.x.protobuf.MysqlxCrud.Order.getDefaultInstance()); } /** * repeated .Mysqlx.Crud.Order order = 5; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Order.Builder addOrderBuilder( int index) { return getOrderFieldBuilder().addBuilder( index, com.mysql.cj.x.protobuf.MysqlxCrud.Order.getDefaultInstance()); } /** * repeated .Mysqlx.Crud.Order order = 5; */ 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_ & 0x00000010) != 0), getParentForChildren(), isClean()); order_ = null; } return orderBuilder_; } 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_; /** * optional .Mysqlx.Crud.Limit limit = 4; * @return Whether the limit field is set. */ public boolean hasLimit() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .Mysqlx.Crud.Limit limit = 4; * @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(); } } /** * optional .Mysqlx.Crud.Limit limit = 4; */ 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; } /** * optional .Mysqlx.Crud.Limit limit = 4; */ 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; } /** * optional .Mysqlx.Crud.Limit limit = 4; */ 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; } /** * optional .Mysqlx.Crud.Limit limit = 4; */ public Builder clearLimit() { if (limitBuilder_ == null) { limit_ = null; onChanged(); } else { limitBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * optional .Mysqlx.Crud.Limit limit = 4; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Limit.Builder getLimitBuilder() { bitField0_ |= 0x00000020; onChanged(); return getLimitFieldBuilder().getBuilder(); } /** * optional .Mysqlx.Crud.Limit limit = 4; */ 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_; } } /** * optional .Mysqlx.Crud.Limit limit = 4; */ 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 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_; /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 7; * @return Whether the limitExpr field is set. */ public boolean hasLimitExpr() { return ((bitField0_ & 0x00000040) != 0); } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 7; * @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(); } } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 7; */ 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_ |= 0x00000040; return this; } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 7; */ 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_ |= 0x00000040; return this; } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 7; */ public Builder mergeLimitExpr(com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr value) { if (limitExprBuilder_ == null) { if (((bitField0_ & 0x00000040) != 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_ |= 0x00000040; return this; } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 7; */ public Builder clearLimitExpr() { if (limitExprBuilder_ == null) { limitExpr_ = null; onChanged(); } else { limitExprBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.LimitExpr.Builder getLimitExprBuilder() { bitField0_ |= 0x00000040; onChanged(); return getLimitExprFieldBuilder().getBuilder(); } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 7; */ 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_; } } /** * optional .Mysqlx.Crud.LimitExpr limit_expr = 7; */ 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.Delete) } // @@protoc_insertion_point(class_scope:Mysqlx.Crud.Delete) private static final com.mysql.cj.x.protobuf.MysqlxCrud.Delete DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.Delete(); } public static com.mysql.cj.x.protobuf.MysqlxCrud.Delete getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Delete parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Delete(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.Delete getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateViewOrBuilder extends // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.CreateView) com.google.protobuf.MessageOrBuilder { /** * required .Mysqlx.Crud.Collection collection = 1; * @return Whether the collection field is set. */ boolean hasCollection(); /** * required .Mysqlx.Crud.Collection collection = 1; * @return The collection. */ com.mysql.cj.x.protobuf.MysqlxCrud.Collection getCollection(); /** * required .Mysqlx.Crud.Collection collection = 1; */ com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder(); /** * optional string definer = 2; * @return Whether the definer field is set. */ boolean hasDefiner(); /** * optional string definer = 2; * @return The definer. */ java.lang.String getDefiner(); /** * optional string definer = 2; * @return The bytes for definer. */ com.google.protobuf.ByteString getDefinerBytes(); /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3 [default = UNDEFINED]; * @return Whether the algorithm field is set. */ boolean hasAlgorithm(); /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3 [default = UNDEFINED]; * @return The algorithm. */ com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm getAlgorithm(); /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4 [default = DEFINER]; * @return Whether the security field is set. */ boolean hasSecurity(); /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4 [default = DEFINER]; * @return The security. */ com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity getSecurity(); /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @return Whether the check field is set. */ boolean hasCheck(); /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @return The check. */ com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption getCheck(); /** * repeated string column = 6; * @return A list containing the column. */ java.util.List getColumnList(); /** * repeated string column = 6; * @return The count of column. */ int getColumnCount(); /** * repeated string column = 6; * @param index The index of the element to return. * @return The column at the given index. */ java.lang.String getColumn(int index); /** * repeated string column = 6; * @param index The index of the value to return. * @return The bytes of the column at the given index. */ com.google.protobuf.ByteString getColumnBytes(int index); /** * required .Mysqlx.Crud.Find stmt = 7; * @return Whether the stmt field is set. */ boolean hasStmt(); /** * required .Mysqlx.Crud.Find stmt = 7; * @return The stmt. */ com.mysql.cj.x.protobuf.MysqlxCrud.Find getStmt(); /** * required .Mysqlx.Crud.Find stmt = 7; */ com.mysql.cj.x.protobuf.MysqlxCrud.FindOrBuilder getStmtOrBuilder(); /** * optional bool replace_existing = 8 [default = false]; * @return Whether the replaceExisting field is set. */ boolean hasReplaceExisting(); /** * optional bool replace_existing = 8 [default = false]; * @return The replaceExisting. */ boolean getReplaceExisting(); } /** * Protobuf type {@code Mysqlx.Crud.CreateView} */ public static final class CreateView extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Mysqlx.Crud.CreateView) CreateViewOrBuilder { private static final long serialVersionUID = 0L; // Use CreateView.newBuilder() to construct. private CreateView(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateView() { definer_ = ""; algorithm_ = 1; security_ = 2; check_ = 1; column_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateView(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateView( 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 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; definer_ = bs; break; } case 24: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm value = com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; algorithm_ = rawValue; } break; } case 32: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity value = com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { bitField0_ |= 0x00000008; security_ = rawValue; } break; } case 40: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption value = com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(5, rawValue); } else { bitField0_ |= 0x00000010; check_ = rawValue; } break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000020) != 0)) { column_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } column_.add(bs); break; } case 58: { com.mysql.cj.x.protobuf.MysqlxCrud.Find.Builder subBuilder = null; if (((bitField0_ & 0x00000020) != 0)) { subBuilder = stmt_.toBuilder(); } stmt_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxCrud.Find.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stmt_); stmt_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 64: { bitField0_ |= 0x00000040; replaceExisting_ = 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_ & 0x00000020) != 0)) { column_ = column_.getUnmodifiableView(); } 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_CreateView_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_CreateView_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.CreateView.class, com.mysql.cj.x.protobuf.MysqlxCrud.CreateView.Builder.class); } private int bitField0_; public static final int COLLECTION_FIELD_NUMBER = 1; private com.mysql.cj.x.protobuf.MysqlxCrud.Collection collection_; /** * required .Mysqlx.Crud.Collection collection = 1; * @return Whether the collection field is set. */ public boolean hasCollection() { return ((bitField0_ & 0x00000001) != 0); } /** * 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_; } /** * 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 DEFINER_FIELD_NUMBER = 2; private volatile java.lang.Object definer_; /** * optional string definer = 2; * @return Whether the definer field is set. */ public boolean hasDefiner() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string definer = 2; * @return The definer. */ public java.lang.String getDefiner() { java.lang.Object ref = definer_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { definer_ = s; } return s; } } /** * optional string definer = 2; * @return The bytes for definer. */ public com.google.protobuf.ByteString getDefinerBytes() { java.lang.Object ref = definer_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); definer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALGORITHM_FIELD_NUMBER = 3; private int algorithm_; /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3 [default = UNDEFINED]; * @return Whether the algorithm field is set. */ public boolean hasAlgorithm() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3 [default = UNDEFINED]; * @return The algorithm. */ public com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm getAlgorithm() { @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm.valueOf(algorithm_); return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm.UNDEFINED : result; } public static final int SECURITY_FIELD_NUMBER = 4; private int security_; /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4 [default = DEFINER]; * @return Whether the security field is set. */ public boolean hasSecurity() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4 [default = DEFINER]; * @return The security. */ public com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity getSecurity() { @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity.valueOf(security_); return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity.DEFINER : result; } public static final int CHECK_FIELD_NUMBER = 5; private int check_; /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @return Whether the check field is set. */ public boolean hasCheck() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @return The check. */ public com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption getCheck() { @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption.valueOf(check_); return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption.LOCAL : result; } public static final int COLUMN_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList column_; /** * repeated string column = 6; * @return A list containing the column. */ public com.google.protobuf.ProtocolStringList getColumnList() { return column_; } /** * repeated string column = 6; * @return The count of column. */ public int getColumnCount() { return column_.size(); } /** * repeated string column = 6; * @param index The index of the element to return. * @return The column at the given index. */ public java.lang.String getColumn(int index) { return column_.get(index); } /** * repeated string column = 6; * @param index The index of the value to return. * @return The bytes of the column at the given index. */ public com.google.protobuf.ByteString getColumnBytes(int index) { return column_.getByteString(index); } public static final int STMT_FIELD_NUMBER = 7; private com.mysql.cj.x.protobuf.MysqlxCrud.Find stmt_; /** * required .Mysqlx.Crud.Find stmt = 7; * @return Whether the stmt field is set. */ public boolean hasStmt() { return ((bitField0_ & 0x00000020) != 0); } /** * required .Mysqlx.Crud.Find stmt = 7; * @return The stmt. */ public com.mysql.cj.x.protobuf.MysqlxCrud.Find getStmt() { return stmt_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Find.getDefaultInstance() : stmt_; } /** * required .Mysqlx.Crud.Find stmt = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.FindOrBuilder getStmtOrBuilder() { return stmt_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Find.getDefaultInstance() : stmt_; } public static final int REPLACE_EXISTING_FIELD_NUMBER = 8; private boolean replaceExisting_; /** * optional bool replace_existing = 8 [default = false]; * @return Whether the replaceExisting field is set. */ public boolean hasReplaceExisting() { return ((bitField0_ & 0x00000040) != 0); } /** * optional bool replace_existing = 8 [default = false]; * @return The replaceExisting. */ public boolean getReplaceExisting() { return replaceExisting_; } 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 (!hasStmt()) { memoizedIsInitialized = 0; return false; } if (!getCollection().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getStmt().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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, definer_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(3, algorithm_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(4, security_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(5, check_); } for (int i = 0; i < column_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, column_.getRaw(i)); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(7, getStmt()); } if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(8, replaceExisting_); } 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.GeneratedMessageV3.computeStringSize(2, definer_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, algorithm_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, security_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, check_); } { int dataSize = 0; for (int i = 0; i < column_.size(); i++) { dataSize += computeStringSizeNoTag(column_.getRaw(i)); } size += dataSize; size += 1 * getColumnList().size(); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getStmt()); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, replaceExisting_); } 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.CreateView)) { return super.equals(obj); } com.mysql.cj.x.protobuf.MysqlxCrud.CreateView other = (com.mysql.cj.x.protobuf.MysqlxCrud.CreateView) obj; if (hasCollection() != other.hasCollection()) return false; if (hasCollection()) { if (!getCollection() .equals(other.getCollection())) return false; } if (hasDefiner() != other.hasDefiner()) return false; if (hasDefiner()) { if (!getDefiner() .equals(other.getDefiner())) return false; } if (hasAlgorithm() != other.hasAlgorithm()) return false; if (hasAlgorithm()) { if (algorithm_ != other.algorithm_) return false; } if (hasSecurity() != other.hasSecurity()) return false; if (hasSecurity()) { if (security_ != other.security_) return false; } if (hasCheck() != other.hasCheck()) return false; if (hasCheck()) { if (check_ != other.check_) return false; } if (!getColumnList() .equals(other.getColumnList())) return false; if (hasStmt() != other.hasStmt()) return false; if (hasStmt()) { if (!getStmt() .equals(other.getStmt())) return false; } if (hasReplaceExisting() != other.hasReplaceExisting()) return false; if (hasReplaceExisting()) { if (getReplaceExisting() != other.getReplaceExisting()) 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 (hasDefiner()) { hash = (37 * hash) + DEFINER_FIELD_NUMBER; hash = (53 * hash) + getDefiner().hashCode(); } if (hasAlgorithm()) { hash = (37 * hash) + ALGORITHM_FIELD_NUMBER; hash = (53 * hash) + algorithm_; } if (hasSecurity()) { hash = (37 * hash) + SECURITY_FIELD_NUMBER; hash = (53 * hash) + security_; } if (hasCheck()) { hash = (37 * hash) + CHECK_FIELD_NUMBER; hash = (53 * hash) + check_; } if (getColumnCount() > 0) { hash = (37 * hash) + COLUMN_FIELD_NUMBER; hash = (53 * hash) + getColumnList().hashCode(); } if (hasStmt()) { hash = (37 * hash) + STMT_FIELD_NUMBER; hash = (53 * hash) + getStmt().hashCode(); } if (hasReplaceExisting()) { hash = (37 * hash) + REPLACE_EXISTING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReplaceExisting()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.mysql.cj.x.protobuf.MysqlxCrud.CreateView parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.CreateView 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.CreateView parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.CreateView 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.CreateView parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.CreateView 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.CreateView 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.CreateView 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.CreateView 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.CreateView 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.CreateView 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.CreateView 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.CreateView prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Mysqlx.Crud.CreateView} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.CreateView) com.mysql.cj.x.protobuf.MysqlxCrud.CreateViewOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_CreateView_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_CreateView_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.CreateView.class, com.mysql.cj.x.protobuf.MysqlxCrud.CreateView.Builder.class); } // Construct using com.mysql.cj.x.protobuf.MysqlxCrud.CreateView.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(); getStmtFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (collectionBuilder_ == null) { collection_ = null; } else { collectionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); definer_ = ""; bitField0_ = (bitField0_ & ~0x00000002); algorithm_ = 1; bitField0_ = (bitField0_ & ~0x00000004); security_ = 2; bitField0_ = (bitField0_ & ~0x00000008); check_ = 1; bitField0_ = (bitField0_ & ~0x00000010); column_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); if (stmtBuilder_ == null) { stmt_ = null; } else { stmtBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); replaceExisting_ = false; bitField0_ = (bitField0_ & ~0x00000080); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_CreateView_descriptor; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.CreateView getDefaultInstanceForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.CreateView.getDefaultInstance(); } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.CreateView build() { com.mysql.cj.x.protobuf.MysqlxCrud.CreateView result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.CreateView buildPartial() { com.mysql.cj.x.protobuf.MysqlxCrud.CreateView result = new com.mysql.cj.x.protobuf.MysqlxCrud.CreateView(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.definer_ = definer_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.algorithm_ = algorithm_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.security_ = security_; if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000010; } result.check_ = check_; if (((bitField0_ & 0x00000020) != 0)) { column_ = column_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000020); } result.column_ = column_; if (((from_bitField0_ & 0x00000040) != 0)) { if (stmtBuilder_ == null) { result.stmt_ = stmt_; } else { result.stmt_ = stmtBuilder_.build(); } to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { result.replaceExisting_ = replaceExisting_; to_bitField0_ |= 0x00000040; } 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.CreateView) { return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.CreateView)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.CreateView other) { if (other == com.mysql.cj.x.protobuf.MysqlxCrud.CreateView.getDefaultInstance()) return this; if (other.hasCollection()) { mergeCollection(other.getCollection()); } if (other.hasDefiner()) { bitField0_ |= 0x00000002; definer_ = other.definer_; onChanged(); } if (other.hasAlgorithm()) { setAlgorithm(other.getAlgorithm()); } if (other.hasSecurity()) { setSecurity(other.getSecurity()); } if (other.hasCheck()) { setCheck(other.getCheck()); } if (!other.column_.isEmpty()) { if (column_.isEmpty()) { column_ = other.column_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureColumnIsMutable(); column_.addAll(other.column_); } onChanged(); } if (other.hasStmt()) { mergeStmt(other.getStmt()); } if (other.hasReplaceExisting()) { setReplaceExisting(other.getReplaceExisting()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasCollection()) { return false; } if (!hasStmt()) { return false; } if (!getCollection().isInitialized()) { return false; } if (!getStmt().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.CreateView parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mysql.cj.x.protobuf.MysqlxCrud.CreateView) 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_; /** * required .Mysqlx.Crud.Collection collection = 1; * @return Whether the collection field is set. */ public boolean hasCollection() { return ((bitField0_ & 0x00000001) != 0); } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * required .Mysqlx.Crud.Collection collection = 1; */ public Builder clearCollection() { if (collectionBuilder_ == null) { collection_ = null; onChanged(); } else { collectionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Mysqlx.Crud.Collection collection = 1; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder getCollectionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCollectionFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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 java.lang.Object definer_ = ""; /** * optional string definer = 2; * @return Whether the definer field is set. */ public boolean hasDefiner() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string definer = 2; * @return The definer. */ public java.lang.String getDefiner() { java.lang.Object ref = definer_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { definer_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string definer = 2; * @return The bytes for definer. */ public com.google.protobuf.ByteString getDefinerBytes() { java.lang.Object ref = definer_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); definer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string definer = 2; * @param value The definer to set. * @return This builder for chaining. */ public Builder setDefiner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; definer_ = value; onChanged(); return this; } /** * optional string definer = 2; * @return This builder for chaining. */ public Builder clearDefiner() { bitField0_ = (bitField0_ & ~0x00000002); definer_ = getDefaultInstance().getDefiner(); onChanged(); return this; } /** * optional string definer = 2; * @param value The bytes for definer to set. * @return This builder for chaining. */ public Builder setDefinerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; definer_ = value; onChanged(); return this; } private int algorithm_ = 1; /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3 [default = UNDEFINED]; * @return Whether the algorithm field is set. */ public boolean hasAlgorithm() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3 [default = UNDEFINED]; * @return The algorithm. */ public com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm getAlgorithm() { @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm.valueOf(algorithm_); return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm.UNDEFINED : result; } /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3 [default = UNDEFINED]; * @param value The algorithm to set. * @return This builder for chaining. */ public Builder setAlgorithm(com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; algorithm_ = value.getNumber(); onChanged(); return this; } /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3 [default = UNDEFINED]; * @return This builder for chaining. */ public Builder clearAlgorithm() { bitField0_ = (bitField0_ & ~0x00000004); algorithm_ = 1; onChanged(); return this; } private int security_ = 2; /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4 [default = DEFINER]; * @return Whether the security field is set. */ public boolean hasSecurity() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4 [default = DEFINER]; * @return The security. */ public com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity getSecurity() { @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity.valueOf(security_); return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity.DEFINER : result; } /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4 [default = DEFINER]; * @param value The security to set. * @return This builder for chaining. */ public Builder setSecurity(com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; security_ = value.getNumber(); onChanged(); return this; } /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4 [default = DEFINER]; * @return This builder for chaining. */ public Builder clearSecurity() { bitField0_ = (bitField0_ & ~0x00000008); security_ = 2; onChanged(); return this; } private int check_ = 1; /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @return Whether the check field is set. */ public boolean hasCheck() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @return The check. */ public com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption getCheck() { @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption.valueOf(check_); return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption.LOCAL : result; } /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @param value The check to set. * @return This builder for chaining. */ public Builder setCheck(com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; check_ = value.getNumber(); onChanged(); return this; } /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @return This builder for chaining. */ public Builder clearCheck() { bitField0_ = (bitField0_ & ~0x00000010); check_ = 1; onChanged(); return this; } private com.google.protobuf.LazyStringList column_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureColumnIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { column_ = new com.google.protobuf.LazyStringArrayList(column_); bitField0_ |= 0x00000020; } } /** * repeated string column = 6; * @return A list containing the column. */ public com.google.protobuf.ProtocolStringList getColumnList() { return column_.getUnmodifiableView(); } /** * repeated string column = 6; * @return The count of column. */ public int getColumnCount() { return column_.size(); } /** * repeated string column = 6; * @param index The index of the element to return. * @return The column at the given index. */ public java.lang.String getColumn(int index) { return column_.get(index); } /** * repeated string column = 6; * @param index The index of the value to return. * @return The bytes of the column at the given index. */ public com.google.protobuf.ByteString getColumnBytes(int index) { return column_.getByteString(index); } /** * repeated string column = 6; * @param index The index to set the value at. * @param value The column to set. * @return This builder for chaining. */ public Builder setColumn( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureColumnIsMutable(); column_.set(index, value); onChanged(); return this; } /** * repeated string column = 6; * @param value The column to add. * @return This builder for chaining. */ public Builder addColumn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureColumnIsMutable(); column_.add(value); onChanged(); return this; } /** * repeated string column = 6; * @param values The column to add. * @return This builder for chaining. */ public Builder addAllColumn( java.lang.Iterable values) { ensureColumnIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, column_); onChanged(); return this; } /** * repeated string column = 6; * @return This builder for chaining. */ public Builder clearColumn() { column_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * repeated string column = 6; * @param value The bytes of the column to add. * @return This builder for chaining. */ public Builder addColumnBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureColumnIsMutable(); column_.add(value); onChanged(); return this; } private com.mysql.cj.x.protobuf.MysqlxCrud.Find stmt_; private com.google.protobuf.SingleFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxCrud.Find, com.mysql.cj.x.protobuf.MysqlxCrud.Find.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.FindOrBuilder> stmtBuilder_; /** * required .Mysqlx.Crud.Find stmt = 7; * @return Whether the stmt field is set. */ public boolean hasStmt() { return ((bitField0_ & 0x00000040) != 0); } /** * required .Mysqlx.Crud.Find stmt = 7; * @return The stmt. */ public com.mysql.cj.x.protobuf.MysqlxCrud.Find getStmt() { if (stmtBuilder_ == null) { return stmt_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Find.getDefaultInstance() : stmt_; } else { return stmtBuilder_.getMessage(); } } /** * required .Mysqlx.Crud.Find stmt = 7; */ public Builder setStmt(com.mysql.cj.x.protobuf.MysqlxCrud.Find value) { if (stmtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stmt_ = value; onChanged(); } else { stmtBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * required .Mysqlx.Crud.Find stmt = 7; */ public Builder setStmt( com.mysql.cj.x.protobuf.MysqlxCrud.Find.Builder builderForValue) { if (stmtBuilder_ == null) { stmt_ = builderForValue.build(); onChanged(); } else { stmtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * required .Mysqlx.Crud.Find stmt = 7; */ public Builder mergeStmt(com.mysql.cj.x.protobuf.MysqlxCrud.Find value) { if (stmtBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && stmt_ != null && stmt_ != com.mysql.cj.x.protobuf.MysqlxCrud.Find.getDefaultInstance()) { stmt_ = com.mysql.cj.x.protobuf.MysqlxCrud.Find.newBuilder(stmt_).mergeFrom(value).buildPartial(); } else { stmt_ = value; } onChanged(); } else { stmtBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * required .Mysqlx.Crud.Find stmt = 7; */ public Builder clearStmt() { if (stmtBuilder_ == null) { stmt_ = null; onChanged(); } else { stmtBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * required .Mysqlx.Crud.Find stmt = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Find.Builder getStmtBuilder() { bitField0_ |= 0x00000040; onChanged(); return getStmtFieldBuilder().getBuilder(); } /** * required .Mysqlx.Crud.Find stmt = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.FindOrBuilder getStmtOrBuilder() { if (stmtBuilder_ != null) { return stmtBuilder_.getMessageOrBuilder(); } else { return stmt_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Find.getDefaultInstance() : stmt_; } } /** * required .Mysqlx.Crud.Find stmt = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxCrud.Find, com.mysql.cj.x.protobuf.MysqlxCrud.Find.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.FindOrBuilder> getStmtFieldBuilder() { if (stmtBuilder_ == null) { stmtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxCrud.Find, com.mysql.cj.x.protobuf.MysqlxCrud.Find.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.FindOrBuilder>( getStmt(), getParentForChildren(), isClean()); stmt_ = null; } return stmtBuilder_; } private boolean replaceExisting_ ; /** * optional bool replace_existing = 8 [default = false]; * @return Whether the replaceExisting field is set. */ public boolean hasReplaceExisting() { return ((bitField0_ & 0x00000080) != 0); } /** * optional bool replace_existing = 8 [default = false]; * @return The replaceExisting. */ public boolean getReplaceExisting() { return replaceExisting_; } /** * optional bool replace_existing = 8 [default = false]; * @param value The replaceExisting to set. * @return This builder for chaining. */ public Builder setReplaceExisting(boolean value) { bitField0_ |= 0x00000080; replaceExisting_ = value; onChanged(); return this; } /** * optional bool replace_existing = 8 [default = false]; * @return This builder for chaining. */ public Builder clearReplaceExisting() { bitField0_ = (bitField0_ & ~0x00000080); replaceExisting_ = 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.CreateView) } // @@protoc_insertion_point(class_scope:Mysqlx.Crud.CreateView) private static final com.mysql.cj.x.protobuf.MysqlxCrud.CreateView DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.CreateView(); } public static com.mysql.cj.x.protobuf.MysqlxCrud.CreateView getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateView parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateView(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.CreateView getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ModifyViewOrBuilder extends // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.ModifyView) com.google.protobuf.MessageOrBuilder { /** * required .Mysqlx.Crud.Collection collection = 1; * @return Whether the collection field is set. */ boolean hasCollection(); /** * required .Mysqlx.Crud.Collection collection = 1; * @return The collection. */ com.mysql.cj.x.protobuf.MysqlxCrud.Collection getCollection(); /** * required .Mysqlx.Crud.Collection collection = 1; */ com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder(); /** * optional string definer = 2; * @return Whether the definer field is set. */ boolean hasDefiner(); /** * optional string definer = 2; * @return The definer. */ java.lang.String getDefiner(); /** * optional string definer = 2; * @return The bytes for definer. */ com.google.protobuf.ByteString getDefinerBytes(); /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3; * @return Whether the algorithm field is set. */ boolean hasAlgorithm(); /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3; * @return The algorithm. */ com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm getAlgorithm(); /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4; * @return Whether the security field is set. */ boolean hasSecurity(); /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4; * @return The security. */ com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity getSecurity(); /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @return Whether the check field is set. */ boolean hasCheck(); /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @return The check. */ com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption getCheck(); /** * repeated string column = 6; * @return A list containing the column. */ java.util.List getColumnList(); /** * repeated string column = 6; * @return The count of column. */ int getColumnCount(); /** * repeated string column = 6; * @param index The index of the element to return. * @return The column at the given index. */ java.lang.String getColumn(int index); /** * repeated string column = 6; * @param index The index of the value to return. * @return The bytes of the column at the given index. */ com.google.protobuf.ByteString getColumnBytes(int index); /** * optional .Mysqlx.Crud.Find stmt = 7; * @return Whether the stmt field is set. */ boolean hasStmt(); /** * optional .Mysqlx.Crud.Find stmt = 7; * @return The stmt. */ com.mysql.cj.x.protobuf.MysqlxCrud.Find getStmt(); /** * optional .Mysqlx.Crud.Find stmt = 7; */ com.mysql.cj.x.protobuf.MysqlxCrud.FindOrBuilder getStmtOrBuilder(); } /** * Protobuf type {@code Mysqlx.Crud.ModifyView} */ public static final class ModifyView extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Mysqlx.Crud.ModifyView) ModifyViewOrBuilder { private static final long serialVersionUID = 0L; // Use ModifyView.newBuilder() to construct. private ModifyView(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ModifyView() { definer_ = ""; algorithm_ = 1; security_ = 1; check_ = 1; column_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ModifyView(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ModifyView( 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 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; definer_ = bs; break; } case 24: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm value = com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; algorithm_ = rawValue; } break; } case 32: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity value = com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { bitField0_ |= 0x00000008; security_ = rawValue; } break; } case 40: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption value = com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(5, rawValue); } else { bitField0_ |= 0x00000010; check_ = rawValue; } break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000020) != 0)) { column_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } column_.add(bs); break; } case 58: { com.mysql.cj.x.protobuf.MysqlxCrud.Find.Builder subBuilder = null; if (((bitField0_ & 0x00000020) != 0)) { subBuilder = stmt_.toBuilder(); } stmt_ = input.readMessage(com.mysql.cj.x.protobuf.MysqlxCrud.Find.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stmt_); stmt_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; 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_ & 0x00000020) != 0)) { column_ = column_.getUnmodifiableView(); } 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_ModifyView_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_ModifyView_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView.class, com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView.Builder.class); } private int bitField0_; public static final int COLLECTION_FIELD_NUMBER = 1; private com.mysql.cj.x.protobuf.MysqlxCrud.Collection collection_; /** * required .Mysqlx.Crud.Collection collection = 1; * @return Whether the collection field is set. */ public boolean hasCollection() { return ((bitField0_ & 0x00000001) != 0); } /** * 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_; } /** * 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 DEFINER_FIELD_NUMBER = 2; private volatile java.lang.Object definer_; /** * optional string definer = 2; * @return Whether the definer field is set. */ public boolean hasDefiner() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string definer = 2; * @return The definer. */ public java.lang.String getDefiner() { java.lang.Object ref = definer_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { definer_ = s; } return s; } } /** * optional string definer = 2; * @return The bytes for definer. */ public com.google.protobuf.ByteString getDefinerBytes() { java.lang.Object ref = definer_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); definer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALGORITHM_FIELD_NUMBER = 3; private int algorithm_; /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3; * @return Whether the algorithm field is set. */ public boolean hasAlgorithm() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3; * @return The algorithm. */ public com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm getAlgorithm() { @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm.valueOf(algorithm_); return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm.UNDEFINED : result; } public static final int SECURITY_FIELD_NUMBER = 4; private int security_; /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4; * @return Whether the security field is set. */ public boolean hasSecurity() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4; * @return The security. */ public com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity getSecurity() { @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity.valueOf(security_); return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity.INVOKER : result; } public static final int CHECK_FIELD_NUMBER = 5; private int check_; /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @return Whether the check field is set. */ public boolean hasCheck() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @return The check. */ public com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption getCheck() { @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption.valueOf(check_); return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption.LOCAL : result; } public static final int COLUMN_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList column_; /** * repeated string column = 6; * @return A list containing the column. */ public com.google.protobuf.ProtocolStringList getColumnList() { return column_; } /** * repeated string column = 6; * @return The count of column. */ public int getColumnCount() { return column_.size(); } /** * repeated string column = 6; * @param index The index of the element to return. * @return The column at the given index. */ public java.lang.String getColumn(int index) { return column_.get(index); } /** * repeated string column = 6; * @param index The index of the value to return. * @return The bytes of the column at the given index. */ public com.google.protobuf.ByteString getColumnBytes(int index) { return column_.getByteString(index); } public static final int STMT_FIELD_NUMBER = 7; private com.mysql.cj.x.protobuf.MysqlxCrud.Find stmt_; /** * optional .Mysqlx.Crud.Find stmt = 7; * @return Whether the stmt field is set. */ public boolean hasStmt() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .Mysqlx.Crud.Find stmt = 7; * @return The stmt. */ public com.mysql.cj.x.protobuf.MysqlxCrud.Find getStmt() { return stmt_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Find.getDefaultInstance() : stmt_; } /** * optional .Mysqlx.Crud.Find stmt = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.FindOrBuilder getStmtOrBuilder() { return stmt_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Find.getDefaultInstance() : stmt_; } 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; } if (hasStmt()) { if (!getStmt().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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, definer_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(3, algorithm_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(4, security_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(5, check_); } for (int i = 0; i < column_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, column_.getRaw(i)); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(7, getStmt()); } 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.GeneratedMessageV3.computeStringSize(2, definer_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, algorithm_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, security_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, check_); } { int dataSize = 0; for (int i = 0; i < column_.size(); i++) { dataSize += computeStringSizeNoTag(column_.getRaw(i)); } size += dataSize; size += 1 * getColumnList().size(); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getStmt()); } 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.ModifyView)) { return super.equals(obj); } com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView other = (com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView) obj; if (hasCollection() != other.hasCollection()) return false; if (hasCollection()) { if (!getCollection() .equals(other.getCollection())) return false; } if (hasDefiner() != other.hasDefiner()) return false; if (hasDefiner()) { if (!getDefiner() .equals(other.getDefiner())) return false; } if (hasAlgorithm() != other.hasAlgorithm()) return false; if (hasAlgorithm()) { if (algorithm_ != other.algorithm_) return false; } if (hasSecurity() != other.hasSecurity()) return false; if (hasSecurity()) { if (security_ != other.security_) return false; } if (hasCheck() != other.hasCheck()) return false; if (hasCheck()) { if (check_ != other.check_) return false; } if (!getColumnList() .equals(other.getColumnList())) return false; if (hasStmt() != other.hasStmt()) return false; if (hasStmt()) { if (!getStmt() .equals(other.getStmt())) 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 (hasDefiner()) { hash = (37 * hash) + DEFINER_FIELD_NUMBER; hash = (53 * hash) + getDefiner().hashCode(); } if (hasAlgorithm()) { hash = (37 * hash) + ALGORITHM_FIELD_NUMBER; hash = (53 * hash) + algorithm_; } if (hasSecurity()) { hash = (37 * hash) + SECURITY_FIELD_NUMBER; hash = (53 * hash) + security_; } if (hasCheck()) { hash = (37 * hash) + CHECK_FIELD_NUMBER; hash = (53 * hash) + check_; } if (getColumnCount() > 0) { hash = (37 * hash) + COLUMN_FIELD_NUMBER; hash = (53 * hash) + getColumnList().hashCode(); } if (hasStmt()) { hash = (37 * hash) + STMT_FIELD_NUMBER; hash = (53 * hash) + getStmt().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView 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.ModifyView parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView 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.ModifyView parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView 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.ModifyView 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.ModifyView 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.ModifyView 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.ModifyView 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.ModifyView 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.ModifyView 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.ModifyView prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Mysqlx.Crud.ModifyView} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.ModifyView) com.mysql.cj.x.protobuf.MysqlxCrud.ModifyViewOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_ModifyView_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_ModifyView_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView.class, com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView.Builder.class); } // Construct using com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView.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(); getStmtFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (collectionBuilder_ == null) { collection_ = null; } else { collectionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); definer_ = ""; bitField0_ = (bitField0_ & ~0x00000002); algorithm_ = 1; bitField0_ = (bitField0_ & ~0x00000004); security_ = 1; bitField0_ = (bitField0_ & ~0x00000008); check_ = 1; bitField0_ = (bitField0_ & ~0x00000010); column_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); if (stmtBuilder_ == null) { stmt_ = null; } else { stmtBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_ModifyView_descriptor; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView getDefaultInstanceForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView.getDefaultInstance(); } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView build() { com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView buildPartial() { com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView result = new com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView(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.definer_ = definer_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.algorithm_ = algorithm_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.security_ = security_; if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000010; } result.check_ = check_; if (((bitField0_ & 0x00000020) != 0)) { column_ = column_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000020); } result.column_ = column_; if (((from_bitField0_ & 0x00000040) != 0)) { if (stmtBuilder_ == null) { result.stmt_ = stmt_; } else { result.stmt_ = stmtBuilder_.build(); } to_bitField0_ |= 0x00000020; } 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.ModifyView) { return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView other) { if (other == com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView.getDefaultInstance()) return this; if (other.hasCollection()) { mergeCollection(other.getCollection()); } if (other.hasDefiner()) { bitField0_ |= 0x00000002; definer_ = other.definer_; onChanged(); } if (other.hasAlgorithm()) { setAlgorithm(other.getAlgorithm()); } if (other.hasSecurity()) { setSecurity(other.getSecurity()); } if (other.hasCheck()) { setCheck(other.getCheck()); } if (!other.column_.isEmpty()) { if (column_.isEmpty()) { column_ = other.column_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureColumnIsMutable(); column_.addAll(other.column_); } onChanged(); } if (other.hasStmt()) { mergeStmt(other.getStmt()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasCollection()) { return false; } if (!getCollection().isInitialized()) { return false; } if (hasStmt()) { if (!getStmt().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.ModifyView parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView) 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_; /** * required .Mysqlx.Crud.Collection collection = 1; * @return Whether the collection field is set. */ public boolean hasCollection() { return ((bitField0_ & 0x00000001) != 0); } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * required .Mysqlx.Crud.Collection collection = 1; */ public Builder clearCollection() { if (collectionBuilder_ == null) { collection_ = null; onChanged(); } else { collectionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Mysqlx.Crud.Collection collection = 1; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder getCollectionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCollectionFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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 java.lang.Object definer_ = ""; /** * optional string definer = 2; * @return Whether the definer field is set. */ public boolean hasDefiner() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string definer = 2; * @return The definer. */ public java.lang.String getDefiner() { java.lang.Object ref = definer_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { definer_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string definer = 2; * @return The bytes for definer. */ public com.google.protobuf.ByteString getDefinerBytes() { java.lang.Object ref = definer_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); definer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string definer = 2; * @param value The definer to set. * @return This builder for chaining. */ public Builder setDefiner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; definer_ = value; onChanged(); return this; } /** * optional string definer = 2; * @return This builder for chaining. */ public Builder clearDefiner() { bitField0_ = (bitField0_ & ~0x00000002); definer_ = getDefaultInstance().getDefiner(); onChanged(); return this; } /** * optional string definer = 2; * @param value The bytes for definer to set. * @return This builder for chaining. */ public Builder setDefinerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; definer_ = value; onChanged(); return this; } private int algorithm_ = 1; /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3; * @return Whether the algorithm field is set. */ public boolean hasAlgorithm() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3; * @return The algorithm. */ public com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm getAlgorithm() { @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm.valueOf(algorithm_); return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm.UNDEFINED : result; } /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3; * @param value The algorithm to set. * @return This builder for chaining. */ public Builder setAlgorithm(com.mysql.cj.x.protobuf.MysqlxCrud.ViewAlgorithm value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; algorithm_ = value.getNumber(); onChanged(); return this; } /** * optional .Mysqlx.Crud.ViewAlgorithm algorithm = 3; * @return This builder for chaining. */ public Builder clearAlgorithm() { bitField0_ = (bitField0_ & ~0x00000004); algorithm_ = 1; onChanged(); return this; } private int security_ = 1; /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4; * @return Whether the security field is set. */ public boolean hasSecurity() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4; * @return The security. */ public com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity getSecurity() { @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity.valueOf(security_); return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity.INVOKER : result; } /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4; * @param value The security to set. * @return This builder for chaining. */ public Builder setSecurity(com.mysql.cj.x.protobuf.MysqlxCrud.ViewSqlSecurity value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; security_ = value.getNumber(); onChanged(); return this; } /** * optional .Mysqlx.Crud.ViewSqlSecurity security = 4; * @return This builder for chaining. */ public Builder clearSecurity() { bitField0_ = (bitField0_ & ~0x00000008); security_ = 1; onChanged(); return this; } private int check_ = 1; /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @return Whether the check field is set. */ public boolean hasCheck() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @return The check. */ public com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption getCheck() { @SuppressWarnings("deprecation") com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption result = com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption.valueOf(check_); return result == null ? com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption.LOCAL : result; } /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @param value The check to set. * @return This builder for chaining. */ public Builder setCheck(com.mysql.cj.x.protobuf.MysqlxCrud.ViewCheckOption value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; check_ = value.getNumber(); onChanged(); return this; } /** * optional .Mysqlx.Crud.ViewCheckOption check = 5; * @return This builder for chaining. */ public Builder clearCheck() { bitField0_ = (bitField0_ & ~0x00000010); check_ = 1; onChanged(); return this; } private com.google.protobuf.LazyStringList column_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureColumnIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { column_ = new com.google.protobuf.LazyStringArrayList(column_); bitField0_ |= 0x00000020; } } /** * repeated string column = 6; * @return A list containing the column. */ public com.google.protobuf.ProtocolStringList getColumnList() { return column_.getUnmodifiableView(); } /** * repeated string column = 6; * @return The count of column. */ public int getColumnCount() { return column_.size(); } /** * repeated string column = 6; * @param index The index of the element to return. * @return The column at the given index. */ public java.lang.String getColumn(int index) { return column_.get(index); } /** * repeated string column = 6; * @param index The index of the value to return. * @return The bytes of the column at the given index. */ public com.google.protobuf.ByteString getColumnBytes(int index) { return column_.getByteString(index); } /** * repeated string column = 6; * @param index The index to set the value at. * @param value The column to set. * @return This builder for chaining. */ public Builder setColumn( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureColumnIsMutable(); column_.set(index, value); onChanged(); return this; } /** * repeated string column = 6; * @param value The column to add. * @return This builder for chaining. */ public Builder addColumn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureColumnIsMutable(); column_.add(value); onChanged(); return this; } /** * repeated string column = 6; * @param values The column to add. * @return This builder for chaining. */ public Builder addAllColumn( java.lang.Iterable values) { ensureColumnIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, column_); onChanged(); return this; } /** * repeated string column = 6; * @return This builder for chaining. */ public Builder clearColumn() { column_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * repeated string column = 6; * @param value The bytes of the column to add. * @return This builder for chaining. */ public Builder addColumnBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureColumnIsMutable(); column_.add(value); onChanged(); return this; } private com.mysql.cj.x.protobuf.MysqlxCrud.Find stmt_; private com.google.protobuf.SingleFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxCrud.Find, com.mysql.cj.x.protobuf.MysqlxCrud.Find.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.FindOrBuilder> stmtBuilder_; /** * optional .Mysqlx.Crud.Find stmt = 7; * @return Whether the stmt field is set. */ public boolean hasStmt() { return ((bitField0_ & 0x00000040) != 0); } /** * optional .Mysqlx.Crud.Find stmt = 7; * @return The stmt. */ public com.mysql.cj.x.protobuf.MysqlxCrud.Find getStmt() { if (stmtBuilder_ == null) { return stmt_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Find.getDefaultInstance() : stmt_; } else { return stmtBuilder_.getMessage(); } } /** * optional .Mysqlx.Crud.Find stmt = 7; */ public Builder setStmt(com.mysql.cj.x.protobuf.MysqlxCrud.Find value) { if (stmtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stmt_ = value; onChanged(); } else { stmtBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * optional .Mysqlx.Crud.Find stmt = 7; */ public Builder setStmt( com.mysql.cj.x.protobuf.MysqlxCrud.Find.Builder builderForValue) { if (stmtBuilder_ == null) { stmt_ = builderForValue.build(); onChanged(); } else { stmtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * optional .Mysqlx.Crud.Find stmt = 7; */ public Builder mergeStmt(com.mysql.cj.x.protobuf.MysqlxCrud.Find value) { if (stmtBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && stmt_ != null && stmt_ != com.mysql.cj.x.protobuf.MysqlxCrud.Find.getDefaultInstance()) { stmt_ = com.mysql.cj.x.protobuf.MysqlxCrud.Find.newBuilder(stmt_).mergeFrom(value).buildPartial(); } else { stmt_ = value; } onChanged(); } else { stmtBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * optional .Mysqlx.Crud.Find stmt = 7; */ public Builder clearStmt() { if (stmtBuilder_ == null) { stmt_ = null; onChanged(); } else { stmtBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * optional .Mysqlx.Crud.Find stmt = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Find.Builder getStmtBuilder() { bitField0_ |= 0x00000040; onChanged(); return getStmtFieldBuilder().getBuilder(); } /** * optional .Mysqlx.Crud.Find stmt = 7; */ public com.mysql.cj.x.protobuf.MysqlxCrud.FindOrBuilder getStmtOrBuilder() { if (stmtBuilder_ != null) { return stmtBuilder_.getMessageOrBuilder(); } else { return stmt_ == null ? com.mysql.cj.x.protobuf.MysqlxCrud.Find.getDefaultInstance() : stmt_; } } /** * optional .Mysqlx.Crud.Find stmt = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxCrud.Find, com.mysql.cj.x.protobuf.MysqlxCrud.Find.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.FindOrBuilder> getStmtFieldBuilder() { if (stmtBuilder_ == null) { stmtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.mysql.cj.x.protobuf.MysqlxCrud.Find, com.mysql.cj.x.protobuf.MysqlxCrud.Find.Builder, com.mysql.cj.x.protobuf.MysqlxCrud.FindOrBuilder>( getStmt(), getParentForChildren(), isClean()); stmt_ = null; } return stmtBuilder_; } @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.ModifyView) } // @@protoc_insertion_point(class_scope:Mysqlx.Crud.ModifyView) private static final com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView(); } public static com.mysql.cj.x.protobuf.MysqlxCrud.ModifyView getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ModifyView parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ModifyView(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.ModifyView getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DropViewOrBuilder extends // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.DropView) com.google.protobuf.MessageOrBuilder { /** * required .Mysqlx.Crud.Collection collection = 1; * @return Whether the collection field is set. */ boolean hasCollection(); /** * required .Mysqlx.Crud.Collection collection = 1; * @return The collection. */ com.mysql.cj.x.protobuf.MysqlxCrud.Collection getCollection(); /** * required .Mysqlx.Crud.Collection collection = 1; */ com.mysql.cj.x.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder(); /** * optional bool if_exists = 2 [default = false]; * @return Whether the ifExists field is set. */ boolean hasIfExists(); /** * optional bool if_exists = 2 [default = false]; * @return The ifExists. */ boolean getIfExists(); } /** * Protobuf type {@code Mysqlx.Crud.DropView} */ public static final class DropView extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Mysqlx.Crud.DropView) DropViewOrBuilder { private static final long serialVersionUID = 0L; // Use DropView.newBuilder() to construct. private DropView(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DropView() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DropView(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DropView( 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: { bitField0_ |= 0x00000002; ifExists_ = 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 { 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_DropView_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_DropView_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.DropView.class, com.mysql.cj.x.protobuf.MysqlxCrud.DropView.Builder.class); } private int bitField0_; public static final int COLLECTION_FIELD_NUMBER = 1; private com.mysql.cj.x.protobuf.MysqlxCrud.Collection collection_; /** * required .Mysqlx.Crud.Collection collection = 1; * @return Whether the collection field is set. */ public boolean hasCollection() { return ((bitField0_ & 0x00000001) != 0); } /** * 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_; } /** * 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 IF_EXISTS_FIELD_NUMBER = 2; private boolean ifExists_; /** * optional bool if_exists = 2 [default = false]; * @return Whether the ifExists field is set. */ public boolean hasIfExists() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bool if_exists = 2 [default = false]; * @return The ifExists. */ public boolean getIfExists() { return ifExists_; } 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; } 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.writeBool(2, ifExists_); } 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 .computeBoolSize(2, ifExists_); } 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.DropView)) { return super.equals(obj); } com.mysql.cj.x.protobuf.MysqlxCrud.DropView other = (com.mysql.cj.x.protobuf.MysqlxCrud.DropView) obj; if (hasCollection() != other.hasCollection()) return false; if (hasCollection()) { if (!getCollection() .equals(other.getCollection())) return false; } if (hasIfExists() != other.hasIfExists()) return false; if (hasIfExists()) { if (getIfExists() != other.getIfExists()) 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 (hasIfExists()) { hash = (37 * hash) + IF_EXISTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIfExists()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.mysql.cj.x.protobuf.MysqlxCrud.DropView parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.DropView 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.DropView parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.DropView 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.DropView parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mysql.cj.x.protobuf.MysqlxCrud.DropView 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.DropView 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.DropView 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.DropView 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.DropView 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.DropView 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.DropView 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.DropView prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Mysqlx.Crud.DropView} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.DropView) com.mysql.cj.x.protobuf.MysqlxCrud.DropViewOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_DropView_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_DropView_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mysql.cj.x.protobuf.MysqlxCrud.DropView.class, com.mysql.cj.x.protobuf.MysqlxCrud.DropView.Builder.class); } // Construct using com.mysql.cj.x.protobuf.MysqlxCrud.DropView.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(); } } @java.lang.Override public Builder clear() { super.clear(); if (collectionBuilder_ == null) { collection_ = null; } else { collectionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); ifExists_ = false; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_DropView_descriptor; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.DropView getDefaultInstanceForType() { return com.mysql.cj.x.protobuf.MysqlxCrud.DropView.getDefaultInstance(); } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.DropView build() { com.mysql.cj.x.protobuf.MysqlxCrud.DropView result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.mysql.cj.x.protobuf.MysqlxCrud.DropView buildPartial() { com.mysql.cj.x.protobuf.MysqlxCrud.DropView result = new com.mysql.cj.x.protobuf.MysqlxCrud.DropView(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)) { result.ifExists_ = ifExists_; to_bitField0_ |= 0x00000002; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mysql.cj.x.protobuf.MysqlxCrud.DropView) { return mergeFrom((com.mysql.cj.x.protobuf.MysqlxCrud.DropView)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mysql.cj.x.protobuf.MysqlxCrud.DropView other) { if (other == com.mysql.cj.x.protobuf.MysqlxCrud.DropView.getDefaultInstance()) return this; if (other.hasCollection()) { mergeCollection(other.getCollection()); } if (other.hasIfExists()) { setIfExists(other.getIfExists()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasCollection()) { return false; } if (!getCollection().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.DropView parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mysql.cj.x.protobuf.MysqlxCrud.DropView) 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_; /** * required .Mysqlx.Crud.Collection collection = 1; * @return Whether the collection field is set. */ public boolean hasCollection() { return ((bitField0_ & 0x00000001) != 0); } /** * 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(); } } /** * 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; } /** * 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; } /** * 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; } /** * required .Mysqlx.Crud.Collection collection = 1; */ public Builder clearCollection() { if (collectionBuilder_ == null) { collection_ = null; onChanged(); } else { collectionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Mysqlx.Crud.Collection collection = 1; */ public com.mysql.cj.x.protobuf.MysqlxCrud.Collection.Builder getCollectionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCollectionFieldBuilder().getBuilder(); } /** * 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_; } } /** * 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 boolean ifExists_ ; /** * optional bool if_exists = 2 [default = false]; * @return Whether the ifExists field is set. */ public boolean hasIfExists() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bool if_exists = 2 [default = false]; * @return The ifExists. */ public boolean getIfExists() { return ifExists_; } /** * optional bool if_exists = 2 [default = false]; * @param value The ifExists to set. * @return This builder for chaining. */ public Builder setIfExists(boolean value) { bitField0_ |= 0x00000002; ifExists_ = value; onChanged(); return this; } /** * optional bool if_exists = 2 [default = false]; * @return This builder for chaining. */ public Builder clearIfExists() { bitField0_ = (bitField0_ & ~0x00000002); ifExists_ = 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.DropView) } // @@protoc_insertion_point(class_scope:Mysqlx.Crud.DropView) private static final com.mysql.cj.x.protobuf.MysqlxCrud.DropView DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.mysql.cj.x.protobuf.MysqlxCrud.DropView(); } public static com.mysql.cj.x.protobuf.MysqlxCrud.DropView getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DropView parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DropView(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.DropView getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Mysqlx_Crud_Column_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Mysqlx_Crud_Column_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Mysqlx_Crud_Projection_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Mysqlx_Crud_Projection_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Mysqlx_Crud_Collection_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Mysqlx_Crud_Collection_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Mysqlx_Crud_Limit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Mysqlx_Crud_Limit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Mysqlx_Crud_LimitExpr_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Mysqlx_Crud_LimitExpr_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Mysqlx_Crud_Order_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Mysqlx_Crud_Order_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Mysqlx_Crud_UpdateOperation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Mysqlx_Crud_UpdateOperation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Mysqlx_Crud_Find_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Mysqlx_Crud_Find_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Mysqlx_Crud_Insert_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Mysqlx_Crud_Insert_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Mysqlx_Crud_Insert_TypedRow_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Mysqlx_Crud_Insert_TypedRow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Mysqlx_Crud_Update_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Mysqlx_Crud_Update_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Mysqlx_Crud_Delete_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Mysqlx_Crud_Delete_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Mysqlx_Crud_CreateView_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Mysqlx_Crud_CreateView_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Mysqlx_Crud_ModifyView_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Mysqlx_Crud_ModifyView_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Mysqlx_Crud_DropView_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Mysqlx_Crud_DropView_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\021mysqlx_crud.proto\022\013Mysqlx.Crud\032\014mysqlx" + ".proto\032\021mysqlx_expr.proto\032\026mysqlx_dataty" + "pes.proto\"[\n\006Column\022\014\n\004name\030\001 \001(\t\022\r\n\005ali" + "as\030\002 \001(\t\0224\n\rdocument_path\030\003 \003(\0132\035.Mysqlx" + ".Expr.DocumentPathItem\">\n\nProjection\022!\n\006" + "source\030\001 \002(\0132\021.Mysqlx.Expr.Expr\022\r\n\005alias" + "\030\002 \001(\t\"*\n\nCollection\022\014\n\004name\030\001 \002(\t\022\016\n\006sc" + "hema\030\002 \001(\t\"*\n\005Limit\022\021\n\trow_count\030\001 \002(\004\022\016" + "\n\006offset\030\002 \001(\004\"T\n\tLimitExpr\022$\n\trow_count" + "\030\001 \002(\0132\021.Mysqlx.Expr.Expr\022!\n\006offset\030\002 \001(" + "\0132\021.Mysqlx.Expr.Expr\"~\n\005Order\022\037\n\004expr\030\001 " + "\002(\0132\021.Mysqlx.Expr.Expr\0224\n\tdirection\030\002 \001(" + "\0162\034.Mysqlx.Crud.Order.Direction:\003ASC\"\036\n\t" + "Direction\022\007\n\003ASC\020\001\022\010\n\004DESC\020\002\"\254\002\n\017UpdateO" + "peration\022-\n\006source\030\001 \002(\0132\035.Mysqlx.Expr.C" + "olumnIdentifier\022:\n\toperation\030\002 \002(\0162\'.Mys" + "qlx.Crud.UpdateOperation.UpdateType\022 \n\005v" + "alue\030\003 \001(\0132\021.Mysqlx.Expr.Expr\"\213\001\n\nUpdate" + "Type\022\007\n\003SET\020\001\022\017\n\013ITEM_REMOVE\020\002\022\014\n\010ITEM_S" + "ET\020\003\022\020\n\014ITEM_REPLACE\020\004\022\016\n\nITEM_MERGE\020\005\022\020" + "\n\014ARRAY_INSERT\020\006\022\020\n\014ARRAY_APPEND\020\007\022\017\n\013ME" + "RGE_PATCH\020\010\"\352\004\n\004Find\022+\n\ncollection\030\002 \002(\013" + "2\027.Mysqlx.Crud.Collection\022*\n\ndata_model\030" + "\003 \001(\0162\026.Mysqlx.Crud.DataModel\022+\n\nproject" + "ion\030\004 \003(\0132\027.Mysqlx.Crud.Projection\022#\n\010cr" + "iteria\030\005 \001(\0132\021.Mysqlx.Expr.Expr\022&\n\004args\030" + "\013 \003(\0132\030.Mysqlx.Datatypes.Scalar\022!\n\005order" + "\030\007 \003(\0132\022.Mysqlx.Crud.Order\022#\n\010grouping\030\010" + " \003(\0132\021.Mysqlx.Expr.Expr\022,\n\021grouping_crit" + "eria\030\t \001(\0132\021.Mysqlx.Expr.Expr\022*\n\007locking" + "\030\014 \001(\0162\031.Mysqlx.Crud.Find.RowLock\0229\n\017loc" + "king_options\030\r \001(\0162 .Mysqlx.Crud.Find.Ro" + "wLockOptions\022!\n\005limit\030\006 \001(\0132\022.Mysqlx.Cru" + "d.Limit\022*\n\nlimit_expr\030\016 \001(\0132\026.Mysqlx.Cru" + "d.LimitExpr\".\n\007RowLock\022\017\n\013SHARED_LOCK\020\001\022" + "\022\n\016EXCLUSIVE_LOCK\020\002\"-\n\016RowLockOptions\022\n\n" + "\006NOWAIT\020\001\022\017\n\013SKIP_LOCKED\020\002:\004\210\3520\021\"\250\002\n\006Ins" + "ert\022+\n\ncollection\030\001 \002(\0132\027.Mysqlx.Crud.Co" + "llection\022*\n\ndata_model\030\002 \001(\0162\026.Mysqlx.Cr" + "ud.DataModel\022\'\n\nprojection\030\003 \003(\0132\023.Mysql" + "x.Crud.Column\022)\n\003row\030\004 \003(\0132\034.Mysqlx.Crud" + ".Insert.TypedRow\022&\n\004args\030\005 \003(\0132\030.Mysqlx." + "Datatypes.Scalar\022\025\n\006upsert\030\006 \001(\010:\005false\032" + ",\n\010TypedRow\022 \n\005field\030\001 \003(\0132\021.Mysqlx.Expr" + ".Expr:\004\210\3520\022\"\327\002\n\006Update\022+\n\ncollection\030\002 \002" + "(\0132\027.Mysqlx.Crud.Collection\022*\n\ndata_mode" + "l\030\003 \001(\0162\026.Mysqlx.Crud.DataModel\022#\n\010crite" + "ria\030\004 \001(\0132\021.Mysqlx.Expr.Expr\022&\n\004args\030\010 \003" + "(\0132\030.Mysqlx.Datatypes.Scalar\022!\n\005order\030\006 " + "\003(\0132\022.Mysqlx.Crud.Order\022/\n\toperation\030\007 \003" + "(\0132\034.Mysqlx.Crud.UpdateOperation\022!\n\005limi" + "t\030\005 \001(\0132\022.Mysqlx.Crud.Limit\022*\n\nlimit_exp" + "r\030\t \001(\0132\026.Mysqlx.Crud.LimitExpr:\004\210\3520\023\"\246\002" + "\n\006Delete\022+\n\ncollection\030\001 \002(\0132\027.Mysqlx.Cr" + "ud.Collection\022*\n\ndata_model\030\002 \001(\0162\026.Mysq" + "lx.Crud.DataModel\022#\n\010criteria\030\003 \001(\0132\021.My" + "sqlx.Expr.Expr\022&\n\004args\030\006 \003(\0132\030.Mysqlx.Da" + "tatypes.Scalar\022!\n\005order\030\005 \003(\0132\022.Mysqlx.C" + "rud.Order\022!\n\005limit\030\004 \001(\0132\022.Mysqlx.Crud.L" + "imit\022*\n\nlimit_expr\030\007 \001(\0132\026.Mysqlx.Crud.L" + "imitExpr:\004\210\3520\024\"\302\002\n\nCreateView\022+\n\ncollect" + "ion\030\001 \002(\0132\027.Mysqlx.Crud.Collection\022\017\n\007de" + "finer\030\002 \001(\t\0228\n\talgorithm\030\003 \001(\0162\032.Mysqlx." + "Crud.ViewAlgorithm:\tUNDEFINED\0227\n\010securit" + "y\030\004 \001(\0162\034.Mysqlx.Crud.ViewSqlSecurity:\007D" + "EFINER\022+\n\005check\030\005 \001(\0162\034.Mysqlx.Crud.View" + "CheckOption\022\016\n\006column\030\006 \003(\t\022\037\n\004stmt\030\007 \002(" + "\0132\021.Mysqlx.Crud.Find\022\037\n\020replace_existing" + "\030\010 \001(\010:\005false:\004\210\3520\036\"\215\002\n\nModifyView\022+\n\nco" + "llection\030\001 \002(\0132\027.Mysqlx.Crud.Collection\022" + "\017\n\007definer\030\002 \001(\t\022-\n\talgorithm\030\003 \001(\0162\032.My" + "sqlx.Crud.ViewAlgorithm\022.\n\010security\030\004 \001(" + "\0162\034.Mysqlx.Crud.ViewSqlSecurity\022+\n\005check" + "\030\005 \001(\0162\034.Mysqlx.Crud.ViewCheckOption\022\016\n\006" + "column\030\006 \003(\t\022\037\n\004stmt\030\007 \001(\0132\021.Mysqlx.Crud" + ".Find:\004\210\3520\037\"W\n\010DropView\022+\n\ncollection\030\001 " + "\002(\0132\027.Mysqlx.Crud.Collection\022\030\n\tif_exist" + "s\030\002 \001(\010:\005false:\004\210\3520 *$\n\tDataModel\022\014\n\010DOC" + "UMENT\020\001\022\t\n\005TABLE\020\002*8\n\rViewAlgorithm\022\r\n\tU" + "NDEFINED\020\001\022\t\n\005MERGE\020\002\022\r\n\tTEMPTABLE\020\003*+\n\017" + "ViewSqlSecurity\022\013\n\007INVOKER\020\001\022\013\n\007DEFINER\020" + "\002**\n\017ViewCheckOption\022\t\n\005LOCAL\020\001\022\014\n\010CASCA" + "DED\020\002B\031\n\027com.mysql.cj.x.protobuf" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.mysql.cj.x.protobuf.Mysqlx.getDescriptor(), com.mysql.cj.x.protobuf.MysqlxExpr.getDescriptor(), com.mysql.cj.x.protobuf.MysqlxDatatypes.getDescriptor(), }); internal_static_Mysqlx_Crud_Column_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Mysqlx_Crud_Column_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Mysqlx_Crud_Column_descriptor, new java.lang.String[] { "Name", "Alias", "DocumentPath", }); internal_static_Mysqlx_Crud_Projection_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Mysqlx_Crud_Projection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Mysqlx_Crud_Projection_descriptor, new java.lang.String[] { "Source", "Alias", }); internal_static_Mysqlx_Crud_Collection_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_Mysqlx_Crud_Collection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Mysqlx_Crud_Collection_descriptor, new java.lang.String[] { "Name", "Schema", }); internal_static_Mysqlx_Crud_Limit_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_Mysqlx_Crud_Limit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Mysqlx_Crud_Limit_descriptor, new java.lang.String[] { "RowCount", "Offset", }); internal_static_Mysqlx_Crud_LimitExpr_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_Mysqlx_Crud_LimitExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Mysqlx_Crud_LimitExpr_descriptor, new java.lang.String[] { "RowCount", "Offset", }); internal_static_Mysqlx_Crud_Order_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_Mysqlx_Crud_Order_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Mysqlx_Crud_Order_descriptor, new java.lang.String[] { "Expr", "Direction", }); internal_static_Mysqlx_Crud_UpdateOperation_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_Mysqlx_Crud_UpdateOperation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Mysqlx_Crud_UpdateOperation_descriptor, new java.lang.String[] { "Source", "Operation", "Value", }); internal_static_Mysqlx_Crud_Find_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_Mysqlx_Crud_Find_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Mysqlx_Crud_Find_descriptor, new java.lang.String[] { "Collection", "DataModel", "Projection", "Criteria", "Args", "Order", "Grouping", "GroupingCriteria", "Locking", "LockingOptions", "Limit", "LimitExpr", }); internal_static_Mysqlx_Crud_Insert_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_Mysqlx_Crud_Insert_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Mysqlx_Crud_Insert_descriptor, new java.lang.String[] { "Collection", "DataModel", "Projection", "Row", "Args", "Upsert", }); internal_static_Mysqlx_Crud_Insert_TypedRow_descriptor = internal_static_Mysqlx_Crud_Insert_descriptor.getNestedTypes().get(0); internal_static_Mysqlx_Crud_Insert_TypedRow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Mysqlx_Crud_Insert_TypedRow_descriptor, new java.lang.String[] { "Field", }); internal_static_Mysqlx_Crud_Update_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_Mysqlx_Crud_Update_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Mysqlx_Crud_Update_descriptor, new java.lang.String[] { "Collection", "DataModel", "Criteria", "Args", "Order", "Operation", "Limit", "LimitExpr", }); internal_static_Mysqlx_Crud_Delete_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_Mysqlx_Crud_Delete_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Mysqlx_Crud_Delete_descriptor, new java.lang.String[] { "Collection", "DataModel", "Criteria", "Args", "Order", "Limit", "LimitExpr", }); internal_static_Mysqlx_Crud_CreateView_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_Mysqlx_Crud_CreateView_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Mysqlx_Crud_CreateView_descriptor, new java.lang.String[] { "Collection", "Definer", "Algorithm", "Security", "Check", "Column", "Stmt", "ReplaceExisting", }); internal_static_Mysqlx_Crud_ModifyView_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_Mysqlx_Crud_ModifyView_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Mysqlx_Crud_ModifyView_descriptor, new java.lang.String[] { "Collection", "Definer", "Algorithm", "Security", "Check", "Column", "Stmt", }); internal_static_Mysqlx_Crud_DropView_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_Mysqlx_Crud_DropView_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Mysqlx_Crud_DropView_descriptor, new java.lang.String[] { "Collection", "IfExists", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.mysql.cj.x.protobuf.Mysqlx.clientMessageId); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.mysql.cj.x.protobuf.Mysqlx.getDescriptor(); com.mysql.cj.x.protobuf.MysqlxExpr.getDescriptor(); com.mysql.cj.x.protobuf.MysqlxDatatypes.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy