getParserForType() {
- return PARSER;
- }
-
- /**
- * Protobuf enum {@code Mysqlx.Crud.UpdateOperation.UpdateType}
- */
- public enum UpdateType
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * SET = 1;
- *
- *
- * only allowed for TABLE
- *
- */
- SET(0, 1),
- /**
- * ITEM_REMOVE = 2;
- *
- *
- * no value (removes the identified path from a object or array)
- *
- */
- ITEM_REMOVE(1, 2),
- /**
- * ITEM_SET = 3;
- *
- *
- * sets the new value on the identified path
- *
- */
- ITEM_SET(2, 3),
- /**
- * ITEM_REPLACE = 4;
- *
- *
- * replaces a value if the path exists
- *
- */
- ITEM_REPLACE(3, 4),
- /**
- * ITEM_MERGE = 5;
- *
- *
- * source and value must be documents
- *
- */
- ITEM_MERGE(4, 5),
- /**
- * ARRAY_INSERT = 6;
- *
- *
- * insert the value in the array at the index identified in the source path
- *
- */
- ARRAY_INSERT(5, 6),
- /**
- * ARRAY_APPEND = 7;
- *
- *
- * append the value on the array at the identified path
- *
- */
- ARRAY_APPEND(6, 7),
- ;
-
- /**
- * SET = 1;
- *
- *
- * only allowed for TABLE
- *
- */
- public static final int SET_VALUE = 1;
- /**
- * ITEM_REMOVE = 2;
- *
- *
- * no value (removes the identified path from a object or array)
- *
- */
- public static final int ITEM_REMOVE_VALUE = 2;
- /**
- * ITEM_SET = 3;
- *
- *
- * sets the new value on the identified path
- *
- */
- public static final int ITEM_SET_VALUE = 3;
- /**
- * ITEM_REPLACE = 4;
- *
- *
- * replaces a value if the path exists
- *
- */
- public static final int ITEM_REPLACE_VALUE = 4;
- /**
- * ITEM_MERGE = 5;
- *
- *
- * source and value must be documents
- *
- */
- public static final int ITEM_MERGE_VALUE = 5;
- /**
- * ARRAY_INSERT = 6;
- *
- *
- * insert the value in the array at the index identified in the source path
- *
- */
- public static final int ARRAY_INSERT_VALUE = 6;
- /**
- * ARRAY_APPEND = 7;
- *
- *
- * append the value on the array at the identified path
- *
- */
- public static final int ARRAY_APPEND_VALUE = 7;
-
-
- public final int getNumber() { return value; }
-
- public static UpdateType valueOf(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;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap
- internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap
- internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap() {
- public UpdateType findValueByNumber(int number) {
- return UpdateType.valueOf(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return com.mysql.cj.mysqlx.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 index;
- private final int value;
-
- private UpdateType(int index, int value) {
- this.index = index;
- 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.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier source_;
- /**
- * required .Mysqlx.Expr.ColumnIdentifier source = 1;
- */
- public boolean hasSource() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required .Mysqlx.Expr.ColumnIdentifier source = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier getSource() {
- return source_;
- }
- /**
- * required .Mysqlx.Expr.ColumnIdentifier source = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifierOrBuilder getSourceOrBuilder() {
- return source_;
- }
-
- public static final int OPERATION_FIELD_NUMBER = 2;
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation.UpdateType operation_;
- /**
- * required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2;
- */
- public boolean hasOperation() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation.UpdateType getOperation() {
- return operation_;
- }
-
- public static final int VALUE_FIELD_NUMBER = 3;
- private com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr value_;
- /**
- * optional .Mysqlx.Expr.Expr value = 3;
- */
- public boolean hasValue() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional .Mysqlx.Expr.Expr value = 3;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr getValue() {
- return value_;
- }
- /**
- * optional .Mysqlx.Expr.Expr value = 3;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getValueOrBuilder() {
- return value_;
- }
-
- private void initFields() {
- source_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance();
- operation_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation.UpdateType.SET;
- value_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- }
- private byte memoizedIsInitialized = -1;
- 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;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, source_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, operation_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(3, value_);
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, source_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, operation_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, value_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.mysql.cj.mysqlx.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.mysqlx.protobuf.MysqlxCrud.UpdateOperation parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.mysql.cj.mysqlx.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.mysqlx.protobuf.MysqlxCrud.UpdateOperation parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code Mysqlx.Crud.UpdateOperation}
- *
- *
- * 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
- *
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.UpdateOperation)
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperationOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_UpdateOperation_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_UpdateOperation_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation.class, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation.Builder.class);
- }
-
- // Construct using com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getSourceFieldBuilder();
- getValueFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- if (sourceBuilder_ == null) {
- source_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance();
- } else {
- sourceBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- operation_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation.UpdateType.SET;
- bitField0_ = (bitField0_ & ~0x00000002);
- if (valueBuilder_ == null) {
- value_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- } else {
- valueBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000004);
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_UpdateOperation_descriptor;
- }
-
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation getDefaultInstanceForType() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation.getDefaultInstance();
- }
-
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation build() {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation buildPartial() {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation result = new com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- if (sourceBuilder_ == null) {
- result.source_ = source_;
- } else {
- result.source_ = sourceBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.operation_ = operation_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- if (valueBuilder_ == null) {
- result.value_ = value_;
- } else {
- result.value_ = valueBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation) {
- return mergeFrom((com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation other) {
- if (other == com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation.getDefaultInstance()) return this;
- if (other.hasSource()) {
- mergeSource(other.getSource());
- }
- if (other.hasOperation()) {
- setOperation(other.getOperation());
- }
- if (other.hasValue()) {
- mergeValue(other.getValue());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- 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;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier source_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifierOrBuilder> sourceBuilder_;
- /**
- * required .Mysqlx.Expr.ColumnIdentifier source = 1;
- */
- public boolean hasSource() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required .Mysqlx.Expr.ColumnIdentifier source = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier getSource() {
- if (sourceBuilder_ == null) {
- return source_;
- } else {
- return sourceBuilder_.getMessage();
- }
- }
- /**
- * required .Mysqlx.Expr.ColumnIdentifier source = 1;
- */
- public Builder setSource(com.mysql.cj.mysqlx.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.mysqlx.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.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier value) {
- if (sourceBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001) &&
- source_ != com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance()) {
- source_ =
- com.mysql.cj.mysqlx.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_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier.getDefaultInstance();
- onChanged();
- } else {
- sourceBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
- /**
- * required .Mysqlx.Expr.ColumnIdentifier source = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier.Builder getSourceBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getSourceFieldBuilder().getBuilder();
- }
- /**
- * required .Mysqlx.Expr.ColumnIdentifier source = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifierOrBuilder getSourceOrBuilder() {
- if (sourceBuilder_ != null) {
- return sourceBuilder_.getMessageOrBuilder();
- } else {
- return source_;
- }
- }
- /**
- * required .Mysqlx.Expr.ColumnIdentifier source = 1;
- */
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifierOrBuilder>
- getSourceFieldBuilder() {
- if (sourceBuilder_ == null) {
- sourceBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifier.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ColumnIdentifierOrBuilder>(
- getSource(),
- getParentForChildren(),
- isClean());
- source_ = null;
- }
- return sourceBuilder_;
- }
-
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation.UpdateType operation_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation.UpdateType.SET;
- /**
- * required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2;
- */
- public boolean hasOperation() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation.UpdateType getOperation() {
- return operation_;
- }
- /**
- * required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2;
- */
- public Builder setOperation(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation.UpdateType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- operation_ = value;
- onChanged();
- return this;
- }
- /**
- * required .Mysqlx.Crud.UpdateOperation.UpdateType operation = 2;
- */
- public Builder clearOperation() {
- bitField0_ = (bitField0_ & ~0x00000002);
- operation_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation.UpdateType.SET;
- onChanged();
- return this;
- }
-
- private com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr value_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder> valueBuilder_;
- /**
- * optional .Mysqlx.Expr.Expr value = 3;
- */
- public boolean hasValue() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional .Mysqlx.Expr.Expr value = 3;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr getValue() {
- if (valueBuilder_ == null) {
- return value_;
- } else {
- return valueBuilder_.getMessage();
- }
- }
- /**
- * optional .Mysqlx.Expr.Expr value = 3;
- */
- public Builder setValue(com.mysql.cj.mysqlx.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.mysqlx.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.mysqlx.protobuf.MysqlxExpr.Expr value) {
- if (valueBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004) &&
- value_ != com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance()) {
- value_ =
- com.mysql.cj.mysqlx.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_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- onChanged();
- } else {
- valueBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000004);
- return this;
- }
- /**
- * optional .Mysqlx.Expr.Expr value = 3;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder getValueBuilder() {
- bitField0_ |= 0x00000004;
- onChanged();
- return getValueFieldBuilder().getBuilder();
- }
- /**
- * optional .Mysqlx.Expr.Expr value = 3;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getValueOrBuilder() {
- if (valueBuilder_ != null) {
- return valueBuilder_.getMessageOrBuilder();
- } else {
- return value_;
- }
- }
- /**
- * optional .Mysqlx.Expr.Expr value = 3;
- */
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>
- getValueFieldBuilder() {
- if (valueBuilder_ == null) {
- valueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>(
- getValue(),
- getParentForChildren(),
- isClean());
- value_ = null;
- }
- return valueBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:Mysqlx.Crud.UpdateOperation)
- }
-
- static {
- defaultInstance = new UpdateOperation(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:Mysqlx.Crud.UpdateOperation)
- }
-
- public interface FindOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Find)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- boolean hasCollection();
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection getCollection();
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder();
-
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- boolean hasDataModel();
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel getDataModel();
-
- /**
- * repeated .Mysqlx.Crud.Projection projection = 4;
- */
- java.util.List
- getProjectionList();
- /**
- * repeated .Mysqlx.Crud.Projection projection = 4;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Projection getProjection(int index);
- /**
- * repeated .Mysqlx.Crud.Projection projection = 4;
- */
- int getProjectionCount();
- /**
- * repeated .Mysqlx.Crud.Projection projection = 4;
- */
- java.util.List extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.ProjectionOrBuilder>
- getProjectionOrBuilderList();
- /**
- * repeated .Mysqlx.Crud.Projection projection = 4;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.ProjectionOrBuilder getProjectionOrBuilder(
- int index);
-
- /**
- * optional .Mysqlx.Expr.Expr criteria = 5;
- */
- boolean hasCriteria();
- /**
- * optional .Mysqlx.Expr.Expr criteria = 5;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr getCriteria();
- /**
- * optional .Mysqlx.Expr.Expr criteria = 5;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getCriteriaOrBuilder();
-
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 11;
- */
- java.util.List
- getArgsList();
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 11;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar getArgs(int index);
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 11;
- */
- int getArgsCount();
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 11;
- */
- java.util.List extends com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder>
- getArgsOrBuilderList();
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 11;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder(
- int index);
-
- /**
- * optional .Mysqlx.Crud.Limit limit = 6;
- */
- boolean hasLimit();
- /**
- * optional .Mysqlx.Crud.Limit limit = 6;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit getLimit();
- /**
- * optional .Mysqlx.Crud.Limit limit = 6;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.LimitOrBuilder getLimitOrBuilder();
-
- /**
- * repeated .Mysqlx.Crud.Order order = 7;
- */
- java.util.List
- getOrderList();
- /**
- * repeated .Mysqlx.Crud.Order order = 7;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Order getOrder(int index);
- /**
- * repeated .Mysqlx.Crud.Order order = 7;
- */
- int getOrderCount();
- /**
- * repeated .Mysqlx.Crud.Order order = 7;
- */
- java.util.List extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.OrderOrBuilder>
- getOrderOrBuilderList();
- /**
- * repeated .Mysqlx.Crud.Order order = 7;
- */
- com.mysql.cj.mysqlx.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.mysqlx.protobuf.MysqlxExpr.Expr getGrouping(int index);
- /**
- * repeated .Mysqlx.Expr.Expr grouping = 8;
- */
- int getGroupingCount();
- /**
- * repeated .Mysqlx.Expr.Expr grouping = 8;
- */
- java.util.List extends com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>
- getGroupingOrBuilderList();
- /**
- * repeated .Mysqlx.Expr.Expr grouping = 8;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getGroupingOrBuilder(
- int index);
-
- /**
- * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
- */
- boolean hasGroupingCriteria();
- /**
- * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr getGroupingCriteria();
- /**
- * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getGroupingCriteriaOrBuilder();
- }
- /**
- * Protobuf type {@code Mysqlx.Crud.Find}
- *
- *
- * 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
- * :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
- * :Returns: :protobuf:msg:`Mysqlx.Resultset::`
- *
- */
- public static final class Find extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:Mysqlx.Crud.Find)
- FindOrBuilder {
- // Use Find.newBuilder() to construct.
- private Find(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Find(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Find defaultInstance;
- public static Find getDefaultInstance() {
- return defaultInstance;
- }
-
- public Find getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @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 {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 18: {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- subBuilder = collection_.toBuilder();
- }
- collection_ = input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(collection_);
- collection_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 24: {
- int rawValue = input.readEnum();
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel value = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(3, rawValue);
- } else {
- bitField0_ |= 0x00000002;
- dataModel_ = value;
- }
- break;
- }
- case 34: {
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- projection_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000004;
- }
- projection_.add(input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Projection.PARSER, extensionRegistry));
- break;
- }
- case 42: {
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder subBuilder = null;
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- subBuilder = criteria_.toBuilder();
- }
- criteria_ = input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(criteria_);
- criteria_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000004;
- break;
- }
- case 50: {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit.Builder subBuilder = null;
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- subBuilder = limit_.toBuilder();
- }
- limit_ = input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(limit_);
- limit_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000008;
- break;
- }
- case 58: {
- if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- order_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000040;
- }
- order_.add(input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Order.PARSER, extensionRegistry));
- break;
- }
- case 66: {
- if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
- grouping_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000080;
- }
- grouping_.add(input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.PARSER, extensionRegistry));
- break;
- }
- case 74: {
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder subBuilder = null;
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- subBuilder = groupingCriteria_.toBuilder();
- }
- groupingCriteria_ = input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(groupingCriteria_);
- groupingCriteria_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000010;
- break;
- }
- case 90: {
- if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
- args_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000010;
- }
- args_.add(input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.PARSER, extensionRegistry));
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- projection_ = java.util.Collections.unmodifiableList(projection_);
- }
- if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- order_ = java.util.Collections.unmodifiableList(order_);
- }
- if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
- grouping_ = java.util.Collections.unmodifiableList(grouping_);
- }
- if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
- args_ = java.util.Collections.unmodifiableList(args_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Find_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Find_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find.class, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find.Builder.class);
- }
-
- public static com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- public Find parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Find(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- private int bitField0_;
- public static final int COLLECTION_FIELD_NUMBER = 2;
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection collection_;
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public boolean hasCollection() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection getCollection() {
- return collection_;
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder() {
- return collection_;
- }
-
- public static final int DATA_MODEL_FIELD_NUMBER = 3;
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel dataModel_;
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- public boolean hasDataModel() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel getDataModel() {
- return dataModel_;
- }
-
- 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 extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.ProjectionOrBuilder>
- 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.mysqlx.protobuf.MysqlxCrud.Projection getProjection(int index) {
- return projection_.get(index);
- }
- /**
- * repeated .Mysqlx.Crud.Projection projection = 4;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.ProjectionOrBuilder getProjectionOrBuilder(
- int index) {
- return projection_.get(index);
- }
-
- public static final int CRITERIA_FIELD_NUMBER = 5;
- private com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr criteria_;
- /**
- * optional .Mysqlx.Expr.Expr criteria = 5;
- */
- public boolean hasCriteria() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional .Mysqlx.Expr.Expr criteria = 5;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr getCriteria() {
- return criteria_;
- }
- /**
- * optional .Mysqlx.Expr.Expr criteria = 5;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getCriteriaOrBuilder() {
- return 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 extends com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder>
- 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.mysqlx.protobuf.MysqlxDatatypes.Scalar getArgs(int index) {
- return args_.get(index);
- }
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 11;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder(
- int index) {
- return args_.get(index);
- }
-
- public static final int LIMIT_FIELD_NUMBER = 6;
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit limit_;
- /**
- * optional .Mysqlx.Crud.Limit limit = 6;
- */
- public boolean hasLimit() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .Mysqlx.Crud.Limit limit = 6;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit getLimit() {
- return limit_;
- }
- /**
- * optional .Mysqlx.Crud.Limit limit = 6;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.LimitOrBuilder getLimitOrBuilder() {
- return limit_;
- }
-
- 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 extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.OrderOrBuilder>
- 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.mysqlx.protobuf.MysqlxCrud.Order getOrder(int index) {
- return order_.get(index);
- }
- /**
- * repeated .Mysqlx.Crud.Order order = 7;
- */
- public com.mysql.cj.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>
- 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.mysqlx.protobuf.MysqlxExpr.Expr getGrouping(int index) {
- return grouping_.get(index);
- }
- /**
- * repeated .Mysqlx.Expr.Expr grouping = 8;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getGroupingOrBuilder(
- int index) {
- return grouping_.get(index);
- }
-
- public static final int GROUPING_CRITERIA_FIELD_NUMBER = 9;
- private com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr groupingCriteria_;
- /**
- * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
- */
- public boolean hasGroupingCriteria() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr getGroupingCriteria() {
- return groupingCriteria_;
- }
- /**
- * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getGroupingCriteriaOrBuilder() {
- return groupingCriteria_;
- }
-
- private void initFields() {
- collection_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.getDefaultInstance();
- dataModel_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel.DOCUMENT;
- projection_ = java.util.Collections.emptyList();
- criteria_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- args_ = java.util.Collections.emptyList();
- limit_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit.getDefaultInstance();
- order_ = java.util.Collections.emptyList();
- grouping_ = java.util.Collections.emptyList();
- groupingCriteria_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- }
- private byte memoizedIsInitialized = -1;
- 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;
- }
- }
- if (hasLimit()) {
- if (!getLimit().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- for (int i = 0; i < getOrderCount(); i++) {
- if (!getOrder(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- for (int i = 0; i < getGroupingCount(); i++) {
- if (!getGrouping(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- if (hasGroupingCriteria()) {
- if (!getGroupingCriteria().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(2, collection_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(3, dataModel_.getNumber());
- }
- for (int i = 0; i < projection_.size(); i++) {
- output.writeMessage(4, projection_.get(i));
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(5, criteria_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeMessage(6, limit_);
- }
- for (int i = 0; i < order_.size(); i++) {
- output.writeMessage(7, order_.get(i));
- }
- for (int i = 0; i < grouping_.size(); i++) {
- output.writeMessage(8, grouping_.get(i));
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeMessage(9, groupingCriteria_);
- }
- for (int i = 0; i < args_.size(); i++) {
- output.writeMessage(11, args_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, collection_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(3, dataModel_.getNumber());
- }
- for (int i = 0; i < projection_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, projection_.get(i));
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, criteria_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(6, limit_);
- }
- for (int i = 0; i < order_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(7, order_.get(i));
- }
- for (int i = 0; i < grouping_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(8, grouping_.get(i));
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(9, groupingCriteria_);
- }
- for (int i = 0; i < args_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(11, args_.get(i));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.mysql.cj.mysqlx.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.mysqlx.protobuf.MysqlxCrud.Find parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.mysql.cj.mysqlx.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.mysqlx.protobuf.MysqlxCrud.Find parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code Mysqlx.Crud.Find}
- *
- *
- * 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
- * :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
- * :Returns: :protobuf:msg:`Mysqlx.Resultset::`
- *
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Find)
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.FindOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Find_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Find_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find.class, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find.Builder.class);
- }
-
- // Construct using com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getCollectionFieldBuilder();
- getProjectionFieldBuilder();
- getCriteriaFieldBuilder();
- getArgsFieldBuilder();
- getLimitFieldBuilder();
- getOrderFieldBuilder();
- getGroupingFieldBuilder();
- getGroupingCriteriaFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- if (collectionBuilder_ == null) {
- collection_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.getDefaultInstance();
- } else {
- collectionBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- dataModel_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel.DOCUMENT;
- bitField0_ = (bitField0_ & ~0x00000002);
- if (projectionBuilder_ == null) {
- projection_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- projectionBuilder_.clear();
- }
- if (criteriaBuilder_ == null) {
- criteria_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- } else {
- criteriaBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000008);
- if (argsBuilder_ == null) {
- args_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000010);
- } else {
- argsBuilder_.clear();
- }
- if (limitBuilder_ == null) {
- limit_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit.getDefaultInstance();
- } else {
- limitBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000020);
- if (orderBuilder_ == null) {
- order_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
- } else {
- orderBuilder_.clear();
- }
- if (groupingBuilder_ == null) {
- grouping_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000080);
- } else {
- groupingBuilder_.clear();
- }
- if (groupingCriteriaBuilder_ == null) {
- groupingCriteria_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- } else {
- groupingCriteriaBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000100);
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Find_descriptor;
- }
-
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find getDefaultInstanceForType() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find.getDefaultInstance();
- }
-
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find build() {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find buildPartial() {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find result = new com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- if (collectionBuilder_ == null) {
- result.collection_ = collection_;
- } else {
- result.collection_ = collectionBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.dataModel_ = dataModel_;
- if (projectionBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- projection_ = java.util.Collections.unmodifiableList(projection_);
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.projection_ = projection_;
- } else {
- result.projection_ = projectionBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000004;
- }
- if (criteriaBuilder_ == null) {
- result.criteria_ = criteria_;
- } else {
- result.criteria_ = criteriaBuilder_.build();
- }
- if (argsBuilder_ == null) {
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- args_ = java.util.Collections.unmodifiableList(args_);
- bitField0_ = (bitField0_ & ~0x00000010);
- }
- result.args_ = args_;
- } else {
- result.args_ = argsBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
- to_bitField0_ |= 0x00000008;
- }
- if (limitBuilder_ == null) {
- result.limit_ = limit_;
- } else {
- result.limit_ = limitBuilder_.build();
- }
- if (orderBuilder_ == null) {
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- order_ = java.util.Collections.unmodifiableList(order_);
- bitField0_ = (bitField0_ & ~0x00000040);
- }
- result.order_ = order_;
- } else {
- result.order_ = orderBuilder_.build();
- }
- if (groupingBuilder_ == null) {
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- grouping_ = java.util.Collections.unmodifiableList(grouping_);
- bitField0_ = (bitField0_ & ~0x00000080);
- }
- result.grouping_ = grouping_;
- } else {
- result.grouping_ = groupingBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
- to_bitField0_ |= 0x00000010;
- }
- if (groupingCriteriaBuilder_ == null) {
- result.groupingCriteria_ = groupingCriteria_;
- } else {
- result.groupingCriteria_ = groupingCriteriaBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find) {
- return mergeFrom((com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find other) {
- if (other == com.mysql.cj.mysqlx.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.GeneratedMessage.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.GeneratedMessage.alwaysUseFieldBuilders ?
- getArgsFieldBuilder() : null;
- } else {
- argsBuilder_.addAllMessages(other.args_);
- }
- }
- }
- if (other.hasLimit()) {
- mergeLimit(other.getLimit());
- }
- if (orderBuilder_ == null) {
- if (!other.order_.isEmpty()) {
- if (order_.isEmpty()) {
- order_ = other.order_;
- bitField0_ = (bitField0_ & ~0x00000040);
- } else {
- ensureOrderIsMutable();
- order_.addAll(other.order_);
- }
- onChanged();
- }
- } else {
- if (!other.order_.isEmpty()) {
- if (orderBuilder_.isEmpty()) {
- orderBuilder_.dispose();
- orderBuilder_ = null;
- order_ = other.order_;
- bitField0_ = (bitField0_ & ~0x00000040);
- orderBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getOrderFieldBuilder() : null;
- } else {
- orderBuilder_.addAllMessages(other.order_);
- }
- }
- }
- if (groupingBuilder_ == null) {
- if (!other.grouping_.isEmpty()) {
- if (grouping_.isEmpty()) {
- grouping_ = other.grouping_;
- bitField0_ = (bitField0_ & ~0x00000080);
- } else {
- ensureGroupingIsMutable();
- grouping_.addAll(other.grouping_);
- }
- onChanged();
- }
- } else {
- if (!other.grouping_.isEmpty()) {
- if (groupingBuilder_.isEmpty()) {
- groupingBuilder_.dispose();
- groupingBuilder_ = null;
- grouping_ = other.grouping_;
- bitField0_ = (bitField0_ & ~0x00000080);
- groupingBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getGroupingFieldBuilder() : null;
- } else {
- groupingBuilder_.addAllMessages(other.grouping_);
- }
- }
- }
- if (other.hasGroupingCriteria()) {
- mergeGroupingCriteria(other.getGroupingCriteria());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- 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;
- }
- }
- if (hasLimit()) {
- if (!getLimit().isInitialized()) {
-
- return false;
- }
- }
- for (int i = 0; i < getOrderCount(); i++) {
- if (!getOrder(i).isInitialized()) {
-
- return false;
- }
- }
- for (int i = 0; i < getGroupingCount(); i++) {
- if (!getGrouping(i).isInitialized()) {
-
- return false;
- }
- }
- if (hasGroupingCriteria()) {
- if (!getGroupingCriteria().isInitialized()) {
-
- return false;
- }
- }
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Find) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection collection_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder> collectionBuilder_;
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public boolean hasCollection() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection getCollection() {
- if (collectionBuilder_ == null) {
- return collection_;
- } else {
- return collectionBuilder_.getMessage();
- }
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public Builder setCollection(com.mysql.cj.mysqlx.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.mysqlx.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.mysqlx.protobuf.MysqlxCrud.Collection value) {
- if (collectionBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001) &&
- collection_ != com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.getDefaultInstance()) {
- collection_ =
- com.mysql.cj.mysqlx.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_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.getDefaultInstance();
- onChanged();
- } else {
- collectionBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.Builder getCollectionBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getCollectionFieldBuilder().getBuilder();
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder() {
- if (collectionBuilder_ != null) {
- return collectionBuilder_.getMessageOrBuilder();
- } else {
- return collection_;
- }
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder>
- getCollectionFieldBuilder() {
- if (collectionBuilder_ == null) {
- collectionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder>(
- getCollection(),
- getParentForChildren(),
- isClean());
- collection_ = null;
- }
- return collectionBuilder_;
- }
-
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel dataModel_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel.DOCUMENT;
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- public boolean hasDataModel() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel getDataModel() {
- return dataModel_;
- }
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- public Builder setDataModel(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- dataModel_ = value;
- onChanged();
- return this;
- }
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- public Builder clearDataModel() {
- bitField0_ = (bitField0_ & ~0x00000002);
- dataModel_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel.DOCUMENT;
- onChanged();
- return this;
- }
-
- private java.util.List projection_ =
- java.util.Collections.emptyList();
- private void ensureProjectionIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- projection_ = new java.util.ArrayList(projection_);
- bitField0_ |= 0x00000004;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Projection, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Projection.Builder, com.mysql.cj.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Projection> 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.mysqlx.protobuf.MysqlxCrud.Projection.Builder getProjectionBuilder(
- int index) {
- return getProjectionFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .Mysqlx.Crud.Projection projection = 4;
- */
- public com.mysql.cj.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.ProjectionOrBuilder>
- getProjectionOrBuilderList() {
- if (projectionBuilder_ != null) {
- return projectionBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(projection_);
- }
- }
- /**
- * repeated .Mysqlx.Crud.Projection projection = 4;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Projection.Builder addProjectionBuilder() {
- return getProjectionFieldBuilder().addBuilder(
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Projection.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Crud.Projection projection = 4;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Projection.Builder addProjectionBuilder(
- int index) {
- return getProjectionFieldBuilder().addBuilder(
- index, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Projection.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Crud.Projection projection = 4;
- */
- public java.util.List
- getProjectionBuilderList() {
- return getProjectionFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Projection, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Projection.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.ProjectionOrBuilder>
- getProjectionFieldBuilder() {
- if (projectionBuilder_ == null) {
- projectionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Projection, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Projection.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.ProjectionOrBuilder>(
- projection_,
- ((bitField0_ & 0x00000004) == 0x00000004),
- getParentForChildren(),
- isClean());
- projection_ = null;
- }
- return projectionBuilder_;
- }
-
- private com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr criteria_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder> criteriaBuilder_;
- /**
- * optional .Mysqlx.Expr.Expr criteria = 5;
- */
- public boolean hasCriteria() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .Mysqlx.Expr.Expr criteria = 5;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr getCriteria() {
- if (criteriaBuilder_ == null) {
- return criteria_;
- } else {
- return criteriaBuilder_.getMessage();
- }
- }
- /**
- * optional .Mysqlx.Expr.Expr criteria = 5;
- */
- public Builder setCriteria(com.mysql.cj.mysqlx.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.mysqlx.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.mysqlx.protobuf.MysqlxExpr.Expr value) {
- if (criteriaBuilder_ == null) {
- if (((bitField0_ & 0x00000008) == 0x00000008) &&
- criteria_ != com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance()) {
- criteria_ =
- com.mysql.cj.mysqlx.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_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- onChanged();
- } else {
- criteriaBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000008);
- return this;
- }
- /**
- * optional .Mysqlx.Expr.Expr criteria = 5;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder getCriteriaBuilder() {
- bitField0_ |= 0x00000008;
- onChanged();
- return getCriteriaFieldBuilder().getBuilder();
- }
- /**
- * optional .Mysqlx.Expr.Expr criteria = 5;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getCriteriaOrBuilder() {
- if (criteriaBuilder_ != null) {
- return criteriaBuilder_.getMessageOrBuilder();
- } else {
- return criteria_;
- }
- }
- /**
- * optional .Mysqlx.Expr.Expr criteria = 5;
- */
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>
- getCriteriaFieldBuilder() {
- if (criteriaBuilder_ == null) {
- criteriaBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.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) == 0x00000010)) {
- args_ = new java.util.ArrayList(args_);
- bitField0_ |= 0x00000010;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar, com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.Builder, com.mysql.cj.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar> 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.mysqlx.protobuf.MysqlxDatatypes.Scalar.Builder getArgsBuilder(
- int index) {
- return getArgsFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 11;
- */
- public com.mysql.cj.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder>
- getArgsOrBuilderList() {
- if (argsBuilder_ != null) {
- return argsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(args_);
- }
- }
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 11;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.Builder addArgsBuilder() {
- return getArgsFieldBuilder().addBuilder(
- com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 11;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.Builder addArgsBuilder(
- int index) {
- return getArgsFieldBuilder().addBuilder(
- index, com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 11;
- */
- public java.util.List
- getArgsBuilderList() {
- return getArgsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar, com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder>
- getArgsFieldBuilder() {
- if (argsBuilder_ == null) {
- argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar, com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder>(
- args_,
- ((bitField0_ & 0x00000010) == 0x00000010),
- getParentForChildren(),
- isClean());
- args_ = null;
- }
- return argsBuilder_;
- }
-
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit limit_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.LimitOrBuilder> limitBuilder_;
- /**
- * optional .Mysqlx.Crud.Limit limit = 6;
- */
- public boolean hasLimit() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- /**
- * optional .Mysqlx.Crud.Limit limit = 6;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit getLimit() {
- if (limitBuilder_ == null) {
- return limit_;
- } else {
- return limitBuilder_.getMessage();
- }
- }
- /**
- * optional .Mysqlx.Crud.Limit limit = 6;
- */
- public Builder setLimit(com.mysql.cj.mysqlx.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 = 6;
- */
- public Builder setLimit(
- com.mysql.cj.mysqlx.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 = 6;
- */
- public Builder mergeLimit(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit value) {
- if (limitBuilder_ == null) {
- if (((bitField0_ & 0x00000020) == 0x00000020) &&
- limit_ != com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit.getDefaultInstance()) {
- limit_ =
- com.mysql.cj.mysqlx.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 = 6;
- */
- public Builder clearLimit() {
- if (limitBuilder_ == null) {
- limit_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit.getDefaultInstance();
- onChanged();
- } else {
- limitBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000020);
- return this;
- }
- /**
- * optional .Mysqlx.Crud.Limit limit = 6;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit.Builder getLimitBuilder() {
- bitField0_ |= 0x00000020;
- onChanged();
- return getLimitFieldBuilder().getBuilder();
- }
- /**
- * optional .Mysqlx.Crud.Limit limit = 6;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.LimitOrBuilder getLimitOrBuilder() {
- if (limitBuilder_ != null) {
- return limitBuilder_.getMessageOrBuilder();
- } else {
- return limit_;
- }
- }
- /**
- * optional .Mysqlx.Crud.Limit limit = 6;
- */
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.LimitOrBuilder>
- getLimitFieldBuilder() {
- if (limitBuilder_ == null) {
- limitBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.LimitOrBuilder>(
- getLimit(),
- getParentForChildren(),
- isClean());
- limit_ = null;
- }
- return limitBuilder_;
- }
-
- private java.util.List order_ =
- java.util.Collections.emptyList();
- private void ensureOrderIsMutable() {
- if (!((bitField0_ & 0x00000040) == 0x00000040)) {
- order_ = new java.util.ArrayList(order_);
- bitField0_ |= 0x00000040;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Order, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Order.Builder, com.mysql.cj.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Order> 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_ & ~0x00000040);
- 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.mysqlx.protobuf.MysqlxCrud.Order.Builder getOrderBuilder(
- int index) {
- return getOrderFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .Mysqlx.Crud.Order order = 7;
- */
- public com.mysql.cj.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.OrderOrBuilder>
- getOrderOrBuilderList() {
- if (orderBuilder_ != null) {
- return orderBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(order_);
- }
- }
- /**
- * repeated .Mysqlx.Crud.Order order = 7;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Order.Builder addOrderBuilder() {
- return getOrderFieldBuilder().addBuilder(
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Order.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Crud.Order order = 7;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Order.Builder addOrderBuilder(
- int index) {
- return getOrderFieldBuilder().addBuilder(
- index, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Order.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Crud.Order order = 7;
- */
- public java.util.List
- getOrderBuilderList() {
- return getOrderFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Order, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Order.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.OrderOrBuilder>
- getOrderFieldBuilder() {
- if (orderBuilder_ == null) {
- orderBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Order, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Order.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.OrderOrBuilder>(
- order_,
- ((bitField0_ & 0x00000040) == 0x00000040),
- getParentForChildren(),
- isClean());
- order_ = null;
- }
- return orderBuilder_;
- }
-
- private java.util.List grouping_ =
- java.util.Collections.emptyList();
- private void ensureGroupingIsMutable() {
- if (!((bitField0_ & 0x00000080) == 0x00000080)) {
- grouping_ = new java.util.ArrayList(grouping_);
- bitField0_ |= 0x00000080;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr> 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_ & ~0x00000080);
- 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.mysqlx.protobuf.MysqlxExpr.Expr.Builder getGroupingBuilder(
- int index) {
- return getGroupingFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .Mysqlx.Expr.Expr grouping = 8;
- */
- public com.mysql.cj.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>
- getGroupingOrBuilderList() {
- if (groupingBuilder_ != null) {
- return groupingBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(grouping_);
- }
- }
- /**
- * repeated .Mysqlx.Expr.Expr grouping = 8;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder addGroupingBuilder() {
- return getGroupingFieldBuilder().addBuilder(
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Expr.Expr grouping = 8;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder addGroupingBuilder(
- int index) {
- return getGroupingFieldBuilder().addBuilder(
- index, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Expr.Expr grouping = 8;
- */
- public java.util.List
- getGroupingBuilderList() {
- return getGroupingFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>
- getGroupingFieldBuilder() {
- if (groupingBuilder_ == null) {
- groupingBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>(
- grouping_,
- ((bitField0_ & 0x00000080) == 0x00000080),
- getParentForChildren(),
- isClean());
- grouping_ = null;
- }
- return groupingBuilder_;
- }
-
- private com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr groupingCriteria_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder> groupingCriteriaBuilder_;
- /**
- * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
- */
- public boolean hasGroupingCriteria() {
- return ((bitField0_ & 0x00000100) == 0x00000100);
- }
- /**
- * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr getGroupingCriteria() {
- if (groupingCriteriaBuilder_ == null) {
- return groupingCriteria_;
- } else {
- return groupingCriteriaBuilder_.getMessage();
- }
- }
- /**
- * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
- */
- public Builder setGroupingCriteria(com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr value) {
- if (groupingCriteriaBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- groupingCriteria_ = value;
- onChanged();
- } else {
- groupingCriteriaBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000100;
- return this;
- }
- /**
- * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
- */
- public Builder setGroupingCriteria(
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
- if (groupingCriteriaBuilder_ == null) {
- groupingCriteria_ = builderForValue.build();
- onChanged();
- } else {
- groupingCriteriaBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000100;
- return this;
- }
- /**
- * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
- */
- public Builder mergeGroupingCriteria(com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr value) {
- if (groupingCriteriaBuilder_ == null) {
- if (((bitField0_ & 0x00000100) == 0x00000100) &&
- groupingCriteria_ != com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance()) {
- groupingCriteria_ =
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.newBuilder(groupingCriteria_).mergeFrom(value).buildPartial();
- } else {
- groupingCriteria_ = value;
- }
- onChanged();
- } else {
- groupingCriteriaBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000100;
- return this;
- }
- /**
- * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
- */
- public Builder clearGroupingCriteria() {
- if (groupingCriteriaBuilder_ == null) {
- groupingCriteria_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- onChanged();
- } else {
- groupingCriteriaBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000100);
- return this;
- }
- /**
- * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder getGroupingCriteriaBuilder() {
- bitField0_ |= 0x00000100;
- onChanged();
- return getGroupingCriteriaFieldBuilder().getBuilder();
- }
- /**
- * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getGroupingCriteriaOrBuilder() {
- if (groupingCriteriaBuilder_ != null) {
- return groupingCriteriaBuilder_.getMessageOrBuilder();
- } else {
- return groupingCriteria_;
- }
- }
- /**
- * optional .Mysqlx.Expr.Expr grouping_criteria = 9;
- */
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>
- getGroupingCriteriaFieldBuilder() {
- if (groupingCriteriaBuilder_ == null) {
- groupingCriteriaBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>(
- getGroupingCriteria(),
- getParentForChildren(),
- isClean());
- groupingCriteria_ = null;
- }
- return groupingCriteriaBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:Mysqlx.Crud.Find)
- }
-
- static {
- defaultInstance = new Find(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:Mysqlx.Crud.Find)
- }
-
- public interface InsertOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Insert)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required .Mysqlx.Crud.Collection collection = 1;
- */
- boolean hasCollection();
- /**
- * required .Mysqlx.Crud.Collection collection = 1;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection getCollection();
- /**
- * required .Mysqlx.Crud.Collection collection = 1;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder();
-
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 2;
- */
- boolean hasDataModel();
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 2;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel getDataModel();
-
- /**
- * repeated .Mysqlx.Crud.Column projection = 3;
- */
- java.util.List
- getProjectionList();
- /**
- * repeated .Mysqlx.Crud.Column projection = 3;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Column getProjection(int index);
- /**
- * repeated .Mysqlx.Crud.Column projection = 3;
- */
- int getProjectionCount();
- /**
- * repeated .Mysqlx.Crud.Column projection = 3;
- */
- java.util.List extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.ColumnOrBuilder>
- getProjectionOrBuilderList();
- /**
- * repeated .Mysqlx.Crud.Column projection = 3;
- */
- com.mysql.cj.mysqlx.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.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder>
- getRowOrBuilderList();
- /**
- * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
- */
- com.mysql.cj.mysqlx.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.mysqlx.protobuf.MysqlxDatatypes.Scalar getArgs(int index);
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 5;
- */
- int getArgsCount();
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 5;
- */
- java.util.List extends com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder>
- getArgsOrBuilderList();
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 5;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code Mysqlx.Crud.Insert}
- *
- *
- * 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
- * :Returns: :protobuf:msg:`Mysqlx.Resultset::`
- *
- */
- public static final class Insert extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:Mysqlx.Crud.Insert)
- InsertOrBuilder {
- // Use Insert.newBuilder() to construct.
- private Insert(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Insert(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Insert defaultInstance;
- public static Insert getDefaultInstance() {
- return defaultInstance;
- }
-
- public Insert getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @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 {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- subBuilder = collection_.toBuilder();
- }
- collection_ = input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(collection_);
- collection_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 16: {
- int rawValue = input.readEnum();
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel value = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(2, rawValue);
- } else {
- bitField0_ |= 0x00000002;
- dataModel_ = value;
- }
- break;
- }
- case 26: {
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- projection_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000004;
- }
- projection_.add(input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Column.PARSER, extensionRegistry));
- break;
- }
- case 34: {
- if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- row_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000008;
- }
- row_.add(input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow.PARSER, extensionRegistry));
- break;
- }
- case 42: {
- if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
- args_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000010;
- }
- args_.add(input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.PARSER, extensionRegistry));
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- projection_ = java.util.Collections.unmodifiableList(projection_);
- }
- if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- row_ = java.util.Collections.unmodifiableList(row_);
- }
- if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
- args_ = java.util.Collections.unmodifiableList(args_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.class, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.Builder.class);
- }
-
- public static com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- public Insert parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Insert(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- 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.mysqlx.protobuf.MysqlxExpr.Expr getField(int index);
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- int getFieldCount();
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- java.util.List extends com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>
- getFieldOrBuilderList();
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getFieldOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code Mysqlx.Crud.Insert.TypedRow}
- */
- public static final class TypedRow extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:Mysqlx.Crud.Insert.TypedRow)
- TypedRowOrBuilder {
- // Use TypedRow.newBuilder() to construct.
- private TypedRow(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private TypedRow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final TypedRow defaultInstance;
- public static TypedRow getDefaultInstance() {
- return defaultInstance;
- }
-
- public TypedRow getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @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 {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- field_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000001;
- }
- field_.add(input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.PARSER, extensionRegistry));
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- field_ = java.util.Collections.unmodifiableList(field_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_TypedRow_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_TypedRow_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow.class, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow.Builder.class);
- }
-
- public static com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- public TypedRow parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new TypedRow(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- public static final int FIELD_FIELD_NUMBER = 1;
- private java.util.List field_;
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- public java.util.List getFieldList() {
- return field_;
- }
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- public java.util.List extends com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>
- getFieldOrBuilderList() {
- return field_;
- }
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- public int getFieldCount() {
- return field_.size();
- }
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr getField(int index) {
- return field_.get(index);
- }
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getFieldOrBuilder(
- int index) {
- return field_.get(index);
- }
-
- private void initFields() {
- field_ = java.util.Collections.emptyList();
- }
- private byte memoizedIsInitialized = -1;
- 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;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- for (int i = 0; i < field_.size(); i++) {
- output.writeMessage(1, field_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- 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 += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.mysql.cj.mysqlx.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.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.mysql.cj.mysqlx.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.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code Mysqlx.Crud.Insert.TypedRow}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Insert.TypedRow)
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_TypedRow_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_TypedRow_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow.class, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow.Builder.class);
- }
-
- // Construct using com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getFieldFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- if (fieldBuilder_ == null) {
- field_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- fieldBuilder_.clear();
- }
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_TypedRow_descriptor;
- }
-
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow getDefaultInstanceForType() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow.getDefaultInstance();
- }
-
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow build() {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow buildPartial() {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow result = new com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow(this);
- int from_bitField0_ = bitField0_;
- if (fieldBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- field_ = java.util.Collections.unmodifiableList(field_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.field_ = field_;
- } else {
- result.field_ = fieldBuilder_.build();
- }
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow) {
- return mergeFrom((com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow other) {
- if (other == com.mysql.cj.mysqlx.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.GeneratedMessage.alwaysUseFieldBuilders ?
- getFieldFieldBuilder() : null;
- } else {
- fieldBuilder_.addAllMessages(other.field_);
- }
- }
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- for (int i = 0; i < getFieldCount(); i++) {
- if (!getField(i).isInitialized()) {
-
- return false;
- }
- }
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow) e.getUnfinishedMessage();
- throw e;
- } 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) == 0x00000001)) {
- field_ = new java.util.ArrayList(field_);
- bitField0_ |= 0x00000001;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.protobuf.MysqlxExpr.Expr.Builder builderForValue) {
- if (fieldBuilder_ == null) {
- ensureFieldIsMutable();
- field_.add(index, builderForValue.build());
- onChanged();
- } else {
- fieldBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- public Builder addAllField(
- java.lang.Iterable extends com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr> values) {
- if (fieldBuilder_ == null) {
- ensureFieldIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, field_);
- onChanged();
- } else {
- fieldBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- public Builder clearField() {
- if (fieldBuilder_ == null) {
- field_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- fieldBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- public Builder removeField(int index) {
- if (fieldBuilder_ == null) {
- ensureFieldIsMutable();
- field_.remove(index);
- onChanged();
- } else {
- fieldBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder getFieldBuilder(
- int index) {
- return getFieldFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getFieldOrBuilder(
- int index) {
- if (fieldBuilder_ == null) {
- return field_.get(index); } else {
- return fieldBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- public java.util.List extends com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>
- getFieldOrBuilderList() {
- if (fieldBuilder_ != null) {
- return fieldBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(field_);
- }
- }
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder addFieldBuilder() {
- return getFieldFieldBuilder().addBuilder(
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder addFieldBuilder(
- int index) {
- return getFieldFieldBuilder().addBuilder(
- index, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Expr.Expr field = 1;
- */
- public java.util.List
- getFieldBuilderList() {
- return getFieldFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>
- getFieldFieldBuilder() {
- if (fieldBuilder_ == null) {
- fieldBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>(
- field_,
- ((bitField0_ & 0x00000001) == 0x00000001),
- getParentForChildren(),
- isClean());
- field_ = null;
- }
- return fieldBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:Mysqlx.Crud.Insert.TypedRow)
- }
-
- static {
- defaultInstance = new TypedRow(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:Mysqlx.Crud.Insert.TypedRow)
- }
-
- private int bitField0_;
- public static final int COLLECTION_FIELD_NUMBER = 1;
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection collection_;
- /**
- * required .Mysqlx.Crud.Collection collection = 1;
- */
- public boolean hasCollection() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection getCollection() {
- return collection_;
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder() {
- return collection_;
- }
-
- public static final int DATA_MODEL_FIELD_NUMBER = 2;
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel dataModel_;
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 2;
- */
- public boolean hasDataModel() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 2;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel getDataModel() {
- return dataModel_;
- }
-
- 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 extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.ColumnOrBuilder>
- 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.mysqlx.protobuf.MysqlxCrud.Column getProjection(int index) {
- return projection_.get(index);
- }
- /**
- * repeated .Mysqlx.Crud.Column projection = 3;
- */
- public com.mysql.cj.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder>
- 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.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow getRow(int index) {
- return row_.get(index);
- }
- /**
- * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
- */
- public com.mysql.cj.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder>
- 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.mysqlx.protobuf.MysqlxDatatypes.Scalar getArgs(int index) {
- return args_.get(index);
- }
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 5;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder(
- int index) {
- return args_.get(index);
- }
-
- private void initFields() {
- collection_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.getDefaultInstance();
- dataModel_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel.DOCUMENT;
- projection_ = java.util.Collections.emptyList();
- row_ = java.util.Collections.emptyList();
- args_ = java.util.Collections.emptyList();
- }
- private byte memoizedIsInitialized = -1;
- 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;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, collection_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, dataModel_.getNumber());
- }
- 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));
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, collection_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, dataModel_.getNumber());
- }
- 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));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.mysql.cj.mysqlx.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.mysqlx.protobuf.MysqlxCrud.Insert parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.mysql.cj.mysqlx.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.mysqlx.protobuf.MysqlxCrud.Insert parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code Mysqlx.Crud.Insert}
- *
- *
- * 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
- * :Returns: :protobuf:msg:`Mysqlx.Resultset::`
- *
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Insert)
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.InsertOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.class, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.Builder.class);
- }
-
- // Construct using com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getCollectionFieldBuilder();
- getProjectionFieldBuilder();
- getRowFieldBuilder();
- getArgsFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- if (collectionBuilder_ == null) {
- collection_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.getDefaultInstance();
- } else {
- collectionBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- dataModel_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel.DOCUMENT;
- 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();
- }
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Insert_descriptor;
- }
-
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert getDefaultInstanceForType() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.getDefaultInstance();
- }
-
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert build() {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert buildPartial() {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert result = new com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- if (collectionBuilder_ == null) {
- result.collection_ = collection_;
- } else {
- result.collection_ = collectionBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.dataModel_ = dataModel_;
- if (projectionBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- projection_ = java.util.Collections.unmodifiableList(projection_);
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.projection_ = projection_;
- } else {
- result.projection_ = projectionBuilder_.build();
- }
- if (rowBuilder_ == null) {
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- row_ = java.util.Collections.unmodifiableList(row_);
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.row_ = row_;
- } else {
- result.row_ = rowBuilder_.build();
- }
- if (argsBuilder_ == null) {
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- args_ = java.util.Collections.unmodifiableList(args_);
- bitField0_ = (bitField0_ & ~0x00000010);
- }
- result.args_ = args_;
- } else {
- result.args_ = argsBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert) {
- return mergeFrom((com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert other) {
- if (other == com.mysql.cj.mysqlx.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.alwaysUseFieldBuilders ?
- getArgsFieldBuilder() : null;
- } else {
- argsBuilder_.addAllMessages(other.args_);
- }
- }
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- 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;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection collection_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder> collectionBuilder_;
- /**
- * required .Mysqlx.Crud.Collection collection = 1;
- */
- public boolean hasCollection() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection getCollection() {
- if (collectionBuilder_ == null) {
- return collection_;
- } else {
- return collectionBuilder_.getMessage();
- }
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 1;
- */
- public Builder setCollection(com.mysql.cj.mysqlx.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.mysqlx.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.mysqlx.protobuf.MysqlxCrud.Collection value) {
- if (collectionBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001) &&
- collection_ != com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.getDefaultInstance()) {
- collection_ =
- com.mysql.cj.mysqlx.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_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.getDefaultInstance();
- onChanged();
- } else {
- collectionBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.Builder getCollectionBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getCollectionFieldBuilder().getBuilder();
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 1;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder() {
- if (collectionBuilder_ != null) {
- return collectionBuilder_.getMessageOrBuilder();
- } else {
- return collection_;
- }
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 1;
- */
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder>
- getCollectionFieldBuilder() {
- if (collectionBuilder_ == null) {
- collectionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder>(
- getCollection(),
- getParentForChildren(),
- isClean());
- collection_ = null;
- }
- return collectionBuilder_;
- }
-
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel dataModel_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel.DOCUMENT;
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 2;
- */
- public boolean hasDataModel() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 2;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel getDataModel() {
- return dataModel_;
- }
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 2;
- */
- public Builder setDataModel(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- dataModel_ = value;
- onChanged();
- return this;
- }
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 2;
- */
- public Builder clearDataModel() {
- bitField0_ = (bitField0_ & ~0x00000002);
- dataModel_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel.DOCUMENT;
- onChanged();
- return this;
- }
-
- private java.util.List projection_ =
- java.util.Collections.emptyList();
- private void ensureProjectionIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- projection_ = new java.util.ArrayList(projection_);
- bitField0_ |= 0x00000004;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Column, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Column.Builder, com.mysql.cj.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Column> 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.mysqlx.protobuf.MysqlxCrud.Column.Builder getProjectionBuilder(
- int index) {
- return getProjectionFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .Mysqlx.Crud.Column projection = 3;
- */
- public com.mysql.cj.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.ColumnOrBuilder>
- getProjectionOrBuilderList() {
- if (projectionBuilder_ != null) {
- return projectionBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(projection_);
- }
- }
- /**
- * repeated .Mysqlx.Crud.Column projection = 3;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Column.Builder addProjectionBuilder() {
- return getProjectionFieldBuilder().addBuilder(
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Column.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Crud.Column projection = 3;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Column.Builder addProjectionBuilder(
- int index) {
- return getProjectionFieldBuilder().addBuilder(
- index, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Column.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Crud.Column projection = 3;
- */
- public java.util.List
- getProjectionBuilderList() {
- return getProjectionFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Column, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Column.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.ColumnOrBuilder>
- getProjectionFieldBuilder() {
- if (projectionBuilder_ == null) {
- projectionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Column, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Column.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.ColumnOrBuilder>(
- projection_,
- ((bitField0_ & 0x00000004) == 0x00000004),
- getParentForChildren(),
- isClean());
- projection_ = null;
- }
- return projectionBuilder_;
- }
-
- private java.util.List row_ =
- java.util.Collections.emptyList();
- private void ensureRowIsMutable() {
- if (!((bitField0_ & 0x00000008) == 0x00000008)) {
- row_ = new java.util.ArrayList(row_);
- bitField0_ |= 0x00000008;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow.Builder, com.mysql.cj.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow> 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.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow.Builder getRowBuilder(
- int index) {
- return getRowFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
- */
- public com.mysql.cj.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder>
- 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.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow.Builder addRowBuilder() {
- return getRowFieldBuilder().addBuilder(
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow.Builder addRowBuilder(
- int index) {
- return getRowFieldBuilder().addBuilder(
- index, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Crud.Insert.TypedRow row = 4;
- */
- public java.util.List
- getRowBuilderList() {
- return getRowFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder>
- getRowFieldBuilder() {
- if (rowBuilder_ == null) {
- rowBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRow.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Insert.TypedRowOrBuilder>(
- row_,
- ((bitField0_ & 0x00000008) == 0x00000008),
- getParentForChildren(),
- isClean());
- row_ = null;
- }
- return rowBuilder_;
- }
-
- private java.util.List args_ =
- java.util.Collections.emptyList();
- private void ensureArgsIsMutable() {
- if (!((bitField0_ & 0x00000010) == 0x00000010)) {
- args_ = new java.util.ArrayList(args_);
- bitField0_ |= 0x00000010;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar, com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.Builder, com.mysql.cj.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar> 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.mysqlx.protobuf.MysqlxDatatypes.Scalar.Builder getArgsBuilder(
- int index) {
- return getArgsFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 5;
- */
- public com.mysql.cj.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder>
- getArgsOrBuilderList() {
- if (argsBuilder_ != null) {
- return argsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(args_);
- }
- }
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 5;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.Builder addArgsBuilder() {
- return getArgsFieldBuilder().addBuilder(
- com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 5;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.Builder addArgsBuilder(
- int index) {
- return getArgsFieldBuilder().addBuilder(
- index, com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.getDefaultInstance());
- }
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 5;
- */
- public java.util.List
- getArgsBuilderList() {
- return getArgsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar, com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder>
- getArgsFieldBuilder() {
- if (argsBuilder_ == null) {
- argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar, com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder>(
- args_,
- ((bitField0_ & 0x00000010) == 0x00000010),
- getParentForChildren(),
- isClean());
- args_ = null;
- }
- return argsBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:Mysqlx.Crud.Insert)
- }
-
- static {
- defaultInstance = new Insert(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:Mysqlx.Crud.Insert)
- }
-
- public interface UpdateOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Mysqlx.Crud.Update)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- boolean hasCollection();
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection getCollection();
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder();
-
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- boolean hasDataModel();
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel getDataModel();
-
- /**
- * optional .Mysqlx.Expr.Expr criteria = 4;
- */
- boolean hasCriteria();
- /**
- * optional .Mysqlx.Expr.Expr criteria = 4;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr getCriteria();
- /**
- * optional .Mysqlx.Expr.Expr criteria = 4;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getCriteriaOrBuilder();
-
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 8;
- */
- java.util.List
- getArgsList();
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 8;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar getArgs(int index);
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 8;
- */
- int getArgsCount();
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 8;
- */
- java.util.List extends com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder>
- getArgsOrBuilderList();
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 8;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder(
- int index);
-
- /**
- * optional .Mysqlx.Crud.Limit limit = 5;
- */
- boolean hasLimit();
- /**
- * optional .Mysqlx.Crud.Limit limit = 5;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit getLimit();
- /**
- * optional .Mysqlx.Crud.Limit limit = 5;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.LimitOrBuilder getLimitOrBuilder();
-
- /**
- * repeated .Mysqlx.Crud.Order order = 6;
- */
- java.util.List
- getOrderList();
- /**
- * repeated .Mysqlx.Crud.Order order = 6;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Order getOrder(int index);
- /**
- * repeated .Mysqlx.Crud.Order order = 6;
- */
- int getOrderCount();
- /**
- * repeated .Mysqlx.Crud.Order order = 6;
- */
- java.util.List extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.OrderOrBuilder>
- getOrderOrBuilderList();
- /**
- * repeated .Mysqlx.Crud.Order order = 6;
- */
- com.mysql.cj.mysqlx.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.mysqlx.protobuf.MysqlxCrud.UpdateOperation getOperation(int index);
- /**
- * repeated .Mysqlx.Crud.UpdateOperation operation = 7;
- */
- int getOperationCount();
- /**
- * repeated .Mysqlx.Crud.UpdateOperation operation = 7;
- */
- java.util.List extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperationOrBuilder>
- getOperationOrBuilderList();
- /**
- * repeated .Mysqlx.Crud.UpdateOperation operation = 7;
- */
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperationOrBuilder getOperationOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code Mysqlx.Crud.Update}
- *
- *
- * 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
- * :param order: specifies order of matched rows
- * :param operation: list of operations to be applied. Valid operations will depend on the data_model.
- * :Returns: :protobuf:msg:`Mysqlx.Resultset::`
- *
- */
- public static final class Update extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:Mysqlx.Crud.Update)
- UpdateOrBuilder {
- // Use Update.newBuilder() to construct.
- private Update(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Update(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Update defaultInstance;
- public static Update getDefaultInstance() {
- return defaultInstance;
- }
-
- public Update getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @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 {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 18: {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- subBuilder = collection_.toBuilder();
- }
- collection_ = input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(collection_);
- collection_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 24: {
- int rawValue = input.readEnum();
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel value = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(3, rawValue);
- } else {
- bitField0_ |= 0x00000002;
- dataModel_ = value;
- }
- break;
- }
- case 34: {
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder subBuilder = null;
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- subBuilder = criteria_.toBuilder();
- }
- criteria_ = input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(criteria_);
- criteria_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000004;
- break;
- }
- case 42: {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit.Builder subBuilder = null;
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- subBuilder = limit_.toBuilder();
- }
- limit_ = input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(limit_);
- limit_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000008;
- break;
- }
- case 50: {
- if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- order_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000020;
- }
- order_.add(input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Order.PARSER, extensionRegistry));
- break;
- }
- case 58: {
- if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- operation_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000040;
- }
- operation_.add(input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperation.PARSER, extensionRegistry));
- break;
- }
- case 66: {
- if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- args_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000008;
- }
- args_.add(input.readMessage(com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.PARSER, extensionRegistry));
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- order_ = java.util.Collections.unmodifiableList(order_);
- }
- if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- operation_ = java.util.Collections.unmodifiableList(operation_);
- }
- if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- args_ = java.util.Collections.unmodifiableList(args_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Update_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Update_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update.class, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update.Builder.class);
- }
-
- public static com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- public Update parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Update(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- private int bitField0_;
- public static final int COLLECTION_FIELD_NUMBER = 2;
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection collection_;
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public boolean hasCollection() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection getCollection() {
- return collection_;
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder() {
- return collection_;
- }
-
- public static final int DATA_MODEL_FIELD_NUMBER = 3;
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel dataModel_;
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- public boolean hasDataModel() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel getDataModel() {
- return dataModel_;
- }
-
- public static final int CRITERIA_FIELD_NUMBER = 4;
- private com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr criteria_;
- /**
- * optional .Mysqlx.Expr.Expr criteria = 4;
- */
- public boolean hasCriteria() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional .Mysqlx.Expr.Expr criteria = 4;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr getCriteria() {
- return criteria_;
- }
- /**
- * optional .Mysqlx.Expr.Expr criteria = 4;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getCriteriaOrBuilder() {
- return 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 extends com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder>
- 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.mysqlx.protobuf.MysqlxDatatypes.Scalar getArgs(int index) {
- return args_.get(index);
- }
- /**
- * repeated .Mysqlx.Datatypes.Scalar args = 8;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder(
- int index) {
- return args_.get(index);
- }
-
- public static final int LIMIT_FIELD_NUMBER = 5;
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit limit_;
- /**
- * optional .Mysqlx.Crud.Limit limit = 5;
- */
- public boolean hasLimit() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .Mysqlx.Crud.Limit limit = 5;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit getLimit() {
- return limit_;
- }
- /**
- * optional .Mysqlx.Crud.Limit limit = 5;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.LimitOrBuilder getLimitOrBuilder() {
- return limit_;
- }
-
- 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 extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.OrderOrBuilder>
- 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.mysqlx.protobuf.MysqlxCrud.Order getOrder(int index) {
- return order_.get(index);
- }
- /**
- * repeated .Mysqlx.Crud.Order order = 6;
- */
- public com.mysql.cj.mysqlx.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 extends com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperationOrBuilder>
- 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.mysqlx.protobuf.MysqlxCrud.UpdateOperation getOperation(int index) {
- return operation_.get(index);
- }
- /**
- * repeated .Mysqlx.Crud.UpdateOperation operation = 7;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOperationOrBuilder getOperationOrBuilder(
- int index) {
- return operation_.get(index);
- }
-
- private void initFields() {
- collection_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.getDefaultInstance();
- dataModel_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel.DOCUMENT;
- criteria_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- args_ = java.util.Collections.emptyList();
- limit_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit.getDefaultInstance();
- order_ = java.util.Collections.emptyList();
- operation_ = java.util.Collections.emptyList();
- }
- private byte memoizedIsInitialized = -1;
- 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;
- }
- }
- if (hasLimit()) {
- if (!getLimit().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- for (int i = 0; i < getOrderCount(); i++) {
- if (!getOrder(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- for (int i = 0; i < getOperationCount(); i++) {
- if (!getOperation(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(2, collection_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(3, dataModel_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(4, criteria_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeMessage(5, limit_);
- }
- 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));
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, collection_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(3, dataModel_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, criteria_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, limit_);
- }
- 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));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.mysql.cj.mysqlx.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.mysqlx.protobuf.MysqlxCrud.Update parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.mysql.cj.mysqlx.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.mysqlx.protobuf.MysqlxCrud.Update parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code Mysqlx.Crud.Update}
- *
- *
- * 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
- * :param order: specifies order of matched rows
- * :param operation: list of operations to be applied. Valid operations will depend on the data_model.
- * :Returns: :protobuf:msg:`Mysqlx.Resultset::`
- *
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:Mysqlx.Crud.Update)
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.UpdateOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Update_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Update_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update.class, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update.Builder.class);
- }
-
- // Construct using com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getCollectionFieldBuilder();
- getCriteriaFieldBuilder();
- getArgsFieldBuilder();
- getLimitFieldBuilder();
- getOrderFieldBuilder();
- getOperationFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- if (collectionBuilder_ == null) {
- collection_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.getDefaultInstance();
- } else {
- collectionBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- dataModel_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel.DOCUMENT;
- bitField0_ = (bitField0_ & ~0x00000002);
- if (criteriaBuilder_ == null) {
- criteria_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- } else {
- criteriaBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000004);
- if (argsBuilder_ == null) {
- args_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- argsBuilder_.clear();
- }
- if (limitBuilder_ == null) {
- limit_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Limit.getDefaultInstance();
- } else {
- limitBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000010);
- if (orderBuilder_ == null) {
- order_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000020);
- } else {
- orderBuilder_.clear();
- }
- if (operationBuilder_ == null) {
- operation_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
- } else {
- operationBuilder_.clear();
- }
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.internal_static_Mysqlx_Crud_Update_descriptor;
- }
-
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update getDefaultInstanceForType() {
- return com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update.getDefaultInstance();
- }
-
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update build() {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update buildPartial() {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update result = new com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- if (collectionBuilder_ == null) {
- result.collection_ = collection_;
- } else {
- result.collection_ = collectionBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.dataModel_ = dataModel_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- if (criteriaBuilder_ == null) {
- result.criteria_ = criteria_;
- } else {
- result.criteria_ = criteriaBuilder_.build();
- }
- if (argsBuilder_ == null) {
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- args_ = java.util.Collections.unmodifiableList(args_);
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.args_ = args_;
- } else {
- result.args_ = argsBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000008;
- }
- if (limitBuilder_ == null) {
- result.limit_ = limit_;
- } else {
- result.limit_ = limitBuilder_.build();
- }
- if (orderBuilder_ == null) {
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- order_ = java.util.Collections.unmodifiableList(order_);
- bitField0_ = (bitField0_ & ~0x00000020);
- }
- result.order_ = order_;
- } else {
- result.order_ = orderBuilder_.build();
- }
- if (operationBuilder_ == null) {
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- operation_ = java.util.Collections.unmodifiableList(operation_);
- bitField0_ = (bitField0_ & ~0x00000040);
- }
- result.operation_ = operation_;
- } else {
- result.operation_ = operationBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update) {
- return mergeFrom((com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update other) {
- if (other == com.mysql.cj.mysqlx.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.GeneratedMessage.alwaysUseFieldBuilders ?
- getArgsFieldBuilder() : null;
- } else {
- argsBuilder_.addAllMessages(other.args_);
- }
- }
- }
- if (other.hasLimit()) {
- mergeLimit(other.getLimit());
- }
- 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.GeneratedMessage.alwaysUseFieldBuilders ?
- getOrderFieldBuilder() : null;
- } else {
- orderBuilder_.addAllMessages(other.order_);
- }
- }
- }
- if (operationBuilder_ == null) {
- if (!other.operation_.isEmpty()) {
- if (operation_.isEmpty()) {
- operation_ = other.operation_;
- bitField0_ = (bitField0_ & ~0x00000040);
- } else {
- ensureOperationIsMutable();
- operation_.addAll(other.operation_);
- }
- onChanged();
- }
- } else {
- if (!other.operation_.isEmpty()) {
- if (operationBuilder_.isEmpty()) {
- operationBuilder_.dispose();
- operationBuilder_ = null;
- operation_ = other.operation_;
- bitField0_ = (bitField0_ & ~0x00000040);
- operationBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getOperationFieldBuilder() : null;
- } else {
- operationBuilder_.addAllMessages(other.operation_);
- }
- }
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- 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;
- }
- }
- if (hasLimit()) {
- if (!getLimit().isInitialized()) {
-
- return false;
- }
- }
- for (int i = 0; i < getOrderCount(); i++) {
- if (!getOrder(i).isInitialized()) {
-
- return false;
- }
- }
- for (int i = 0; i < getOperationCount(); i++) {
- if (!getOperation(i).isInitialized()) {
-
- return false;
- }
- }
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Update) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection collection_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder> collectionBuilder_;
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public boolean hasCollection() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection getCollection() {
- if (collectionBuilder_ == null) {
- return collection_;
- } else {
- return collectionBuilder_.getMessage();
- }
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public Builder setCollection(com.mysql.cj.mysqlx.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.mysqlx.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.mysqlx.protobuf.MysqlxCrud.Collection value) {
- if (collectionBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001) &&
- collection_ != com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.getDefaultInstance()) {
- collection_ =
- com.mysql.cj.mysqlx.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_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.getDefaultInstance();
- onChanged();
- } else {
- collectionBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.Builder getCollectionBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getCollectionFieldBuilder().getBuilder();
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder() {
- if (collectionBuilder_ != null) {
- return collectionBuilder_.getMessageOrBuilder();
- } else {
- return collection_;
- }
- }
- /**
- * required .Mysqlx.Crud.Collection collection = 2;
- */
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder>
- getCollectionFieldBuilder() {
- if (collectionBuilder_ == null) {
- collectionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.Collection.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxCrud.CollectionOrBuilder>(
- getCollection(),
- getParentForChildren(),
- isClean());
- collection_ = null;
- }
- return collectionBuilder_;
- }
-
- private com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel dataModel_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel.DOCUMENT;
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- public boolean hasDataModel() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel getDataModel() {
- return dataModel_;
- }
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- public Builder setDataModel(com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- dataModel_ = value;
- onChanged();
- return this;
- }
- /**
- * optional .Mysqlx.Crud.DataModel data_model = 3;
- */
- public Builder clearDataModel() {
- bitField0_ = (bitField0_ & ~0x00000002);
- dataModel_ = com.mysql.cj.mysqlx.protobuf.MysqlxCrud.DataModel.DOCUMENT;
- onChanged();
- return this;
- }
-
- private com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr criteria_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder> criteriaBuilder_;
- /**
- * optional .Mysqlx.Expr.Expr criteria = 4;
- */
- public boolean hasCriteria() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional .Mysqlx.Expr.Expr criteria = 4;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr getCriteria() {
- if (criteriaBuilder_ == null) {
- return criteria_;
- } else {
- return criteriaBuilder_.getMessage();
- }
- }
- /**
- * optional .Mysqlx.Expr.Expr criteria = 4;
- */
- public Builder setCriteria(com.mysql.cj.mysqlx.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.mysqlx.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.mysqlx.protobuf.MysqlxExpr.Expr value) {
- if (criteriaBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004) &&
- criteria_ != com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance()) {
- criteria_ =
- com.mysql.cj.mysqlx.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_ = com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.getDefaultInstance();
- onChanged();
- } else {
- criteriaBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000004);
- return this;
- }
- /**
- * optional .Mysqlx.Expr.Expr criteria = 4;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder getCriteriaBuilder() {
- bitField0_ |= 0x00000004;
- onChanged();
- return getCriteriaFieldBuilder().getBuilder();
- }
- /**
- * optional .Mysqlx.Expr.Expr criteria = 4;
- */
- public com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder getCriteriaOrBuilder() {
- if (criteriaBuilder_ != null) {
- return criteriaBuilder_.getMessageOrBuilder();
- } else {
- return criteria_;
- }
- }
- /**
- * optional .Mysqlx.Expr.Expr criteria = 4;
- */
- private com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.ExprOrBuilder>
- getCriteriaFieldBuilder() {
- if (criteriaBuilder_ == null) {
- criteriaBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr, com.mysql.cj.mysqlx.protobuf.MysqlxExpr.Expr.Builder, com.mysql.cj.mysqlx.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) == 0x00000008)) {
- args_ = new java.util.ArrayList(args_);
- bitField0_ |= 0x00000008;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar, com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.Scalar.Builder, com.mysql.cj.mysqlx.protobuf.MysqlxDatatypes.ScalarOrBuilder> argsBuilder_;
-
- /**
- *